linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: drop control frames after processing
@ 2010-05-30 12:53 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2010-05-30 12:53 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless

After ieee80211_rx_h_ctrl() processing we only
want to process management (including action)
frames, so there's no point in letting control
frames continue.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
 net/mac80211/rx.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

--- wireless-testing.orig/net/mac80211/rx.c	2010-05-30 14:49:30.000000000 +0200
+++ wireless-testing/net/mac80211/rx.c	2010-05-30 14:50:13.000000000 +0200
@@ -1853,7 +1853,12 @@ ieee80211_rx_h_ctrl(struct ieee80211_rx_
 		return RX_QUEUED;
 	}
 
-	return RX_CONTINUE;
+	/*
+	 * After this point, we only want management frames,
+	 * so we can drop all remaining control frames to
+	 * cooked monitor interfaces.
+	 */
+	return RX_DROP_MONITOR;
 }
 
 static void ieee80211_process_sa_query_req(struct ieee80211_sub_if_data *sdata,



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

only message in thread, other threads:[~2010-05-30 12:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-30 12:53 [PATCH] mac80211: drop control frames after processing Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).