aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-02-11 08:20:05 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-02-15 03:41:42 -0500
commita50df0c4c0d97170a6c43573612acacc43e62fe7 (patch)
treefa0ccef7439230a03ac11376ced0fb96f198caf9 /net/wireless/nl80211.c
parentaf0ed69badc67a0b6e976543f52029fce9ac8f69 (diff)
cfg80211: advertise extended capabilities to userspace
In many cases, userspace may need to know which of the 802.11 extended capabilities ("Extended Capabilities element") are implemented in the driver or device, to include them e.g. in beacons, assoc request/response or other frames. Add a new nl80211 attribute to hold the extended capabilities bitmap for this. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 7e40b9e82b45..1237431c3efa 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -1363,6 +1363,15 @@ static int nl80211_send_wiphy(struct sk_buff *msg, u32 portid, u32 seq, int flag
1363 dev->wiphy.max_acl_mac_addrs)) 1363 dev->wiphy.max_acl_mac_addrs))
1364 goto nla_put_failure; 1364 goto nla_put_failure;
1365 1365
1366 if (dev->wiphy.extended_capabilities &&
1367 (nla_put(msg, NL80211_ATTR_EXT_CAPA,
1368 dev->wiphy.extended_capabilities_len,
1369 dev->wiphy.extended_capabilities) ||
1370 nla_put(msg, NL80211_ATTR_EXT_CAPA_MASK,
1371 dev->wiphy.extended_capabilities_len,
1372 dev->wiphy.extended_capabilities_mask)))
1373 goto nla_put_failure;
1374
1366 return genlmsg_end(msg, hdr); 1375 return genlmsg_end(msg, hdr);
1367 1376
1368 nla_put_failure: 1377 nla_put_failure: