From: Felix Fietkau Date: Sat, 22 Feb 2014 13:55:57 +0000 (+0100) Subject: ath5k: set SURVEY_INFO_IN_USE on get_survey X-Git-Tag: accepted/tizen/common/20141203.182822~316^2~18^2^2~243 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef1b4141d0430583743a6045901e4d1a73557a33;p=platform%2Fkernel%2Flinux-arm64.git ath5k: set SURVEY_INFO_IN_USE on get_survey Only one channel is returned - the one currently being used. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath5k/mac80211-ops.c b/drivers/net/wireless/ath/ath5k/mac80211-ops.c index 4ee01f6..afb23b3 100644 --- a/drivers/net/wireless/ath/ath5k/mac80211-ops.c +++ b/drivers/net/wireless/ath/ath5k/mac80211-ops.c @@ -681,6 +681,7 @@ ath5k_get_survey(struct ieee80211_hw *hw, int idx, struct survey_info *survey) survey->channel = conf->chandef.chan; survey->noise = ah->ah_noise_floor; survey->filled = SURVEY_INFO_NOISE_DBM | + SURVEY_INFO_IN_USE | SURVEY_INFO_CHANNEL_TIME | SURVEY_INFO_CHANNEL_TIME_BUSY | SURVEY_INFO_CHANNEL_TIME_RX |