]> git.ipfire.org Git - thirdparty/hostap.git/commit
Remove pending connect and sme-connect radio works on disconnect
authorJouni Malinen <jouni@codeaurora.org>
Fri, 15 Mar 2019 10:59:55 +0000 (12:59 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 15 Mar 2019 11:03:31 +0000 (13:03 +0200)
commitf5db77504985653cfd40afea6c643d5071070787
tree52b16a7103706c50e80cc19be559b657c58c7870
parenta8b8da1132b2d71958ad9628d6fc20c0d7f179e8
Remove pending connect and sme-connect radio works on disconnect

There was a race condition in a case where a new connection attempt was
scheduled as a pending radio work and that was followed by a DISCONNECT
command before the pending radio work is started. The pending radio work
would not have been deleted in that sequence and instead, it was
executed when the radio became available next. This could result in an
unexpected connection after an explicit request to disconnect.

Fix this by removing pending connect and sme-connect radio works on
disconnection request.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/wpa_supplicant.c