[MAC80211]: remove ieee80211_msg_wep_frame_unknown_key
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 28 Aug 2007 21:01:53 +0000 (17:01 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:48:43 +0000 (16:48 -0700)
Neither hostapd nor wpa_supplicant really use it.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_common.h
net/mac80211/rx.c

index 77c6afb7f6a802818a975de0675ee5123e3be85c..dd315a0575100a68aa8e161dc7d431c204a9f036 100644 (file)
@@ -48,7 +48,7 @@ enum ieee80211_msg_type {
        ieee80211_msg_tx_callback_ack = 1,
        ieee80211_msg_tx_callback_fail = 2,
        /* hole at 3, was ieee80211_msg_passive_scan but unused */
-       ieee80211_msg_wep_frame_unknown_key = 4,
+       /* hole at 4, was ieee80211_msg_wep_frame_unknown_key but now unused */
        ieee80211_msg_michael_mic_failure = 5,
        /* hole at 6, was monitor but never sent to userspace */
        ieee80211_msg_sta_not_assoc = 7,
index 7a6e60fcf9d026fa3555bc9b7dc5a55d4f8a4a1d..b0959c249869745f6dc611e014964238f52ceee8 100644 (file)
@@ -346,12 +346,11 @@ ieee80211_rx_h_load_key(struct ieee80211_txrx_data *rx)
                                               MAC_ARG(hdr->addr1),
                                               MAC_ARG(hdr->addr2),
                                               MAC_ARG(hdr->addr3));
-                               if (!rx->local->apdev)
-                                       return TXRX_DROP;
-                               ieee80211_rx_mgmt(
-                                       rx->local, rx->skb, rx->u.rx.status,
-                                       ieee80211_msg_wep_frame_unknown_key);
-                               return TXRX_QUEUED;
+                               /*
+                                * TODO: notify userspace about this
+                                * via cfg/nl80211
+                                */
+                               return TXRX_DROP;
                        }
                }
        }