1 --- a/hostapd/hw_features.c
2 +++ b/hostapd/hw_features.c
3 @@ -329,7 +329,7 @@ static int ieee80211n_check_40mhz_5g(str
5 for (i = 0; i < scan_res->num; i++) {
6 struct wpa_scan_res *bss = scan_res->res[i];
7 - ieee80211n_get_pri_sec_chan(bss, &pri_chan, &sec_chan);
8 + ieee80211n_get_pri_sec_chan(bss, &bss_pri_chan, &bss_sec_chan);
9 if (pri_chan == bss_sec_chan &&
10 sec_chan == bss_pri_chan) {
11 wpa_printf(MSG_INFO, "Switch own primary and "