WPS: Enforce five second minimum time before AP iteration
authorHu Wang <huw@qti.qualcomm.com>
Fri, 24 Apr 2015 12:53:08 +0000 (15:53 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 24 Apr 2015 14:55:32 +0000 (17:55 +0300)
commite7d20342b54121b69e39944a1fe4bdafb3e8a76a
treeb97c6f69bc3aa6ef61d787ad841c1075a3e1b675
parentcfbdb9958f1ae819caeffacaf069e278d165b8a5
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>
wpa_supplicant/wpa_supplicant_i.h
wpa_supplicant/wps_supplicant.c