]> git.ipfire.org Git - thirdparty/hostap.git/commit - wlantest/rx_data.c
wlantest: Try harder to find a STA entry with PTK for 4-address frames
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 8 Dec 2017 19:51:47 +0000 (21:51 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 8 Dec 2017 19:54:40 +0000 (21:54 +0200)
commit97302b39dca60759e495e169148a2181318723e0
treed11b9b09507fe09525637159d1696cdebb5e7487
parent9b0de99fac58dfc4ac8f0eaa05a5a537e5c223bd
wlantest: Try harder to find a STA entry with PTK for 4-address frames

Commit aab66128369c5953e70f867e997a54146bcca88b ('wlantest: Search
bss/sta entry more thoroughly for 4-address frames') allowed wlantest to
find a STA entry in this type of cases, but it was still possible for
that STA entry to be the one that has no derived PTK while the STA entry
for the other side of the link might have the derived PTK available.

Extend this BSS/STA selection mechanism to use sta->ptk_set to determine
which STA entry is more useful for decryption, i.e., select the one with
a known PTK.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wlantest/rx_data.c