1 /******************************************************************************
3 * Copyright(c) 2015 - 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 *****************************************************************************/
15 /***** temporarily flag *******/
16 #define CONFIG_SINGLE_IMG
17 /* #define CONFIG_DISABLE_ODM */
19 /***** temporarily flag *******/
21 * Public General Config
23 #define AUTOCONF_INCLUDED
24 #define DRV_NAME "rtl8821ce"
26 #define CONFIG_PCI_HCI
27 #define PLATFORM_LINUX
30 * Wi-Fi Functions Config
33 #define CONFIG_RECV_REORDERING_CTRL
35 #define CONFIG_80211N_HT
36 #define CONFIG_80211AC_VHT
37 #ifdef CONFIG_80211AC_VHT
38 #ifndef CONFIG_80211N_HT
39 #define CONFIG_80211N_HT
43 #define CONFIG_IEEE80211_BAND_5GHZ
45 /*#define CONFIG_IOCTL_CFG80211*/
46 #ifdef CONFIG_IOCTL_CFG80211
47 /*#define RTW_USE_CFG80211_STA_EVENT*/ /* Indecate new sta asoc through cfg80211_new_sta */
48 #define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER
49 /*#define CONFIG_DEBUG_CFG80211*/
50 /*#define CONFIG_DRV_ISSUE_PROV_REQ*/ /* IOT FOR S2 */
51 #define CONFIG_SET_SCAN_DENY_TIMER
55 * Internal General Config
57 /*#define CONFIG_PWRCTRL*/
58 /*#define CONFIG_H2CLBK*/
59 #define CONFIG_TRX_BD_ARCH /* PCI only */
61 /*#define CONFIG_64BIT_DMA*/ /* Enable PCI 64bit DMA */
63 #define CONFIG_EMBEDDED_FWIMG
65 #ifdef CONFIG_EMBEDDED_FWIMG
66 #define LOAD_FW_HEADER_FROM_DRIVER
68 /*#define CONFIG_FILE_FWIMG*/
70 #define CONFIG_XMIT_ACK
71 #ifdef CONFIG_XMIT_ACK
72 #define CONFIG_ACTIVE_KEEP_ALIVE_CHECK
75 /*#define CONFIG_DISABLE_MCS13TO15 1*/ /* Disable MSC13-15 rates for more stable TX throughput with some 5G APs */
77 #define BUF_DESC_ARCH /* if defined, hardware follows Rx buffer descriptor architecture */
79 #ifdef CONFIG_POWER_SAVING
82 /*#define CONFIG_IPS_LEVEL_2*/ /* enable this to set default IPS mode to IPS_LEVEL_2 */
84 /*#define SUPPORT_HW_RFOFF_DETECTED*/
87 #if defined(CONFIG_LPS)
88 /*#define CONFIG_LPS_LCLK*/ /* 32K */
91 #ifdef CONFIG_LPS_LCLK
92 #define CONFIG_XMIT_THREAD_MODE
93 #define LPS_RPWM_WAIT_MS 300
97 #define CONFIG_WMMPS_STA 1
98 #endif /* CONFIG_LPS */
101 /*#define CONFIG_PCI_ASPM*/
103 /*#define SUPPORT_HW_RFOFF_DETECTED*/
104 #define CONFIG_HIGH_CHAN_SUPER_CALIBRATION
106 /*#define CONFIG_ANTENNA_DIVERSITY*/
108 #define CONFIG_AP_MODE
109 #ifdef CONFIG_AP_MODE
110 /*#define CONFIG_INTERRUPT_BASED_TXBCN*/ /* Tx Beacon when driver BCN_OK ,BCN_ERR interrupt occurs */
111 #if defined(CONFIG_CONCURRENT_MODE) && defined(CONFIG_INTERRUPT_BASED_TXBCN)
112 #undef CONFIG_INTERRUPT_BASED_TXBCN
114 #ifdef CONFIG_INTERRUPT_BASED_TXBCN
115 /*#define CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT*/
116 #define CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
119 #define CONFIG_NATIVEAP_MLME
120 #ifndef CONFIG_NATIVEAP_MLME
121 #define CONFIG_HOSTAPD_MLME
123 #define CONFIG_FIND_BEST_CHANNEL
124 /*#define CONFIG_AUTO_AP_MODE*/
129 /* The CONFIG_WFD is for supporting the Wi-Fi display */
132 #define CONFIG_P2P_REMOVE_GROUP_INFO
134 /*#define CONFIG_DBG_P2P*/
136 #define CONFIG_P2P_PS
137 /*#define CONFIG_P2P_IPS*/
138 #define CONFIG_P2P_OP_CHK_SOCIAL_CH
139 #define CONFIG_CFG80211_ONECHANNEL_UNDER_CONCURRENT /* replace CONFIG_P2P_CHK_INVITE_CH_LIST flag */
140 /*#define CONFIG_P2P_INVITE_IOT*/
143 /* Added by Kurt 20110511 */
145 #define CONFIG_TDLS_DRIVER_SETUP
150 #define CONFIG_TDLS_AUTOSETUP
152 #define CONFIG_TDLS_AUTOCHECKALIVE
153 #define CONFIG_TDLS_CH_SW /* Enable "CONFIG_TDLS_CH_SW" by default, however limit it to only work in wifi logo test mode but not in normal mode currently */
156 #define CONFIG_SKB_COPY /* for amsdu */
158 /*#define CONFIG_RTW_LED*/
159 #ifdef CONFIG_RTW_LED
160 /*#define CONFIG_RTW_SW_LED*/
161 #ifdef CONFIG_RTW_SW_LED
162 /*#define CONFIG_RTW_LED_HANDLED_BY_CMD_THREAD*/
164 #endif /* CONFIG_RTW_LED */
166 #define CONFIG_GLOBAL_UI_PID
168 /*#define CONFIG_RTW_80211K*/
170 #define CONFIG_LAYER2_ROAMING
171 #define CONFIG_LAYER2_ROAMING_RESUME
172 /*#define CONFIG_ADAPTOR_INFO_CACHING_FILE*/ /* now just applied on 8192cu only, should make it general...*/
173 /*#define CONFIG_RESUME_IN_WORKQUEUE*/
174 /*#define CONFIG_SET_SCAN_DENY_TIMER*/
175 #define CONFIG_LONG_DELAY_ISSUE
176 #define CONFIG_NEW_SIGNAL_STAT_PROCESS
177 /*#define CONFIG_SIGNAL_DISPLAY_DBM*/ /* display RX signal with dbm */
178 #ifdef CONFIG_SIGNAL_DISPLAY_DBM
179 /*#define CONFIG_BACKGROUND_NOISE_MONITOR*/
182 #define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */
184 #define CONFIG_TX_MCAST2UNI /* Support IP multicast->unicast*/
185 /*#define CONFIG_CHECK_AC_LIFETIME 1*/ /* Check packet lifetime of 4 ACs. */
187 /*#define CONFIG_BEAMFORMING*/
190 * Software feature Related Config
192 #define RTW_HALMAC /* Use HALMAC architecture, necessary for 8822B */
194 /* #define CONFIG_TX_AMSDU */
197 * Interface Related Config
204 #define RTL8192E_RX_PACKET_INCLUDE_CRC 0
205 #define CONFIG_RX_PACKET_APPEND_FCS
206 #define SUPPORTED_BLOCK_IO
207 #define RTL8188E_FW_DOWNLOAD_ENABLE
209 /*#define CONFIG_ONLY_ONE_OUT_EP_TO_LOW 0*/
211 #define CONFIG_OUT_EP_WIFI_MODE 0
213 #define ENABLE_USB_DROP_INCORRECT_OUT
216 #define DISABLE_BB_RF 0
218 #define CONFIG_GTK_OL
219 /* #define CONFIG_ARP_KEEP_ALIVE */
220 #endif /* CONFIG_WOWLAN */
222 #ifdef CONFIG_GPIO_WAKEUP
223 #ifndef WAKEUP_GPIO_IDX
224 #define WAKEUP_GPIO_IDX 10
228 /*#define RTL8191C_FPGA_NETWORKTYPE_ADHOC 0*/
230 #ifdef CONFIG_MP_INCLUDED
232 #define CONFIG_MP_IWPRIV_SUPPORT 1
237 /* Use cmd frame to issue beacon. Use a fixed buffer for beacon. */
238 #define CONFIG_BCN_ICF
241 * Platform Related Config
245 #ifdef CONFIG_BT_COEXIST
246 /* for ODM and outsrc BT-Coex */
248 #define CONFIG_LPS /* download reserved page to FW */
250 #endif /* !CONFIG_BT_COEXIST */
253 #ifdef CONFIG_USB_TX_AGGREGATION
254 /*#define CONFIG_TX_EARLY_MODE*/
257 #ifdef CONFIG_TX_EARLY_MODE
258 #define RTL8192E_EARLY_MODE_PKT_NUM_10 0
262 * Debug Related Config
266 #define CONFIG_PROC_DEBUG
268 #define DBG_CONFIG_ERROR_DETECT
270 #define DBG_CONFIG_ERROR_DETECT_INT
271 #define DBG_CONFIG_ERROR_RESET
275 #define DBG_MEM_ALLOC
280 #define DBG_XMIT_BUF_EXT
281 #define DBG_TX_DROP_FRAME
283 #define DBG_RX_DROP_FRAME
285 #define DBG_RX_SIGNAL_DISPLAY_PROCESSING
286 #define DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED "jeff-ap"
288 #define DBG_RX_SIGNAL_DISPLAY_RAW_DATA
290 #define DBG_NOISE_MONITOR
292 #define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE
293 #define DBG_ROAMING_TEST
295 #define DBG_HAL_INIT_PROFILING
297 #define DBG_MEMORY_LEAK 1
300 #define CONFIG_SINGLE_XMIT_BUF
302 #define CONFIG_SINGLE_RECV_BUF
305 #define DBG_TXBD_DESC_DUMP