]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath5k: set SURVEY_INFO_IN_USE on get_survey
authorFelix Fietkau <nbd@openwrt.org>
Sat, 22 Feb 2014 13:55:57 +0000 (14:55 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Feb 2014 20:38:39 +0000 (15:38 -0500)
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>
drivers/net/wireless/ath/ath5k/mac80211-ops.c

index 4ee01f654235478ea3510847d6f207593541573f..afb23b3cc7be64d6b0ae8f79d46a3a9c9d07eab3 100644 (file)
@@ -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 |