]> git.ipfire.org Git - thirdparty/hostap.git/commit
wlantest: Allow duplicate frame processing after decryption failure
authorJouni Malinen <jouni@codeaurora.org>
Wed, 12 Jun 2019 19:23:30 +0000 (22:23 +0300)
committerJouni Malinen <jouni@codeaurora.org>
Wed, 12 Jun 2019 19:27:34 +0000 (22:27 +0300)
commitb3c43c3c2449efe2d02304a8640d17baf11fb142
tree24defdbdf9a319b473da6a7b0f56da44df1342a6
parenta6ed414c826647719b2b1e0cf37e75357275fa99
wlantest: Allow duplicate frame processing after decryption failure

If a sniffer capture does not include FCS for each frame, but may
included frames with invalid FCS, it would be possible for wlantest to
try to decrypt the first received frame and fail (e.g., due to CCMP MIC
mismatch) because that particular frame was corrupted and then ignore
the following retry of that frame as a duplicate even if that retry has
different payload (e.g., if its reception did not show corruption).

Work around this by skipping duplicate frame detection immediately
following a decryption failure.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wlantest/process.c
wlantest/rx_data.c
wlantest/rx_mgmt.c
wlantest/wlantest.h