]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/ap/wpa_auth_ft.c
AP: Support Extended Key ID
[thirdparty/hostap.git] / src / ap / wpa_auth_ft.c
index 5ed78e6a6fa49d6dcdf9cdb41eee139138d36804..476a2be698d72ab8c5a17d9080c47e6c9f77104d 100644 (file)
@@ -2775,7 +2775,7 @@ void wpa_ft_install_ptk(struct wpa_state_machine *sm)
         * again after association to get the PTK configured, but that could be
         * optimized by adding the STA entry earlier.
         */
-       if (wpa_auth_set_key(sm->wpa_auth, 0, alg, sm->addr, 0,
+       if (wpa_auth_set_key(sm->wpa_auth, 0, alg, sm->addr, sm->keyidx_active,
                             sm->PTK.tk, klen, KEY_FLAG_PAIRWISE_RX_TX))
                return;