1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __INC_QOS_TYPE_H
3 #define __INC_QOS_TYPE_H
7 * Ref: WMM spec 2.2.2: WME Parameter Element, p.12.
18 * Direction Field Values.
19 * Ref: WMM spec 2.2.11: WME TSPEC Element, p.18.
21 enum direction_value {
22 DIR_UP = 0, // 0x00 // UpLink
23 DIR_DOWN = 1, // 0x01 // DownLink
24 DIR_DIRECT = 2, // 0x10 // DirectLink
25 DIR_BI_DIR = 3, // 0x11 // Bi-Direction
29 * TS Info field in WMM TSPEC Element.
31 * 1. WMM spec 2.2.11: WME TSPEC Element, p.18.
32 * 2. 8185 QoS code: QOS_TSINFO [def. in QoS_mp.h]
33 * Note: sizeof 3 Bytes
36 u16 uc_traffic_type:1; //WMM is reserved
39 u16 uc_access_policy:2; //WMM: bit8=0, bit7=1
40 u16 uc_aggregation:1; //WMM is reserved
41 u16 uc_psb:1; //WMMSA is APSD
43 u16 uc_ts_info_ack_policy:2; //WMM is reserved
44 u8 uc_schedule:1; //WMM is reserved
50 * Ref: WMM spec 2.2.11: WME TSPEC Element, p.16.
51 * Note: sizeof 55 bytes
54 struct qos_tsinfo ts_info; //u8 TSInfo[3];
55 u16 nominal_msd_usize;
61 u32 service_start_time;
68 u16 surplus_bandwidth_allowance;
73 * 802.11 Management frame Status Code field
80 #define is_ac_valid(ac) (((ac) <= 7) ? true : false)
82 #endif // #ifndef __INC_QOS_TYPE_H