]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FT-SAE: Use PMK as XXKey in AP when SAE PMKSA caching is used
authorvamsi krishna <vamsin@codeaurora.org>
Tue, 26 Mar 2019 14:49:02 +0000 (20:19 +0530)
committerJouni Malinen <jouni@codeaurora.org>
Wed, 27 Mar 2019 02:01:26 +0000 (04:01 +0200)
When connected using FT-SAE key mgmt, use PMK from PMKSA cache as XXKey
for PMK-R0 and PMK-R1 derivations. This fixes an issue where FT key
hierarchy could not be established due to missing (not yet configured)
XXKey when using SAE PMKSA caching for the initial mobility domain
association.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/wpa_auth.c

index 0781068775e0cb5c388adf7aac823321eb0a15d3..616b20592caf68368aba4bbcffdb8a7cd1b473a7 100644 (file)
@@ -2060,6 +2060,10 @@ SM_STATE(WPA_PTK, INITPSK)
                wpa_printf(MSG_DEBUG, "SAE: PMK from PMKSA cache");
                os_memcpy(sm->PMK, sm->pmksa->pmk, sm->pmksa->pmk_len);
                sm->pmk_len = sm->pmksa->pmk_len;
+#ifdef CONFIG_IEEE80211R_AP
+               os_memcpy(sm->xxkey, sm->pmksa->pmk, sm->pmksa->pmk_len);
+               sm->xxkey_len = sm->pmksa->pmk_len;
+#endif /* CONFIG_IEEE80211R_AP */
        }
 #endif /* CONFIG_SAE */
        sm->req_replay_counter_used = 0;