[RFC 06/12] mac80211: support spurious class3 event

From
Johannes Berg <johannes@sipsolutions.net>
Date
2011-10-14 15:12:51
Reply to
Johannes Berg, 2011-10-14
From: Johannes Berg <redacted>

Add support for the spurious class3 frame event
to mac80211 to enable AP w/o monitor mode.

Signed-off-by: Johannes Berg <redacted>
---
 net/mac80211/rx.c |    7 +++++++
 1 file changed, 7 insertions(+)
--- a/net/mac80211/rx.c	2011-10-11 15:22:31.000000000 +0200
+++ b/net/mac80211/rx.c	2011-10-11 15:22:38.000000000 +0200
@@ -854,6 +854,13 @@ ieee80211_rx_h_check(struct ieee80211_rx
 			    rx->sdata->control_port_protocol)
 				return RX_CONTINUE;
 		}
+
+		if (rx->sdata->vif.type == NL80211_IFTYPE_AP &&
+		    cfg80211_rx_spurious_frame(rx->sdata->dev,
+		    			       hdr->addr2,
+		    			       GFP_ATOMIC))
+			return RX_DROP_UNUSABLE;
+
 		return RX_DROP_MONITOR;
 	}
 

Thread (13 messages) 13 messages, 1 author, last reply 2011-10-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help