]> git.ipfire.org Git - thirdparty/hostap.git/commit
wlantest: Search bss/sta entry more thoroughly for 4-address frames
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 15 Nov 2017 00:12:20 +0000 (02:12 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 15 Nov 2017 00:12:20 +0000 (02:12 +0200)
commitaab66128369c5953e70f867e997a54146bcca88b
tree4609e9437d33ce23907d8e1cc626edb30468b20e
parentaf6614ca10d8e24eb5c9723f0c3dab45e7a29607
wlantest: Search bss/sta entry more thoroughly for 4-address frames

Previous design worked for the case where only one of the devices was
beaconing, but failed in one direction to find the PTK if both devices
beaconed. Fix this by checking the A1/A2 fields in both directions if
the first pick fails to find the sta entry.

In addition, select the proper rsc value (rsc_tods vs. rsc_fromds) based
on A2 (TA) value for ToDS+FromDS frames to avoid reporting incorrect
replay issues.

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