aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorMarek Kwaczynski <marek.kwaczynski@tieto.com>2013-12-03 04:04:59 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-12-03 07:46:42 -0500
commit60f4a7b1676c9028edb90e22f6994ebb698c9088 (patch)
treec0604094cb9294257d9a9d5eb51d6c9c140269c2 /net/wireless
parente01362265487f05b69233aab4426ab6166f7b1ec (diff)
nl80211/cfg80211: Set Operating Mode Notification
This attribute is needed for setting Operating Mode Notification in AP mode from User Space. This functionality is required when User Space received Assoc Request contains Operation Mode Notification element. Signed-off-by: Marek Kwaczynski <marek.kwaczynski@tieto.com> [fix typos, nl80211 documentation] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c7
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]);