From: Johannes Berg <johannes@sipsolutions.net>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: Jiri Benc <jbenc@suse.cz>, linux-wireless@vger.kernel.org
Subject: [PATCH] mac80211: remove special casing of EAPOL on mgmt interface
Date: Sat, 11 Aug 2007 01:48:57 +0200 [thread overview]
Message-ID: <1186789737.4862.3.camel@johannes.berg> (raw)
This patch removes sending EAPOL frames to the management interface and
sends them to the regular ethernet interface instead.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/mac80211/rx.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
--- wireless-dev.orig/net/mac80211/rx.c 2007-08-11 00:45:05.647838974 +0200
+++ wireless-dev/net/mac80211/rx.c 2007-08-11 01:45:58.517838974 +0200
@@ -837,15 +837,8 @@ static ieee80211_txrx_result
ieee80211_rx_h_802_1x_pae(struct ieee80211_txrx_data *rx)
{
if (rx->sdata->eapol && ieee80211_is_eapol(rx->skb) &&
- rx->sdata->type != IEEE80211_IF_TYPE_STA && rx->u.rx.ra_match) {
- /* Pass both encrypted and unencrypted EAPOL frames to user
- * space for processing. */
- if (!rx->local->apdev)
- return TXRX_DROP;
- ieee80211_rx_mgmt(rx->local, rx->skb, rx->u.rx.status,
- ieee80211_msg_normal);
- return TXRX_QUEUED;
- }
+ rx->sdata->type != IEEE80211_IF_TYPE_STA && rx->u.rx.ra_match)
+ return TXRX_CONTINUE;
if (unlikely(rx->sdata->ieee802_1x &&
(rx->fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_DATA &&
next reply other threads:[~2007-08-10 23:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-10 23:48 Johannes Berg [this message]
2007-08-10 23:53 ` [PATCH] hostapd: use eapol frames from ethernet device Johannes Berg
2007-08-12 10:58 ` Tomas Winkler
2007-08-13 8:51 ` Johannes Berg
2007-08-13 10:46 ` Tomas Winkler
2007-08-13 11:02 ` Johannes Berg
2007-08-14 22:46 ` Tomas Winkler
2007-08-15 10:58 ` Johannes Berg
2007-08-15 4:16 ` Jouni Malinen
2007-08-20 11:57 ` Johannes Berg
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=1186789737.4862.3.camel@johannes.berg \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox