diff options
-rw-r--r-- | net/mac80211/rx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 14366d4afbed..b83d4db6ca6a 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -1419,7 +1419,8 @@ ieee80211_drop_unencrypted_mgmt(struct ieee80211_rx_data *rx) | |||
1419 | return 0; | 1419 | return 0; |
1420 | 1420 | ||
1421 | if (rx->sta && test_sta_flags(rx->sta, WLAN_STA_MFP)) { | 1421 | if (rx->sta && test_sta_flags(rx->sta, WLAN_STA_MFP)) { |
1422 | if (unlikely(ieee80211_is_unicast_robust_mgmt_frame(rx->skb) && | 1422 | if (unlikely(!ieee80211_has_protected(fc) && |
1423 | ieee80211_is_unicast_robust_mgmt_frame(rx->skb) && | ||
1423 | rx->key)) | 1424 | rx->key)) |
1424 | return -EACCES; | 1425 | return -EACCES; |
1425 | /* BIP does not use Protected field, so need to check MMIE */ | 1426 | /* BIP does not use Protected field, so need to check MMIE */ |