add rk3288 pinctrl dts code
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rtl8723au / include / autoconf.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2012 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 #define CONFIG_ODM_REFRESH_RAMASK
21 #define CONFIG_PHY_SETTING_WITH_ODM
22
23 /*
24  * Public  General Config
25  */
26
27 #define AUTOCONF_INCLUDED
28
29 #define RTL871X_MODULE_NAME "8723AS-VAU"
30 #define DRV_NAME "rtl8723as-vau"
31
32 #define CONFIG_RTL8723A 
33 #define CONFIG_USB_HCI  
34 #define PLATFORM_LINUX  
35
36 #define CONFIG_EMBEDDED_FWIMG   
37 //#define CONFIG_FILE_FWIMG
38
39 /*
40  * Functions Config
41  */
42
43 #define CONFIG_XMIT_ACK
44 #ifdef CONFIG_XMIT_ACK
45         #define CONFIG_ACTIVE_KEEP_ALIVE_CHECK
46 #endif
47 #define CONFIG_80211N_HT        
48 #define CONFIG_RECV_REORDERING_CTRL     
49
50
51 #define SUPPORT_HW_RFOFF_DETECTED       
52
53 #define CONFIG_IOCTL_CFG80211 
54
55 #ifdef CONFIG_IOCTL_CFG80211
56         #define RTW_USE_CFG80211_STA_EVENT /* Indecate new sta asoc through cfg80211_new_sta */
57         #define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER
58         //#define CONFIG_DEBUG_CFG80211 
59         #define CONFIG_SET_SCAN_DENY_TIMER
60 #endif
61
62 #define CONFIG_AP_MODE  
63 #ifdef CONFIG_AP_MODE
64         #define CONFIG_NATIVEAP_MLME 
65         #ifndef CONFIG_NATIVEAP_MLME
66                 #define CONFIG_HOSTAPD_MLME     
67         #endif                  
68         //#define CONFIG_FIND_BEST_CHANNEL      
69         //#define CONFIG_NO_WIRELESS_HANDLERS   
70 #endif
71
72 #define CONFIG_P2P      
73 #ifdef CONFIG_P2P
74         //Added by Albert 20110812
75         //The CONFIG_WFD is for supporting the Wi-Fi display
76         #define CONFIG_WFD
77         
78         #ifndef CONFIG_WIFI_TEST
79                 #define CONFIG_P2P_REMOVE_GROUP_INFO
80         #endif
81         //#define CONFIG_DBG_P2P
82
83         #define CONFIG_P2P_PS
84         #define CONFIG_P2P_IPS
85         #define P2P_OP_CHECK_SOCIAL_CH
86 #endif
87
88 //      Added by Kurt 20110511
89 //#define CONFIG_TDLS   
90 #ifdef CONFIG_TDLS
91 //      #ifndef CONFIG_WFD
92 //              #define CONFIG_WFD      
93 //      #endif
94 //      #define CONFIG_TDLS_AUTOSETUP                   
95 //      #define CONFIG_TDLS_AUTOCHECKALIVE              
96 #endif
97
98 #define CONFIG_LAYER2_ROAMING
99 #define CONFIG_LAYER2_ROAMING_RESUME
100
101 #define CONFIG_CONCURRENT_MODE 
102 #ifdef CONFIG_CONCURRENT_MODE
103         #define CONFIG_TSF_RESET_OFFLOAD                        // For 2 PORT TSF SYNC.
104         //#define CONFIG_HWPORT_SWAP                            //Port0->Sec , Port1 -> Pri
105         //#define CONFIG_STA_MODE_SCAN_UNDER_AP_MODE
106 #endif  // CONFIG_CONCURRENT_MODE
107
108 #define CONFIG_SKB_COPY //for amsdu
109
110 //#define CONFIG_LED
111
112 #define USB_INTERFERENCE_ISSUE // this should be checked in all usb interface
113 //#define CONFIG_ADAPTOR_INFO_CACHING_FILE // now just applied on 8192cu only, should make it general...
114 //#define CONFIG_RESUME_IN_WORKQUEUE
115 //#define CONFIG_SET_SCAN_DENY_TIMER
116 #define CONFIG_LONG_DELAY_ISSUE
117 #define CONFIG_NEW_SIGNAL_STAT_PROCESS
118 #define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable,  */
119 #define CONFIG_DEAUTH_BEFORE_CONNECT
120
121
122 //#define CONFIG_ANTENNA_DIVERSITY
123 #ifdef CONFIG_ANTENNA_DIVERSITY
124 #define CONFIG_SW_ANTENNA_DIVERSITY      
125 //#define CONFIG_HW_ANTENNA_DIVERSITY   
126 #endif
127
128
129 /*
130  * Auto Config Section
131  */
132
133 #ifdef CONFIG_MP_INCLUDED
134         #define MP_DRIVER               1
135         #define CONFIG_MP_IWPRIV_SUPPORT 1
136         #define CONFIG_USB_INTERRUPT_IN_PIPE 1
137         // disable unnecessary functions for MP
138         //#undef CONFIG_POWER_SAVING
139         //#undef CONFIG_BT_COEXIST
140         //#undef CONFIG_ANTENNA_DIVERSITY
141         //#undef SUPPORT_HW_RFOFF_DETECTED
142 #else // #ifdef CONFIG_MP_INCLUDED
143         #define MP_DRIVER               0
144         #undef CONFIG_MP_IWPRIV_SUPPORT 
145         #define CONFIG_LPS              1
146 #endif // #ifdef CONFIG_MP_INCLUDED
147
148
149
150 #ifdef CONFIG_LED
151         #define CONFIG_SW_LED
152         #ifdef CONFIG_SW_LED
153                 //#define CONFIG_LED_HANDLED_BY_CMD_THREAD
154         #endif
155 #endif // CONFIG_LED
156
157 #ifdef CONFIG_POWER_SAVING
158
159 #define CONFIG_IPS              
160 #define CONFIG_LPS              
161 //#define CONFIG_LPS_LCLK               
162 #endif // #ifdef CONFIG_POWER_SAVING
163
164 #ifdef CONFIG_LPS_LCLK
165 #define CONFIG_XMIT_THREAD_MODE
166 #endif
167
168 //#define CONFIG_BR_EXT         // Enable NAT2.5 support for STA mode interface with a L2 Bridge
169 #ifdef CONFIG_BR_EXT
170 #define CONFIG_BR_EXT_BRNAME    "br0"
171 #endif  // CONFIG_BR_EXT
172
173 //#define CONFIG_TX_MCAST2UNI           // Support IP multicast->unicast
174 //#define CONFIG_CHECK_AC_LIFETIME      // Check packet lifetime of 4 ACs.
175
176 #if defined(CONFIG_BT_COEXIST) || defined(CONFIG_POWER_SAVING)
177 #ifndef CONFIG_USB_INTERRUPT_IN_PIPE
178 #define CONFIG_USB_INTERRUPT_IN_PIPE 
179 #endif
180 #endif
181
182 #if defined(CONFIG_BT_COEXIST)
183         #define CONFIG_CHECK_BT_HANG
184 #endif
185 /*
186  * Interface  Related Config
187  */
188 //#define CONFIG_USB_INTERRUPT_IN_PIPE  
189
190
191 #define CONFIG_PREALLOC_RECV_SKB        
192 //#define CONFIG_REDUCE_USB_TX_INT              // Trade-off: Improve performance, but may cause TX URBs blocked by USB Host/Bus driver on few platforms.
193 //#define CONFIG_EASY_REPLACEMENT       
194
195 /* 
196  * CONFIG_USE_USB_BUFFER_ALLOC_XX uses Linux USB Buffer alloc API and is for Linux platform only now!
197  */
198 //#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.
199 //#define CONFIG_USE_USB_BUFFER_ALLOC_RX        // For RX path
200 #ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX
201 #undef CONFIG_PREALLOC_RECV_SKB
202 #endif
203
204 /* 
205  * USB VENDOR REQ BUFFER ALLOCATION METHOD
206  * if not set we'll use function local variable (stack memory)
207  */
208 //#define CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE
209 #define CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
210
211 #define CONFIG_USB_VENDOR_REQ_MUTEX
212 #define CONFIG_VENDOR_REQ_RETRY
213
214 //#define CONFIG_USB_SUPPORT_ASYNC_VDN_REQ 
215
216
217 /*
218  * HAL  Related Config
219  */
220
221 #define RTL8192C_RX_PACKET_INCLUDE_CRC  0
222
223 #define SUPPORTED_BLOCK_IO
224
225
226
227 #define RTL8192CU_FW_DOWNLOAD_ENABLE    1
228
229 //#define CONFIG_ONLY_ONE_OUT_EP_TO_LOW 0
230
231 #define CONFIG_OUT_EP_WIFI_MODE 0
232
233 #define ENABLE_USB_DROP_INCORRECT_OUT
234
235 #define RTL8192CU_ASIC_VERIFICATION     0       // For ASIC verification.
236
237 #define RTL8192CU_ADHOC_WORKAROUND_SETTING      
238
239 #define DISABLE_BB_RF   0
240
241 #define RTL8191C_FPGA_NETWORKTYPE_ADHOC 0
242
243 #ifdef CONFIG_MP_INCLUDED
244         #define MP_DRIVER 1
245         #undef CONFIG_USB_TX_AGGREGATION
246         #undef CONFIG_USB_RX_AGGREGATION
247 #else
248         #define MP_DRIVER 0
249 #endif
250
251
252 /*
253  * Platform  Related Config
254  */
255 #ifdef CONFIG_PLATFORM_MN10300
256 #define CONFIG_SPECIAL_SETTING_FOR_FUNAI_TV
257
258 #if     defined (CONFIG_SW_ANTENNA_DIVERSITY)
259         #undef CONFIG_SW_ANTENNA_DIVERSITY
260         #define CONFIG_HW_ANTENNA_DIVERSITY
261 #endif
262
263 #endif
264
265 #ifdef CONFIG_WISTRON_PLATFORM
266
267 #endif
268
269 #ifdef CONFIG_PLATFORM_TI_DM365
270 #define CONFIG_USE_USB_BUFFER_ALLOC_RX 
271 #endif
272 /*
273  * Outsource  Related Config
274  */
275
276 #define         RTL8192CE_SUPPORT                               0
277 #define         RTL8192CU_SUPPORT                       0
278 #define         RTL8192C_SUPPORT                                (RTL8192CE_SUPPORT|RTL8192CU_SUPPORT)   
279
280 #define         RTL8192DE_SUPPORT                               0
281 #define         RTL8192DU_SUPPORT                       0
282 #define         RTL8192D_SUPPORT                                (RTL8192DE_SUPPORT|RTL8192DU_SUPPORT)   
283
284 #define         RTL8723AU_SUPPORT                               1
285 #define         RTL8723AS_SUPPORT                               0
286 #define         RTL8723AE_SUPPORT                               0
287 #define         RTL8723A_SUPPORT                                (RTL8723AU_SUPPORT|RTL8723AS_SUPPORT|RTL8723AE_SUPPORT)
288
289 #define         RTL8723_FPGA_VERIFICATION               0
290
291 #define RTL8188EE_SUPPORT                               0
292 #define RTL8188EU_SUPPORT                               0
293 #define RTL8188ES_SUPPORT                               0
294 #define RTL8188E_SUPPORT                                (RTL8188EE_SUPPORT|RTL8188EU_SUPPORT|RTL8188ES_SUPPORT)
295 #define RTL8188E_FOR_TEST_CHIP                  0
296 //#if (RTL8188E_SUPPORT==1)
297 #define RATE_ADAPTIVE_SUPPORT                   0
298 #define POWER_TRAINING_ACTIVE                   0
299 //#endif
300
301 #define CONFIG_80211D
302
303 #define CONFIG_ATTEMPT_TO_FIX_AP_BEACON_ERROR
304
305 /*
306  * Debug Related Config
307  */
308 #define DBG     1
309
310 //#define CONFIG_DEBUG /* DBG_871X, etc... */
311 //#define CONFIG_DEBUG_RTL871X /* RT_TRACE, RT_PRINT_DATA, _func_enter_, _func_exit_ */
312
313 //#define CONFIG_PROC_DEBUG
314
315 //#define DBG_CONFIG_ERROR_DETECT
316 //#define DBG_CONFIG_ERROR_RESET
317
318 //#define DBG_IO
319 //#define DBG_DELAY_OS
320 //#define DBG_MEM_ALLOC
321 //#define DBG_IOCTL
322
323 //#define DBG_TX
324 //#define DBG_XMIT_BUF
325 //#define DBG_TX_DROP_FRAME
326
327 //#define DBG_RX_DROP_FRAME
328 //#define DBG_RX_SEQ
329
330 //#define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE
331 //#define DBG_ROAMING_TEST
332
333 //#define DBG_HAL_INIT_PROFILING
334
335 //#define DBG_MEMORY_LEAK       1
336
337 //TX use 1 urb
338 //#define CONFIG_SINGLE_XMIT_BUF
339 //RX use 1 urb
340 //#define CONFIG_SINGLE_RECV_BUF
341