diff options
author | Javier Cardona <javier@cozybit.com> | 2011-04-08 00:08:30 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-12 22:57:38 +0200 |
commit | b39c48fac1fc915a5dcd024bf6e9aabc855ed591 (patch) | |
tree | d8c5d6e987f388b8c8769d16a51a07dfcd9c3539 /net/mac80211 | |
parent | mac80211: ignore peers if security is enabled for this mesh (diff) | |
download | linux-b39c48fac1fc915a5dcd024bf6e9aabc855ed591.tar.xz linux-b39c48fac1fc915a5dcd024bf6e9aabc855ed591.zip |
nl80211/mac80211: let userspace authenticate stations
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/cfg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index dc623d884d02..1c25723eacda 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -686,6 +686,12 @@ static void sta_apply_parameters(struct ieee80211_local *local, if (set & BIT(NL80211_STA_FLAG_MFP)) sta->flags |= WLAN_STA_MFP; } + + if (mask & BIT(NL80211_STA_FLAG_AUTHENTICATED)) { + sta->flags &= ~WLAN_STA_AUTH; + if (set & BIT(NL80211_STA_FLAG_AUTHENTICATED)) + sta->flags |= WLAN_STA_AUTH; + } spin_unlock_irqrestore(&sta->flaglock, flags); /* |