]> git.ipfire.org Git - thirdparty/hostap.git/commit
Extend RESEND_* test commands to allow forcing plaintext TX
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 19 Oct 2017 09:16:18 +0000 (12:16 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 19 Oct 2017 15:32:16 +0000 (18:32 +0300)
commit3d6953288b592704484864f41791f8c67ff9aa5a
tree761078111206e2ab9aff7b3ed6703e1ce76ce376
parent4be5bc98a8aabcc12eaf46855b984819d39d2b0e
Extend RESEND_* test commands to allow forcing plaintext TX

This allows hostapd testing functionality to be forced to send out a
plaintext EAPOL-Key frame with the RESEND_* command. That can be useful
in seeing how the station behaves if an unencrypted EAPOL frame is
received when TK is already configured.

This is not really perfect since there is no convenient way of sending
out a single unencrypted frame in the current nl80211 design. The
monitor interface could likely still do this, but that's not really
supposed to be used anymore. For now, clear and restore TK during this
operation. The restore part is not really working correctly, though,
since it ends up clearing the TSC value on the AP side and that shows up
as replay protection issues on the station. Anyway, this is sufficient
to generate sniffer captures to analyze station behavior.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
hostapd/ctrl_iface.c
src/ap/wpa_auth.c
src/ap/wpa_auth.h
src/ap/wpa_auth_i.h