From 114622c021e04a65f292668d449a270f42c6a0e9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 25 Oct 2008 20:21:31 +0300 Subject: [PATCH] Fixed EAPOL skip for PMKSA caching case to remain in authenticated state Need to make sure that portValid is TRUE in order to avoid PAE state machine going into DISCONNECTED state on eapol_sm_step(). This could be triggered at least with OKC. --- src/eapol_supp/eapol_supp_sm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/eapol_supp/eapol_supp_sm.c b/src/eapol_supp/eapol_supp_sm.c index 19d6363bc..ea65d277f 100644 --- a/src/eapol_supp/eapol_supp_sm.c +++ b/src/eapol_supp/eapol_supp_sm.c @@ -1422,8 +1422,10 @@ void eapol_sm_notify_cached(struct eapol_sm *sm) { if (sm == NULL) return; + wpa_printf(MSG_DEBUG, "EAPOL: PMKSA caching was used - skip EAPOL"); sm->SUPP_PAE_state = SUPP_PAE_AUTHENTICATED; sm->suppPortStatus = Authorized; + sm->portValid = TRUE; eap_notify_success(sm->eap); eapol_sm_step(sm); }