]> git.ipfire.org Git - thirdparty/hostap.git/commit
wlantest: Fix TK iteration based on the PTK file
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 1 Feb 2024 17:51:56 +0000 (19:51 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 1 Feb 2024 17:51:56 +0000 (19:51 +0200)
commit1abdeaa412be5671a7beab6c3525010c693445f2
treebb78342aa69e147102dc08e2ccb760c5ddd5a0be
parentdfaedb2095baed419529d45e3e7a3c14843a6dfb
wlantest: Fix TK iteration based on the PTK file

Use of ptk_len is not valid here to check what is the length of the
actual TK. Fix this by using ptk->tk_len instead so that the appropriate
decryption function can be selected for cases where the TKs are
configured through the PTK file.

Fixes: ce7bdb54e5c9 ("wlantest: Extend Management frame decryption to support GCMP and CCMP-256")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wlantest/rx_mgmt.c