nl80211: Add Michael MIC failure event
authorJouni Malinen <j@w1.fi>
Fri, 27 Mar 2009 19:59:49 +0000 (21:59 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Apr 2009 20:54:28 +0000 (16:54 -0400)
commita3b8b0569fbef725597f05278ec58083321f6e9d
treecb3beb05c841a9564a3fdd44d540570c7b89c9f6
parent53b46b8444f600cc1744521ea096ea0c5d494dd0
nl80211: Add Michael MIC failure event

Define a new nl80211 event, NL80211_CMD_MICHAEL_MIC_FAILURE, to be
used to notify user space about locally detected Michael MIC failures.
This matches with the MLME-MICHAELMICFAILURE.indication() primitive.

Since we do not actually have TSC in the skb anymore when
mac80211_ev_michael_mic_failure() is called, that function is changed
to take in the TSC as an optional parameter instead of as a
requirement to include the TSC after the hdr field (which we did not
really follow). For now, TSC is not included in the events from
mac80211, but it could be added at some point.

Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/nl80211.h
include/net/cfg80211.h
net/mac80211/event.c
net/mac80211/ieee80211_i.h
net/mac80211/rx.c
net/mac80211/wpa.c
net/wireless/mlme.c
net/wireless/nl80211.c
net/wireless/nl80211.h