WPS: Do not disable AP PIN permanently, only slow down attacks
authorJouni Malinen <j@w1.fi>
Tue, 24 Aug 2010 12:24:05 +0000 (15:24 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 24 Aug 2010 12:24:05 +0000 (15:24 +0300)
commit944814106ec9c9f502ce4329783dd47c6f3d5fbd
tree9ab41074c2a165e1149720a14c4e536fc2001bce
parent035cc69d980d2e4bdd6e1d1260648f1033194655
WPS: Do not disable AP PIN permanently, only slow down attacks

As a compromise between usability and security, do not disable
AP PIN permanently based on failed PIN validations. Instead, go to
AP Setup Locked state for increasing amount of time between each
failure to slow down brute force attacks against the AP PIN.

This avoids problems with some external Registrars that may try
to use the same PIN multiple times without user input. Now, the
user will still be able to fix the PIN and try again later while
a real attack is delayed enough to make it impractical.
src/ap/hostapd.h
src/ap/wps_hostapd.c
src/common/wpa_ctrl.h