diff options
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/nl80211.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 95882a788b5b..93e3356091ff 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -357,6 +357,7 @@ static const struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] = { | |||
357 | [NL80211_ATTR_STA_SUPPORTED_CHANNELS] = { .type = NLA_BINARY }, | 357 | [NL80211_ATTR_STA_SUPPORTED_CHANNELS] = { .type = NLA_BINARY }, |
358 | [NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES] = { .type = NLA_BINARY }, | 358 | [NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES] = { .type = NLA_BINARY }, |
359 | [NL80211_ATTR_HANDLE_DFS] = { .type = NLA_FLAG }, | 359 | [NL80211_ATTR_HANDLE_DFS] = { .type = NLA_FLAG }, |
360 | [NL80211_ATTR_OPMODE_NOTIF] = { .type = NLA_U8 }, | ||
360 | }; | 361 | }; |
361 | 362 | ||
362 | /* policy for the key attributes */ | 363 | /* policy for the key attributes */ |
@@ -4132,6 +4133,12 @@ static int nl80211_new_station(struct sk_buff *skb, struct genl_info *info) | |||
4132 | params.vht_capa = | 4133 | params.vht_capa = |
4133 | nla_data(info->attrs[NL80211_ATTR_VHT_CAPABILITY]); | 4134 | nla_data(info->attrs[NL80211_ATTR_VHT_CAPABILITY]); |
4134 | 4135 | ||
4136 | if (info->attrs[NL80211_ATTR_OPMODE_NOTIF]) { | ||
4137 | params.opmode_notif_used = true; | ||
4138 | params.opmode_notif = | ||
4139 | nla_get_u8(info->attrs[NL80211_ATTR_OPMODE_NOTIF]); | ||
4140 | } | ||
4141 | |||
4135 | if (info->attrs[NL80211_ATTR_STA_PLINK_ACTION]) { | 4142 | if (info->attrs[NL80211_ATTR_STA_PLINK_ACTION]) { |
4136 | params.plink_action = | 4143 | params.plink_action = |
4137 | nla_get_u8(info->attrs[NL80211_ATTR_STA_PLINK_ACTION]); | 4144 | nla_get_u8(info->attrs[NL80211_ATTR_STA_PLINK_ACTION]); |