* [PATCH v2] mac80211: add support for userspace to handle auth frames on adhoc ifaces
@ 2012-06-14 16:44 Will Hawkins
0 siblings, 0 replies; only message in thread
From: Will Hawkins @ 2012-06-14 16:44 UTC (permalink / raw)
To: Johannes Berg, linville; +Cc: linux-wireless
Allow userspace daemons to register for (DE)AUTH management frames
received on an adhoc interface. Registration for these frames, done
through nl80211, is necessary to support certain userspace
authentication schemes.
Signed-off-by: Will Hawkins <hawkinsw@opentechinstitute.org>
---
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index d81c178..4467162 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -455,7 +455,9 @@ static const struct ieee80211_txrx_stypes
ieee80211_default_mgmt_stypes[NUM_NL80211_IFTYPES] = {
[NL80211_IFTYPE_ADHOC] = {
.tx = 0xffff,
- .rx = BIT(IEEE80211_STYPE_ACTION >> 4),
+ .rx = BIT(IEEE80211_STYPE_ACTION >> 4) |
+ BIT(IEEE80211_STYPE_AUTH >> 4) |
+ BIT(IEEE80211_STYPE_DEAUTH >> 4),
},
[NL80211_IFTYPE_STATION] = {
.tx = 0xffff,
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-14 16:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-14 16:44 [PATCH v2] mac80211: add support for userspace to handle auth frames on adhoc ifaces Will Hawkins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).