aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-11-09 08:57:54 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-12-02 05:51:21 -0500
commit01e0daa43f129fc1a6bc6f1197343c0293af866d (patch)
tree8979029acf47904bbf6d2805b2fa72615960ff11 /include/uapi/linux
parentf12140c04ca49ea34c448b1bd8aa40fb9411690c (diff)
cfg80211: fix reporting 5/10 MHz support to user space
nla_put_flag needs a real nl80211 attribute id, not a wiphy flag bit. While at it, split 5 and 10 MHz capability flags in case we ever need to support hardware that can only do one of the two. Also move the flag settings to the split-only information so we don't increase the space needed for old userspace. Signed-off-by: Felix Fietkau <nbd@openwrt.org> [change location of flag setting] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/nl80211.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 7e25164adfe9..129b7b087148 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -1515,6 +1515,11 @@ enum nl80211_commands {
1515 * to react to radar events, e.g. initiate a channel switch or leave the 1515 * to react to radar events, e.g. initiate a channel switch or leave the
1516 * IBSS network. 1516 * IBSS network.
1517 * 1517 *
1518 * @NL80211_ATTR_SUPPORT_5_MHZ: A flag indicating that the device supports
1519 * 5 MHz channel bandwidth.
1520 * @NL80211_ATTR_SUPPORT_10_MHZ: A flag indicating that the device supports
1521 * 10 MHz channel bandwidth.
1522 *
1518 * @NL80211_ATTR_MAX: highest attribute number currently defined 1523 * @NL80211_ATTR_MAX: highest attribute number currently defined
1519 * @__NL80211_ATTR_AFTER_LAST: internal use 1524 * @__NL80211_ATTR_AFTER_LAST: internal use
1520 */ 1525 */
@@ -1831,6 +1836,9 @@ enum nl80211_attrs {
1831 1836
1832 NL80211_ATTR_HANDLE_DFS, 1837 NL80211_ATTR_HANDLE_DFS,
1833 1838
1839 NL80211_ATTR_SUPPORT_5_MHZ,
1840 NL80211_ATTR_SUPPORT_10_MHZ,
1841
1834 /* add attributes here, update the policy in nl80211.c */ 1842 /* add attributes here, update the policy in nl80211.c */
1835 1843
1836 __NL80211_ATTR_AFTER_LAST, 1844 __NL80211_ATTR_AFTER_LAST,