summaryrefslogtreecommitdiff
path: root/package/hostapd/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-11-12 14:15:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-11-12 14:15:09 +0000
commit30368446669b234e21d6125b365187213d15ba33 (patch)
tree51cbf745c3ee4effb8245fd0418491f5def8d400 /package/hostapd/patches
parent3a5deae00d84d266dba76ec0bbae49402959574d (diff)
downloadmtk-20170518-30368446669b234e21d6125b365187213d15ba33.zip
mtk-20170518-30368446669b234e21d6125b365187213d15ba33.tar.gz
mtk-20170518-30368446669b234e21d6125b365187213d15ba33.tar.bz2
hostapd: fix HT40 BSS scan checks
SVN-Revision: 18404
Diffstat (limited to 'package/hostapd/patches')
-rw-r--r--package/hostapd/patches/140-ht40_scan.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/hostapd/patches/140-ht40_scan.patch b/package/hostapd/patches/140-ht40_scan.patch
new file mode 100644
index 0000000..b8fa6e3
--- /dev/null
+++ b/package/hostapd/patches/140-ht40_scan.patch
@@ -0,0 +1,11 @@
+--- a/hostapd/hw_features.c
++++ b/hostapd/hw_features.c
+@@ -329,7 +329,7 @@ static int ieee80211n_check_40mhz_5g(str
+ if (!match) {
+ for (i = 0; i < scan_res->num; i++) {
+ struct wpa_scan_res *bss = scan_res->res[i];
+- ieee80211n_get_pri_sec_chan(bss, &pri_chan, &sec_chan);
++ ieee80211n_get_pri_sec_chan(bss, &bss_pri_chan, &bss_sec_chan);
+ if (pri_chan == bss_sec_chan &&
+ sec_chan == bss_pri_chan) {
+ wpa_printf(MSG_INFO, "Switch own primary and "