]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Fix a race condition on WPS_CANCEL handling
authorJouni Malinen <j@w1.fi>
Fri, 27 Dec 2024 21:49:57 +0000 (23:49 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 27 Dec 2024 21:49:57 +0000 (23:49 +0200)
commit84c9040933b45c331e620d4a6b1832e27e4aa733
tree80a475c588261ae0483e4547e962863667ba9b98
parent1888b7efd92443b6f4c79d4a4b6f25d4f30a1aa3
WPS: Fix a race condition on WPS_CANCEL handling

If the WPS_CANCEL command were issued between the driver command
requesting association and the driver event indicating completion of
association, i.e., within the WPA_ASSOCIATING state, it was possible for
the association to continue and the WPS procedure to be completed after
this.

Address this by forcing deauthentication and WPS state clearing also in
the WPS_ASSOCIATING state and not only if the association has been
completed.

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