1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Wed, 22 Oct 2014 18:44:03 +0200
3 Subject: [PATCH] ath10k: add SURVEY_INFO_IN_USE for current channel on survey
5 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
8 --- a/drivers/net/wireless/ath/ath10k/mac.c
9 +++ b/drivers/net/wireless/ath/ath10k/mac.c
10 @@ -3975,6 +3975,9 @@ static int ath10k_get_survey(struct ieee
12 survey->channel = &sband->channels[idx];
14 + if (ar->rx_channel == survey->channel)
15 + survey->filled |= SURVEY_INFO_IN_USE;
18 mutex_unlock(&ar->conf_mutex);