aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh_plink.c
diff options
context:
space:
mode:
authorJavier Cardona <javier@cozybit.com>2011-04-07 15:08:33 -0700
committerJohn W. Linville <linville@tuxdriver.com>2011-04-12 16:57:39 -0400
commit96b78dff0321d881ef27d858a462c476e0444619 (patch)
treeef81668e545ec6373e0793c98add1533e2435f44 /net/mac80211/mesh_plink.c
parent53e805111b69d55834f4e1ed0a31a97ea0b9e425 (diff)
downloadkernel_samsung_smdk4412-96b78dff0321d881ef27d858a462c476e0444619.zip
kernel_samsung_smdk4412-96b78dff0321d881ef27d858a462c476e0444619.tar.gz
kernel_samsung_smdk4412-96b78dff0321d881ef27d858a462c476e0444619.tar.bz2
nl80211/mac80211: Perform PLINK_ACTION on new station
Modify the NEW_STATION command to accept PLINK_ACTIONS, in case userspace wants to create stations and initiate a peer link right away (for authenticated stations) or create a blocked station (for debugging). Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh_plink.c')
-rw-r--r--net/mac80211/mesh_plink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c
index 5d0dd92..b327e0e 100644
--- a/net/mac80211/mesh_plink.c
+++ b/net/mac80211/mesh_plink.c
@@ -105,7 +105,7 @@ static struct sta_info *mesh_plink_alloc(struct ieee80211_sub_if_data *sdata,
if (!sta)
return NULL;
- sta->flags = WLAN_STA_AUTHORIZED;
+ sta->flags = WLAN_STA_AUTHORIZED | WLAN_STA_AUTH;
sta->sta.supp_rates[local->hw.conf.channel->band] = rates;
rate_control_rate_init(sta);