aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-01-23 11:10:58 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-08 10:17:38 (GMT)
commit2292277859c08e815784213e8ed3da9a719ce64d (patch)
tree0170d25251bf6604f61dd63ec36c2fffa23496fd /src
parent2b15e08f94d2f04ea67c0118c52e7bfb03d20dc0 (diff)
downloadhostap-06-2292277859c08e815784213e8ed3da9a719ce64d.zip
hostap-06-2292277859c08e815784213e8ed3da9a719ce64d.tar.gz
hostap-06-2292277859c08e815784213e8ed3da9a719ce64d.tar.bz2
Allow WPS APs for PIN enrollment even without Selected Registrar
Some WPS APs do not set Selected Registrar attribute to 1 properly when using an external Registrar. Allow such an AP to be selected for PIN registration after couple of scan runs that do not find APs marked with Selected Registrar = 1. This allows wpa_supplicant to iterate through all APs that advertise WPS support without delaying connection with implementations that set Selected Registrar = 1 properly. (cherry picked from commit a609915233c75f6dc8b942292fd8dcd79bb871bf) Conflicts: wpa_supplicant/wpa_supplicant_i.h
Diffstat (limited to 'src')
-rw-r--r--src/common/wpa_ctrl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/wpa_ctrl.h b/src/common/wpa_ctrl.h
index 87a4c6b..f7cad57 100644
--- a/src/common/wpa_ctrl.h
+++ b/src/common/wpa_ctrl.h
@@ -66,6 +66,8 @@ extern "C" {
#define WPS_EVENT_FAIL "WPS-FAIL "
/** WPS registration completed successfully */
#define WPS_EVENT_SUCCESS "WPS-SUCCESS "
+/** WPS enrollment attempt timed out and was terminated */
+#define WPS_EVENT_TIMEOUT "WPS-TIMEOUT "
/* hostapd control interface - fixed message prefixes */
#define WPS_EVENT_PIN_NEEDED "WPS-PIN-NEEDED "