]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/sme.c
SME: Fix re-try after auth/assoc timeout/failure
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 25 Nov 2010 20:00:04 +0000 (22:00 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 25 Nov 2010 20:00:04 +0000 (22:00 +0200)
commit7e6646c794ccd1df8d38b9927d11e101c0d45517
tree6973780467fccb5e4ceba9725266e961d710ac8e
parent3c85f144ce7aa3967f881a7584a5b125061ca436
SME: Fix re-try after auth/assoc timeout/failure

There were various issues in how the SME (i.e., nl80211-based driver
interface) handled various authentication and association timeouts and
failures. Authentication failure was not handled at all (wpa_supplicant
just stopped trying to connect completely), authentication timeout
resulted in blacklisting not working in the expected way (i.e., the same
BSS could be selected continuously), and association cases had similar
problems.

Use a common function to handle all these cases and fix the blacklist
operation. Use smaller delay before trying to scan again during the
initial cycle through the available APs to speed up connection. Add
a special case for another-BSS-in-the-same-ESS being present to
speed up recovery from networks with multiple APs doing load balancing
in various odd ways that are deployed out there.
wpa_supplicant/blacklist.c
wpa_supplicant/sme.c