Parcourir la source

WPS: Clear connection failure counts on WPS success

The WPS provisioning case does not result in successful connection by
design and as such, this can result in networks getting temporarily
disabled. Avoid this by clearing the failure counts on WPS success.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Jouni Malinen il y a 12 ans
Parent
commit
f3e907a745
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      wpa_supplicant/wps_supplicant.c

+ 3 - 0
wpa_supplicant/wps_supplicant.c

@@ -648,6 +648,9 @@ static void wpa_supplicant_wps_event_success(struct wpa_supplicant *wpa_s)
 	wpa_msg(wpa_s, MSG_INFO, WPS_EVENT_SUCCESS);
 	wpa_msg(wpa_s, MSG_INFO, WPS_EVENT_SUCCESS);
 	wpa_s->wps_success = 1;
 	wpa_s->wps_success = 1;
 	wpas_notify_wps_event_success(wpa_s);
 	wpas_notify_wps_event_success(wpa_s);
+	if (wpa_s->current_ssid)
+		wpas_clear_temp_disabled(wpa_s, wpa_s->current_ssid, 1);
+	wpa_s->extra_blacklist_count = 0;
 
 
 	/*
 	/*
 	 * Enable the networks disabled during wpas_wps_reassoc after 10
 	 * Enable the networks disabled during wpas_wps_reassoc after 10