aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>2015-09-08 09:46:10 (GMT)
committerJouni Malinen <j@w1.fi>2015-09-25 18:07:01 (GMT)
commitd7ded54774410591abd5705eb203455baf19a7de (patch)
tree3c35996ece708321e9414ae00fb951a3c3105659
parentc6d7965d2527a48858d41648c8a9b9acee01e41c (diff)
downloadhostap-d7ded54774410591abd5705eb203455baf19a7de.zip
hostap-d7ded54774410591abd5705eb203455baf19a7de.tar.gz
hostap-d7ded54774410591abd5705eb203455baf19a7de.tar.bz2
Update wpa_s->current_ssid->frequency on CS event
Update wpa_s->current_ssid->frequency when EVENT_CH_SWITCH is received. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
-rw-r--r--wpa_supplicant/ap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index ce09c57..16ebfaf 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -1205,6 +1205,8 @@ void wpas_ap_ch_switch(struct wpa_supplicant *wpa_s, int freq, int ht,
return;
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);
}