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 <tomoharu.hatano@sonymobile.com>
This commit is contained in:
Andrejs Cainikovs 2017-01-23 21:34:46 +09:00 committed by Jouni Malinen
parent cef8fac04b
commit 6a5425fd60

View file

@ -2585,7 +2585,7 @@ static void wpa_supplicant_event_assoc(struct wpa_supplicant *wpa_s,
struct os_reltime now, age; struct os_reltime now, age;
os_get_reltime(&now); os_get_reltime(&now);
os_reltime_sub(&now, &wpa_s->pending_eapol_rx_time, &age); 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) == os_memcmp(wpa_s->pending_eapol_rx_src, bssid, ETH_ALEN) ==
0) { 0) {
wpa_dbg(wpa_s, MSG_DEBUG, "Process pending EAPOL " wpa_dbg(wpa_s, MSG_DEBUG, "Process pending EAPOL "