1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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 * 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
19 ******************************************************************************/
20 //***** temporarily flag *******
21 #define CONFIG_SINGLE_IMG
23 //#define CONFIG_DISABLE_ODM
24 //for FPGA VERIFICATION config
25 #define RTL8188E_FPGA_TRUE_PHY_VERIFICATION 0
27 //***** temporarily flag *******
29 * Public General Config
31 #define AUTOCONF_INCLUDED
32 #define RTL871X_MODULE_NAME "88EU"
33 #define DRV_NAME "rtl8188eu"
35 #define CONFIG_USB_HCI
37 #define PLATFORM_LINUX
39 //#define CONFIG_IOCTL_CFG80211
40 //#define CONFIG_IEEE80211W
42 #if defined(CONFIG_PLATFORM_ACTIONS_ATM702X)
43 #ifndef CONFIG_IOCTL_CFG80211
44 #define CONFIG_IOCTL_CFG80211
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
58 * Internal General Config
61 //#define CONFIG_H2CLBK
63 #define CONFIG_EMBEDDED_FWIMG
64 //#define CONFIG_FILE_FWIMG
66 #define CONFIG_XMIT_ACK
67 #ifdef CONFIG_XMIT_ACK
68 #define CONFIG_ACTIVE_KEEP_ALIVE_CHECK
70 #define CONFIG_80211N_HT
72 #define CONFIG_RECV_REORDERING_CTRL
74 //#define CONFIG_TCP_CSUM_OFFLOAD_RX
76 //#define CONFIG_DRVEXT_MODULE
78 #define CONFIG_SUPPORT_USB_INT
79 #ifdef CONFIG_SUPPORT_USB_INT
80 //#define CONFIG_USB_INTERRUPT_IN_PIPE
83 //#ifndef CONFIG_MP_INCLUDED
86 //#define CONFIG_IPS_LEVEL_2 //enable this to set default IPS mode to IPS_LEVEL_2
88 #define SUPPORT_HW_RFOFF_DETECTED
91 #if defined(CONFIG_LPS) && defined(CONFIG_SUPPORT_USB_INT)
94 //#define CONFIG_LPS_LCLK
97 #ifdef CONFIG_LPS_LCLK
98 #define CONFIG_XMIT_THREAD_MODE
102 #define CONFIG_ANTENNA_DIVERSITY
105 #ifdef CONFIG_ANTENNA_DIVERSITY
106 #define CONFIG_HW_ANTENNA_DIVERSITY
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.
120 //#else //#ifndef CONFIG_MP_INCLUDED
122 //#endif //#ifndef CONFIG_MP_INCLUDED
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
130 #ifdef CONFIG_INTERRUPT_BASED_TXBCN
131 //#define CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT
132 #define CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
135 #define CONFIG_NATIVEAP_MLME
136 #ifndef CONFIG_NATIVEAP_MLME
137 #define CONFIG_HOSTAPD_MLME
139 #define CONFIG_FIND_BEST_CHANNEL
140 //#define CONFIG_NO_WIRELESS_HANDLERS
145 //The CONFIG_WFD is for supporting the Wi-Fi display
148 #ifndef CONFIG_WIFI_TEST
149 #define CONFIG_P2P_REMOVE_GROUP_INFO
151 //#define CONFIG_DBG_P2P
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
160 // Added by Kurt 20110511
161 //#define CONFIG_TDLS
163 // #ifndef CONFIG_WFD
164 // #define CONFIG_WFD
166 // #define CONFIG_TDLS_AUTOSETUP
167 // #define CONFIG_TDLS_AUTOCHECKALIVE
171 #define CONFIG_SKB_COPY //for amsdu
175 #define CONFIG_SW_LED
177 //#define CONFIG_LED_HANDLED_BY_CMD_THREAD
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
192 #define USB_INTERFERENCE_ISSUE // this should be checked in all usb interface
193 #define CONFIG_GLOBAL_UI_PID
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
206 #define CONFIG_BR_EXT // Enable NAT2.5 support for STA mode interface with a L2 Bridge
208 #define CONFIG_BR_EXT_BRNAME "br0"
209 #endif // CONFIG_BR_EXT
211 #define CONFIG_TX_MCAST2UNI // Support IP multicast->unicast
212 //#define CONFIG_CHECK_AC_LIFETIME // Check packet lifetime of 4 ACs.
215 * Interface Related Config
218 #ifndef CONFIG_MINIMAL_MEMORY_USAGE
219 #define CONFIG_USB_TX_AGGREGATION
220 #define CONFIG_USB_RX_AGGREGATION
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
227 * CONFIG_USE_USB_BUFFER_ALLOC_XX uses Linux USB Buffer alloc API and is for Linux platform only now!
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
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 */
241 * USB VENDOR REQ BUFFER ALLOCATION METHOD
242 * if not set we'll use function local variable (stack memory)
244 //#define CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE
245 #define CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
247 #define CONFIG_USB_VENDOR_REQ_MUTEX
248 #define CONFIG_VENDOR_REQ_RETRY
250 //#define CONFIG_USB_SUPPORT_ASYNC_VDN_REQ
257 #define RTL8188E_RX_PACKET_INCLUDE_CRC 0
259 #define SUPPORTED_BLOCK_IO
262 //#define CONFIG_ONLY_ONE_OUT_EP_TO_LOW 0
264 #define CONFIG_OUT_EP_WIFI_MODE 0
266 #define ENABLE_USB_DROP_INCORRECT_OUT
269 //#define RTL8192CU_ADHOC_WORKAROUND_SETTING
271 #define DISABLE_BB_RF 0
273 //#define RTL8191C_FPGA_NETWORKTYPE_ADHOC 0
275 #ifdef CONFIG_MP_INCLUDED
277 #define CONFIG_MP_IWPRIV_SUPPORT
278 //#undef CONFIG_USB_TX_AGGREGATION
279 //#undef CONFIG_USB_RX_AGGREGATION
286 * Platform Related Config
288 #ifdef CONFIG_PLATFORM_MN10300
289 #define CONFIG_SPECIAL_SETTING_FOR_FUNAI_TV
290 #define CONFIG_USE_USB_BUFFER_ALLOC_RX
292 #if defined (CONFIG_SW_ANTENNA_DIVERSITY)
293 #undef CONFIG_SW_ANTENNA_DIVERSITY
294 #define CONFIG_HW_ANTENNA_DIVERSITY
297 #if defined (CONFIG_POWER_SAVING)
298 #undef CONFIG_POWER_SAVING
301 #endif//CONFIG_PLATFORM_MN10300
305 #ifdef CONFIG_PLATFORM_TI_DM365
306 #define CONFIG_USE_USB_BUFFER_ALLOC_RX
310 #if defined(CONFIG_PLATFORM_ACTIONS_ATM702X)
311 #ifdef CONFIG_USB_TX_AGGREGATION
312 #undef CONFIG_USB_TX_AGGREGATION
314 #ifndef CONFIG_USE_USB_BUFFER_ALLOC_TX
315 #define CONFIG_USE_USB_BUFFER_ALLOC_TX
317 #ifndef CONFIG_USE_USB_BUFFER_ALLOC_RX
318 #define CONFIG_USE_USB_BUFFER_ALLOC_RX
324 * Outsource Related Config
327 #define RTL8192CE_SUPPORT 0
328 #define RTL8192CU_SUPPORT 0
329 #define RTL8192C_SUPPORT (RTL8192CE_SUPPORT|RTL8192CU_SUPPORT)
331 #define RTL8192DE_SUPPORT 0
332 #define RTL8192DU_SUPPORT 0
333 #define RTL8192D_SUPPORT (RTL8192DE_SUPPORT|RTL8192DU_SUPPORT)
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)
340 #define RTL8723_FPGA_VERIFICATION 0
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
348 #define RTL8812E_SUPPORT 0
349 #define RTL8812AU_SUPPORT 0
350 #define RTL8812A_SUPPORT (RTL8812E_SUPPORT|RTL8812AU_SUPPORT)
352 #define RTL8821A_SUPPORT 0
354 #define RTL8723B_SUPPORT 0
356 #define RTL8192E_SUPPORT 0
358 #define RTL8813A_SUPPORT 0
359 #define RTL8195A_SUPPORT 0
362 //#if (RTL8188E_SUPPORT==1)
363 #define RATE_ADAPTIVE_SUPPORT 1
364 #define POWER_TRAINING_ACTIVE 1
368 #ifdef CONFIG_USB_TX_AGGREGATION
369 //#define CONFIG_TX_EARLY_MODE
372 #ifdef CONFIG_TX_EARLY_MODE
373 #define RTL8188E_EARLY_MODE_PKT_NUM_10 0
376 #define CONFIG_80211D
378 #define CONFIG_ATTEMPT_TO_FIX_AP_BEACON_ERROR
381 * Debug Related Config
385 //#define CONFIG_DEBUG /* DBG_871X, etc... */
386 //#define CONFIG_DEBUG_RTL871X /* RT_TRACE, RT_PRINT_DATA, _func_enter_, _func_exit_ */
388 #define CONFIG_PROC_DEBUG
390 #define DBG_CONFIG_ERROR_DETECT
391 //#define DBG_CONFIG_ERROR_DETECT_INT
392 #define DBG_CONFIG_ERROR_RESET
395 //#define DBG_DELAY_OS
396 //#define DBG_MEM_ALLOC
400 //#define DBG_XMIT_BUF
401 //#define DBG_XMIT_BUF_EXT
402 //#define DBG_TX_DROP_FRAME
404 //#define DBG_RX_DROP_FRAME
406 //#define DBG_RX_SIGNAL_DISPLAY_PROCESSING
407 //#define DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED "jeff-ap"
411 //#define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE
412 //#define DBG_ROAMING_TEST
414 //#define DBG_HAL_INIT_PROFILING
416 //#define DBG_MEMORY_LEAK
419 //#define CONFIG_SINGLE_XMIT_BUF
421 //#define CONFIG_SINGLE_RECV_BUF