Browse Source

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.
Jouni Malinen 16 years ago
parent
commit
114622c021
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

@@ -1422,8 +1422,10 @@ void eapol_sm_notify_cached(struct eapol_sm *sm)
 {
 {
 	if (sm == NULL)
 	if (sm == NULL)
 		return;
 		return;
+	wpa_printf(MSG_DEBUG, "EAPOL: PMKSA caching was used - skip EAPOL");
 	sm->SUPP_PAE_state = SUPP_PAE_AUTHENTICATED;
 	sm->SUPP_PAE_state = SUPP_PAE_AUTHENTICATED;
 	sm->suppPortStatus = Authorized;
 	sm->suppPortStatus = Authorized;
+	sm->portValid = TRUE;
 	eap_notify_success(sm->eap);
 	eap_notify_success(sm->eap);
 	eapol_sm_step(sm);
 	eapol_sm_step(sm);
 }
 }