Go to the documentation of this file. 1 #ifndef __INC_QOS_TYPE_H
2 #define __INC_QOS_TYPE_H
4 #define BIT0 0x00000001
5 #define BIT1 0x00000002
6 #define BIT2 0x00000004
7 #define BIT3 0x00000008
8 #define BIT4 0x00000010
9 #define BIT5 0x00000020
10 #define BIT6 0x00000040
11 #define BIT7 0x00000080
12 #define BIT8 0x00000100
13 #define BIT9 0x00000200
14 #define BIT10 0x00000400
15 #define BIT11 0x00000800
16 #define BIT12 0x00001000
17 #define BIT13 0x00002000
18 #define BIT14 0x00004000
19 #define BIT15 0x00008000
20 #define BIT16 0x00010000
21 #define BIT17 0x00020000
22 #define BIT18 0x00040000
23 #define BIT19 0x00080000
24 #define BIT20 0x00100000
25 #define BIT21 0x00200000
26 #define BIT22 0x00400000
27 #define BIT23 0x00800000
28 #define BIT24 0x01000000
29 #define BIT25 0x02000000
30 #define BIT26 0x04000000
31 #define BIT27 0x08000000
32 #define BIT28 0x10000000
33 #define BIT29 0x20000000
34 #define BIT30 0x40000000
35 #define BIT31 0x80000000
37 #define MAX_WMMELE_LENGTH 64
57 #define QOS_WMM_UAPSD 16 //WMM Power Save, 2006-06-14 Isaiah
59 #define AC_PARAM_SIZE 4
60 #define WMM_PARAM_ELE_BODY_LEN 18
71 #define WMM_PARAM_ELEMENT_SIZE (8+(4*AC_PARAM_SIZE))
236 #define AC0_BE 0 // ACI: 0x00 // Best Effort
237 #define AC1_BK 1 // ACI: 0x01 // Background
238 #define AC2_VI 2 // ACI: 0x10 // Video
239 #define AC3_VO 3 // ACI: 0x11 // Voice
240 #define AC_MAX 4 // Max: define total number; Should not to be used as a real enum.
395 #define GET_VO_UAPSD(_apsd) ((_apsd) & BIT0)
396 #define SET_VO_UAPSD(_apsd) ((_apsd) |= BIT0)
398 #define GET_VI_UAPSD(_apsd) ((_apsd) & BIT1)
399 #define SET_VI_UAPSD(_apsd) ((_apsd) |= BIT1)
401 #define GET_BK_UAPSD(_apsd) ((_apsd) & BIT2)
402 #define SET_BK_UAPSD(_apsd) ((_apsd) |= BIT2)
404 #define GET_BE_UAPSD(_apsd) ((_apsd) & BIT3)
405 #define SET_BE_UAPSD(_apsd) ((_apsd) |= BIT3)
574 #define QOS_CTRL_LEN(_QosMode) ((_QosMode > QOS_DISABLE)? sQoSCtlLng : 0)
580 #define IsACValid(ac) ((ac<=7 )?true:false )
582 #endif // #ifndef __INC_QOS_TYPE_H