mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
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>
This commit is contained in:
parent
8e84921efe
commit
6108536d7d
@ -598,7 +598,8 @@ static void sme_auth_start_cb(struct wpa_radio_work *work, int deinit)
|
|||||||
wpa_s->connect_work = work;
|
wpa_s->connect_work = work;
|
||||||
|
|
||||||
if (cwork->bss_removed ||
|
if (cwork->bss_removed ||
|
||||||
!wpas_valid_bss_ssid(wpa_s, cwork->bss, cwork->ssid)) {
|
!wpas_valid_bss_ssid(wpa_s, cwork->bss, cwork->ssid) ||
|
||||||
|
wpas_network_disabled(wpa_s, cwork->ssid)) {
|
||||||
wpa_dbg(wpa_s, MSG_DEBUG, "SME: BSS/SSID entry for authentication not valid anymore - drop connection attempt");
|
wpa_dbg(wpa_s, MSG_DEBUG, "SME: BSS/SSID entry for authentication not valid anymore - drop connection attempt");
|
||||||
wpas_connect_work_done(wpa_s);
|
wpas_connect_work_done(wpa_s);
|
||||||
return;
|
return;
|
||||||
|
@ -1967,7 +1967,8 @@ static void wpas_start_assoc_cb(struct wpa_radio_work *work, int deinit)
|
|||||||
|
|
||||||
wpa_s->connect_work = work;
|
wpa_s->connect_work = work;
|
||||||
|
|
||||||
if (cwork->bss_removed || !wpas_valid_bss_ssid(wpa_s, bss, ssid)) {
|
if (cwork->bss_removed || !wpas_valid_bss_ssid(wpa_s, bss, ssid) ||
|
||||||
|
wpas_network_disabled(wpa_s, ssid)) {
|
||||||
wpa_dbg(wpa_s, MSG_DEBUG, "BSS/SSID entry for association not valid anymore - drop connection attempt");
|
wpa_dbg(wpa_s, MSG_DEBUG, "BSS/SSID entry for association not valid anymore - drop connection attempt");
|
||||||
wpas_connect_work_done(wpa_s);
|
wpas_connect_work_done(wpa_s);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user