diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-03-20 06:37:36 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-03-20 06:37:36 -0400 |
commit | e8f4fb7c7c6b25dc0495f1fd43b03444f0a5c6e3 (patch) | |
tree | 98bd6b2bd1957a8a35ed4bd9a82db3e307e3d7de /net/mac80211/tx.c | |
parent | c7ef38e0ccca25050efed56a35df2e1e93c0b469 (diff) |
mac80211: remove drop_unencrypted code
This mechanism was historic, and only ever used by IBSS, which
also doesn't need to have it as it properly manages station's
802.1X PAE state (or, with WEP, always has a key.)
Remove the mechanism to clean up the code.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 7e7de811e6ad..0bae03bca49e 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -593,23 +593,8 @@ ieee80211_tx_h_select_key(struct ieee80211_tx_data *tx) | |||
593 | else if (!is_multicast_ether_addr(hdr->addr1) && | 593 | else if (!is_multicast_ether_addr(hdr->addr1) && |
594 | (key = rcu_dereference(tx->sdata->default_unicast_key))) | 594 | (key = rcu_dereference(tx->sdata->default_unicast_key))) |
595 | tx->key = key; | 595 | tx->key = key; |
596 | else if (info->flags & IEEE80211_TX_CTL_INJECTED) | 596 | else |
597 | tx->key = NULL; | ||
598 | else if (!tx->sdata->drop_unencrypted) | ||
599 | tx->key = NULL; | ||
600 | else if (tx->skb->protocol == tx->sdata->control_port_protocol) | ||
601 | tx->key = NULL; | ||
602 | else if (ieee80211_is_robust_mgmt_frame(tx->skb) && | ||
603 | !(ieee80211_is_action(hdr->frame_control) && | ||
604 | tx->sta && test_sta_flag(tx->sta, WLAN_STA_MFP))) | ||
605 | tx->key = NULL; | ||
606 | else if (ieee80211_is_mgmt(hdr->frame_control) && | ||
607 | !ieee80211_is_robust_mgmt_frame(tx->skb)) | ||
608 | tx->key = NULL; | 597 | tx->key = NULL; |
609 | else { | ||
610 | I802_DEBUG_INC(tx->local->tx_handlers_drop_unencrypted); | ||
611 | return TX_DROP; | ||
612 | } | ||
613 | 598 | ||
614 | if (tx->key) { | 599 | if (tx->key) { |
615 | bool skip_hw = false; | 600 | bool skip_hw = false; |