kernel/mac80211: backport bcma changes from 4.1
[openwrt.git] / package / kernel / mac80211 / patches / 303-ath10k-add-SURVEY_INFO_IN_USE-for-current-channel-on.patch
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
4  survey
5
6 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
7 ---
8
9 --- a/drivers/net/wireless/ath/ath10k/mac.c
10 +++ b/drivers/net/wireless/ath/ath10k/mac.c
11 @@ -4044,6 +4044,9 @@ static int ath10k_get_survey(struct ieee
12  
13         survey->channel = &sband->channels[idx];
14  
15 +       if (ar->rx_channel == survey->channel)
16 +               survey->filled |= SURVEY_INFO_IN_USE;
17 +
18  exit:
19         mutex_unlock(&ar->conf_mutex);
20         return ret;