mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-19 23:17:53 +01:00
hostapd: fix HT40 BSS scan checks
SVN-Revision: 18404
This commit is contained in:
parent
3a5deae00d
commit
3036844666
11
package/hostapd/patches/140-ht40_scan.patch
Normal file
11
package/hostapd/patches/140-ht40_scan.patch
Normal file
@ -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 "
|
Loading…
Reference in New Issue
Block a user