From 538d6f4b54a9592edf8201d83b92d9b2e14bde40 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 29 Dec 2013 18:02:05 +0200 Subject: [PATCH] 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 --- wpa_supplicant/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index f9e2d19e9..1fea70db5 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -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;