1 /******************************************************************************
3 * Copyright(c) 2007 - 2017 Realtek Corporation.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 *****************************************************************************/
20 #define DRV_CFG_UAPSD_VO BIT0
21 #define DRV_CFG_UAPSD_VI BIT1
22 #define DRV_CFG_UAPSD_BK BIT2
23 #define DRV_CFG_UAPSD_BE BIT3
25 #define WMM_IE_UAPSD_VO BIT0
26 #define WMM_IE_UAPSD_VI BIT1
27 #define WMM_IE_UAPSD_BK BIT2
28 #define WMM_IE_UAPSD_BE BIT3
39 #define AP_SUPPORTED_UAPSD BIT7
40 /* TC = Traffic Category, TID0~7 represents TC */
41 #define BIT_MASK_TID_TC 0xff
42 /* TS = Traffic Stream, TID8~15 represents TS */
43 #define BIT_MASK_TID_TS 0xff00
44 #define ALL_TID_TC_SUPPORTED_UAPSD 0xff
48 unsigned int qos_option; /* bit mask option: u-apsd, s-apsd, ts, block ack... */
50 #ifdef CONFIG_WMMPS_STA
51 /* uapsd (unscheduled automatic power-save delivery) = a kind of wmmps */
53 /* declare uapsd_tid as a bitmap for the uapsd setting of TID 0~15 */
55 /* declare uapsd_tid_delivery_enabled as a bitmap for the delivery-enabled setting of TID 0~7 */
56 u8 uapsd_tid_delivery_enabled;
57 /* declare uapsd_tid_trigger_enabled as a bitmap for the trigger-enabled setting of TID 0~7 */
58 u8 uapsd_tid_trigger_enabled;
59 /* declare uapsd_ap_supported to record whether the connected ap supports uapsd or not */
60 u8 uapsd_ap_supported;
61 #endif /* CONFIG_WMMPS_STA */
66 #endif /* _RTL871X_QOS_H_ */