WPS: Optimize post-WPS scan even if EAP-Failure is not received
Commit 17a4734dc4
shall optimize the
post-WPS scan based on the channel used during the provisioning only
when the EAP-Failure frame is received. In cases where the EAP-Failure
frame is missed, this optimization shall not happen resulting in the
scan in all the channels thus consuming more time for the connection.
This commit enhances this by storing the requisite information after
the M8 frame is received.
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
8b24861154
commit
6fbcbc07e4
1 changed files with 7 additions and 0 deletions
|
@ -423,6 +423,13 @@ static int wpa_supplicant_wps_cred(void *ctx,
|
|||
}
|
||||
#endif /* CONFIG_NO_CONFIG_WRITE */
|
||||
|
||||
/*
|
||||
* Optimize the post-WPS scan based on the channel used during
|
||||
* the provisioning in case EAP-Failure is not received.
|
||||
*/
|
||||
wpa_s->after_wps = 5;
|
||||
wpa_s->wps_freq = wpa_s->assoc_freq;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue