Author: nbd
Date: 2014-10-23 15:33:14 +0200 (Thu, 23 Oct 2014)
New Revision: 43033

Added:
   
trunk/package/kernel/mac80211/patches/343-ath10k-add-SURVEY_INFO_IN_USE-for-current-channel-on.patch
Log:
ath10k: fix survey output channel in-use flag

Signed-off-by: Felix Fietkau <[email protected]>

Added: 
trunk/package/kernel/mac80211/patches/343-ath10k-add-SURVEY_INFO_IN_USE-for-current-channel-on.patch
===================================================================
--- 
trunk/package/kernel/mac80211/patches/343-ath10k-add-SURVEY_INFO_IN_USE-for-current-channel-on.patch
                                (rev 0)
+++ 
trunk/package/kernel/mac80211/patches/343-ath10k-add-SURVEY_INFO_IN_USE-for-current-channel-on.patch
        2014-10-23 13:33:14 UTC (rev 43033)
@@ -0,0 +1,19 @@
+From: Felix Fietkau <[email protected]>
+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 <[email protected]>
+---
+
+--- 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;
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to