diff options
author | Eyal Shapira <eyal@wizery.com> | 2012-01-29 17:44:31 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-01-29 17:44:31 +0200 |
commit | 1193dc8fd7a9d67d84492141457a7a5ffc541728 (patch) | |
tree | 1f732e1161347ff2435bf0486539d31959d70215 | |
parent | b3aa456b3e8f77ad495283e955855301b4695dd3 (diff) | |
download | external_wpa_supplicant_8_ti-1193dc8fd7a9d67d84492141457a7a5ffc541728.zip external_wpa_supplicant_8_ti-1193dc8fd7a9d67d84492141457a7a5ffc541728.tar.gz external_wpa_supplicant_8_ti-1193dc8fd7a9d67d84492141457a7a5ffc541728.tar.bz2 |
SME: Fix processing of Authentication timeout and failure
current_bss and pending_bssid weren't cleaned up so BSS
kept appearing in the scan results even when it was actually gone.
Use wpa_supplicant_mark_disassoc() to cleanup the wpa_s context
instead of just dropping wpa_state back to DISCONNECTED.
Reported-by: Vishal Mahaveer <vishalm@ti.com>
Signed-hostap: Eyal Shapira <eyal@wizery.com>
-rw-r--r-- | wpa_supplicant/sme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index c5e47d1..fc28347 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -265,8 +265,8 @@ void sme_authenticate(struct wpa_supplicant *wpa_s, if (wpa_drv_authenticate(wpa_s, ¶ms) < 0) { wpa_msg(wpa_s, MSG_INFO, "SME: Authentication request to the " "driver failed"); - wpa_supplicant_set_state(wpa_s, WPA_DISCONNECTED); wpas_connection_failed(wpa_s, bss->bssid); + wpa_supplicant_mark_disassoc(wpa_s); return; } @@ -503,8 +503,8 @@ void sme_event_auth_timed_out(struct wpa_supplicant *wpa_s, union wpa_event_data *data) { wpa_dbg(wpa_s, MSG_DEBUG, "SME: Authentication timed out"); - wpa_supplicant_set_state(wpa_s, WPA_DISCONNECTED); wpas_connection_failed(wpa_s, wpa_s->pending_bssid); + wpa_supplicant_mark_disassoc(wpa_s); } |