Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] mac80211: remove special casing of EAPOL on mgmt interface
@ 2007-08-10 23:48 Johannes Berg
  2007-08-10 23:53 ` [PATCH] hostapd: use eapol frames from ethernet device Johannes Berg
  0 siblings, 1 reply; 10+ messages in thread
From: Johannes Berg @ 2007-08-10 23:48 UTC (permalink / raw)
  To: John W. Linville; +Cc: Jiri Benc, linux-wireless

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-08-20 11:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-10 23:48 [PATCH] mac80211: remove special casing of EAPOL on mgmt interface Johannes Berg
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

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