aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/ieee80211.h18
-rw-r--r--include/net/mac80211.h7
2 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index 602c0692c3fc..a8c6069a0d9f 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -120,6 +120,24 @@
120#define IEEE80211_QOS_CTL_TID_MASK 0x000F 120#define IEEE80211_QOS_CTL_TID_MASK 0x000F
121#define IEEE80211_QOS_CTL_TAG1D_MASK 0x0007 121#define IEEE80211_QOS_CTL_TAG1D_MASK 0x0007
122 122
123/* U-APSD queue for WMM IEs sent by AP */
124#define IEEE80211_WMM_IE_AP_QOSINFO_UAPSD (1<<7)
125
126/* U-APSD queues for WMM IEs sent by STA */
127#define IEEE80211_WMM_IE_STA_QOSINFO_AC_VO (1<<0)
128#define IEEE80211_WMM_IE_STA_QOSINFO_AC_VI (1<<1)
129#define IEEE80211_WMM_IE_STA_QOSINFO_AC_BK (1<<2)
130#define IEEE80211_WMM_IE_STA_QOSINFO_AC_BE (1<<3)
131#define IEEE80211_WMM_IE_STA_QOSINFO_AC_MASK 0x0f
132
133/* U-APSD max SP length for WMM IEs sent by STA */
134#define IEEE80211_WMM_IE_STA_QOSINFO_SP_ALL 0x00
135#define IEEE80211_WMM_IE_STA_QOSINFO_SP_2 0x01
136#define IEEE80211_WMM_IE_STA_QOSINFO_SP_4 0x02
137#define IEEE80211_WMM_IE_STA_QOSINFO_SP_6 0x03
138#define IEEE80211_WMM_IE_STA_QOSINFO_SP_MASK 0x03
139#define IEEE80211_WMM_IE_STA_QOSINFO_SP_SHIFT 5
140
123struct ieee80211_hdr { 141struct ieee80211_hdr {
124 __le16 frame_control; 142 __le16 frame_control;
125 __le16 duration_id; 143 __le16 duration_id;
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index e1e73c6abeff..f313a3cbabda 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -113,6 +113,7 @@ struct ieee80211_tx_queue_params {
113 u16 cw_min; 113 u16 cw_min;
114 u16 cw_max; 114 u16 cw_max;
115 u8 aifs; 115 u8 aifs;
116 bool uapsd;
116}; 117};
117 118
118/** 119/**
@@ -929,6 +930,11 @@ enum ieee80211_tkip_key_type {
929 * Hardware supports dynamic spatial multiplexing powersave, 930 * Hardware supports dynamic spatial multiplexing powersave,
930 * ie. can turn off all but one chain and then wake the rest 931 * ie. can turn off all but one chain and then wake the rest
931 * up as required after, for example, rts/cts handshake. 932 * up as required after, for example, rts/cts handshake.
933 *
934 * @IEEE80211_HW_SUPPORTS_UAPSD:
935 * Hardware supports Unscheduled Automatic Power Save Delivery
936 * (U-APSD) in managed mode. The mode is configured with
937 * conf_tx() operation.
932 */ 938 */
933enum ieee80211_hw_flags { 939enum ieee80211_hw_flags {
934 IEEE80211_HW_HAS_RATE_CONTROL = 1<<0, 940 IEEE80211_HW_HAS_RATE_CONTROL = 1<<0,
@@ -948,6 +954,7 @@ enum ieee80211_hw_flags {
948 IEEE80211_HW_BEACON_FILTER = 1<<14, 954 IEEE80211_HW_BEACON_FILTER = 1<<14,
949 IEEE80211_HW_SUPPORTS_STATIC_SMPS = 1<<15, 955 IEEE80211_HW_SUPPORTS_STATIC_SMPS = 1<<15,
950 IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS = 1<<16, 956 IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS = 1<<16,
957 IEEE80211_HW_SUPPORTS_UAPSD = 1<<17,
951}; 958};
952 959
953/** 960/**