OSDN Git Service

Add rtl8821ce driver version 5.5.2
[android-x86/external-kernel-drivers.git] / rtl8821ce / include / autoconf.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2015 - 2017 Realtek Corporation.
4  *
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.
8  *
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
12  * more details.
13  *
14  *****************************************************************************/
15 /***** temporarily flag *******/
16 #define CONFIG_SINGLE_IMG
17 /* #define CONFIG_DISABLE_ODM */
18
19 /***** temporarily flag *******/
20 /*
21  * Public  General Config
22  */
23 #define AUTOCONF_INCLUDED
24 #define DRV_NAME "rtl8821ce"
25
26 #define CONFIG_PCI_HCI
27 #define PLATFORM_LINUX
28
29 /*
30  * Wi-Fi Functions Config
31  */
32
33 #define CONFIG_RECV_REORDERING_CTRL
34
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
40         #endif
41 #endif
42
43 #define CONFIG_IEEE80211_BAND_5GHZ
44
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
52 #endif
53
54 /*
55  * Internal  General Config
56  */
57 /*#define CONFIG_PWRCTRL*/
58 /*#define CONFIG_H2CLBK*/
59 #define CONFIG_TRX_BD_ARCH      /* PCI only */
60 #define USING_RX_TAG
61 /*#define CONFIG_64BIT_DMA*/    /* Enable PCI 64bit DMA */
62
63 #define CONFIG_EMBEDDED_FWIMG
64
65 #ifdef CONFIG_EMBEDDED_FWIMG
66         #define LOAD_FW_HEADER_FROM_DRIVER
67 #endif
68 /*#define CONFIG_FILE_FWIMG*/
69
70 #define CONFIG_XMIT_ACK
71 #ifdef CONFIG_XMIT_ACK
72         #define CONFIG_ACTIVE_KEEP_ALIVE_CHECK
73 #endif
74
75 /*#define CONFIG_DISABLE_MCS13TO15      1*/     /* Disable MSC13-15 rates for more stable TX throughput with some 5G APs */
76
77 #define BUF_DESC_ARCH           /* if defined, hardware follows Rx buffer descriptor architecture */
78
79 #ifdef CONFIG_POWER_SAVING
80         #define CONFIG_IPS
81         #ifdef CONFIG_IPS
82                 /*#define CONFIG_IPS_LEVEL_2*/   /* enable this to set default IPS mode to IPS_LEVEL_2 */
83         #endif
84         /*#define SUPPORT_HW_RFOFF_DETECTED*/
85
86         #define CONFIG_LPS
87         #if defined(CONFIG_LPS)
88                 /*#define CONFIG_LPS_LCLK*/      /* 32K */
89         #endif
90
91         #ifdef CONFIG_LPS_LCLK
92                 #define CONFIG_XMIT_THREAD_MODE
93                 #define LPS_RPWM_WAIT_MS 300
94         #endif
95
96         #ifdef CONFIG_LPS
97                 #define CONFIG_WMMPS_STA 1
98         #endif /* CONFIG_LPS */
99 #endif
100
101 /*#define CONFIG_PCI_ASPM*/
102
103 /*#define SUPPORT_HW_RFOFF_DETECTED*/
104 #define CONFIG_HIGH_CHAN_SUPER_CALIBRATION
105
106 /*#define CONFIG_ANTENNA_DIVERSITY*/
107
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
113         #endif
114         #ifdef CONFIG_INTERRUPT_BASED_TXBCN
115                 /*#define CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT*/
116                 #define CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
117         #endif
118
119         #define CONFIG_NATIVEAP_MLME
120         #ifndef CONFIG_NATIVEAP_MLME
121                 #define CONFIG_HOSTAPD_MLME
122         #endif
123         #define CONFIG_FIND_BEST_CHANNEL
124         /*#define CONFIG_AUTO_AP_MODE*/
125 #endif
126
127 #define CONFIG_P2P
128 #ifdef CONFIG_P2P
129         /* The CONFIG_WFD is for supporting the Wi-Fi display */
130         #define CONFIG_WFD
131
132         #define CONFIG_P2P_REMOVE_GROUP_INFO
133
134         /*#define CONFIG_DBG_P2P*/
135
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*/
141 #endif
142
143 /* Added by Kurt 20110511 */
144 #ifdef CONFIG_TDLS
145         #define CONFIG_TDLS_DRIVER_SETUP
146 #if 0
147         #ifndef CONFIG_WFD
148                 #define CONFIG_WFD
149         #endif
150         #define CONFIG_TDLS_AUTOSETUP
151 #endif
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 */
154 #endif
155
156 #define CONFIG_SKB_COPY /* for amsdu */
157
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*/
163         #endif
164 #endif /* CONFIG_RTW_LED */
165
166 #define CONFIG_GLOBAL_UI_PID
167
168 /*#define CONFIG_RTW_80211K*/
169
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*/
180 #endif
181
182 #define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */
183
184 #define CONFIG_TX_MCAST2UNI             /* Support IP multicast->unicast*/
185 /*#define CONFIG_CHECK_AC_LIFETIME 1*/  /* Check packet lifetime of 4 ACs. */
186
187 /*#define CONFIG_BEAMFORMING*/
188
189 /*
190  * Software feature Related Config
191  */
192 #define RTW_HALMAC              /* Use HALMAC architecture, necessary for 8822B */
193
194 /* #define CONFIG_TX_AMSDU */
195
196 /*
197  * Interface  Related Config
198  */
199
200 /*
201  * HAL  Related Config
202  */
203
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
208
209 /*#define CONFIG_ONLY_ONE_OUT_EP_TO_LOW 0*/
210
211 #define CONFIG_OUT_EP_WIFI_MODE 0
212
213 #define ENABLE_USB_DROP_INCORRECT_OUT
214
215
216 #define DISABLE_BB_RF   0
217 #ifdef CONFIG_WOWLAN
218         #define CONFIG_GTK_OL
219         /* #define CONFIG_ARP_KEEP_ALIVE */
220 #endif /* CONFIG_WOWLAN */
221
222 #ifdef CONFIG_GPIO_WAKEUP
223         #ifndef WAKEUP_GPIO_IDX
224                 #define WAKEUP_GPIO_IDX 10
225         #endif
226 #endif
227
228 /*#define RTL8191C_FPGA_NETWORKTYPE_ADHOC 0*/
229
230 #ifdef CONFIG_MP_INCLUDED
231         #define MP_DRIVER 1
232         #define CONFIG_MP_IWPRIV_SUPPORT        1
233 #else
234         #define MP_DRIVER 0
235 #endif
236
237 /* Use cmd frame to issue beacon. Use a fixed buffer for beacon. */
238 #define CONFIG_BCN_ICF
239
240 /*
241  * Platform  Related Config
242  */
243
244
245 #ifdef CONFIG_BT_COEXIST
246         /* for ODM and outsrc BT-Coex */
247         #ifndef CONFIG_LPS
248                 #define CONFIG_LPS      /* download reserved page to FW */
249         #endif
250 #endif /* !CONFIG_BT_COEXIST */
251
252
253 #ifdef CONFIG_USB_TX_AGGREGATION
254 /*#define CONFIG_TX_EARLY_MODE*/
255 #endif
256
257 #ifdef CONFIG_TX_EARLY_MODE
258 #define RTL8192E_EARLY_MODE_PKT_NUM_10  0
259 #endif
260
261 /*
262  * Debug Related Config
263  */
264 #define DBG     1
265
266 #define CONFIG_PROC_DEBUG
267
268 #define DBG_CONFIG_ERROR_DETECT
269 /*
270 #define DBG_CONFIG_ERROR_DETECT_INT
271 #define DBG_CONFIG_ERROR_RESET
272
273 #define DBG_IO
274 #define DBG_DELAY_OS
275 #define DBG_MEM_ALLOC
276 #define DBG_IOCTL
277
278 #define DBG_TX
279 #define DBG_XMIT_BUF
280 #define DBG_XMIT_BUF_EXT
281 #define DBG_TX_DROP_FRAME
282
283 #define DBG_RX_DROP_FRAME
284 #define DBG_RX_SEQ
285 #define DBG_RX_SIGNAL_DISPLAY_PROCESSING
286 #define DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED "jeff-ap"
287 */
288 #define DBG_RX_SIGNAL_DISPLAY_RAW_DATA
289 #if 0
290 #define DBG_NOISE_MONITOR
291
292 #define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE
293 #define DBG_ROAMING_TEST
294
295 #define DBG_HAL_INIT_PROFILING
296
297 #define DBG_MEMORY_LEAK 1
298
299 /* TX use 1 urb */
300 #define CONFIG_SINGLE_XMIT_BUF
301 /* RX use 1 urb */
302 #define CONFIG_SINGLE_RECV_BUF
303 #endif
304
305 #define DBG_TXBD_DESC_DUMP