xref: /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/include/autoconf.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
3  *
4  * Copyright(c) 2007 - 2017 Realtek Corporation.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of version 2 of the GNU General Public License as
8  * published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  *****************************************************************************/
16 /* ***** temporarily flag ******* */
17 #define CONFIG_SINGLE_IMG
18 
19 /* #define CONFIG_DISABLE_ODM */
20 /* for FPGA VERIFICATION config */
21 #define RTL8188E_FPGA_TRUE_PHY_VERIFICATION 0
22 
23 /* ***** temporarily flag ******* */
24 /*
25  * Public  General Config
26  */
27 #define AUTOCONF_INCLUDED
28 #define RTL871X_MODULE_NAME "88EU"
29 #define DRV_NAME "rtl8188eu"
30 
31 #define CONFIG_USB_HCI
32 
33 #define PLATFORM_LINUX
34 
35 /* #define CONFIG_IOCTL_CFG80211 */
36 
37 #if defined(CONFIG_PLATFORM_ACTIONS_ATM702X)
38 	#ifndef CONFIG_IOCTL_CFG80211
39 		#define CONFIG_IOCTL_CFG80211
40 	#endif
41 #endif
42 
43 #ifdef CONFIG_IOCTL_CFG80211
44 	/* #define RTW_USE_CFG80211_STA_EVENT */ /* Indecate new sta asoc through cfg80211_new_sta */
45 	#define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER
46 	/* #define CONFIG_DEBUG_CFG80211 */
47 	/* #define CONFIG_DRV_ISSUE_PROV_REQ */ /* IOT FOR S2 */
48 	#define CONFIG_SET_SCAN_DENY_TIMER
49 #endif
50 
51 /*
52  * Internal  General Config
53  */
54 
55 /* #define CONFIG_H2CLBK */
56 
57 #define CONFIG_EMBEDDED_FWIMG
58 
59 
60 #ifdef CONFIG_EMBEDDED_FWIMG
61 	#define	LOAD_FW_HEADER_FROM_DRIVER
62 #endif
63 /* #define CONFIG_FILE_FWIMG */
64 
65 #define CONFIG_XMIT_ACK
66 #ifdef CONFIG_XMIT_ACK
67 	#define CONFIG_ACTIVE_KEEP_ALIVE_CHECK
68 #endif
69 #define CONFIG_80211N_HT
70 
71 #define CONFIG_RECV_REORDERING_CTRL
72 
73  #define CONFIG_SUPPORT_USB_INT
74  #ifdef CONFIG_SUPPORT_USB_INT
75 /* #define CONFIG_USB_INTERRUPT_IN_PIPE */
76 #endif
77 
78 #ifdef CONFIG_POWER_SAVING
79 	#define CONFIG_IPS
80 	#ifdef CONFIG_IPS
81 	/* #define CONFIG_IPS_LEVEL_2 */	 /* enable this to set default IPS mode to IPS_LEVEL_2 */
82 	#endif
83 	#define SUPPORT_HW_RFOFF_DETECTED
84 
85 	#define CONFIG_LPS
86 	#if defined(CONFIG_LPS) && defined(CONFIG_SUPPORT_USB_INT)
87 
88 
89 	/* #define CONFIG_LPS_LCLK */
90 	#endif
91 
92 	#ifdef CONFIG_LPS_LCLK
93 	/* #define CONFIG_XMIT_THREAD_MODE */
94 	#endif
95 #endif /* CONFIG_POWER_SAVING */
96 
97 	/*#define CONFIG_ANTENNA_DIVERSITY*/
98 
99 
100 
101 	/* #define CONFIG_CONCURRENT_MODE */
102 	#ifdef CONFIG_CONCURRENT_MODE
103 		#define CONFIG_RUNTIME_PORT_SWITCH
104 
105 		#define CONFIG_TSF_RESET_OFFLOAD			/* For 2 PORT TSF SYNC. */
106 	#endif
107 
108 	#define CONFIG_IOL
109 /* #else */	/* #ifndef CONFIG_MP_INCLUDED */
110 
111 /* #endif */	/* #ifndef CONFIG_MP_INCLUDED */
112 
113 #define CONFIG_AP_MODE
114 #ifdef CONFIG_AP_MODE
115 
116 	/* #define CONFIG_INTERRUPT_BASED_TXBCN */ /* Tx Beacon when driver BCN_OK ,BCN_ERR interrupt occurs */
117 	#if defined(CONFIG_CONCURRENT_MODE) && defined(CONFIG_INTERRUPT_BASED_TXBCN)
118 		#undef CONFIG_INTERRUPT_BASED_TXBCN
119 	#endif
120 	#ifdef CONFIG_INTERRUPT_BASED_TXBCN
121 		/* #define CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT */
122 		#define CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
123 	#endif
124 
125 	#define CONFIG_NATIVEAP_MLME
126 	#ifndef CONFIG_NATIVEAP_MLME
127 		#define CONFIG_HOSTAPD_MLME
128 	#endif
129 	#define CONFIG_FIND_BEST_CHANNEL
130 #endif
131 
132 #define CONFIG_P2P
133 #ifdef CONFIG_P2P
134 	/* The CONFIG_WFD is for supporting the Wi-Fi display */
135 	#define CONFIG_WFD
136 
137 	#define CONFIG_P2P_REMOVE_GROUP_INFO
138 
139 	/* #define CONFIG_DBG_P2P */
140 
141 	#define CONFIG_P2P_PS
142 	#define CONFIG_P2P_OP_CHK_SOCIAL_CH
143 	#define CONFIG_CFG80211_ONECHANNEL_UNDER_CONCURRENT  /* replace CONFIG_P2P_CHK_INVITE_CH_LIST flag */
144 	/*#define CONFIG_P2P_INVITE_IOT*/
145 #endif
146 
147 /* Added by Kurt 20110511 */
148 #ifdef CONFIG_TDLS
149 	#define CONFIG_TDLS_DRIVER_SETUP
150 /*	#ifndef CONFIG_WFD */
151 /*		#define CONFIG_WFD */
152 /*	#endif */
153 /*	#define CONFIG_TDLS_AUTOSETUP */
154 	#define CONFIG_TDLS_AUTOCHECKALIVE
155 	/* #define CONFIG_TDLS_CH_SW */	/* Enable this flag only when we confirm that TDLS CH SW is supported in FW */
156 #endif
157 
158 
159 #define CONFIG_SKB_COPY	/* for amsdu */
160 
161 /* #define CONFIG_RTW_LED */
162 #ifdef CONFIG_RTW_LED
163 	#define CONFIG_RTW_SW_LED
164 	#ifdef CONFIG_RTW_SW_LED
165 		/* #define CONFIG_RTW_LED_HANDLED_BY_CMD_THREAD */
166 	#endif
167 #endif /* CONFIG_RTW_LED */
168 
169 #ifdef CONFIG_IOL
170 	#define CONFIG_IOL_NEW_GENERATION
171 	#define CONFIG_IOL_READ_EFUSE_MAP
172 	/* #define DBG_IOL_READ_EFUSE_MAP */
173 	/* #define CONFIG_IOL_LLT */
174 	#define CONFIG_IOL_EFUSE_PATCH
175 	/* #define CONFIG_IOL_IOREG_CFG */
176 	/* #define CONFIG_IOL_IOREG_CFG_DBG */
177 #endif
178 
179 
180 #define CONFIG_GLOBAL_UI_PID
181 
182 #define CONFIG_LAYER2_ROAMING
183 #define CONFIG_LAYER2_ROAMING_RESUME
184 /* #define CONFIG_ADAPTOR_INFO_CACHING_FILE */ /* now just applied on 8192cu only, should make it general... */
185 /* #define CONFIG_RESUME_IN_WORKQUEUE */
186 /* #define CONFIG_SET_SCAN_DENY_TIMER */
187 #define CONFIG_LONG_DELAY_ISSUE
188 #define CONFIG_NEW_SIGNAL_STAT_PROCESS
189 /* #define CONFIG_SIGNAL_DISPLAY_DBM */ /* display RX signal with dbm */
190 #ifdef CONFIG_SIGNAL_DISPLAY_DBM
191 /* #define CONFIG_BACKGROUND_NOISE_MONITOR */
192 #endif
193 #define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */
194 
195 /*
196  * Interface  Related Config
197  */
198 
199 #ifndef CONFIG_MINIMAL_MEMORY_USAGE
200 	#define CONFIG_USB_TX_AGGREGATION
201 	#define CONFIG_USB_RX_AGGREGATION
202 #endif
203 
204 /* #define CONFIG_REDUCE_USB_TX_INT */		/* Trade-off: Improve performance, but may cause TX URBs blocked by USB Host/Bus driver on few platforms. */
205 /* #define CONFIG_EASY_REPLACEMENT */
206 
207 /*
208  * CONFIG_USE_USB_BUFFER_ALLOC_XX uses Linux USB Buffer alloc API and is for Linux platform only now!
209  */
210 /* #define CONFIG_USE_USB_BUFFER_ALLOC_TX */	/* Trade-off: For TX path, improve stability on some platforms, but may cause performance degrade on other platforms. */
211 /* #define CONFIG_USE_USB_BUFFER_ALLOC_RX */	/* For RX path */
212 #ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX
213 
214 #else
215 	#define CONFIG_PREALLOC_RECV_SKB
216 	#ifdef CONFIG_PREALLOC_RECV_SKB
217 		#define CONFIG_FIX_NR_BULKIN_BUFFER /* only use PREALLOC_RECV_SKB buffer, don't alloc skb at runtime */
218 	#endif
219 #endif
220 
221 /*
222  * USB VENDOR REQ BUFFER ALLOCATION METHOD
223  * if not set we'll use function local variable (stack memory)
224  */
225 /* #define CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE */
226 #define CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
227 
228 #define CONFIG_USB_VENDOR_REQ_MUTEX
229 #define CONFIG_VENDOR_REQ_RETRY
230 
231 /* #define CONFIG_USB_SUPPORT_ASYNC_VDN_REQ */
232 
233 
234 /*
235  * HAL  Related Config
236  */
237 
238 #define RTL8188E_RX_PACKET_INCLUDE_CRC	0
239 
240 #define SUPPORTED_BLOCK_IO
241 
242 
243 /* #define CONFIG_ONLY_ONE_OUT_EP_TO_LOW	0 */
244 
245 #define CONFIG_OUT_EP_WIFI_MODE	0
246 
247 #define ENABLE_USB_DROP_INCORRECT_OUT
248 
249 
250 #define DISABLE_BB_RF	0
251 
252 /* #define RTL8191C_FPGA_NETWORKTYPE_ADHOC 0 */
253 
254 #ifdef CONFIG_MP_INCLUDED
255 	#define MP_DRIVER 1
256 	#define CONFIG_MP_IWPRIV_SUPPORT
257 	/* #undef CONFIG_USB_TX_AGGREGATION */
258 	/* #undef CONFIG_USB_RX_AGGREGATION */
259 #else
260 	#define MP_DRIVER 0
261 #endif
262 
263 
264 /*
265  * Platform  Related Config
266  */
267 #if defined(CONFIG_PLATFORM_ACTIONS_ATM702X)
268 	#ifdef CONFIG_USB_TX_AGGREGATION
269 		#undef CONFIG_USB_TX_AGGREGATION
270 	#endif
271 	#ifndef CONFIG_USE_USB_BUFFER_ALLOC_TX
272 		#define CONFIG_USE_USB_BUFFER_ALLOC_TX
273 	#endif
274 	#ifndef CONFIG_USE_USB_BUFFER_ALLOC_RX
275 		#define CONFIG_USE_USB_BUFFER_ALLOC_RX
276 	#endif
277 #endif
278 
279 
280 #ifdef CONFIG_USB_TX_AGGREGATION
281 /* #define	CONFIG_TX_EARLY_MODE */
282 #endif
283 
284 #ifdef CONFIG_TX_EARLY_MODE
285 #define	RTL8188E_EARLY_MODE_PKT_NUM_10	0
286 #endif
287 
288 /*#define CONFIG_RF_POWER_TRIM */
289 
290 #ifdef CONFIG_GPIO_WAKEUP
291 	#ifndef WAKEUP_GPIO_IDX
292 		#define WAKEUP_GPIO_IDX 7
293 	#endif
294 #endif
295 
296 /*
297  * Debug Related Config
298  */
299 #define DBG	1
300 
301 #define CONFIG_PROC_DEBUG
302 
303 #define DBG_CONFIG_ERROR_DETECT
304 /* #define DBG_CONFIG_ERROR_DETECT_INT */
305 #define DBG_CONFIG_ERROR_RESET
306 
307 /* #define DBG_IO */
308 /* #define DBG_DELAY_OS */
309 /* #define DBG_MEM_ALLOC */
310 /* #define DBG_IOCTL */
311 
312 /* #define DBG_TX */
313 /* #define DBG_XMIT_BUF */
314 /* #define DBG_XMIT_BUF_EXT */
315 /* #define DBG_TX_DROP_FRAME */
316 
317 /* #define DBG_RX_DROP_FRAME */
318 /* #define DBG_RX_SEQ */
319 /* #define DBG_RX_SIGNAL_DISPLAY_PROCESSING */
320 /* #define DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED "jeff-ap" */
321 
322 
323 
324 /* #define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE */
325 /* #define DBG_ROAMING_TEST */
326 
327 /* #define DBG_HAL_INIT_PROFILING */
328 
329 /* #define DBG_MEMORY_LEAK */
330 
331 /* TX use 1 urb */
332 /* #define CONFIG_SINGLE_XMIT_BUF */
333 /* RX use 1 urb */
334 /* #define CONFIG_SINGLE_RECV_BUF */
335 #define	DBG_RX_DFRAME_RAW_DATA
336