diff mbox

mac80211: Fix dropping of unprotected robust multicast frames

Message ID 20100330063615.GD4953@jm.kir.nu (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Jouni Malinen March 30, 2010, 6:36 a.m. UTC
None
diff mbox

Patch

--- wireless-testing.orig/net/mac80211/rx.c	2010-03-29 23:32:20.000000000 -0700
+++ wireless-testing/net/mac80211/rx.c	2010-03-29 23:35:35.000000000 -0700
@@ -1413,8 +1413,7 @@  ieee80211_drop_unencrypted_mgmt(struct i
 			return -EACCES;
 		/* BIP does not use Protected field, so need to check MMIE */
 		if (unlikely(ieee80211_is_multicast_robust_mgmt_frame(rx->skb) &&
-			     ieee80211_get_mmie_keyidx(rx->skb) < 0 &&
-			     rx->key))
+			     ieee80211_get_mmie_keyidx(rx->skb) < 0))
 			return -EACCES;
 		/*
 		 * When using MFP, Action frames are not allowed prior to