]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mac80211: Add testing functionality for TKIP
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 3 Feb 2011 16:35:19 +0000 (18:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 3 Feb 2011 21:45:29 +0000 (16:45 -0500)
commit681d119047761cc59a15c0bb86891f3a878997cf
treeb118fdf78870de7eea5a0449e84b4e11b046b5be
parent747d753df7fea1d2d29c5c33623f6d2e5d0ed2d6
mac80211: Add testing functionality for TKIP

TKIP countermeasures depend on devices being able to detect Michael
MIC failures on received frames and for stations to report errors to
the AP. In order to test that behavior, it is useful to be able to
send out TKIP frames with incorrect Michael MIC. This testing behavior
has minimal effect on the TX path, so it can be added to mac80211 for
convenient use.

The interface for using this functionality is a file in mac80211
netdev debugfs (tkip_mic_test). Writing a MAC address to the file
makes mac80211 generate a dummy data frame that will be sent out using
invalid Michael MIC value. In AP mode, the address needs to be for one
of the associated stations or ff:ff:ff:ff:ff:ff to use a broadcast
frame. In station mode, the address can be anything, e.g., the current
BSSID. It should be noted that this functionality works correctly only
when associated and using TKIP.

Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/debugfs_netdev.c
net/mac80211/wpa.c