From: Johannes Berg <johannes@sipsolutions.net>
To: John Linville <linville@tuxdriver.com>
Cc: Jiri Benc <jbenc@suse.cz>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: [PATCH 2/4] mac80211: dont send frames from unassociated stations up
Date: Sat, 11 Aug 2007 00:05:46 +0200 [thread overview]
Message-ID: <20070810220633.284525000@sipsolutions.net> (raw)
In-Reply-To: 20070810220544.321975000@sipsolutions.net
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>
---
net/mac80211/ieee80211_common.h | 2 +-
net/mac80211/rx.c | 13 +++++++------
2 files changed, 8 insertions(+), 7 deletions(-)
--- wireless-dev.orig/net/mac80211/rx.c 2007-08-11 00:01:27.643840246 +0200
+++ wireless-dev/net/mac80211/rx.c 2007-08-11 00:01:42.273840246 +0200
@@ -301,12 +301,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;
}
return TXRX_CONTINUE;
--- wireless-dev.orig/net/mac80211/ieee80211_common.h 2007-08-11 00:01:27.643840246 +0200
+++ wireless-dev/net/mac80211/ieee80211_common.h 2007-08-11 00:01:42.273840246 +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,
--
next prev parent reply other threads:[~2007-08-10 22:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-10 22:05 [PATCH 0/4] remove a few more unused constants Johannes Berg
2007-08-10 22:05 ` [PATCH 1/4] mac80211: remove ieee80211_msg_wep_frame_unknown_key Johannes Berg
2007-08-10 22:05 ` Johannes Berg [this message]
2007-08-10 22:05 ` [PATCH 3/4] mac80211: remove ieee80211_msg_key_threshold_notification Johannes Berg
2007-08-10 22:05 ` [PATCH 4/4] mac80211: remove radar stuff Johannes Berg
2007-08-11 3:18 ` Larry Finger
2007-08-11 8:17 ` Johannes Berg
2007-08-11 17:00 ` Larry Finger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070810220633.284525000@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=jbenc@suse.cz \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.