aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-02-20 10:48:04 (GMT)
committerJouni Malinen <j@w1.fi>2017-02-20 10:48:04 (GMT)
commit21fda4ee72dea277308836a63bc744ff5ba780d7 (patch)
tree32b560fbf08c01f2d40085098695caad507a7251 /src
parentd62391fec960095940a13145c826c6a7b673c166 (diff)
downloadhostap-21fda4ee72dea277308836a63bc744ff5ba780d7.zip
hostap-21fda4ee72dea277308836a63bc744ff5ba780d7.tar.gz
hostap-21fda4ee72dea277308836a63bc744ff5ba780d7.tar.bz2
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 <jouni@qca.qualcomm.com>
Diffstat (limited to 'src')
-rw-r--r--src/eapol_supp/eapol_supp_sm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eapol_supp/eapol_supp_sm.c b/src/eapol_supp/eapol_supp_sm.c
index c8bb303..e727005 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) {