aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-26 20:20:41 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-26 20:35:08 (GMT)
commit0d30cc240fa36905b034dc9676f9d8da0ac18e56 (patch)
tree94c93fd29bd7142a2689ecbe24ee79091d7f816b /wpa_supplicant/events.c
parent09bcf3be9c32252b9b4aba1161b35384edfe9f82 (diff)
downloadhostap-0d30cc240fa36905b034dc9676f9d8da0ac18e56.zip
hostap-0d30cc240fa36905b034dc9676f9d8da0ac18e56.tar.gz
hostap-0d30cc240fa36905b034dc9676f9d8da0ac18e56.tar.bz2
Clear current_ssid and key_mgmt when disconnected
This makes wpa_supplicant state somewhat cleaner since the information from previously used connection is not maintained after getting disconnected. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 315fc34..9f12a16 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -172,6 +172,8 @@ void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s)
if (wpa_key_mgmt_wpa_psk(wpa_s->key_mgmt))
eapol_sm_notify_eap_success(wpa_s->eapol, FALSE);
wpa_s->ap_ies_from_associnfo = 0;
+ wpa_s->current_ssid = NULL;
+ wpa_s->key_mgmt = 0;
}