aboutsummaryrefslogtreecommitdiffstats
path: root/src/eapol_supp/eapol_supp_sm.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-10-25 17:21:31 (GMT)
committerJouni Malinen <j@w1.fi>2008-10-25 17:21:31 (GMT)
commit114622c021e04a65f292668d449a270f42c6a0e9 (patch)
tree8e8e84bdf009705c435e3c6cd00c29ae7b554f36 /src/eapol_supp/eapol_supp_sm.c
parent9663596facdd2a1f43f320fb87b992e880b5c8d1 (diff)
downloadhostap-114622c021e04a65f292668d449a270f42c6a0e9.zip
hostap-114622c021e04a65f292668d449a270f42c6a0e9.tar.gz
hostap-114622c021e04a65f292668d449a270f42c6a0e9.tar.bz2
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.
Diffstat (limited to 'src/eapol_supp/eapol_supp_sm.c')
-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 19d6363..ea65d27 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);
}