aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-12-29 16:02:05 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-29 16:02:05 (GMT)
commit538d6f4b54a9592edf8201d83b92d9b2e14bde40 (patch)
tree56c0573fa1880648995b358604de8fd131ffec19 /wpa_supplicant
parent3187fd900d7492bdb9934098a9ce2f4975fd8fb2 (diff)
downloadhostap-538d6f4b54a9592edf8201d83b92d9b2e14bde40.zip
hostap-538d6f4b54a9592edf8201d83b92d9b2e14bde40.tar.gz
hostap-538d6f4b54a9592edf8201d83b92d9b2e14bde40.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index f9e2d19..1fea70d 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;