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 ******************************************************************************/
22 * Public General Config
24 #define AUTOCONF_INCLUDED
25 #define RTL871X_MODULE_NAME "92CU"
26 #define DRV_NAME "rtl8192cu"
28 #define CONFIG_USB_HCI 1
30 #define CONFIG_RTL8192C 1
32 #define PLATFORM_LINUX 1
36 * Internal General Config
38 //#define CONFIG_PWRCTRL
39 //#define CONFIG_H2CLBK
41 #define CONFIG_EMBEDDED_FWIMG 1
43 //#define CONFIG_R871X_TEST 1
45 #define CONFIG_80211N_HT 1
47 #define CONFIG_RECV_REORDERING_CTRL 1
49 //#define CONFIG_TCP_CSUM_OFFLOAD_RX 1
51 //#define CONFIG_DRVEXT_MODULE 1
53 #ifndef CONFIG_MP_INCLUDED
54 //#define CONFIG_IPS 1
55 /* modified by gwl, we'd better comment out the IPS function if we use lower speed IO interface. */
57 //#define CONFIG_IPS_LEVEL_2 1 //enable this to set default IPS mode to IPS_LEVEL_2
59 #define SUPPORT_HW_RFOFF_DETECTED 1
62 //#define CONFIG_BT_COEXIST 1
64 #define CONFIG_ANTENNA_DIVERSITY
66 #ifdef CONFIG_ANTENNA_DIVERSITY
67 #define CONFIG_SW_ANTENNA_DIVERSITY
68 //#define CONFIG_HW_ANTENNA_DIVERSITY
72 #define CONFIG_MP_IWPRIV_SUPPORT 1
75 #define CONFIG_AP_MODE 1
76 #define CONFIG_NATIVEAP_MLME 1
78 // Added by Albert 20110314
79 //#define CONFIG_P2P 1
81 // Added by Albert 20110812
82 // The CONFIG_WFD is for supporting the Wi-Fi display
84 //#define CONFIG_WFD 1
87 // Added by Kurt 20110511
88 //#define CONFIG_TDLS 1
91 #ifndef CONFIG_NATIVEAP_MLME
92 #define CONFIG_HOSTAPD_MLME 1
94 #define CONFIG_FIND_BEST_CHANNEL 1
97 #define CONFIG_SKB_COPY 1//for amsdu
101 #define CONFIG_SW_LED
104 #define CONFIG_HANDLE_JOINBSS_ON_ASSOC_RSP
106 #define USB_INTERFERENCE_ISSUE // this should be checked in all usb interface
107 #define CONFIG_GLOBAL_UI_PID
109 #define CONFIG_LAYER2_ROAMING
110 #define CONFIG_LAYER2_ROAMING_RESUME
111 //#define CONFIG_ADAPTOR_INFO_CACHING_FILE // now just applied on 8192cu only, should make it general...
112 //#define CONFIG_RESUME_IN_WORKQUEUE
113 //#define CONFIG_SET_SCAN_DENY_TIMER
114 #define CONFIG_LONG_DELAY_ISSUE
115 #define CONFIG_NEW_SIGNAL_STAT_PROCESS
118 * Interface Related Config
120 //#define CONFIG_USB_INTERRUPT_IN_PIPE 1
122 #ifndef CONFIG_MINIMAL_MEMORY_USAGE
123 #define CONFIG_USB_TX_AGGREGATION 1
124 #define CONFIG_USB_RX_AGGREGATION 1
127 #define CONFIG_PREALLOC_RECV_SKB 1
128 //#define CONFIG_REDUCE_USB_TX_INT 1 // Trade-off: Improve performance, but may cause TX URBs blocked by USB Host/Bus driver on few platforms.
129 //#define CONFIG_EASY_REPLACEMENT 1
132 * CONFIG_USE_USB_BUFFER_ALLOC_XX uses Linux USB Buffer alloc API and is for Linux platform only now!
134 //#define CONFIG_USE_USB_BUFFER_ALLOC_TX 1 // Trade-off: For TX path, improve stability on some platforms, but may cause performance degrade on other platforms.
135 //#define CONFIG_USE_USB_BUFFER_ALLOC_RX 1 // For RX path
138 * USB VENDOR REQ BUFFER ALLOCATION METHOD
139 * if not set we'll use function local variable (stack memory)
141 //#define CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE
142 #define CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
144 #define CONFIG_USB_VENDOR_REQ_MUTEX
145 #define CONFIG_VENDOR_REQ_RETRY
147 //#define CONFIG_USB_SUPPORT_ASYNC_VDN_REQ 1
154 #define RTL8192C_RX_PACKET_NO_INCLUDE_CRC 1
156 #define SUPPORTED_BLOCK_IO
160 #define RTL8192CU_FW_DOWNLOAD_ENABLE 1
162 #define CONFIG_ONLY_ONE_OUT_EP_TO_LOW 0
164 #define CONFIG_OUT_EP_WIFI_MODE 0
166 #define ENABLE_USB_DROP_INCORRECT_OUT 0
168 #define RTL8192CU_ASIC_VERIFICATION 0 // For ASIC verification.
170 #define RTL8192CU_ADHOC_WORKAROUND_SETTING 1
172 #define DISABLE_BB_RF 0
174 #define RTL8191C_FPGA_NETWORKTYPE_ADHOC 0
176 #ifdef CONFIG_MP_INCLUDED
178 #undef CONFIG_USB_TX_AGGREGATION
179 #undef CONFIG_USB_RX_AGGREGATION
186 * Platform Related Config
188 #ifdef CONFIG_PLATFORM_MN10300
189 #define CONFIG_SPECIAL_SETTING_FOR_FUNAI_TV
191 #if defined (CONFIG_SW_ANTENNA_DIVERSITY)
192 #undef CONFIG_SW_ANTENNA_DIVERSITY
193 #define CONFIG_HW_ANTENNA_DIVERSITY
198 #ifdef CONFIG_WISTRON_PLATFORM
202 #ifdef CONFIG_PLATFORM_TI_DM365
203 #define CONFIG_USE_USB_BUFFER_ALLOC_RX 1
208 * Debug Related Config
210 //#define CONFIG_DEBUG_RTL871X
213 //#define CONFIG_DEBUG_RTL819X
215 //#define CONFIG_PROC_DEBUG 1
218 //#define DBG_DELAY_OS
219 //#define DBG_MEM_ALLOC
223 //#define DBG_XMIT_BUF
224 //#define DBG_TX_DROP_FRAME
226 //#define DBG_RX_DROP_FRAME
229 //#define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE
230 //#define DBG_ROAMING_TEST