Parcourir la source

SME: Request a new scan if SME association command fails

This handles some error cases without getting stuck waiting for new
events from the driver if association command fails for any reason.
Jouni Malinen il y a 15 ans
Parent
commit
b85e772449
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      wpa_supplicant/sme.c

+ 1 - 0
wpa_supplicant/sme.c

@@ -314,6 +314,7 @@ void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data)
 	if (wpa_drv_associate(wpa_s, &params) < 0) {
 		wpa_msg(wpa_s, MSG_INFO, "Association request to the driver "
 			"failed");
+		wpa_supplicant_req_scan(wpa_s, 5, 0);
 		return;
 	}