]> git.ipfire.org Git - thirdparty/hostap.git/commit
Use wpa_drv_{disassociate,deauthenticate} while waiting for connection
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 5 Nov 2012 14:42:28 +0000 (16:42 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 5 Nov 2012 14:57:57 +0000 (16:57 +0200)
commit42d235477f2345003b76e4de1f397e21c2fa5b76
tree8dabdc67a9472e0c45c6af1d9e433d2d8580c09d
parente50d01b4f1eb68e29b1f6b2f2a078575c146c4de
Use wpa_drv_{disassociate,deauthenticate} while waiting for connection

wpa_supplicant_{disassociate,deauthenticate}() need to inform the driver
about decision to disconnect even if this happens during the time when
the driver is still trying to complete association. During that time,
wpa_s->bssid is not set, so the code in these functions needs to figure
out the correct BSSID based on that field or wpa_s->pending_bssid. In
addition, it is possible that the BSSID is not even known at
wpa_supplicant at this point in time when using drivers that perform BSS
selection internally. In those cases, the disconnect command needs to be
sent to the driver without the BSSID.

This fixes issues where the driver (or cfg80211 in particular) may be
left in mismatching state with wpa_supplicant when disconnection (e.g.,
due to a ctrl_iface command) happens between connection request and
association event.

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