aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index fb7fd896cd0d..2b02b2b9d645 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -40,10 +40,6 @@ const unsigned char rfc1042_header[] =
40const unsigned char bridge_tunnel_header[] = 40const unsigned char bridge_tunnel_header[] =
41 { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0xf8 }; 41 { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0xf8 };
42 42
43/* No encapsulation header if EtherType < 0x600 (=length) */
44static const unsigned char eapol_header[] =
45 { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00, 0x88, 0x8e };
46
47 43
48static int rate_list_match(const int *rate_list, int rate) 44static int rate_list_match(const int *rate_list, int rate)
49{ 45{
@@ -223,19 +219,6 @@ int ieee80211_get_hdrlen_from_skb(const struct sk_buff *skb)
223} 219}
224EXPORT_SYMBOL(ieee80211_get_hdrlen_from_skb); 220EXPORT_SYMBOL(ieee80211_get_hdrlen_from_skb);
225 221
226int ieee80211_is_eapol(const struct sk_buff *skb, int hdrlen)
227{
228 if (unlikely(skb->len < 10))
229 return 0;
230
231 if (unlikely(skb->len >= hdrlen + sizeof(eapol_header) &&
232 memcmp(skb->data + hdrlen, eapol_header,
233 sizeof(eapol_header)) == 0))
234 return 1;
235
236 return 0;
237}
238
239void ieee80211_tx_set_iswep(struct ieee80211_txrx_data *tx) 222void ieee80211_tx_set_iswep(struct ieee80211_txrx_data *tx)
240{ 223{
241 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) tx->skb->data; 224 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) tx->skb->data;