aboutsummaryrefslogtreecommitdiffstats
path: root/src/eapol_supp
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-07-07 16:22:11 (GMT)
committerJouni Malinen <j@w1.fi>2015-07-07 16:25:31 (GMT)
commitc8a15753eb484612328f8e26914d09c278c6cf82 (patch)
treec6a0d1dca3882078ea892cead0130027fb20107a /src/eapol_supp
parent471c810bc1e0e7e3b9674701932b0f8453031219 (diff)
downloadhostap-c8a15753eb484612328f8e26914d09c278c6cf82.zip
hostap-c8a15753eb484612328f8e26914d09c278c6cf82.tar.gz
hostap-c8a15753eb484612328f8e26914d09c278c6cf82.tar.bz2
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 <j@w1.fi>
Diffstat (limited to 'src/eapol_supp')
-rw-r--r--src/eapol_supp/eapol_supp_sm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eapol_supp/eapol_supp_sm.c b/src/eapol_supp/eapol_supp_sm.c
index eb8c5bb..39b4319 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)