]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Increase delayed EAPOL RX frame timeout
authorAndrejs Cainikovs <andrejs.cainikovs@sonymobile.com>
Mon, 23 Jan 2017 12:34:46 +0000 (21:34 +0900)
committerJouni Malinen <j@w1.fi>
Sun, 29 Jan 2017 16:41:29 +0000 (18:41 +0200)
Increase the EAPOL RX frame timeout from 100 to 200 ms. This fixes lack
of optimization (i.e., first EAPOL frame dropped) in occasional roaming
and authentication cases on EAP networks if the kernel events can be
reordered and delayed a bit longer.

Signed-off-by: Tomoharu Hatano <tomoharu.hatano@sonymobile.com>
wpa_supplicant/events.c

index fcc94dbd30625c92206b47a7a1a4b0262b25f506..76805e08c156e1da2723fa3358994adf24634f7f 100644 (file)
@@ -2585,7 +2585,7 @@ static void wpa_supplicant_event_assoc(struct wpa_supplicant *wpa_s,
                struct os_reltime now, age;
                os_get_reltime(&now);
                os_reltime_sub(&now, &wpa_s->pending_eapol_rx_time, &age);
-               if (age.sec == 0 && age.usec < 100000 &&
+               if (age.sec == 0 && age.usec < 200000 &&
                    os_memcmp(wpa_s->pending_eapol_rx_src, bssid, ETH_ALEN) ==
                    0) {
                        wpa_dbg(wpa_s, MSG_DEBUG, "Process pending EAPOL "