]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Adjust kdk_len according to RSNX capability for FT
authorVeerendranath Jakkam <quic_vjakkam@quicinc.com>
Wed, 24 Jan 2024 03:17:15 +0000 (08:47 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 25 Jan 2024 18:08:08 +0000 (20:08 +0200)
Commit 0660f31ba0d0 ("wlantest: wlantest: Adjust kdk_len according to
RSNX capability") added support for PTK derivation and the additional
KDK component when Secure LTF support is used in the non-FT case.

Cover the same for the FT case to derive the correct PTK and consider
the additional KDK component when Secure LTF support is used.

Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
wlantest/rx_eapol.c

index 23e082e550cf2f13cc087f619ba97d49e8d29437..1610b145ce56658ca3e7138a01f7d755c9011027 100644 (file)
@@ -222,7 +222,7 @@ static int try_pmk(struct wlantest *wt, struct wlantest_bss *bss,
                                      sta->snonce, sta->anonce, sa,
                                      aa, sta->pmk_r1_name,
                                      &ptk, ptk_name, sta->key_mgmt,
-                                     sta->pairwise_cipher, 0) < 0 ||
+                                     sta->pairwise_cipher, kdk_len) < 0 ||
                    check_mic(sta, ptk.kck, ptk.kck_len, ver, data, len) < 0)
                        return -1;
        } else if (wpa_pmk_to_ptk(pmk->pmk, pmk->pmk_len,