From: Felix Fietkau Date: Thu, 23 Oct 2014 13:33:14 +0000 (+0000) Subject: ath10k: fix survey output channel in-use flag X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=5ca8b4e7561eaa5288cf1b1563e4e0dc1e97d400 ath10k: fix survey output channel in-use flag Signed-off-by: Felix Fietkau SVN-Revision: 43033 --- 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 0000000000..a9cba1d5ea --- /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 +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 +--- + +--- 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;