Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nu11secur1ty
GitHub Repository: nu11secur1ty/Kali-Linux
Path: blob/master/ALFA-W1F1/RTL8814AU/include/autoconf.h
1307 views
1
/******************************************************************************
2
*
3
* Copyright(c) 2007 - 2017 Realtek Corporation.
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
*****************************************************************************/
15
/* ***** temporarily flag ******* */
16
#define CONFIG_SINGLE_IMG
17
/* #define CONFIG_DISABLE_ODM */
18
19
/* ***** temporarily flag ******* */
20
/*
21
* Public General Config
22
*/
23
#define AUTOCONF_INCLUDED
24
#define RTL871X_MODULE_NAME "8814AU"
25
#define DRV_NAME "rtl8814au"
26
27
28
#define CONFIG_USB_HCI
29
30
31
#define PLATFORM_LINUX
32
33
34
/* #define CONFIG_IOCTL_CFG80211 1 */
35
36
#ifdef CONFIG_IOCTL_CFG80211
37
/* #define RTW_USE_CFG80211_STA_EVENT */ /* Indecate new sta asoc through cfg80211_new_sta */
38
#define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER
39
/* #define CONFIG_DEBUG_CFG80211 */
40
/* #define CONFIG_DRV_ISSUE_PROV_REQ */ /* IOT FOR S2 */
41
#define CONFIG_SET_SCAN_DENY_TIMER
42
#endif
43
44
/*
45
* Internal General Config
46
*/
47
/* #define CONFIG_H2CLBK */
48
49
#define CONFIG_EMBEDDED_FWIMG 1
50
51
#if (CONFIG_EMBEDDED_FWIMG==1)
52
#define LOAD_FW_HEADER_FROM_DRIVER
53
#endif
54
/* #define CONFIG_FILE_FWIMG */
55
56
/* #define CONFIG_XMIT_ACK */
57
#ifdef CONFIG_XMIT_ACK
58
#define CONFIG_ACTIVE_KEEP_ALIVE_CHECK
59
#endif
60
61
#define CONFIG_80211N_HT
62
#define CONFIG_80211AC_VHT
63
#ifdef CONFIG_80211AC_VHT
64
#ifndef CONFIG_80211N_HT
65
#define CONFIG_80211N_HT
66
#endif
67
#endif
68
69
70
#ifdef CONFIG_80211AC_VHT
71
#define CONFIG_BEAMFORMING
72
#endif
73
74
#define CONFIG_RECV_REORDERING_CTRL 1
75
76
#define CONFIG_RF_POWER_TRIM
77
78
#define CONFIG_DFS 1
79
80
/* #define CONFIG_SUPPORT_USB_INT */
81
#ifdef CONFIG_SUPPORT_USB_INT
82
/* #define CONFIG_USB_INTERRUPT_IN_PIPE 1 */
83
#endif
84
85
#ifdef CONFIG_POWER_SAVING
86
#define CONFIG_IPS 1
87
#ifdef CONFIG_IPS
88
/* #define CONFIG_IPS_LEVEL_2 1 */ /* enable this to set default IPS mode to IPS_LEVEL_2 */
89
#define CONFIG_IPS_CHECK_IN_WD /* Do IPS Check in WatchDog. */
90
#endif
91
/* #define SUPPORT_HW_RFOFF_DETECTED 1 */
92
93
#define CONFIG_LPS 1
94
#if defined(CONFIG_LPS) && defined(CONFIG_SUPPORT_USB_INT)
95
/* #define CONFIG_LPS_LCLK 1 */
96
#endif
97
98
#ifdef CONFIG_LPS_LCLK
99
/* #define CONFIG_XMIT_THREAD_MODE */
100
#endif
101
#endif /*CONFIG_POWER_SAVING*/
102
/*#define CONFIG_ANTENNA_DIVERSITY*/
103
104
105
106
/* #define CONFIG_CONCURRENT_MODE 1 */
107
#ifdef CONFIG_CONCURRENT_MODE
108
#define CONFIG_RUNTIME_PORT_SWITCH
109
/* #define DBG_RUNTIME_PORT_SWITCH */
110
111
/* #ifdef CONFIG_RTL8812A */
112
/* #define CONFIG_TSF_RESET_OFFLOAD 1 */ /* For 2 PORT TSF SYNC. */
113
/* #endif */
114
#endif
115
116
/* #else */ /* #ifndef CONFIG_MP_INCLUDED */
117
118
/* #endif */ /* #ifndef CONFIG_MP_INCLUDED */
119
120
#define CONFIG_AP_MODE 1
121
#ifdef CONFIG_AP_MODE
122
/* #define CONFIG_INTERRUPT_BASED_TXBCN */ /* Tx Beacon when driver BCN_OK ,BCN_ERR interrupt occurs */
123
#if defined(CONFIG_CONCURRENT_MODE) && defined(CONFIG_INTERRUPT_BASED_TXBCN)
124
#undef CONFIG_INTERRUPT_BASED_TXBCN
125
#endif
126
#ifdef CONFIG_INTERRUPT_BASED_TXBCN
127
/* #define CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT */
128
#define CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
129
#endif
130
131
#define CONFIG_NATIVEAP_MLME
132
#ifndef CONFIG_NATIVEAP_MLME
133
#define CONFIG_HOSTAPD_MLME 1
134
#endif
135
#define CONFIG_FIND_BEST_CHANNEL 1
136
#endif
137
138
#define CONFIG_P2P 1
139
#ifdef CONFIG_P2P
140
/* The CONFIG_WFD is for supporting the Wi-Fi display */
141
#define CONFIG_WFD
142
143
#define CONFIG_P2P_REMOVE_GROUP_INFO
144
145
/* #define CONFIG_DBG_P2P */
146
147
#define CONFIG_P2P_PS
148
#define CONFIG_P2P_OP_CHK_SOCIAL_CH
149
#define CONFIG_CFG80211_ONECHANNEL_UNDER_CONCURRENT /* replace CONFIG_P2P_CHK_INVITE_CH_LIST flag */
150
/*#define CONFIG_P2P_INVITE_IOT*/
151
#endif
152
153
/* Added by Kurt 20110511 */
154
#ifdef CONFIG_TDLS
155
#define CONFIG_TDLS_DRIVER_SETUP
156
/* #ifndef CONFIG_WFD */
157
/* #define CONFIG_WFD */
158
/* #endif */
159
/* #define CONFIG_TDLS_AUTOSETUP */
160
#define CONFIG_TDLS_AUTOCHECKALIVE
161
/* #define CONFIG_TDLS_CH_SW */ /* Enable this flag only when we confirm that TDLS CH SW is supported in FW */
162
#endif
163
164
165
#define CONFIG_SKB_COPY 1/* for amsdu */
166
167
#define CONFIG_RTW_LED
168
#ifdef CONFIG_RTW_LED
169
// #define CONFIG_RTW_SW_LED
170
#ifdef CONFIG_RTW_SW_LED
171
/* #define CONFIG_RTW_LED_HANDLED_BY_CMD_THREAD */
172
#endif
173
#endif /* CONFIG_RTW_LED */
174
175
#define CONFIG_GLOBAL_UI_PID
176
177
#define CONFIG_LAYER2_ROAMING
178
#define CONFIG_LAYER2_ROAMING_RESUME
179
/* #define CONFIG_ADAPTOR_INFO_CACHING_FILE */ /* now just applied on 8192cu only, should make it general... */
180
/* #define CONFIG_RESUME_IN_WORKQUEUE */
181
/* #define CONFIG_SET_SCAN_DENY_TIMER */
182
#define CONFIG_LONG_DELAY_ISSUE
183
#define CONFIG_NEW_SIGNAL_STAT_PROCESS
184
/* #define CONFIG_SIGNAL_DISPLAY_DBM */ /* display RX signal with dbm */
185
#ifdef CONFIG_SIGNAL_DISPLAY_DBM
186
/* #define CONFIG_BACKGROUND_NOISE_MONITOR */
187
#endif
188
#define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */
189
190
191
/*
192
* Interface Related Config
193
*/
194
195
#ifndef CONFIG_MINIMAL_MEMORY_USAGE
196
#define CONFIG_USB_TX_AGGREGATION 1
197
#define CONFIG_USB_RX_AGGREGATION 1
198
#endif
199
200
/* #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. */
201
/* #define CONFIG_EASY_REPLACEMENT 1 */
202
203
/*
204
* CONFIG_USE_USB_BUFFER_ALLOC_XX uses Linux USB Buffer alloc API and is for Linux platform only now!
205
*/
206
/* #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. */
207
/* #define CONFIG_USE_USB_BUFFER_ALLOC_RX 1 */ /* For RX path */
208
#ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX
209
210
#else
211
#define CONFIG_PREALLOC_RECV_SKB
212
#ifdef CONFIG_PREALLOC_RECV_SKB
213
/* #define CONFIG_FIX_NR_BULKIN_BUFFER */ /* only use PREALLOC_RECV_SKB buffer, don't alloc skb at runtime */
214
#endif
215
#endif
216
217
/*
218
* USB VENDOR REQ BUFFER ALLOCATION METHOD
219
* if not set we'll use function local variable (stack memory)
220
*/
221
/* #define CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE */
222
#define CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
223
224
#define CONFIG_USB_VENDOR_REQ_MUTEX
225
#define CONFIG_VENDOR_REQ_RETRY
226
227
/* #define CONFIG_USB_SUPPORT_ASYNC_VDN_REQ 1 */
228
229
#ifdef CONFIG_WOWLAN
230
/* #define CONFIG_GTK_OL */
231
/* #define CONFIG_ARP_KEEP_ALIVE */
232
#endif /* CONFIG_WOWLAN */
233
234
#ifdef CONFIG_GPIO_WAKEUP
235
#ifndef WAKEUP_GPIO_IDX
236
#define WAKEUP_GPIO_IDX 8 /* WIFI Chip Side */
237
#endif /* !WAKEUP_GPIO_IDX */
238
#endif /* CONFIG_GPIO_WAKEUP */
239
240
/*
241
* HAL Related Config
242
*/
243
#define RTL8812A_RX_PACKET_INCLUDE_CRC 0
244
245
#define CONFIG_RX_PACKET_APPEND_FCS
246
247
/* #define CONFIG_ONLY_ONE_OUT_EP_TO_LOW 0 */
248
249
#define CONFIG_OUT_EP_WIFI_MODE 0
250
251
#define ENABLE_USB_DROP_INCORRECT_OUT
252
253
#define CONFIG_ADHOC_WORKAROUND_SETTING 1
254
255
#define ENABLE_NEW_RFE_TYPE 0
256
257
#define DISABLE_BB_RF 0
258
259
#ifdef CONFIG_MP_INCLUDED
260
#define MP_DRIVER 1
261
#define CONFIG_MP_IWPRIV_SUPPORT 1
262
/* #undef CONFIG_USB_TX_AGGREGATION */
263
/* #undef CONFIG_USB_RX_AGGREGATION */
264
#else
265
#define MP_DRIVER 0
266
#endif
267
268
269
/*
270
* Platform Related Config
271
*/
272
273
274
#if defined(CONFIG_PLATFORM_ACTIONS_ATM702X)
275
#ifdef CONFIG_USB_TX_AGGREGATION
276
#undef CONFIG_USB_TX_AGGREGATION
277
#endif
278
#ifndef CONFIG_USE_USB_BUFFER_ALLOC_TX
279
#define CONFIG_USE_USB_BUFFER_ALLOC_TX
280
#endif
281
#ifndef CONFIG_USE_USB_BUFFER_ALLOC_RX
282
#define CONFIG_USE_USB_BUFFER_ALLOC_RX
283
#endif
284
#endif
285
286
#ifdef CONFIG_BT_COEXIST
287
/* for ODM and outsrc BT-Coex */
288
#define CONFIG_BT_COEXIST_SOCKET_TRX
289
#ifndef CONFIG_LPS
290
#define CONFIG_LPS /* download reserved page to FW */
291
#endif
292
#endif /* !CONFIG_BT_COEXIST */
293
294
295
296
#ifdef CONFIG_USB_TX_AGGREGATION
297
/* #define CONFIG_TX_EARLY_MODE */
298
#endif
299
300
#define RTL8188E_EARLY_MODE_PKT_NUM_10 0
301
302
303
/*
304
* Debug Related Config
305
*/
306
#define DBG 1
307
308
#define DBG_CONFIG_ERROR_DETECT
309
/* #define DBG_CONFIG_ERROR_DETECT_INT */
310
/* #define DBG_CONFIG_ERROR_RESET */
311
312
/* #define DBG_IO */
313
/* #define DBG_DELAY_OS */
314
/* #define DBG_MEM_ALLOC */
315
/* #define DBG_IOCTL */
316
317
/* #define DBG_TX */
318
/* #define DBG_XMIT_BUF */
319
/* #define DBG_XMIT_BUF_EXT */
320
/* #define DBG_TX_DROP_FRAME */
321
322
/* #define DBG_RX_DROP_FRAME */
323
/* #define DBG_RX_SEQ */
324
/* #define DBG_RX_SIGNAL_DISPLAY_PROCESSING */
325
/* #define DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED "jeff-ap" */
326
327
328
329
/* #define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE */
330
/* #define DBG_ROAMING_TEST */
331
332
/* #define DBG_HAL_INIT_PROFILING */
333
334
/*#define DBG_MEMORY_LEAK*/
335
#define DBG_RX_DFRAME_RAW_DATA
336
/*#define CONFIG_FW_C2H_DEBUG */
337
338