aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/mac80211/Makefile1
-rw-r--r--net/mac80211/event.c27
-rw-r--r--net/mac80211/ieee80211_i.h3
-rw-r--r--net/mac80211/wpa.c9
4 files changed, 6 insertions, 34 deletions
diff --git a/net/mac80211/Makefile b/net/mac80211/Makefile
index 783e891b7525..f9137a8341f4 100644
--- a/net/mac80211/Makefile
+++ b/net/mac80211/Makefile
@@ -27,7 +27,6 @@ mac80211-y := \
27 key.o \ 27 key.o \
28 util.o \ 28 util.o \
29 wme.o \ 29 wme.o \
30 event.o \
31 chan.o \ 30 chan.o \
32 trace.o mlme.o \ 31 trace.o mlme.o \
33 tdls.o \ 32 tdls.o \
diff --git a/net/mac80211/event.c b/net/mac80211/event.c
deleted file mode 100644
index 01ae759518f6..000000000000
--- a/net/mac80211/event.c
+++ /dev/null
@@ -1,27 +0,0 @@
1/*
2 * Copyright 2007 Johannes Berg <johannes@sipsolutions.net>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * mac80211 - events
9 */
10#include <net/cfg80211.h>
11#include "ieee80211_i.h"
12
13/*
14 * Indicate a failed Michael MIC to userspace. If the caller knows the TSC of
15 * the frame that generated the MIC failure (i.e., if it was provided by the
16 * driver or is still in the frame), it should provide that information.
17 */
18void mac80211_ev_michael_mic_failure(struct ieee80211_sub_if_data *sdata, int keyidx,
19 struct ieee80211_hdr *hdr, const u8 *tsc,
20 gfp_t gfp)
21{
22 cfg80211_michael_mic_failure(sdata->dev, hdr->addr2,
23 (hdr->addr1[0] & 0x01) ?
24 NL80211_KEYTYPE_GROUP :
25 NL80211_KEYTYPE_PAIRWISE,
26 keyidx, tsc, gfp);
27}
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 04b62435f37e..056d3721148c 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -1765,9 +1765,6 @@ extern const void *const mac80211_wiphy_privid; /* for wiphy privid */
1765int ieee80211_frame_duration(enum ieee80211_band band, size_t len, 1765int ieee80211_frame_duration(enum ieee80211_band band, size_t len,
1766 int rate, int erp, int short_preamble, 1766 int rate, int erp, int short_preamble,
1767 int shift); 1767 int shift);
1768void mac80211_ev_michael_mic_failure(struct ieee80211_sub_if_data *sdata, int keyidx,
1769 struct ieee80211_hdr *hdr, const u8 *tsc,
1770 gfp_t gfp);
1771void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata, 1768void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata,
1772 bool bss_notify); 1769 bool bss_notify);
1773void ieee80211_xmit(struct ieee80211_sub_if_data *sdata, 1770void ieee80211_xmit(struct ieee80211_sub_if_data *sdata,
diff --git a/net/mac80211/wpa.c b/net/mac80211/wpa.c
index feb547dc8643..d824c38971ed 100644
--- a/net/mac80211/wpa.c
+++ b/net/mac80211/wpa.c
@@ -174,9 +174,12 @@ mic_fail_no_key:
174 * a driver that supports HW encryption. Send up the key idx only if 174 * a driver that supports HW encryption. Send up the key idx only if
175 * the key is set. 175 * the key is set.
176 */ 176 */
177 mac80211_ev_michael_mic_failure(rx->sdata, 177 cfg80211_michael_mic_failure(rx->sdata->dev, hdr->addr2,
178 rx->key ? rx->key->conf.keyidx : -1, 178 is_multicast_ether_addr(hdr->addr1) ?
179 (void *) skb->data, NULL, GFP_ATOMIC); 179 NL80211_KEYTYPE_GROUP :
180 NL80211_KEYTYPE_PAIRWISE,
181 rx->key ? rx->key->conf.keyidx : -1,
182 NULL, GFP_ATOMIC);
180 return RX_DROP_UNUSABLE; 183 return RX_DROP_UNUSABLE;
181} 184}
182 185