]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant_i.h
wpa_supplicant: Avoid associating to temp disabled SSID in ap_scan=2
authorShaul Triebitz <shaul.triebitz@intel.com>
Tue, 28 Mar 2017 12:26:38 +0000 (15:26 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 29 Mar 2017 12:03:16 +0000 (15:03 +0300)
commit3d5f0e916d1dcc5befa819f4e16773a2ec6f95d3
treea41df96eb02f898a014164e381c01fda8d8513de
parent0a503e0de2e930cbb70bf875b50a6bce37d32f35
wpa_supplicant: Avoid associating to temp disabled SSID in ap_scan=2

In ap_scan=2 mode, wpa_supplicant_assoc_try() did not check whether the
SSID is temporarily disabled before trying to associate and this may
result in an infinite connect/disconnect loop. If the association
succeeds while the SSID is temporarily disabled, wpa_supplicant will
request to deauthenticate and that in turn will cause the SSID to be
temporarily disabled again. Fix that by postponing the association until
the SSID is no longer temporarily disabled.

Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
wpa_supplicant/events.c
wpa_supplicant/scan.c
wpa_supplicant/wpa_supplicant_i.h