Drop connection attempt if network is disabled before radio work starts
authorHu Wang <huw@qti.qualcomm.com>
Mon, 10 Aug 2015 19:12:59 +0000 (22:12 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 10 Aug 2015 19:16:19 +0000 (22:16 +0300)
commit6108536d7d216fc742c2c85a11ac392ed386cfc8
tree5e773675bf8b066952fe87452c72c24c3df03651
parent8e84921efe652233703588852bc43c36ccb241df
Drop connection attempt if network is disabled before radio work starts

With the radio work design, it is possible for a network entry to get
disabled (e.g., DISABLE_NETWORK <id>) during the time the connect or
sme-connect radio work waits to start. Previously, only the validity of
the BSS entry and BSSID/SSID was verified when starting the actual
connection step. Add call to wpas_network_disabled() to those checks to
catch the case where the network profile is disabled.

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