All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: Fix dropping of unprotected robust multicast frames
@ 2010-03-30  6:36 Jouni Malinen
  0 siblings, 0 replies; only message in thread
From: Jouni Malinen @ 2010-03-30  6:36 UTC (permalink / raw)
  To: John W. Linville, Johannes Berg; +Cc: linux-wireless

When selecting the RX key for group-addressed robust management
frames, we do not actually select any BIP key if the frame is
unprotected (since we cannot find the key index from MMIE). This
results in the drop_unencrypted check in failing to drop the frame. It
is enough to verify that we have a STA entry for the transmitter and
that MFP is enabled for that STA; we do not need to check rx->key
here. This fixes BIP processing for unprotected, group-addressed,
robust management frames.

Signed-off-by: Jouni Malinen <j@w1.fi>

---
 net/mac80211/rx.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- 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

-- 
Jouni Malinen                                            PGP id EFC895FA

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-30  6:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-30  6:36 [PATCH] mac80211: Fix dropping of unprotected robust multicast frames Jouni Malinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.