mac80211: fix key flush handling in AP+STA
[oweals/openwrt.git] / package / kernel / mac80211 / patches / 343-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 survey
4
5 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
6 ---
7
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
11  
12         survey->channel = &sband->channels[idx];
13  
14 +       if (ar->rx_channel == survey->channel)
15 +               survey->filled |= SURVEY_INFO_IN_USE;
16 +
17  exit:
18         mutex_unlock(&ar->conf_mutex);
19         return ret;