mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
WPS: Use shorter scan interval during pre-provisioning search
Previously, the shorter scan interval was already in use for the connection following the provisioning step, but same optimization can also be used for the pre-provisioning scan. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
3187fd900d
commit
538d6f4b54
@ -1396,7 +1396,7 @@ static int wpas_select_network_from_last_scan(struct wpa_supplicant *wpa_s,
|
||||
}
|
||||
#endif /* CONFIG_INTERWORKING */
|
||||
#ifdef CONFIG_WPS
|
||||
if (wpa_s->after_wps > 0) {
|
||||
if (wpa_s->after_wps > 0 || wpas_wps_searching(wpa_s)) {
|
||||
wpa_dbg(wpa_s, MSG_DEBUG, "Use shorter wait during WPS processing");
|
||||
timeout_sec = 0;
|
||||
timeout_usec = 500000;
|
||||
|
Loading…
Reference in New Issue
Block a user