wpa_supplicant: Fix channel switch notification with VHT
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Tue, 8 Sep 2015 09:46:23 +0000 (12:46 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 25 Sep 2015 18:09:58 +0000 (21:09 +0300)
Fix a bug in wpas_ap_ch_switch() function, which didn't pass VHT
frequencies correctly to hostapd_event_ch_switch().

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
wpa_supplicant/ap.c

index 16ebfaf..7a4f4cf 100644 (file)
@@ -1207,7 +1207,8 @@ void wpas_ap_ch_switch(struct wpa_supplicant *wpa_s, int freq, int ht,
        wpa_s->assoc_freq = freq;
        if (wpa_s->current_ssid)
                wpa_s->current_ssid->frequency = freq;
-       hostapd_event_ch_switch(wpa_s->ap_iface->bss[0], freq, ht, offset, width, cf1, cf1);
+       hostapd_event_ch_switch(wpa_s->ap_iface->bss[0], freq, ht,
+                               offset, width, cf1, cf2);
 }