]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FT auth: Fix EAPOL reauthentication after FT protocol run
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 19 Nov 2015 18:32:04 +0000 (20:32 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 19 Nov 2015 19:16:06 +0000 (21:16 +0200)
The EAPOL AUTH_PAE state machine was left in incomplete state at the
completion of FT protocol. Set portValid = TRUE to allow the state
machine to proceed from AUTHENTICATING to AUTHENTICATED state, so that a
new EAPOL reauthentication can be triggered.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ieee802_1x.c

index 68fdb72b192854f174ea614b3d6968ae4bc62352..f5666035adaa1ba18776fe593825796fb919e06f 100644 (file)
@@ -1106,6 +1106,7 @@ void ieee802_1x_new_station(struct hostapd_data *hapd, struct sta_info *sta)
                sta->eapol_sm->be_auth_state = BE_AUTH_SUCCESS;
                sta->eapol_sm->authSuccess = TRUE;
                sta->eapol_sm->authFail = FALSE;
+               sta->eapol_sm->portValid = TRUE;
                if (sta->eapol_sm->eap)
                        eap_sm_notify_cached(sta->eapol_sm->eap);
                /* TODO: get vlan_id from R0KH using RRB message */