diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-07-25 14:29:58 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-07-25 14:29:58 +0000 |
commit | eaa3c4a11de7272c77a61305cc3de30a73310d27 (patch) | |
tree | 436c0b935f6c47c6b7c03f2f64957634e7291507 /package/network/services/hostapd | |
parent | 8b4a312ed9c974f747291a8f0978ce8eb726e223 (diff) | |
download | mtk-20170518-eaa3c4a11de7272c77a61305cc3de30a73310d27.zip mtk-20170518-eaa3c4a11de7272c77a61305cc3de30a73310d27.tar.gz mtk-20170518-eaa3c4a11de7272c77a61305cc3de30a73310d27.tar.bz2 |
hostapd: prevent spurious 20/40 mhz channel bandwidth switches if noscan is enabled
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41828
Diffstat (limited to 'package/network/services/hostapd')
-rw-r--r-- | package/network/services/hostapd/patches/300-noscan.patch | 22 |
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 4ea26b6..ac296b8 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)); + |