Skip to content
Snippets Groups Projects
Commit 30368446 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

hostapd: fix HT40 BSS scan checks

SVN-Revision: 18404
parent 3a5deae0
No related branches found
No related tags found
No related merge requests found
--- 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 "
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment