diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-10-23 13:33:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-10-23 13:33:14 +0000 |
commit | 3772f272d0910ac95bfb19e313cfc30e06601ead (patch) | |
tree | a71488240ff9549c7ab73dd9cbd22360b6b647fb /package/kernel/mac80211 | |
parent | d9ea3d2aa8bfdd6665ad9caa7a9296cadb73662d (diff) | |
download | mtk-20170518-3772f272d0910ac95bfb19e313cfc30e06601ead.zip mtk-20170518-3772f272d0910ac95bfb19e313cfc30e06601ead.tar.gz mtk-20170518-3772f272d0910ac95bfb19e313cfc30e06601ead.tar.bz2 |
ath10k: fix survey output channel in-use flag
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43033
Diffstat (limited to 'package/kernel/mac80211')
-rw-r--r-- | package/kernel/mac80211/patches/343-ath10k-add-SURVEY_INFO_IN_USE-for-current-channel-on.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/343-ath10k-add-SURVEY_INFO_IN_USE-for-current-channel-on.patch b/package/kernel/mac80211/patches/343-ath10k-add-SURVEY_INFO_IN_USE-for-current-channel-on.patch new file mode 100644 index 0000000..a9cba1d --- /dev/null +++ b/package/kernel/mac80211/patches/343-ath10k-add-SURVEY_INFO_IN_USE-for-current-channel-on.patch @@ -0,0 +1,19 @@ +From: Felix Fietkau <nbd@openwrt.org> +Date: Wed, 22 Oct 2014 18:44:03 +0200 +Subject: [PATCH] ath10k: add SURVEY_INFO_IN_USE for current channel on survey + +Signed-off-by: Felix Fietkau <nbd@openwrt.org> +--- + +--- a/drivers/net/wireless/ath/ath10k/mac.c ++++ b/drivers/net/wireless/ath/ath10k/mac.c +@@ -3975,6 +3975,9 @@ static int ath10k_get_survey(struct ieee + + survey->channel = &sband->channels[idx]; + ++ if (ar->rx_channel == survey->channel) ++ survey->filled |= SURVEY_INFO_IN_USE; ++ + exit: + mutex_unlock(&ar->conf_mutex); + return ret; |