aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-07-25 14:29:58 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-07-25 14:29:58 +0000
commitd5f637f327a4096e0af0943ecdb95a7630542378 (patch)
tree5bd8036e352a0e3640e77daf1077f65f51d843d4 /package/network
parenta775d0d065c3b0b26b418ac78c78563ab76ec47a (diff)
downloadupstream-d5f637f327a4096e0af0943ecdb95a7630542378.tar.gz
upstream-d5f637f327a4096e0af0943ecdb95a7630542378.tar.bz2
upstream-d5f637f327a4096e0af0943ecdb95a7630542378.zip
hostapd: prevent spurious 20/40 mhz channel bandwidth switches if noscan is enabled
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41828 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/hostapd/patches/300-noscan.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/300-noscan.patch b/package/network/services/hostapd/patches/300-noscan.patch
index 4ea26b6c72..ac296b8e38 100644
--- a/package/network/services/hostapd/patches/300-noscan.patch
+++ b/package/network/services/hostapd/patches/300-noscan.patch
@@ -30,3 +30,25 @@
return 0; /* HT40 not used */
hostapd_set_state(iface, HAPD_IFACE_HT_SCAN);
+--- a/src/ap/ieee802_11_ht.c
++++ b/src/ap/ieee802_11_ht.c
+@@ -221,6 +221,9 @@ void hostapd_2040_coex_action(struct hos
+ if (!(iface->conf->ht_capab & HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET))
+ return;
+
++ if (iface->conf->noscan)
++ return;
++
+ hdr_len = data - (u8 *) mgmt;
+ if (hdr_len > len)
+ return;
+@@ -319,6 +322,9 @@ void ht40_intolerant_add(struct hostapd_
+ if (iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G)
+ return;
+
++ if (iface->conf->noscan)
++ return;
++
+ wpa_printf(MSG_INFO, "HT: Forty MHz Intolerant is set by STA " MACSTR
+ " in Association Request", MAC2STR(sta->addr));
+