Skip to contentSkip to conversation

ath5k: set SURVEY_INFO_IN_USE on get_survey

PATCH New Felix Fietkau 1 participant 1 message Feb 22, 2014 Atheros ATH5K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath5k: set SURVEY_INFO_IN_USE on get_survey

Only one channel is returned - the one currently being used.

---
 drivers/net/wireless/ath/ath5k/mac80211-ops.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/ath5k/mac80211-ops.c +1 -0
index 4ee01f6..afb23b3 100644
@@ -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 |
Signature · 1 line
1.8.3.4 (Apple Git-47)