aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-01-23 19:57:43 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-08 10:19:22 (GMT)
commit63dd43ac94f4ae2513c17d9a9fbe9bd2b9510d27 (patch)
tree0d7d0c97d73629c60eb980e0299625add9813b28 /wpa_supplicant
parente51609f083579fb3de4bfb9e6eb9a6f6f8256b51 (diff)
downloadhostap-06-63dd43ac94f4ae2513c17d9a9fbe9bd2b9510d27.zip
hostap-06-63dd43ac94f4ae2513c17d9a9fbe9bd2b9510d27.tar.gz
hostap-06-63dd43ac94f4ae2513c17d9a9fbe9bd2b9510d27.tar.bz2
WPS: Lock AP Setup on multiple AP PIN validation failures
If a Registrar tries to configure the AP, but fails to validate the device password (AP PIN), lock the AP setup after four failures. This protects the AP PIN against brute force guessing attacks. (cherry picked from commit 3b2cf800afaaf4eec53a237541ec08bebc4c1a0c)
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wps_supplicant.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 2dd22f2..9b73601 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -275,6 +275,8 @@ static void wpa_supplicant_wps_event(void *ctx, enum wps_event event,
case WPS_EV_SUCCESS:
wpa_supplicant_wps_event_success(wpa_s);
break;
+ case WPS_EV_PWD_AUTH_FAIL:
+ break;
}
}