]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FT: Clean EAPOL supp portValid to force re-entry to AUTHENTICATED
authorJouni Malinen <j@w1.fi>
Sat, 13 Mar 2010 19:40:44 +0000 (21:40 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Mar 2010 19:40:44 +0000 (21:40 +0200)
This fixed FT-over-DS to end up in Authorized state when the EAPOL
PAE state machine re-enters AUTHENTICATED.

src/rsn_supp/wpa.c

index 7401519c3506a1b2199240063036d8f6b2b5493d..df0688ca818e45c878b05adf0f758e9896370995 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * WPA Supplicant - WPA state machine and EAPOL-Key processing
- * Copyright (c) 2003-2008, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2003-2010, Jouni Malinen <j@w1.fi>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
@@ -1874,6 +1874,11 @@ void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid)
 
 #ifdef CONFIG_IEEE80211R
        if (wpa_ft_is_completed(sm)) {
+               /*
+                * Clear portValid to kick EAPOL state machine to re-enter
+                * AUTHENTICATED state to get the EAPOL port Authorized.
+                */
+               eapol_sm_notify_portValid(sm->eapol, FALSE);
                wpa_supplicant_key_neg_complete(sm, sm->bssid, 1);
 
                /* Prepare for the next transition */