Browse Source

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>
Jouni Malinen 8 years ago
parent
commit
21fda4ee72
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/eapol_supp/eapol_supp_sm.c

+ 2 - 0
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) {