From: Veerendranath Jakkam Date: Wed, 24 Jan 2024 03:17:15 +0000 (+0530) Subject: wlantest: Adjust kdk_len according to RSNX capability for FT X-Git-Tag: hostap_2_11~422 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c0cadd6ee5ae6eb0e2fd08a03eaf22c5cc55708;p=thirdparty%2Fhostap.git wlantest: Adjust kdk_len according to RSNX capability for FT 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 --- diff --git a/wlantest/rx_eapol.c b/wlantest/rx_eapol.c index 23e082e55..1610b145c 100644 --- a/wlantest/rx_eapol.c +++ b/wlantest/rx_eapol.c @@ -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,