From 6a5425fd602923c4855b7998fa6b869797bae648 Mon Sep 17 00:00:00 2001 From: Andrejs Cainikovs Date: Mon, 23 Jan 2017 21:34:46 +0900 Subject: [PATCH] Increase delayed EAPOL RX frame timeout 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 --- wpa_supplicant/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index fcc94dbd3..76805e08c 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -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 "