wlantest: Adjust kdk_len according to RSNX capability for FT
Commit 0660f31ba0
("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>
This commit is contained in:
parent
fee037d70d
commit
2c0cadd6ee
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ static int try_pmk(struct wlantest *wt, struct wlantest_bss *bss,
|
||||||
sta->snonce, sta->anonce, sa,
|
sta->snonce, sta->anonce, sa,
|
||||||
aa, sta->pmk_r1_name,
|
aa, sta->pmk_r1_name,
|
||||||
&ptk, ptk_name, sta->key_mgmt,
|
&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)
|
check_mic(sta, ptk.kck, ptk.kck_len, ver, data, len) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
} else if (wpa_pmk_to_ptk(pmk->pmk, pmk->pmk_len,
|
} else if (wpa_pmk_to_ptk(pmk->pmk, pmk->pmk_len,
|
||||||
|
|
Loading…
Reference in a new issue