aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-05-15 14:33:50 (GMT)
committerJouni Malinen <j@w1.fi>2013-05-15 14:33:50 (GMT)
commitf3e907a74562f0e552456332f8f904dbc0dc9576 (patch)
tree89a8059cf784cbd35e1668c1ea8a70d03424de12 /wpa_supplicant
parent170f5663dc5fd426b25fe3f680d34bd7d40f510e (diff)
downloadhostap-f3e907a74562f0e552456332f8f904dbc0dc9576.zip
hostap-f3e907a74562f0e552456332f8f904dbc0dc9576.tar.gz
hostap-f3e907a74562f0e552456332f8f904dbc0dc9576.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wps_supplicant.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 72f03e5..d73e023 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/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_s->wps_success = 1;
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