aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-02-22 14:55:57 +0100
committerJohn W. Linville <linville@tuxdriver.com>2014-02-24 15:38:39 -0500
commitef1b4141d0430583743a6045901e4d1a73557a33 (patch)
treec517af673e008519dce66a6f9a606babcb0d6900 /drivers/net/wireless/ath/ath5k
parentath9k: make some hardware reset log messages debug-only (diff)
downloadlinux-dev-ef1b4141d0430583743a6045901e4d1a73557a33.tar.xz
linux-dev-ef1b4141d0430583743a6045901e4d1a73557a33.zip
ath5k: set SURVEY_INFO_IN_USE on get_survey
Only one channel is returned - the one currently being used. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k')
-rw-r--r--drivers/net/wireless/ath/ath5k/mac80211-ops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/mac80211-ops.c b/drivers/net/wireless/ath/ath5k/mac80211-ops.c
index 4ee01f654235..afb23b3cc7be 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 |