From: Jouni Malinen Date: Tue, 7 Jul 2015 16:22:11 +0000 (+0300) Subject: Send EAPOL-Start on HELD->CONNECTING transition X-Git-Tag: hostap_2_5~456 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8a15753eb484612328f8e26914d09c278c6cf82;p=thirdparty%2Fhostap.git Send EAPOL-Start on HELD->CONNECTING transition Previously, only CONNECTING->CONNECTING case ended up sending out an EAPOL-Start frame to avoid sending the unnecessary initial EAPOL-Start. However, this optimization prevented new EAPOL-Start from being initiated when leaving the HELD state. Allow that case to trigger immediate EAPOL-Start transmission to speed up connection. Signed-off-by: Jouni Malinen --- diff --git a/src/eapol_supp/eapol_supp_sm.c b/src/eapol_supp/eapol_supp_sm.c index eb8c5bb4a..39b4319bb 100644 --- a/src/eapol_supp/eapol_supp_sm.c +++ b/src/eapol_supp/eapol_supp_sm.c @@ -244,7 +244,8 @@ SM_STATE(SUPP_PAE, DISCONNECTED) SM_STATE(SUPP_PAE, CONNECTING) { - int send_start = sm->SUPP_PAE_state == SUPP_PAE_CONNECTING; + int send_start = sm->SUPP_PAE_state == SUPP_PAE_CONNECTING || + sm->SUPP_PAE_state == SUPP_PAE_HELD; SM_ENTRY(SUPP_PAE, CONNECTING); if (sm->eapTriggerStart)