Do not stop ongoing PNO sched_scan on association/disconnection
PNO was stopped by the wpa_supplicant during the connection attempts or while handling disassociation indication. External entities, mainly, the Android Wi-Fi framework, does not expects PNO to be stopped by other modules. Hence, do not stop the sched_scan in these scenarios if it is triggered externally for PNO. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
76de2b6708
commit
0d0f7ecbb1
2 changed files with 5 additions and 2 deletions
|
@ -2377,6 +2377,7 @@ static void wpa_supplicant_event_disassoc_finish(struct wpa_supplicant *wpa_s,
|
|||
"try to re-connect");
|
||||
wpa_s->reassociate = 0;
|
||||
wpa_s->disconnected = 1;
|
||||
if (!wpa_s->pno)
|
||||
wpa_supplicant_cancel_sched_scan(wpa_s);
|
||||
}
|
||||
bssid = wpa_s->bssid;
|
||||
|
|
|
@ -2017,7 +2017,9 @@ static void wpas_start_assoc_cb(struct wpa_radio_work *work, int deinit)
|
|||
wpa_ssid_txt(ssid->ssid, ssid->ssid_len));
|
||||
os_memset(wpa_s->pending_bssid, 0, ETH_ALEN);
|
||||
}
|
||||
if (!wpa_s->pno)
|
||||
wpa_supplicant_cancel_sched_scan(wpa_s);
|
||||
|
||||
wpa_supplicant_cancel_scan(wpa_s);
|
||||
|
||||
/* Starting new association, so clear the possibly used WPA IE from the
|
||||
|
|
Loading…
Reference in a new issue