path: root/wpa_supplicant/wpa_supplicant_i.h
diff options
authorHu Wang <huw@qti.qualcomm.com>2015-04-24 12:53:08 (GMT)
committerJouni Malinen <j@w1.fi>2015-04-24 14:55:32 (GMT)
commite7d20342b54121b69e39944a1fe4bdafb3e8a76a (patch)
treeb97c6f69bc3aa6ef61d787ad841c1075a3e1b675 /wpa_supplicant/wpa_supplicant_i.h
parentcfbdb9958f1ae819caeffacaf069e278d165b8a5 (diff)
WPS: Enforce five second minimum time before AP iteration
Previously, wpa_supplicant was using number of scan iterations (WPS_PIN_SCAN_IGNORE_SEL_REG = 3) to give some time for finding a WPS AP with Selected Registrar TRUE before starting to iterate through all WPS APs. While this works fine in most cases, some drivers may return the initial three scan results so quickly that the total amount of time is only couple of seconds in case none of the APs are initially advertising Selected Registrar TRUE. To give some more time for APs (WPS Registrars) to become ready, add an additional constraint on the iteration based on time (WPS_PIN_TIME_IGNORE_SEL_REG = 5 seconds). Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wpa_supplicant_i.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant_i.h b/wpa_supplicant/wpa_supplicant_i.h
index 1b9753c..0e36b46 100644
--- a/wpa_supplicant/wpa_supplicant_i.h
+++ b/wpa_supplicant/wpa_supplicant_i.h
@@ -639,6 +639,7 @@ struct wpa_supplicant {
int wps_success; /* WPS success event received */
struct wps_er *wps_er;
unsigned int wps_run;
+ struct os_reltime wps_pin_start_time;
int blacklist_cleared;
struct wpabuf *pending_eapol_rx;