diff mbox

[03/26] wpa_supplicant: Update current_ssid->frequency on CS event

Message ID 1441705593-1184-4-git-send-email-ilan.peer@intel.com
State Accepted
Headers show

Commit Message

Ilan Peer Sept. 8, 2015, 9:46 a.m. UTC
From: Andrei Otcheretianski <andrei.otcheretianski@intel.com>

Update wpa_s->current_ssid->frequency when EVENT_CH_SWITCH is received.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
---
 wpa_supplicant/ap.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index ce09c57..6d43619 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -1205,6 +1205,7 @@  void wpas_ap_ch_switch(struct wpa_supplicant *wpa_s, int freq, int ht,
 		return;
 
 	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);
 }