Parcourir la source

WPS: Allow AP that becomes active be tried immediately

Clear the possible blacklisting of a WPS AP during WPS PIN iteration if
the AP moves to selected registrar TRUE state or if it adds our MAC
address to the list of authorized MACs.

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

+ 2 - 0
wpa_supplicant/wps_supplicant.c

@@ -2010,6 +2010,8 @@ static void wpas_wps_update_ap_info_bss(struct wpa_supplicant *wpa_s,
 				   " changed type %d -> %d",
 				   MAC2STR(res->bssid), ap->type, type);
 			ap->type = type;
+			if (type != WPS_AP_NOT_SEL_REG)
+				wpa_blacklist_del(wpa_s, ap->bssid);
 		}
 		return;
 	}