1 /******************************************************************************
3 * Copyright(c) 2007 - 2012 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 #define CONFIG_ODM_REFRESH_RAMASK
21 #define CONFIG_PHY_SETTING_WITH_ODM
24 * Public General Config
27 #define AUTOCONF_INCLUDED
29 #define RTL871X_MODULE_NAME "8723AS-VAU"
30 #define DRV_NAME "rtl8723as-vau"
32 #define CONFIG_RTL8723A
33 #define CONFIG_USB_HCI
34 #define PLATFORM_LINUX
36 #define CONFIG_EMBEDDED_FWIMG
37 //#define CONFIG_FILE_FWIMG
43 #define CONFIG_XMIT_ACK
44 #ifdef CONFIG_XMIT_ACK
45 #define CONFIG_ACTIVE_KEEP_ALIVE_CHECK
47 #define CONFIG_80211N_HT
48 #define CONFIG_RECV_REORDERING_CTRL
51 #define SUPPORT_HW_RFOFF_DETECTED
53 #define CONFIG_IOCTL_CFG80211
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
62 #define CONFIG_AP_MODE
64 #define CONFIG_NATIVEAP_MLME
65 #ifndef CONFIG_NATIVEAP_MLME
66 #define CONFIG_HOSTAPD_MLME
68 //#define CONFIG_FIND_BEST_CHANNEL
69 //#define CONFIG_NO_WIRELESS_HANDLERS
74 //Added by Albert 20110812
75 //The CONFIG_WFD is for supporting the Wi-Fi display
78 #ifndef CONFIG_WIFI_TEST
79 #define CONFIG_P2P_REMOVE_GROUP_INFO
81 //#define CONFIG_DBG_P2P
84 #define CONFIG_P2P_IPS
85 #define P2P_OP_CHECK_SOCIAL_CH
88 // Added by Kurt 20110511
94 // #define CONFIG_TDLS_AUTOSETUP
95 // #define CONFIG_TDLS_AUTOCHECKALIVE
98 #define CONFIG_LAYER2_ROAMING
99 #define CONFIG_LAYER2_ROAMING_RESUME
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
108 #define CONFIG_SKB_COPY //for amsdu
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
122 //#define CONFIG_ANTENNA_DIVERSITY
123 #ifdef CONFIG_ANTENNA_DIVERSITY
124 #define CONFIG_SW_ANTENNA_DIVERSITY
125 //#define CONFIG_HW_ANTENNA_DIVERSITY
130 * Auto Config Section
133 #ifdef CONFIG_MP_INCLUDED
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
144 #undef CONFIG_MP_IWPRIV_SUPPORT
146 #endif // #ifdef CONFIG_MP_INCLUDED
151 #define CONFIG_SW_LED
153 //#define CONFIG_LED_HANDLED_BY_CMD_THREAD
157 #ifdef CONFIG_POWER_SAVING
161 //#define CONFIG_LPS_LCLK
162 #endif // #ifdef CONFIG_POWER_SAVING
164 #ifdef CONFIG_LPS_LCLK
165 #define CONFIG_XMIT_THREAD_MODE
168 //#define CONFIG_BR_EXT // Enable NAT2.5 support for STA mode interface with a L2 Bridge
170 #define CONFIG_BR_EXT_BRNAME "br0"
171 #endif // CONFIG_BR_EXT
173 //#define CONFIG_TX_MCAST2UNI // Support IP multicast->unicast
174 //#define CONFIG_CHECK_AC_LIFETIME // Check packet lifetime of 4 ACs.
176 #if defined(CONFIG_BT_COEXIST) || defined(CONFIG_POWER_SAVING)
177 #ifndef CONFIG_USB_INTERRUPT_IN_PIPE
178 #define CONFIG_USB_INTERRUPT_IN_PIPE
182 #if defined(CONFIG_BT_COEXIST)
183 #define CONFIG_CHECK_BT_HANG
186 * Interface Related Config
188 //#define CONFIG_USB_INTERRUPT_IN_PIPE
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
196 * CONFIG_USE_USB_BUFFER_ALLOC_XX uses Linux USB Buffer alloc API and is for Linux platform only now!
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
205 * USB VENDOR REQ BUFFER ALLOCATION METHOD
206 * if not set we'll use function local variable (stack memory)
208 //#define CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE
209 #define CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
211 #define CONFIG_USB_VENDOR_REQ_MUTEX
212 #define CONFIG_VENDOR_REQ_RETRY
214 //#define CONFIG_USB_SUPPORT_ASYNC_VDN_REQ
221 #define RTL8192C_RX_PACKET_INCLUDE_CRC 0
223 #define SUPPORTED_BLOCK_IO
227 #define RTL8192CU_FW_DOWNLOAD_ENABLE 1
229 //#define CONFIG_ONLY_ONE_OUT_EP_TO_LOW 0
231 #define CONFIG_OUT_EP_WIFI_MODE 0
233 #define ENABLE_USB_DROP_INCORRECT_OUT
235 #define RTL8192CU_ASIC_VERIFICATION 0 // For ASIC verification.
237 #define RTL8192CU_ADHOC_WORKAROUND_SETTING
239 #define DISABLE_BB_RF 0
241 #define RTL8191C_FPGA_NETWORKTYPE_ADHOC 0
243 #ifdef CONFIG_MP_INCLUDED
245 #undef CONFIG_USB_TX_AGGREGATION
246 #undef CONFIG_USB_RX_AGGREGATION
253 * Platform Related Config
255 #ifdef CONFIG_PLATFORM_MN10300
256 #define CONFIG_SPECIAL_SETTING_FOR_FUNAI_TV
258 #if defined (CONFIG_SW_ANTENNA_DIVERSITY)
259 #undef CONFIG_SW_ANTENNA_DIVERSITY
260 #define CONFIG_HW_ANTENNA_DIVERSITY
265 #ifdef CONFIG_WISTRON_PLATFORM
269 #ifdef CONFIG_PLATFORM_TI_DM365
270 #define CONFIG_USE_USB_BUFFER_ALLOC_RX
273 * Outsource Related Config
276 #define RTL8192CE_SUPPORT 0
277 #define RTL8192CU_SUPPORT 0
278 #define RTL8192C_SUPPORT (RTL8192CE_SUPPORT|RTL8192CU_SUPPORT)
280 #define RTL8192DE_SUPPORT 0
281 #define RTL8192DU_SUPPORT 0
282 #define RTL8192D_SUPPORT (RTL8192DE_SUPPORT|RTL8192DU_SUPPORT)
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)
289 #define RTL8723_FPGA_VERIFICATION 0
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
301 #define CONFIG_80211D
303 #define CONFIG_ATTEMPT_TO_FIX_AP_BEACON_ERROR
306 * Debug Related Config
310 //#define CONFIG_DEBUG /* DBG_871X, etc... */
311 //#define CONFIG_DEBUG_RTL871X /* RT_TRACE, RT_PRINT_DATA, _func_enter_, _func_exit_ */
313 //#define CONFIG_PROC_DEBUG
315 //#define DBG_CONFIG_ERROR_DETECT
316 //#define DBG_CONFIG_ERROR_RESET
319 //#define DBG_DELAY_OS
320 //#define DBG_MEM_ALLOC
324 //#define DBG_XMIT_BUF
325 //#define DBG_TX_DROP_FRAME
327 //#define DBG_RX_DROP_FRAME
330 //#define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE
331 //#define DBG_ROAMING_TEST
333 //#define DBG_HAL_INIT_PROFILING
335 //#define DBG_MEMORY_LEAK 1
338 //#define CONFIG_SINGLE_XMIT_BUF
340 //#define CONFIG_SINGLE_RECV_BUF