]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS: Use shorter scan interval during pre-provisioning search
authorJouni Malinen <j@w1.fi>
Sun, 29 Dec 2013 16:02:05 +0000 (18:02 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Dec 2013 16:02:05 +0000 (18:02 +0200)
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>

wpa_supplicant/events.c

index f9e2d19e97dcbcd17911e876c388ee84dbd11db2..1fea70db5a4db8ae54af11f72e008574319ed4df 100644 (file)
@@ -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;