From 0afb0d56229a435b5ec96eb1285919c072a797e5 Mon Sep 17 00:00:00 2001 From: Nicolas Cavallari Date: Wed, 4 Jul 2012 18:10:08 +0200 Subject: [PATCH] --- yaml --- r: 315544 b: refs/heads/master c: 4922f71f2506e36d81a03f8fec4559bb7d175bf7 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/mac80211/tx.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 249101c94999..6f5b100e1dc5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 46e6de159ddebc179cbae60fd7b728f57c39964b +refs/heads/master: 4922f71f2506e36d81a03f8fec4559bb7d175bf7 diff --git a/trunk/net/mac80211/tx.c b/trunk/net/mac80211/tx.c index a79fd868566d..b755e778b0c4 100644 --- a/trunk/net/mac80211/tx.c +++ b/trunk/net/mac80211/tx.c @@ -552,6 +552,9 @@ ieee80211_tx_h_select_key(struct ieee80211_tx_data *tx) !(ieee80211_is_action(hdr->frame_control) && tx->sta && test_sta_flag(tx->sta, WLAN_STA_MFP))) tx->key = NULL; + else if (ieee80211_is_mgmt(hdr->frame_control) && + !ieee80211_is_robust_mgmt_frame(hdr)) + tx->key = NULL; else { I802_DEBUG_INC(tx->local->tx_handlers_drop_unencrypted); return TX_DROP;