aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorMahesh Palivela <maheshp@posedge.com>2012-10-11 04:04:52 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-10-17 05:02:15 -0400
commitf461be3eff662f01a177ecea8c1d7b040bb6bfbe (patch)
tree7c83ffadf4f1cfe25e69bfdf129643dc1c4e326f /net/wireless/nl80211.c
parent818255ea47709065c53c86ca47fce96d8580bee1 (diff)
{nl,cfg}80211: Peer STA VHT caps
To save STAs VHT caps in AP mode Signed-off-by: Mahesh Palivela <maheshp@posedge.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 74d8123ada77..ef170e982f91 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -355,6 +355,7 @@ static const struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] = {
355 [NL80211_ATTR_WDEV] = { .type = NLA_U64 }, 355 [NL80211_ATTR_WDEV] = { .type = NLA_U64 },
356 [NL80211_ATTR_USER_REG_HINT_TYPE] = { .type = NLA_U32 }, 356 [NL80211_ATTR_USER_REG_HINT_TYPE] = { .type = NLA_U32 },
357 [NL80211_ATTR_SAE_DATA] = { .type = NLA_BINARY, }, 357 [NL80211_ATTR_SAE_DATA] = { .type = NLA_BINARY, },
358 [NL80211_ATTR_VHT_CAPABILITY] = { .len = NL80211_VHT_CAPABILITY_LEN },
358}; 359};
359 360
360/* policy for the key attributes */ 361/* policy for the key attributes */
@@ -3223,6 +3224,10 @@ static int nl80211_new_station(struct sk_buff *skb, struct genl_info *info)
3223 params.ht_capa = 3224 params.ht_capa =
3224 nla_data(info->attrs[NL80211_ATTR_HT_CAPABILITY]); 3225 nla_data(info->attrs[NL80211_ATTR_HT_CAPABILITY]);
3225 3226
3227 if (info->attrs[NL80211_ATTR_VHT_CAPABILITY])
3228 params.vht_capa =
3229 nla_data(info->attrs[NL80211_ATTR_VHT_CAPABILITY]);
3230
3226 if (info->attrs[NL80211_ATTR_STA_PLINK_ACTION]) 3231 if (info->attrs[NL80211_ATTR_STA_PLINK_ACTION])
3227 params.plink_action = 3232 params.plink_action =
3228 nla_get_u8(info->attrs[NL80211_ATTR_STA_PLINK_ACTION]); 3233 nla_get_u8(info->attrs[NL80211_ATTR_STA_PLINK_ACTION]);