Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] mac80211: don't send frames from unassociated stations up
@ 2007-08-10 21:36 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2007-08-10 21:36 UTC (permalink / raw)
  To: John W. Linville; +Cc: Jiri Benc, linux-wireless

Hostapd doesn't care anyway right now. And it could probably use the
monitor interface if we added a flag or something.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>

--- wireless-dev.orig/net/mac80211/ieee80211.c	2007-08-10 23:31:52.783840246 +0200
+++ wireless-dev/net/mac80211/ieee80211.c	2007-08-10 23:32:46.803840246 +0200
@@ -3769,12 +3769,13 @@ ieee80211_rx_h_check(struct ieee80211_tx
 			return TXRX_DROP;
 		}
 
-		if (!rx->local->apdev)
-			return TXRX_DROP;
-
-		ieee80211_rx_mgmt(rx->local, rx->skb, rx->u.rx.status,
-				  ieee80211_msg_sta_not_assoc);
-		return TXRX_QUEUED;
+		/*
+		 * TODO: hostapd is really responsible for this.
+		 * But it doesn't care right now. So until it wants to care
+		 * drop it, and at that point just add a radiotap flag
+		 * or something
+		 */
+		return TXRX_DROP;
 	}
 
 	if (rx->sdata->type == IEEE80211_IF_TYPE_STA)
--- wireless-dev.orig/net/mac80211/ieee80211_common.h	2007-08-10 23:31:23.013840246 +0200
+++ wireless-dev/net/mac80211/ieee80211_common.h	2007-08-10 23:31:35.063840246 +0200
@@ -51,7 +51,7 @@ enum ieee80211_msg_type {
 	/* hole at 4, was ieee80211_msg_wep_frame_unknown_key but now unused */
 	ieee80211_msg_michael_mic_failure = 5,
 	/* hole at 6, was monitor but never sent to userspace */
-	ieee80211_msg_sta_not_assoc = 7,
+	/* hole at 7, was ieee80211_msg_sta_not_assoc but now unused */
 	/* 8 was ieee80211_msg_set_aid_for_sta */
 	ieee80211_msg_key_threshold_notification = 9,
 	ieee80211_msg_radar = 11,



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

only message in thread, other threads:[~2007-08-10 21:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-10 21:36 [PATCH] mac80211: don't send frames from unassociated stations up Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox