]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
RSN: Fix pre-authentication EAPOL-Start startPeriod configuration
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 20 Feb 2017 10:48:04 +0000 (12:48 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 20 Feb 2017 10:48:04 +0000 (12:48 +0200)
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 <jouni@qca.qualcomm.com>
src/eapol_supp/eapol_supp_sm.c

index c8bb3030d109348353364f7c892f802e869acfb6..e72700598a67a85ae75d4a42969a5716e6dfd75a 100644 (file)
@@ -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) {