ff29e0a94223e4238253100bf94ff34240d30670
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rtl8192c / 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
21 /*
22  * Public  General Config
23  */
24 #define AUTOCONF_INCLUDED
25 #define RTL871X_MODULE_NAME "92CU"
26 #define DRV_NAME "rtl8192cu"
27
28 #define CONFIG_USB_HCI  1
29
30 #define CONFIG_RTL8192C 1
31
32 #define PLATFORM_LINUX  1
33
34
35 /*
36  * Internal  General Config
37  */
38 //#define CONFIG_PWRCTRL
39 //#define CONFIG_H2CLBK
40
41 #define CONFIG_EMBEDDED_FWIMG   1
42
43 //#define CONFIG_R871X_TEST     1
44
45 #define CONFIG_80211N_HT        1
46
47 #define CONFIG_RECV_REORDERING_CTRL     1
48
49 //#define CONFIG_TCP_CSUM_OFFLOAD_RX    1
50
51 //#define CONFIG_DRVEXT_MODULE  1
52
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. */
56 #ifdef CONFIG_IPS
57         //#define CONFIG_IPS_LEVEL_2    1 //enable this to set default IPS mode to IPS_LEVEL_2
58 #endif
59 #define SUPPORT_HW_RFOFF_DETECTED       1
60
61 #define CONFIG_LPS      1
62 //#define CONFIG_BT_COEXIST     1
63 //befor link
64 #define CONFIG_ANTENNA_DIVERSITY                
65 //after link
66 #ifdef CONFIG_ANTENNA_DIVERSITY
67 #define CONFIG_SW_ANTENNA_DIVERSITY      
68 //#define CONFIG_HW_ANTENNA_DIVERSITY   
69 #endif
70
71 #else
72 #define CONFIG_MP_IWPRIV_SUPPORT        1
73 #endif
74
75 #define CONFIG_AP_MODE  1
76 #define CONFIG_NATIVEAP_MLME    1
77
78 //      Added by Albert 20110314
79 //#define CONFIG_P2P    1
80
81 //      Added by Albert 20110812
82 //      The CONFIG_WFD is for supporting the Wi-Fi display
83 #ifdef CONFIG_P2P
84 //#define CONFIG_WFD    1
85 #endif
86
87 //      Added by Kurt 20110511
88 //#define CONFIG_TDLS   1
89                         
90 #ifdef CONFIG_AP_MODE
91         #ifndef CONFIG_NATIVEAP_MLME
92                 #define CONFIG_HOSTAPD_MLME     1
93         #endif                  
94         #define CONFIG_FIND_BEST_CHANNEL        1
95 #endif
96
97 #define CONFIG_SKB_COPY 1//for amsdu
98
99 #define CONFIG_LED
100 #ifdef CONFIG_LED
101         #define CONFIG_SW_LED
102 #endif //CONFIG_LED
103
104 #define CONFIG_HANDLE_JOINBSS_ON_ASSOC_RSP
105
106 #define USB_INTERFERENCE_ISSUE // this should be checked in all usb interface
107 #define CONFIG_GLOBAL_UI_PID
108
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
116
117 /*
118  * Interface  Related Config
119  */
120 //#define CONFIG_USB_INTERRUPT_IN_PIPE  1
121
122 #ifndef CONFIG_MINIMAL_MEMORY_USAGE
123         #define CONFIG_USB_TX_AGGREGATION       1
124         #define CONFIG_USB_RX_AGGREGATION       1
125 #endif
126
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
130
131 /* 
132  * CONFIG_USE_USB_BUFFER_ALLOC_XX uses Linux USB Buffer alloc API and is for Linux platform only now!
133  */
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
136
137 /* 
138  * USB VENDOR REQ BUFFER ALLOCATION METHOD
139  * if not set we'll use function local variable (stack memory)
140  */
141 //#define CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE
142 #define CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
143
144 #define CONFIG_USB_VENDOR_REQ_MUTEX
145 #define CONFIG_VENDOR_REQ_RETRY
146
147 //#define CONFIG_USB_SUPPORT_ASYNC_VDN_REQ 1
148
149
150 /*
151  * HAL  Related Config
152  */
153
154 #define RTL8192C_RX_PACKET_NO_INCLUDE_CRC       1
155
156 #define SUPPORTED_BLOCK_IO
157
158
159
160 #define RTL8192CU_FW_DOWNLOAD_ENABLE    1
161
162 #define CONFIG_ONLY_ONE_OUT_EP_TO_LOW   0
163
164 #define CONFIG_OUT_EP_WIFI_MODE 0
165
166 #define ENABLE_USB_DROP_INCORRECT_OUT   0
167
168 #define RTL8192CU_ASIC_VERIFICATION     0       // For ASIC verification.
169
170 #define RTL8192CU_ADHOC_WORKAROUND_SETTING      1
171
172 #define DISABLE_BB_RF   0
173
174 #define RTL8191C_FPGA_NETWORKTYPE_ADHOC 0
175
176 #ifdef CONFIG_MP_INCLUDED
177         #define MP_DRIVER 1
178         #undef CONFIG_USB_TX_AGGREGATION
179         #undef CONFIG_USB_RX_AGGREGATION
180 #else
181         #define MP_DRIVER 0
182 #endif
183
184
185 /*
186  * Platform  Related Config
187  */
188 #ifdef CONFIG_PLATFORM_MN10300
189 #define CONFIG_SPECIAL_SETTING_FOR_FUNAI_TV
190
191 #if     defined (CONFIG_SW_ANTENNA_DIVERSITY)
192         #undef CONFIG_SW_ANTENNA_DIVERSITY
193         #define CONFIG_HW_ANTENNA_DIVERSITY
194 #endif
195
196 #endif
197
198 #ifdef CONFIG_WISTRON_PLATFORM
199
200 #endif
201
202 #ifdef CONFIG_PLATFORM_TI_DM365
203 #define CONFIG_USE_USB_BUFFER_ALLOC_RX 1
204 #endif
205
206
207 /*
208  * Debug  Related Config
209  */
210 //#define CONFIG_DEBUG_RTL871X
211
212 #define DBG     0
213 //#define CONFIG_DEBUG_RTL819X
214
215 //#define CONFIG_PROC_DEBUG     1
216
217 //#define DBG_IO
218 //#define DBG_DELAY_OS
219 //#define DBG_MEM_ALLOC
220 //#define DBG_IOCTL
221
222 //#define DBG_TX
223 //#define DBG_XMIT_BUF
224 //#define DBG_TX_DROP_FRAME
225
226 //#define DBG_RX_DROP_FRAME
227 //#define DBG_RX_SEQ
228
229 //#define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE
230 //#define DBG_ROAMING_TEST
231