From d3db4822959c01b12a34cd4842c43b2130a5ab29 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 12 Nov 2009 14:15:09 +0000 Subject: [PATCH] hostapd: fix HT40 BSS scan checks SVN-Revision: 18404 --- package/hostapd/patches/140-ht40_scan.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/hostapd/patches/140-ht40_scan.patch diff --git a/package/hostapd/patches/140-ht40_scan.patch b/package/hostapd/patches/140-ht40_scan.patch new file mode 100644 index 0000000000..b8fa6e38ff --- /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 " -- 2.30.2