]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Cancel WPS operation also in DISCONNECTED state
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 6 Jun 2012 19:07:11 +0000 (22:07 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 6 Jun 2012 19:07:11 +0000 (22:07 +0300)
commit476dea24fffca37ebc1011840449e89ed4b8f49a
tree79c1675e2ff2d05db4894f03fb1a44382467278a
parent5b3763336466f2c55611437cb924aeee45f7203e
WPS: Cancel WPS operation also in DISCONNECTED state

It is possible for wpa_state to be WPA_DISCONNECTED when a new scan is
scheduled to be started in the future. If wpas_wps_cancel() gets called
(e.g., through control interface wps_cancel or a P2P group removal)
while in that state, the WPS operation (scan request and special network
block) were not removed. Fix this by clearing the WPS operations both in
WPA_SCANNING and WPA_DISCONNECTED states.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
intended-for: hostap-1
wpa_supplicant/wps_supplicant.c