From: Jouni Malinen Date: Mon, 20 Feb 2017 10:48:04 +0000 (+0200) Subject: RSN: Fix pre-authentication EAPOL-Start startPeriod configuration X-Git-Tag: hostap_2_7~1559 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21fda4ee72dea277308836a63bc744ff5ba780d7;p=thirdparty%2Fhostap.git RSN: Fix pre-authentication EAPOL-Start startPeriod configuration The RSN pre-authentication case ended up ignoring the initial startPeriod value and delayed EAPOL-Start message by two seconds. Fix this by forcing the first EAPOL-Start message to be sent when running pre-authentication. Signed-off-by: Jouni Malinen --- diff --git a/src/eapol_supp/eapol_supp_sm.c b/src/eapol_supp/eapol_supp_sm.c index c8bb3030d..e72700598 100644 --- a/src/eapol_supp/eapol_supp_sm.c +++ b/src/eapol_supp/eapol_supp_sm.c @@ -250,6 +250,8 @@ SM_STATE(SUPP_PAE, CONNECTING) if (sm->eapTriggerStart) send_start = 1; + if (sm->ctx->preauth) + send_start = 1; sm->eapTriggerStart = FALSE; if (send_start) {