aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-10-22 03:25:06 -0400
committerJohannes Berg <johannes.berg@intel.com>2014-10-22 04:41:49 -0400
commit723e73acd16d2ea08cdbd8b449b7bc69389b94d4 (patch)
tree22a4b30b1fdef69eab194d8c5227d96942c83eb8 /include
parent5c6761adc77c131ef1601016f9ebbad0a9ae6d1a (diff)
cfg80211: make WMM TSPEC support flag an nl80211 feature flag
During the review of the corresponding wpa_supplicant patches we noticed that the only way for it to detect that this functionality is supported currently is to check for the command support. This can be misleading though, as the command was also designed to, in the future, support pure 802.11 TSPECs. Expose the WMM-TSPEC feature flag to nl80211 so later we can also expose an 802.11-TSPEC feature flag (if needed) to differentiate the two cases. Note: this change isn't needed in 3.18 as there's no driver there yet that supports the functionality at all. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/cfg80211.h6
-rw-r--r--include/uapi/linux/nl80211.h5
2 files changed, 6 insertions, 5 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index ed896c0b5b8b..77aa805d7e7c 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -2646,13 +2646,9 @@ struct cfg80211_ops {
2646 * @WIPHY_FLAG_SUPPORTS_5_10_MHZ: Device supports 5 MHz and 10 MHz channels. 2646 * @WIPHY_FLAG_SUPPORTS_5_10_MHZ: Device supports 5 MHz and 10 MHz channels.
2647 * @WIPHY_FLAG_HAS_CHANNEL_SWITCH: Device supports channel switch in 2647 * @WIPHY_FLAG_HAS_CHANNEL_SWITCH: Device supports channel switch in
2648 * beaconing mode (AP, IBSS, Mesh, ...). 2648 * beaconing mode (AP, IBSS, Mesh, ...).
2649 * @WIPHY_FLAG_SUPPORTS_WMM_ADMISSION: the device supports setting up WMM
2650 * TSPEC sessions (TID aka TSID 0-7) with the NL80211_CMD_ADD_TX_TS
2651 * command. Standard IEEE 802.11 TSPEC setup is not yet supported, it
2652 * needs to be able to handle Block-Ack agreements and other things.
2653 */ 2649 */
2654enum wiphy_flags { 2650enum wiphy_flags {
2655 WIPHY_FLAG_SUPPORTS_WMM_ADMISSION = BIT(0), 2651 /* use hole at 0 */
2656 /* use hole at 1 */ 2652 /* use hole at 1 */
2657 /* use hole at 2 */ 2653 /* use hole at 2 */
2658 WIPHY_FLAG_NETNS_OK = BIT(3), 2654 WIPHY_FLAG_NETNS_OK = BIT(3),
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index b553c48404d3..be1d5def304d 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -4052,6 +4052,10 @@ enum nl80211_ap_sme_features {
4052 * multiplexing powersave, ie. can turn off all but one chain 4052 * multiplexing powersave, ie. can turn off all but one chain
4053 * and then wake the rest up as required after, for example, 4053 * and then wake the rest up as required after, for example,
4054 * rts/cts handshake. 4054 * rts/cts handshake.
4055 * @NL80211_FEATURE_SUPPORTS_WMM_ADMISSION: the device supports setting up WMM
4056 * TSPEC sessions (TID aka TSID 0-7) with the %NL80211_CMD_ADD_TX_TS
4057 * command. Standard IEEE 802.11 TSPEC setup is not yet supported, it
4058 * needs to be able to handle Block-Ack agreements and other things.
4055 */ 4059 */
4056enum nl80211_feature_flags { 4060enum nl80211_feature_flags {
4057 NL80211_FEATURE_SK_TX_STATUS = 1 << 0, 4061 NL80211_FEATURE_SK_TX_STATUS = 1 << 0,
@@ -4080,6 +4084,7 @@ enum nl80211_feature_flags {
4080 NL80211_FEATURE_ACKTO_ESTIMATION = 1 << 23, 4084 NL80211_FEATURE_ACKTO_ESTIMATION = 1 << 23,
4081 NL80211_FEATURE_STATIC_SMPS = 1 << 24, 4085 NL80211_FEATURE_STATIC_SMPS = 1 << 24,
4082 NL80211_FEATURE_DYNAMIC_SMPS = 1 << 25, 4086 NL80211_FEATURE_DYNAMIC_SMPS = 1 << 25,
4087 NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 1 << 26,
4083}; 4088};
4084 4089
4085/** 4090/**