diff options
-rw-r--r-- | net/mac80211/mesh_plink.c | 2 | ||||
-rw-r--r-- | net/wireless/nl80211.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index 5d0dd9217e5f..b327e0e6c730 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, | |||
105 | if (!sta) | 105 | if (!sta) |
106 | return NULL; | 106 | return NULL; |
107 | 107 | ||
108 | sta->flags = WLAN_STA_AUTHORIZED; | 108 | sta->flags = WLAN_STA_AUTHORIZED | WLAN_STA_AUTH; |
109 | sta->sta.supp_rates[local->hw.conf.channel->band] = rates; | 109 | sta->sta.supp_rates[local->hw.conf.channel->band] = rates; |
110 | rate_control_rate_init(sta); | 110 | rate_control_rate_init(sta); |
111 | 111 | ||
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index ce29a0d0e88e..f4cb8efe2e5f 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -2349,11 +2349,16 @@ static int nl80211_new_station(struct sk_buff *skb, struct genl_info *info) | |||
2349 | params.ht_capa = | 2349 | params.ht_capa = |
2350 | nla_data(info->attrs[NL80211_ATTR_HT_CAPABILITY]); | 2350 | nla_data(info->attrs[NL80211_ATTR_HT_CAPABILITY]); |
2351 | 2351 | ||
2352 | if (info->attrs[NL80211_ATTR_STA_PLINK_ACTION]) | ||
2353 | params.plink_action = | ||
2354 | nla_get_u8(info->attrs[NL80211_ATTR_STA_PLINK_ACTION]); | ||
2355 | |||
2352 | if (parse_station_flags(info, ¶ms)) | 2356 | if (parse_station_flags(info, ¶ms)) |
2353 | return -EINVAL; | 2357 | return -EINVAL; |
2354 | 2358 | ||
2355 | if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP && | 2359 | if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP && |
2356 | dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN && | 2360 | dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN && |
2361 | dev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT && | ||
2357 | dev->ieee80211_ptr->iftype != NL80211_IFTYPE_P2P_GO) | 2362 | dev->ieee80211_ptr->iftype != NL80211_IFTYPE_P2P_GO) |
2358 | return -EINVAL; | 2363 | return -EINVAL; |
2359 | 2364 | ||