Skip to contentSkip to conversation

mac80211: add support for userspace to handle auth frames on adhoc ifaces

PATCH Superseded Will Hawkins 1 participant 1 message Jun 14, 2012 mac80211

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mac80211: add support for userspace to handle auth frames on adhoc ifaces

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.

---

net/mac80211/main.c +3 -1
index d81c178..4467162 100644
@@ -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,