]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove possible authentication timeout on connection failure
authorJouni Malinen <j@w1.fi>
Sat, 31 Dec 2011 11:25:37 +0000 (13:25 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 31 Dec 2011 11:25:37 +0000 (13:25 +0200)
The authentication timeout could be triggered after the connection has
already been known to have failed. The event at that point can be
confusing, so better cancel the timeout when processing connection
failure.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/wpa_supplicant.c

index 675b59268ee3b177f39e9f6639580cfdda032ee8..7f5c7d42487f01eef62aa55ad05fad44eba1d694 100644 (file)
@@ -2848,6 +2848,11 @@ void wpas_connection_failed(struct wpa_supplicant *wpa_s, const u8 *bssid)
        int count;
        int *freqs = NULL;
 
+       /*
+        * Remove possible authentication timeout since the connection failed.
+        */
+       eloop_cancel_timeout(wpa_supplicant_timeout, wpa_s, NULL);
+
        /*
         * Add the failed BSSID into the blacklist and speed up next scan
         * attempt if there could be other APs that could accept association.