]> git.ipfire.org Git - thirdparty/hostap.git/commit
Set state to DISCONNECTED on auth/assoc failures
authorJouni Malinen <j@w1.fi>
Mon, 25 Jun 2012 11:23:25 +0000 (14:23 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 25 Jun 2012 11:23:25 +0000 (14:23 +0300)
commitc1c023429b8e839bfb6505c224ae74fd3f1ae7ad
tree32fd7ade30bee9a589c8c590f2393dcbaf71f3d5
parent5bda43cdeec1c0dc34ba0f465499bb525fdd541a
Set state to DISCONNECTED on auth/assoc failures

Some of the authentication/association failure paths left wpa_state to
its previous value. This can result in unexpected behavior when
wpa_supplicant tries to find an AP to connect to since the uncleared
state can result the in the selected BSS being ignored if it is same as
the previously used BSS. This could happen, e.g., when wpa_supplicant
SME was used and the AP rejected authentication. Fix this by explicitly
setting state to DISCONNECTED on auth/assoc failures that did not yet do
this.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1
wpa_supplicant/sme.c
wpa_supplicant/wpa_supplicant.c