384fe534913ac7a7d4919452ffe3f2880edae0ab
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8188eu / include / autoconf.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  *
19  ******************************************************************************/
20 //***** temporarily flag *******
21 #define CONFIG_SINGLE_IMG
22
23 //#define CONFIG_DISABLE_ODM
24 //for FPGA VERIFICATION config
25 #define RTL8188E_FPGA_TRUE_PHY_VERIFICATION 0
26
27 //***** temporarily flag *******
28 /*
29  * Public  General Config
30  */
31 #define AUTOCONF_INCLUDED
32 #define RTL871X_MODULE_NAME "88EU"
33 #define DRV_NAME "rtl8188eu"
34
35 #define CONFIG_USB_HCI  
36
37 #define PLATFORM_LINUX  
38
39 //#define CONFIG_IOCTL_CFG80211 
40 //#define CONFIG_IEEE80211W
41
42 #if defined(CONFIG_PLATFORM_ACTIONS_ATM702X)
43         #ifndef CONFIG_IOCTL_CFG80211 
44                 #define CONFIG_IOCTL_CFG80211 
45         #endif
46 #endif
47
48 #ifdef CONFIG_IOCTL_CFG80211
49         //#define RTW_USE_CFG80211_STA_EVENT /* Indecate new sta asoc through cfg80211_new_sta */
50         #define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER
51         //#define CONFIG_DEBUG_CFG80211 
52         //#define CONFIG_DRV_ISSUE_PROV_REQ // IOT FOR S2
53         #define CONFIG_SET_SCAN_DENY_TIMER
54
55 #endif
56
57 /*
58  * Internal  General Config
59  */
60
61 //#define CONFIG_H2CLBK
62
63 #define CONFIG_EMBEDDED_FWIMG   
64 //#define CONFIG_FILE_FWIMG
65
66 #define CONFIG_XMIT_ACK
67 #ifdef CONFIG_XMIT_ACK
68         #define CONFIG_ACTIVE_KEEP_ALIVE_CHECK
69 #endif
70 #define CONFIG_80211N_HT        
71
72 #define CONFIG_RECV_REORDERING_CTRL     
73
74 //#define CONFIG_TCP_CSUM_OFFLOAD_RX    
75
76 //#define CONFIG_DRVEXT_MODULE  
77
78  #define CONFIG_SUPPORT_USB_INT
79  #ifdef CONFIG_SUPPORT_USB_INT
80 //#define CONFIG_USB_INTERRUPT_IN_PIPE  
81 #endif
82
83 //#ifndef CONFIG_MP_INCLUDED
84         #define CONFIG_IPS      
85         #ifdef CONFIG_IPS
86         //#define CONFIG_IPS_LEVEL_2     //enable this to set default IPS mode to IPS_LEVEL_2
87         #endif
88         #define SUPPORT_HW_RFOFF_DETECTED       
89
90         #define CONFIG_LPS      
91         #if defined(CONFIG_LPS) && defined(CONFIG_SUPPORT_USB_INT)
92
93
94         //#define CONFIG_LPS_LCLK       
95         #endif
96
97         #ifdef CONFIG_LPS_LCLK
98         #define CONFIG_XMIT_THREAD_MODE
99         #endif
100
101         //befor link
102         #define CONFIG_ANTENNA_DIVERSITY
103
104         //after link
105         #ifdef CONFIG_ANTENNA_DIVERSITY  
106         #define CONFIG_HW_ANTENNA_DIVERSITY             
107         #endif
108
109
110         //#define CONFIG_CONCURRENT_MODE 
111         #ifdef CONFIG_CONCURRENT_MODE
112                 //#define CONFIG_HWPORT_SWAP                            //Port0->Sec , Port1 -> Pri
113                 #define CONFIG_RUNTIME_PORT_SWITCH
114                 //#define DBG_RUNTIME_PORT_SWITCH
115                 #define CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
116                 #define CONFIG_TSF_RESET_OFFLOAD                        // For 2 PORT TSF SYNC.
117         #endif
118
119         #define CONFIG_IOL
120 //#else         //#ifndef CONFIG_MP_INCLUDED
121         
122 //#endif        //#ifndef CONFIG_MP_INCLUDED
123
124 #define CONFIG_AP_MODE  
125 #ifdef CONFIG_AP_MODE
126         //#define CONFIG_INTERRUPT_BASED_TXBCN // Tx Beacon when driver BCN_OK ,BCN_ERR interrupt occurs
127         #if defined(CONFIG_CONCURRENT_MODE) && defined(CONFIG_INTERRUPT_BASED_TXBCN)
128                 #undef CONFIG_INTERRUPT_BASED_TXBCN
129         #endif
130         #ifdef CONFIG_INTERRUPT_BASED_TXBCN
131                 //#define CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT
132                 #define CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR         
133         #endif
134         
135         #define CONFIG_NATIVEAP_MLME
136         #ifndef CONFIG_NATIVEAP_MLME
137                 #define CONFIG_HOSTAPD_MLME     
138         #endif                  
139         #define CONFIG_FIND_BEST_CHANNEL        
140         //#define CONFIG_NO_WIRELESS_HANDLERS   
141 #endif
142
143 #define CONFIG_P2P      
144 #ifdef CONFIG_P2P
145         //The CONFIG_WFD is for supporting the Wi-Fi display
146         #define CONFIG_WFD
147         
148         #ifndef CONFIG_WIFI_TEST
149                 #define CONFIG_P2P_REMOVE_GROUP_INFO
150         #endif
151         //#define CONFIG_DBG_P2P
152
153         #define CONFIG_P2P_PS
154         //#define CONFIG_P2P_IPS
155         #define CONFIG_P2P_OP_CHK_SOCIAL_CH
156         #define CONFIG_CFG80211_ONECHANNEL_UNDER_CONCURRENT  //replace CONFIG_P2P_CHK_INVITE_CH_LIST flag
157         #define CONFIG_P2P_INVITE_IOT
158 #endif
159
160 //      Added by Kurt 20110511
161 //#define CONFIG_TDLS   
162 #ifdef CONFIG_TDLS
163 //      #ifndef CONFIG_WFD
164 //              #define CONFIG_WFD      
165 //      #endif
166 //      #define CONFIG_TDLS_AUTOSETUP                   
167 //      #define CONFIG_TDLS_AUTOCHECKALIVE              
168 #endif
169
170
171 #define CONFIG_SKB_COPY //for amsdu
172
173 //#define CONFIG_LED
174 #ifdef CONFIG_LED
175         #define CONFIG_SW_LED
176         #ifdef CONFIG_SW_LED
177                 //#define CONFIG_LED_HANDLED_BY_CMD_THREAD
178         #endif
179 #endif // CONFIG_LED
180
181 #ifdef CONFIG_IOL
182         #define CONFIG_IOL_NEW_GENERATION
183         #define CONFIG_IOL_READ_EFUSE_MAP
184         //#define DBG_IOL_READ_EFUSE_MAP
185         //#define CONFIG_IOL_LLT
186         #define CONFIG_IOL_EFUSE_PATCH          
187         //#define CONFIG_IOL_IOREG_CFG
188         //#define CONFIG_IOL_IOREG_CFG_DBG      
189 #endif
190
191
192 #define USB_INTERFERENCE_ISSUE // this should be checked in all usb interface
193 #define CONFIG_GLOBAL_UI_PID
194
195 #define CONFIG_LAYER2_ROAMING
196 #define CONFIG_LAYER2_ROAMING_RESUME
197 //#define CONFIG_ADAPTOR_INFO_CACHING_FILE // now just applied on 8192cu only, should make it general...
198 #define CONFIG_RESUME_IN_WORKQUEUE
199 //#define CONFIG_SET_SCAN_DENY_TIMER
200 #define CONFIG_LONG_DELAY_ISSUE
201 #define CONFIG_NEW_SIGNAL_STAT_PROCESS
202 //#define CONFIG_SIGNAL_DISPLAY_DBM //display RX signal with dbm
203 #define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */
204 #define CONFIG_DEAUTH_BEFORE_CONNECT
205
206 #define CONFIG_BR_EXT           // Enable NAT2.5 support for STA mode interface with a L2 Bridge
207 #ifdef CONFIG_BR_EXT
208 #define CONFIG_BR_EXT_BRNAME    "br0"
209 #endif  // CONFIG_BR_EXT
210
211 #define CONFIG_TX_MCAST2UNI             // Support IP multicast->unicast
212 //#define CONFIG_CHECK_AC_LIFETIME      // Check packet lifetime of 4 ACs.
213
214 /* 
215  * Interface  Related Config 
216  */
217
218 #ifndef CONFIG_MINIMAL_MEMORY_USAGE
219         #define CONFIG_USB_TX_AGGREGATION       
220         #define CONFIG_USB_RX_AGGREGATION       
221 #endif
222
223 //#define CONFIG_REDUCE_USB_TX_INT              // Trade-off: Improve performance, but may cause TX URBs blocked by USB Host/Bus driver on few platforms.
224 //#define CONFIG_EASY_REPLACEMENT       
225
226 /* 
227  * CONFIG_USE_USB_BUFFER_ALLOC_XX uses Linux USB Buffer alloc API and is for Linux platform only now!
228  */
229 //#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.
230 //#define CONFIG_USE_USB_BUFFER_ALLOC_RX        // For RX path
231 #ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX
232
233 #else
234         #define CONFIG_PREALLOC_RECV_SKB
235         #ifdef CONFIG_PREALLOC_RECV_SKB
236                 //#define CONFIG_FIX_NR_BULKIN_BUFFER /* only use PREALLOC_RECV_SKB buffer, don't alloc skb at runtime */
237         #endif
238 #endif
239
240 /* 
241  * USB VENDOR REQ BUFFER ALLOCATION METHOD
242  * if not set we'll use function local variable (stack memory)
243  */
244 //#define CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE
245 #define CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
246
247 #define CONFIG_USB_VENDOR_REQ_MUTEX
248 #define CONFIG_VENDOR_REQ_RETRY
249
250 //#define CONFIG_USB_SUPPORT_ASYNC_VDN_REQ 
251
252
253 /*
254  * HAL  Related Config
255  */
256
257 #define RTL8188E_RX_PACKET_INCLUDE_CRC  0
258
259 #define SUPPORTED_BLOCK_IO
260
261
262 //#define CONFIG_ONLY_ONE_OUT_EP_TO_LOW 0
263
264 #define CONFIG_OUT_EP_WIFI_MODE 0
265
266 #define ENABLE_USB_DROP_INCORRECT_OUT
267
268
269 //#define RTL8192CU_ADHOC_WORKAROUND_SETTING    
270
271 #define DISABLE_BB_RF   0
272
273 //#define RTL8191C_FPGA_NETWORKTYPE_ADHOC 0
274
275 #ifdef CONFIG_MP_INCLUDED
276         #define MP_DRIVER 1
277         #define CONFIG_MP_IWPRIV_SUPPORT        
278         //#undef CONFIG_USB_TX_AGGREGATION
279         //#undef CONFIG_USB_RX_AGGREGATION
280 #else
281         #define MP_DRIVER 0
282 #endif
283
284
285 /*
286  * Platform  Related Config
287  */
288 #ifdef CONFIG_PLATFORM_MN10300
289         #define CONFIG_SPECIAL_SETTING_FOR_FUNAI_TV
290         #define CONFIG_USE_USB_BUFFER_ALLOC_RX 
291         
292         #if     defined (CONFIG_SW_ANTENNA_DIVERSITY)
293                 #undef CONFIG_SW_ANTENNA_DIVERSITY
294                 #define CONFIG_HW_ANTENNA_DIVERSITY
295         #endif
296
297         #if     defined (CONFIG_POWER_SAVING)
298                 #undef CONFIG_POWER_SAVING
299         #endif
300         
301 #endif//CONFIG_PLATFORM_MN10300
302
303
304
305 #ifdef CONFIG_PLATFORM_TI_DM365
306 #define CONFIG_USE_USB_BUFFER_ALLOC_RX 
307 #endif
308
309
310 #if defined(CONFIG_PLATFORM_ACTIONS_ATM702X)
311         #ifdef CONFIG_USB_TX_AGGREGATION        
312                 #undef CONFIG_USB_TX_AGGREGATION
313         #endif
314         #ifndef CONFIG_USE_USB_BUFFER_ALLOC_TX
315                 #define CONFIG_USE_USB_BUFFER_ALLOC_TX
316         #endif
317         #ifndef CONFIG_USE_USB_BUFFER_ALLOC_RX
318                 #define CONFIG_USE_USB_BUFFER_ALLOC_RX
319         #endif
320 #endif
321
322
323 /*
324  * Outsource  Related Config
325  */
326
327 #define         RTL8192CE_SUPPORT                               0
328 #define         RTL8192CU_SUPPORT                       0
329 #define         RTL8192C_SUPPORT                                (RTL8192CE_SUPPORT|RTL8192CU_SUPPORT)   
330
331 #define         RTL8192DE_SUPPORT                               0
332 #define         RTL8192DU_SUPPORT                       0
333 #define         RTL8192D_SUPPORT                                (RTL8192DE_SUPPORT|RTL8192DU_SUPPORT)   
334
335 #define         RTL8723AU_SUPPORT                               0
336 #define         RTL8723AS_SUPPORT                               0
337 #define         RTL8723AE_SUPPORT                               0
338 #define         RTL8723A_SUPPORT                                (RTL8723AU_SUPPORT|RTL8723AS_SUPPORT|RTL8723AE_SUPPORT)
339
340 #define         RTL8723_FPGA_VERIFICATION               0
341
342 #define RTL8188EE_SUPPORT                               0
343 #define RTL8188EU_SUPPORT                               1
344 #define RTL8188ES_SUPPORT                               0
345 #define RTL8188E_SUPPORT                                (RTL8188EE_SUPPORT|RTL8188EU_SUPPORT|RTL8188ES_SUPPORT)
346 #define TESTCHIP_SUPPORT                                0
347
348 #define RTL8812E_SUPPORT                                0
349 #define RTL8812AU_SUPPORT                               0
350 #define RTL8812A_SUPPORT                                (RTL8812E_SUPPORT|RTL8812AU_SUPPORT)
351
352 #define RTL8821A_SUPPORT                                0
353
354 #define RTL8723B_SUPPORT                                0
355
356 #define RTL8192E_SUPPORT                                0
357
358 #define RTL8813A_SUPPORT                                0
359 #define RTL8195A_SUPPORT                                0
360
361
362 //#if (RTL8188E_SUPPORT==1)
363 #define RATE_ADAPTIVE_SUPPORT                   1
364 #define POWER_TRAINING_ACTIVE                   1
365
366 //#endif
367
368 #ifdef CONFIG_USB_TX_AGGREGATION
369 //#define       CONFIG_TX_EARLY_MODE
370 #endif
371
372 #ifdef CONFIG_TX_EARLY_MODE
373 #define RTL8188E_EARLY_MODE_PKT_NUM_10  0
374 #endif
375
376 #define CONFIG_80211D
377
378 #define CONFIG_ATTEMPT_TO_FIX_AP_BEACON_ERROR
379
380 /*
381  * Debug Related Config
382  */
383 #define DBG     1
384
385 //#define CONFIG_DEBUG /* DBG_871X, etc... */
386 //#define CONFIG_DEBUG_RTL871X /* RT_TRACE, RT_PRINT_DATA, _func_enter_, _func_exit_ */
387
388 #define CONFIG_PROC_DEBUG
389
390 #define DBG_CONFIG_ERROR_DETECT
391 //#define DBG_CONFIG_ERROR_DETECT_INT
392 #define DBG_CONFIG_ERROR_RESET
393
394 //#define DBG_IO
395 //#define DBG_DELAY_OS
396 //#define DBG_MEM_ALLOC
397 //#define DBG_IOCTL
398
399 //#define DBG_TX
400 //#define DBG_XMIT_BUF
401 //#define DBG_XMIT_BUF_EXT
402 //#define DBG_TX_DROP_FRAME
403
404 //#define DBG_RX_DROP_FRAME
405 //#define DBG_RX_SEQ
406 //#define DBG_RX_SIGNAL_DISPLAY_PROCESSING
407 //#define DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED "jeff-ap"
408
409
410
411 //#define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE
412 //#define DBG_ROAMING_TEST
413
414 //#define DBG_HAL_INIT_PROFILING
415
416 //#define DBG_MEMORY_LEAK       
417
418 //TX use 1 urb
419 //#define CONFIG_SINGLE_XMIT_BUF
420 //RX use 1 urb
421 //#define CONFIG_SINGLE_RECV_BUF
422