Parcourir la source

SME: Fix processing of Authentication timeout

The wpa_state needs to be dropped back to DISCONNECTED to allow scan
results to trigger a new authentication attempt.

Signed-hostap: Jouni Malinen <j@w1.fi>
Jouni Malinen il y a 13 ans
Parent
commit
14115a1089
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      wpa_supplicant/sme.c

+ 1 - 0
wpa_supplicant/sme.c

@@ -503,6 +503,7 @@ 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);
 }