[PATCH] WPS: Skip rescanning after provisioning
Masashi Honma
masashi.honma
Mon Feb 25 17:26:19 PST 2013
This patch uses existing scan results for fast connection after
provisioning.
Signed-hostap: Masashi Honma <masashi.honma at gmail.com>
diff --git a/wpa_supplicant/wps_supplicant.c
b/wpa_supplicant/wps_supplicant.c
index 509a7c0..6fa6027 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -98,7 +98,8 @@ int wpas_wps_eapol_cb(struct wpa_supplicant *wpa_s)
wpa_s->wps_freq = freq;
wpa_s->normal_scans = 0;
wpa_s->reassociate = 1;
- wpa_supplicant_req_scan(wpa_s, 0, 0);
+ if (wpa_supplicant_fast_associate(wpa_s) != 1)
+ wpa_supplicant_req_scan(wpa_s, 0, 0);
return 1;
}
Regards,
Masashi Honma.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20130226/4d368244/attachment.htm
More information about the Hostap
mailing list