From: Jouni Malinen Date: Sun, 29 Dec 2013 16:02:05 +0000 (+0200) Subject: WPS: Use shorter scan interval during pre-provisioning search X-Git-Tag: hostap_2_1~289 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=538d6f4b54a9592edf8201d83b92d9b2e14bde40;p=thirdparty%2Fhostap.git 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 --- 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;