diff mbox

[13/14] wpa_supplicant: Fix channel switch notification with VHT

Message ID 1400483236-10320-14-git-send-email-ilan.peer@intel.com
State Changes Requested
Headers show

Commit Message

Ilan Peer May 19, 2014, 7:07 a.m. UTC
From: Andrei Otcheretianski <andrei.otcheretianski@intel.com>

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 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 5f7aab8..59b8fcf 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -1141,7 +1141,7 @@  void wpas_ap_ch_switch(struct wpa_supplicant *wpa_s, int freq, int ht,
 
 	wpa_s->assoc_freq = freq;
 	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);
 }