WPS NFC: Cancel scheduled scan before attempting a scan
Cancel scheduled scan (if any) before attempting to scan for the newly received configuration/credential in WPS NFC Config token case. Signed-hostap: Jithu Jance <jithu@broadcom.com>
This commit is contained in:
parent
24d110dca3
commit
7e910b7b51
1 changed files with 2 additions and 0 deletions
|
@ -2174,6 +2174,8 @@ static int wpas_wps_use_cred(struct wpa_supplicant *wpa_s,
|
||||||
}
|
}
|
||||||
wpa_s->disconnected = 0;
|
wpa_s->disconnected = 0;
|
||||||
wpa_s->reassociate = 1;
|
wpa_s->reassociate = 1;
|
||||||
|
|
||||||
|
wpa_supplicant_cancel_sched_scan(wpa_s);
|
||||||
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue