]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS: Optimize post-WPS scan even if EAP-Failure is not received
authorSunil Dutt <duttus@codeaurora.org>
Fri, 21 Dec 2012 13:30:39 +0000 (15:30 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 21 Dec 2012 13:30:39 +0000 (15:30 +0200)
Commit 17a4734dc4d28ef070dfa227b422ed84794f48c5 shall optimize the
post-WPS scan based on the channel used during the provisioning only
when the EAP-Failure frame is received. In cases where the EAP-Failure
frame is missed, this optimization shall not happen resulting in the
scan in all the channels thus consuming more time for the connection.
This commit enhances this by storing the requisite information after
the M8 frame is received.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/wps_supplicant.c

index 0239c55d4d4c913f0ea6985d49f130eb8e0c0ec1..0bf297978cdc71640238d244ed61e7ea44f61cbd 100644 (file)
@@ -423,6 +423,13 @@ static int wpa_supplicant_wps_cred(void *ctx,
        }
 #endif /* CONFIG_NO_CONFIG_WRITE */
 
+       /*
+        * Optimize the post-WPS scan based on the channel used during
+        * the provisioning in case EAP-Failure is not received.
+        */
+       wpa_s->after_wps = 5;
+       wpa_s->wps_freq = wpa_s->assoc_freq;
+
        return 0;
 }