Search Linux Wireless

[RFC] mac80211: Do not allow disabled channel during scan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The scan decision allows disabled channel to be set. So the
probe request was seen over the disabled channel. This patch
skips the disabled channel while scanning.

Signed-off-by: Rajkumar Manoharan <rmanohar@xxxxxxxxxxxxxxxx>
---
 net/mac80211/scan.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index 6f09eca..9c3d309 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -616,6 +616,10 @@ static void ieee80211_scan_state_set_channel(struct ieee80211_local *local,
 		if (ieee80211_hw_config(local, IEEE80211_CONF_CHANGE_CHANNEL))
 			skip = 1;
 
+	/* Skip disabled channels */
+	if (chan->flags & IEEE80211_CHAN_DISABLED)
+		skip = 1;
+
 	/* advance state machine to next channel/band */
 	local->scan_channel_idx++;
 
-- 
1.7.6.1

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux