]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/drivers/driver_nl80211.c
nl80211: Use monitor interface for sending no-encrypt test frames
authorJouni Malinen <j@w1.fi>
Sat, 4 Jan 2020 18:23:05 +0000 (20:23 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 4 Jan 2020 18:23:05 +0000 (20:23 +0200)
commit9bedf90047d61a5197b271c1ae942092b38731b0
tree9f62176b37ab2561953cad6b6ec6b20b6835c619
parente62a1cbaf17e091797c1b277542d302cfe98c8ab
nl80211: Use monitor interface for sending no-encrypt test frames

Since NL80211_CMD_FRAME does not allow encryption to be disabled for the
frame, add a monitor interface temporarily for cases where this type of
no-encrypt frames are to be sent. The temporary monitor interface is
removed immediately after sending the frame.

This is testing functionality (only in CONFIG_TESTING_OPTIONS=y builds)
that is used for PMF testing where the AP can use this to inject an
unprotected Robust Management frame (mainly, Deauthentication or
Disassociation frame) even in cases where PMF has been negotiated for
the association.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211.c
src/drivers/driver_nl80211_monitor.c