Abort ongoing scan on DISCONNECT
Along with canceling queued scan, abort ongoing scan if any, this ensures Wi-Fi interface is in usable state after disconnect is issued, else subsequent scan after disconnect might fail with EBUSY. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
This commit is contained in:
parent
5b21f4861c
commit
3cb51378f2
1 changed files with 1 additions and 0 deletions
|
@ -8712,6 +8712,7 @@ void wpas_request_disconnection(struct wpa_supplicant *wpa_s)
|
|||
wpa_s->disconnected = 1;
|
||||
wpa_supplicant_cancel_sched_scan(wpa_s);
|
||||
wpa_supplicant_cancel_scan(wpa_s);
|
||||
wpas_abort_ongoing_scan(wpa_s);
|
||||
wpa_supplicant_deauthenticate(wpa_s, WLAN_REASON_DEAUTH_LEAVING);
|
||||
eloop_cancel_timeout(wpas_network_reenabled, wpa_s, NULL);
|
||||
radio_remove_works(wpa_s, "connect", 0);
|
||||
|
|
Loading…
Reference in a new issue