]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Fix WPS-in-search check when STA_AUTOCONNECT is disabled
authorJouni Malinen <j@w1.fi>
Sat, 27 Sep 2014 19:41:28 +0000 (22:41 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 28 Sep 2014 08:03:48 +0000 (11:03 +0300)
commit6e252b0db3cfbc345384feaeac7b7a934610448a
tree485ccbd6b094b6db326e4eefb8c2647c7c77e91d
parente5fdc05dce18ac39299296b966212d555b7f4df9
WPS: Fix WPS-in-search check when STA_AUTOCONNECT is disabled

If "STA_AUTOCONNECT 0" has been used to disable automatic connection on
disconnection event and the driver indicates multiple disconnection
events for the disconnection from the current AP when WPS is started, it
could have been possible to hit a case where wpa_s->disconnected was set
to 1 during WPS processing and the following scan result processing
would stop the operation.

wpa_s->key_mgmt == WPA_KEY_MGMT_WPS check was trying to avoid to skip
autoconnect when WPS was in use, but that does not seem to work anymore.
Fix this by checking through wpas_wps_searching() as well to avoid
setting wpa_s->disconnect = 1 when there is an ongoing WPS operation.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/events.c