Flush the BSS (scan) entries when an interface becomes disabled
When an interface becomes disabled (e.g., when RF-kill becomes blocked) we should clear the stored scan results to avoid maintaining stale information. Fix this by flushing the BSS entries when an interface becomes disabled. Signed-off-by: Moshe Benji <moshe.benji@intel.com>
This commit is contained in:
parent
b223b55345
commit
14220fe64c
1 changed files with 1 additions and 0 deletions
|
@ -3959,6 +3959,7 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
|
||||||
wpa_s, WLAN_REASON_DEAUTH_LEAVING, 1);
|
wpa_s, WLAN_REASON_DEAUTH_LEAVING, 1);
|
||||||
}
|
}
|
||||||
wpa_supplicant_mark_disassoc(wpa_s);
|
wpa_supplicant_mark_disassoc(wpa_s);
|
||||||
|
wpa_bss_flush(wpa_s);
|
||||||
radio_remove_works(wpa_s, NULL, 0);
|
radio_remove_works(wpa_s, NULL, 0);
|
||||||
|
|
||||||
wpa_supplicant_set_state(wpa_s, WPA_INTERFACE_DISABLED);
|
wpa_supplicant_set_state(wpa_s, WPA_INTERFACE_DISABLED);
|
||||||
|
|
Loading…
Reference in a new issue