aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-03-27 15:59:49 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-04-22 16:54:28 -0400
commita3b8b0569fbef725597f05278ec58083321f6e9d (patch)
treecb3beb05c841a9564a3fdd44d540570c7b89c9f6 /include/net/cfg80211.h
parent53b46b8444f600cc1744521ea096ea0c5d494dd0 (diff)
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>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index ec33096fc655..f8bf0c86650b 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -957,4 +957,20 @@ void cfg80211_hold_bss(struct cfg80211_bss *bss);
957 */ 957 */
958void cfg80211_unhold_bss(struct cfg80211_bss *bss); 958void cfg80211_unhold_bss(struct cfg80211_bss *bss);
959 959
960/**
961 * cfg80211_michael_mic_failure - notification of Michael MIC failure (TKIP)
962 * @dev: network device
963 * @addr: The source MAC address of the frame
964 * @key_type: The key type that the received frame used
965 * @key_id: Key identifier (0..3)
966 * @tsc: The TSC value of the frame that generated the MIC failure (6 octets)
967 *
968 * This function is called whenever the local MAC detects a MIC failure in a
969 * received frame. This matches with MLME-MICHAELMICFAILURE.indication()
970 * primitive.
971 */
972void cfg80211_michael_mic_failure(struct net_device *dev, const u8 *addr,
973 enum nl80211_key_type key_type, int key_id,
974 const u8 *tsc);
975
960#endif /* __NET_CFG80211_H */ 976#endif /* __NET_CFG80211_H */