Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | /* |
2 | ** Id: //Department/DaVinci/BRANCHES/MT6620_WIFI_DRIVER_V2_3/include/config.h#3 | |
3 | */ | |
4 | ||
5 | /*! \file "config.h" | |
6 | \brief This file includes the various configurable parameters for customers | |
7 | ||
8 | This file ncludes the configurable parameters except the paramters indicate the turning-on/off of some features | |
9 | */ | |
10 | ||
11 | ||
12 | #ifndef _CONFIG_H | |
13 | #define _CONFIG_H | |
14 | ||
15 | /******************************************************************************* | |
16 | * C O M P I L E R F L A G S | |
17 | ******************************************************************************** | |
18 | */ | |
19 | ||
20 | /******************************************************************************* | |
21 | * E X T E R N A L R E F E R E N C E S | |
22 | ******************************************************************************** | |
23 | */ | |
24 | ||
25 | /******************************************************************************* | |
26 | * C O N S T A N T S | |
27 | ******************************************************************************** | |
28 | */ | |
29 | /* 2 Flags for OS capability */ | |
30 | ||
31 | #ifdef LINUX | |
32 | #ifdef CONFIG_X86 | |
33 | #define MTK_WCN_HIF_SDIO 0 | |
34 | #else | |
35 | #define MTK_WCN_HIF_SDIO 1 | |
36 | #endif | |
37 | #else | |
38 | #define MTK_WCN_HIF_SDIO 0 | |
39 | #endif | |
40 | ||
41 | #ifndef CFG_BUILT_IN_DRIVER | |
42 | #define CFG_BUILT_IN_DRIVER 0 | |
43 | #endif | |
44 | ||
45 | #if (CFG_SUPPORT_AEE == 1) | |
46 | #define CFG_ENABLE_AEE_MSG 1 | |
47 | #else | |
48 | #define CFG_ENABLE_AEE_MSG 0 | |
49 | #endif | |
50 | ||
51 | #define CFG_SUPPORT_MTK_ANDROID_KK 1 | |
52 | ||
53 | #define CFG_ENABLE_EARLY_SUSPEND 0 | |
54 | ||
55 | /* 2 Flags for Driver Features */ | |
56 | #define CFG_TX_FRAGMENT 1 /*!< 1: Enable TX fragmentation | |
57 | 0: Disable */ | |
58 | #define CFG_SUPPORT_PERFORMANCE_TEST 0 /*Only for performance Test */ | |
59 | ||
60 | #define CFG_COUNTRY_CODE NULL /* "US" */ | |
61 | ||
62 | #ifndef LINUX | |
63 | #define CFG_FW_FILENAME L"WIFI_RAM_CODE" | |
64 | #define CFG_FW_FILENAME_E6 L"WIFI_RAM_CODE_E6" | |
65 | #else | |
66 | #define CFG_FW_FILENAME "WIFI_RAM_CODE" | |
67 | #endif | |
68 | ||
69 | #ifndef CFG_MET_PACKET_TRACE_SUPPORT | |
70 | #define CFG_MET_PACKET_TRACE_SUPPORT 0 /*move to wlan/MAKEFILE*/ | |
71 | #endif | |
72 | ||
73 | /*------------------------------------------------------------------------------ | |
74 | * Driver config | |
75 | *------------------------------------------------------------------------------ | |
76 | */ | |
77 | ||
78 | #ifndef LINUX | |
79 | #define CFG_SUPPORT_CFG_FILE 0 | |
80 | #else | |
81 | #define CFG_SUPPORT_CFG_FILE 1 | |
82 | #endif | |
83 | ||
84 | #define CFG_SUPPORT_802_11D 1 /*!< 1(default): Enable 802.11d | |
85 | 0: Disable */ | |
86 | ||
87 | #define CFG_SUPPORT_RRM 0 /* Radio Reasource Measurement (802.11k) */ | |
88 | #define CFG_SUPPORT_DFS 1 /* DFS (802.11h)*/ | |
89 | ||
90 | #if (CFG_SUPPORT_DFS == 1) /* Add by Enlai*/ | |
91 | #define CFG_SUPPORT_QUIET 0 /* Quiet (802.11h) */ | |
92 | #define CFG_SUPPORT_SPEC_MGMT 1 /* Spectrum Management (802.11h): TPC and DFS */ | |
93 | #else | |
94 | #define CFG_SUPPORT_QUIET 0 /* Quiet (802.11h) */ | |
95 | #define CFG_SUPPORT_SPEC_MGMT 0 /* Spectrum Management (802.11h): TPC and DFS */ | |
96 | #endif | |
97 | ||
98 | #define CFG_SUPPORT_RX_RDG 0 /* 11n feature. RX RDG capability */ | |
99 | #define CFG_SUPPORT_MFB 0 /* 802.11n MCS Feedback responder */ | |
100 | #define CFG_SUPPORT_RX_STBC 1 /* 802.11n RX STBC (1SS) */ | |
101 | #define CFG_SUPPORT_RX_SGI 1 /* 802.11n RX short GI for both 20M and 40M BW */ | |
102 | #define CFG_SUPPORT_RX_HT_GF 1 /* 802.11n RX HT green-field capability */ | |
103 | #define CFG_SUPPORT_BFEE 1 | |
104 | #define CFG_SUPPORT_WAPI 1 | |
105 | ||
106 | /*------------------------------------------------------------------------------ | |
107 | * SLT Option | |
108 | *------------------------------------------------------------------------------ | |
109 | */ | |
110 | #define CFG_SLT_SUPPORT 0 | |
111 | ||
112 | ||
113 | ||
114 | #ifdef NDIS60_MINIPORT | |
115 | #define CFG_NATIVE_802_11 1 | |
116 | ||
117 | #define CFG_TX_MAX_PKT_SIZE 2304 | |
118 | #define CFG_TCP_IP_CHKSUM_OFFLOAD_NDIS_60 0 /* !< 1: Enable TCP/IP header checksum offload | |
119 | 0: Disable */ | |
120 | #define CFG_TCP_IP_CHKSUM_OFFLOAD 0 | |
121 | #define CFG_WHQL_DOT11_STATISTICS 1 | |
122 | #define CFG_WHQL_ADD_REMOVE_KEY 1 | |
123 | #define CFG_WHQL_CUSTOM_IE 1 | |
124 | #define CFG_WHQL_SAFE_MODE_ENABLED 1 | |
125 | ||
126 | #else | |
127 | #define CFG_TCP_IP_CHKSUM_OFFLOAD 1 /* !< 1: Enable TCP/IP header checksum offload | |
128 | 0: Disable */ | |
129 | #define CFG_TCP_IP_CHKSUM_OFFLOAD_NDIS_60 0 | |
130 | #define CFG_TX_MAX_PKT_SIZE 1600 | |
131 | #define CFG_NATIVE_802_11 0 | |
132 | #endif | |
133 | ||
134 | ||
135 | /* 2 Flags for Driver Parameters */ | |
136 | /*------------------------------------------------------------------------------ | |
137 | * Flags for EHPI Interface in Colibri Platform | |
138 | *------------------------------------------------------------------------------ | |
139 | */ | |
140 | #define CFG_EHPI_FASTER_BUS_TIMING 0 /*!< 1: Do workaround for faster bus timing | |
141 | 0(default): Disable */ | |
142 | ||
143 | /*------------------------------------------------------------------------------ | |
144 | * Flags for HIFSYS Interface | |
145 | *------------------------------------------------------------------------------ | |
146 | */ | |
147 | #ifdef _lint | |
148 | #define _HIF_SDIO 1 | |
149 | #endif | |
150 | ||
151 | /* 1(default): Enable SDIO ISR & TX/RX status enhance mode | |
152 | * 0: Disable | |
153 | */ | |
154 | #define CFG_SDIO_INTR_ENHANCE 1 | |
155 | /* 1(default): Enable SDIO ISR & TX/RX status enhance mode | |
156 | * 0: Disable | |
157 | */ | |
158 | #define CFG_SDIO_RX_ENHANCE 0 | |
159 | /* 1: Enable SDIO TX enhance mode(Multiple frames in single BLOCK CMD) | |
160 | * 0(default): Disable | |
161 | */ | |
162 | #define CFG_SDIO_TX_AGG 1 | |
163 | ||
164 | /*!< 0: Disable this limitation | |
165 | * Others: Byte count limitation for a single SDIO write | |
166 | */ | |
167 | #define CFG_SDIO_TX_AGG_LIMIT 0 | |
168 | ||
169 | /* 1: Enable SDIO RX enhance mode(Multiple frames in single BLOCK CMD) | |
170 | * 0(default): Disable | |
171 | */ | |
172 | #define CFG_SDIO_RX_AGG 1 | |
173 | ||
174 | #if (CFG_SDIO_RX_AGG == 1) && (CFG_SDIO_INTR_ENHANCE == 0) | |
175 | #error "CFG_SDIO_INTR_ENHANCE should be 1 once CFG_SDIO_RX_AGG equals to 1" | |
176 | #elif (CFG_SDIO_INTR_ENHANCE == 1 || CFG_SDIO_RX_ENHANCE == 1) && (CFG_SDIO_RX_AGG == 0) | |
177 | #error "CFG_SDIO_RX_AGG should be 1 once CFG_SDIO_INTR_ENHANCE and/or CFG_SDIO_RX_ENHANCE equals to 1" | |
178 | #endif | |
179 | ||
180 | #define CFG_SDIO_MAX_RX_AGG_NUM 0 /*!< Setting the maximum RX aggregation number | |
181 | 0: no limited (16) */ | |
182 | ||
183 | #ifdef WINDOWS_CE | |
184 | #define CFG_SDIO_PATHRU_MODE 1 /*!< 1: Suport pass through (PATHRU) mode | |
185 | 0: Disable */ | |
186 | #else | |
187 | #define CFG_SDIO_PATHRU_MODE 0 /*!< 0: Always disable if WINDOWS_CE is not defined */ | |
188 | #endif | |
189 | ||
190 | #define CFG_MAX_RX_ENHANCE_LOOP_COUNT 3 | |
191 | ||
192 | ||
193 | /*------------------------------------------------------------------------------ | |
194 | * Flags and Parameters for Integration | |
195 | *------------------------------------------------------------------------------ | |
196 | */ | |
197 | #if defined(MT6630) | |
198 | #define CFG_MULTI_ECOVER_SUPPORT 1 | |
199 | ||
200 | #define CFG_ENABLE_CAL_LOG 1 | |
201 | #define CFG_REPORT_RFBB_VERSION 1 | |
202 | ||
203 | #define HW_BSSID_NUM 4 /* HW BSSID number by chip */ | |
204 | #else | |
205 | #error Unknow chip ID. | |
206 | #endif | |
207 | ||
208 | #define CFG_CHIP_RESET_SUPPORT 1 | |
209 | ||
210 | ||
211 | /*------------------------------------------------------------------------------ | |
212 | * Flags for workaround | |
213 | *------------------------------------------------------------------------------ | |
214 | */ | |
215 | ||
216 | /*------------------------------------------------------------------------------ | |
217 | * Flags for driver version | |
218 | *------------------------------------------------------------------------------ | |
219 | */ | |
220 | #define CFG_DRV_OWN_VERSION ((UINT_16)((NIC_DRIVER_MAJOR_VERSION << 8) | \ | |
221 | (NIC_DRIVER_MINOR_VERSION))) | |
222 | #define CFG_DRV_PEER_VERSION ((UINT_16)0x0000) | |
223 | ||
224 | ||
225 | /*------------------------------------------------------------------------------ | |
226 | * Flags for TX path which are OS dependent | |
227 | *------------------------------------------------------------------------------ | |
228 | */ | |
229 | /*! NOTE(Kevin): If the Network buffer is non-scatter-gather like structure(without | |
230 | * NETIF_F_FRAGLIST in LINUX), then we can set CFG_TX_BUFFER_IS_SCATTER_LIST to "0" | |
231 | * for zero copy TX packets. | |
232 | * For scatter-gather like structure, we set "1", driver will do copy frame to | |
233 | * internal coalescing buffer before write it to FIFO. | |
234 | */ | |
235 | #if defined(LINUX) | |
236 | #define CFG_TX_BUFFER_IS_SCATTER_LIST 1 /*!< 1: Do frame copy before write to TX FIFO. | |
237 | Used when Network buffer is scatter-gather. | |
238 | 0(default): Do not copy frame */ | |
239 | #else /* WINDOWS/WINCE */ | |
240 | #define CFG_TX_BUFFER_IS_SCATTER_LIST 1 | |
241 | #endif /* LINUX */ | |
242 | ||
243 | /* Max Tx page count */ | |
244 | #define CFG_MAX_TX_PAGE_COUNT 968 | |
245 | ||
246 | #if CFG_SDIO_TX_AGG || CFG_TX_BUFFER_IS_SCATTER_LIST | |
247 | #define CFG_COALESCING_BUFFER_SIZE (NIC_TX_PAGE_SIZE * CFG_MAX_TX_PAGE_COUNT) | |
248 | #else | |
249 | #define CFG_COALESCING_BUFFER_SIZE (CFG_TX_MAX_PKT_SIZE) | |
250 | #endif /* CFG_SDIO_TX_AGG || CFG_TX_BUFFER_IS_SCATTER_LIST */ | |
251 | ||
252 | /*------------------------------------------------------------------------------ | |
253 | * Flags and Parameters for TX path | |
254 | *------------------------------------------------------------------------------ | |
255 | */ | |
256 | ||
257 | /*! Maximum number of SW TX packet queue */ | |
258 | #define CFG_TX_MAX_PKT_NUM 1024 | |
259 | ||
260 | /*! Maximum number of SW TX CMD packet buffer */ | |
261 | #define CFG_TX_MAX_CMD_PKT_NUM 32 | |
262 | ||
263 | /*! Maximum number of associated STAs */ | |
264 | #define CFG_NUM_OF_STA_RECORD 20 | |
265 | ||
266 | /*------------------------------------------------------------------------------ | |
267 | * Flags and Parameters for RX path | |
268 | *------------------------------------------------------------------------------ | |
269 | */ | |
270 | ||
271 | /*------------------------------------------------------------------------------ | |
272 | * CONFIG_TITLE : Move BA from FW to Driver | |
273 | * OWNER : Puff Wen | |
274 | * Description : Move BA from FW to Driver | |
275 | *------------------------------------------------------------------------------ | |
276 | */ | |
277 | #define CFG_M0VE_BA_TO_DRIVER 0 | |
278 | ||
279 | /*! Max. descriptor number - sync. with firmware */ | |
280 | #if CFG_SLT_SUPPORT | |
281 | #define CFG_NUM_OF_RX0_HIF_DESC 42 | |
282 | #else | |
283 | #define CFG_NUM_OF_RX0_HIF_DESC 16 | |
284 | #endif | |
285 | #define CFG_NUM_OF_RX1_HIF_DESC 2 | |
286 | ||
287 | /*! Max. buffer hold by QM */ | |
288 | #define CFG_NUM_OF_QM_RX_PKT_NUM 512 | |
289 | ||
290 | /*! Maximum number of SW RX packet buffer */ | |
291 | #define CFG_RX_MAX_PKT_NUM ((CFG_NUM_OF_RX0_HIF_DESC + CFG_NUM_OF_RX1_HIF_DESC) * 3 \ | |
292 | + CFG_NUM_OF_QM_RX_PKT_NUM) | |
293 | ||
294 | #define CFG_RX_REORDER_Q_THRESHOLD 8 | |
295 | ||
296 | #ifndef LINUX | |
297 | #define CFG_RX_RETAINED_PKT_THRESHOLD (CFG_NUM_OF_RX0_HIF_DESC + CFG_NUM_OF_RX1_HIF_DESC \ | |
298 | + CFG_NUM_OF_QM_RX_PKT_NUM) | |
299 | #else | |
300 | #define CFG_RX_RETAINED_PKT_THRESHOLD 0 | |
301 | #endif | |
302 | ||
303 | /*! Maximum RX packet size, if exceed this value, drop incoming packet */ | |
304 | /* 7.2.3 Maganement frames */ | |
305 | /* TODO: it should be 4096 under emulation mode */ | |
306 | #define CFG_RX_MAX_PKT_SIZE (28 + 2312 + 12 /*HIF_RX_HEADER_T*/) | |
307 | ||
308 | /*! Minimum RX packet size, if lower than this value, drop incoming packet */ | |
309 | #define CFG_RX_MIN_PKT_SIZE 10 /*!< 802.11 Control Frame is 10 bytes */ | |
310 | ||
311 | #if CFG_SDIO_RX_AGG | |
312 | /* extra size for CS_STATUS and enhanced response */ | |
313 | #define CFG_RX_COALESCING_BUFFER_SIZE ((CFG_NUM_OF_RX0_HIF_DESC + 1) \ | |
314 | * CFG_RX_MAX_PKT_SIZE) | |
315 | #else | |
316 | #define CFG_RX_COALESCING_BUFFER_SIZE (CFG_RX_MAX_PKT_SIZE) | |
317 | #endif | |
318 | ||
319 | /*! RX BA capability */ | |
320 | #define CFG_NUM_OF_RX_BA_AGREEMENTS 8 | |
321 | #if CFG_M0VE_BA_TO_DRIVER | |
322 | #define CFG_RX_BA_MAX_WINSIZE 8 | |
323 | #else | |
324 | #define CFG_RX_BA_MAX_WINSIZE 16 | |
325 | #endif | |
326 | #define CFG_RX_BA_INC_SIZE 4 | |
327 | #define CFG_RX_MAX_BA_TID_NUM 8 | |
328 | #define CFG_RX_REORDERING_ENABLED 1 | |
329 | ||
330 | #define CFG_PF_ARP_NS_MAX_NUM 3 | |
331 | ||
332 | /*------------------------------------------------------------------------------ | |
333 | * Flags and Parameters for CMD/RESPONSE | |
334 | *------------------------------------------------------------------------------ | |
335 | */ | |
336 | #define CFG_RESPONSE_POLLING_TIMEOUT 512 | |
337 | ||
338 | ||
339 | /*------------------------------------------------------------------------------ | |
340 | * Flags and Parameters for Protocol Stack | |
341 | *------------------------------------------------------------------------------ | |
342 | */ | |
343 | /*! Maximum number of BSS in the SCAN list */ | |
344 | #define CFG_MAX_NUM_BSS_LIST 64 | |
345 | ||
346 | #define CFG_MAX_COMMON_IE_BUF_LEN ((1500 * CFG_MAX_NUM_BSS_LIST) / 3) | |
347 | ||
348 | ||
349 | /*! Maximum size of Header buffer of each SCAN record */ | |
350 | #define CFG_RAW_BUFFER_SIZE 1024 | |
351 | ||
352 | ||
353 | /*! Maximum size of IE buffer of each SCAN record */ | |
354 | #define CFG_IE_BUFFER_SIZE 512 | |
355 | ||
356 | /*! Maximum number of STA records */ | |
357 | #define CFG_MAX_NUM_STA_RECORD 32 | |
358 | ||
359 | ||
360 | ||
361 | /*------------------------------------------------------------------------------ | |
362 | * Flags and Parameters for Power management | |
363 | *------------------------------------------------------------------------------ | |
364 | */ | |
365 | #define CFG_ENABLE_FULL_PM 1 | |
366 | #define CFG_ENABLE_WAKEUP_ON_LAN 0 | |
367 | ||
368 | #define CFG_INIT_POWER_SAVE_PROF ENUM_PSP_FAST_SWITCH | |
369 | ||
370 | #define CFG_INIT_ENABLE_PATTERN_FILTER_ARP 0 | |
371 | ||
372 | #define CFG_INIT_UAPSD_AC_BMP 0 /* (BIT(3) | BIT(2) | BIT(1) | BIT(0)) */ | |
373 | ||
374 | /* #define CFG_SUPPORT_WAPI 0 */ | |
375 | #define CFG_SUPPORT_WPS 1 | |
376 | #define CFG_SUPPORT_WPS2 1 | |
377 | ||
378 | /*------------------------------------------------------------------------------ | |
379 | * 802.11i RSN Pre-authentication PMKID cahce maximun number | |
380 | *------------------------------------------------------------------------------ | |
381 | */ | |
382 | #define CFG_MAX_PMKID_CACHE 16 /*!< max number of PMKID cache | |
383 | 16(default) : The Max PMKID cache */ | |
384 | /*------------------------------------------------------------------------------ | |
385 | * Auto Channel Selection Maximun Channel Number | |
386 | *------------------------------------------------------------------------------ | |
387 | */ | |
388 | #define MAX_AUTO_CHAL_NUM 18 | |
389 | ||
390 | ||
391 | /*------------------------------------------------------------------------------ | |
392 | * Flags and Parameters for Ad-Hoc | |
393 | *------------------------------------------------------------------------------ | |
394 | */ | |
395 | #define CFG_INIT_ADHOC_FREQ (2462000) | |
396 | #define CFG_INIT_ADHOC_MODE AD_HOC_MODE_MIXED_11BG | |
397 | #define CFG_INIT_ADHOC_BEACON_INTERVAL (100) | |
398 | #define CFG_INIT_ADHOC_ATIM_WINDOW (0) | |
399 | ||
400 | ||
401 | /*------------------------------------------------------------------------------ | |
402 | * Flags and Parameters for Maximum Scan SSID number | |
403 | *------------------------------------------------------------------------------ | |
404 | */ | |
405 | #define CFG_SCAN_SSID_MAX_NUM (4) | |
406 | #define CFG_SCAN_SSID_MATCH_MAX_NUM (16) | |
407 | ||
408 | /*------------------------------------------------------------------------------ | |
409 | * Flags and Parameters for Load Setup Default | |
410 | *------------------------------------------------------------------------------ | |
411 | */ | |
412 | ||
413 | /*------------------------------------------------------------------------------ | |
414 | * Flags for enable 802.11A Band setting | |
415 | *------------------------------------------------------------------------------ | |
416 | */ | |
417 | ||
418 | /*------------------------------------------------------------------------------ | |
419 | * Flags and Parameters for Interrupt Process | |
420 | *------------------------------------------------------------------------------ | |
421 | */ | |
422 | #if defined(_HIF_SDIO) && defined(WINDOWS_CE) | |
423 | #define CFG_IST_LOOP_COUNT 1 | |
424 | #else | |
425 | #define CFG_IST_LOOP_COUNT 32 | |
426 | #endif /* _HIF_SDIO */ | |
427 | ||
428 | #define CFG_INT_WRITE_CLEAR 0 | |
429 | ||
430 | #if defined(LINUX) | |
431 | #define CFG_DBG_GPIO_PINS 0 /* if 1, use MT6516 GPIO pin to log TX behavior */ | |
432 | #endif | |
433 | ||
434 | /* 2 Flags for Driver Debug Options */ | |
435 | /*------------------------------------------------------------------------------ | |
436 | * Flags of TX Debug Option. NOTE(Kevin): Confirm with SA before modifying following flags. | |
437 | *------------------------------------------------------------------------------ | |
438 | */ | |
439 | #define CFG_DBG_MGT_BUF 1 /*!< 1: Debug statistics usage of MGMT Buffer | |
440 | 0: Disable */ | |
441 | ||
442 | #define CFG_HIF_STATISTICS 0 | |
443 | ||
444 | #define CFG_HIF_RX_STARVATION_WARNING 0 | |
445 | ||
446 | #define CFG_RX_PKTS_DUMP 0 | |
447 | ||
448 | /*------------------------------------------------------------------------------ | |
449 | * Flags of Firmware Download Option. | |
450 | *------------------------------------------------------------------------------ | |
451 | */ | |
452 | #define CFG_ENABLE_FW_DOWNLOAD 1 | |
453 | ||
454 | #define CFG_ENABLE_FW_DOWNLOAD_ACK 1 | |
455 | #define CFG_ENABLE_FW_ENCRYPTION 1 | |
456 | ||
457 | #if defined(MT6630) | |
458 | #define CFG_ENABLE_FW_DIVIDED_DOWNLOAD 1 | |
459 | #else | |
460 | #define CFG_ENABLE_FW_DIVIDED_DOWNLOAD 0 | |
461 | #endif | |
462 | ||
463 | ||
464 | ||
465 | #if defined(MT6630) | |
466 | #define CFG_FW_LOAD_ADDRESS 0x00091400 | |
467 | #define CFG_OVERRIDE_FW_START_ADDRESS 0 | |
468 | #define CFG_FW_START_ADDRESS 0x00091400 | |
469 | #endif | |
470 | ||
471 | /*------------------------------------------------------------------------------ | |
472 | * Flags of Bluetooth-over-WiFi (BT 3.0 + HS) support | |
473 | *------------------------------------------------------------------------------ | |
474 | */ | |
475 | ||
476 | #ifdef LINUX | |
477 | #ifdef CONFIG_X86 | |
478 | #define CFG_ENABLE_BT_OVER_WIFI 0 | |
479 | #else | |
480 | #define CFG_ENABLE_BT_OVER_WIFI 1 | |
481 | #endif | |
482 | #else | |
483 | #define CFG_ENABLE_BT_OVER_WIFI 0 | |
484 | #endif | |
485 | ||
486 | #define CFG_BOW_SEPARATE_DATA_PATH 1 | |
487 | ||
488 | #define CFG_BOW_PHYSICAL_LINK_NUM 4 | |
489 | ||
490 | #define CFG_BOW_LIMIT_AIS_CHNL 1 | |
491 | ||
492 | #define CFG_BOW_SUPPORT_11N 1 | |
493 | ||
494 | #define CFG_BOW_RATE_LIMITATION 1 | |
495 | ||
496 | /*------------------------------------------------------------------------------ | |
497 | * Flags of Wi-Fi Direct support | |
498 | *------------------------------------------------------------------------------ | |
499 | */ | |
500 | #ifdef LINUX | |
501 | #ifdef CONFIG_X86 | |
502 | #define CFG_ENABLE_WIFI_DIRECT 0 | |
503 | #define CFG_SUPPORT_802_11W 0 | |
504 | #else | |
505 | #define CFG_ENABLE_WIFI_DIRECT 1 | |
506 | #define CFG_SUPPORT_802_11W 1 /*!< 0(default): Disable 802.11W */ | |
507 | #endif | |
508 | #else | |
509 | #define CFG_ENABLE_WIFI_DIRECT 0 | |
510 | #define CFG_SUPPORT_802_11W 0 /* Not support at WinXP */ | |
511 | #endif | |
512 | ||
513 | #define CFG_SUPPORT_PERSISTENT_GROUP 0 | |
514 | ||
515 | #define CFG_TEST_WIFI_DIRECT_GO 0 | |
516 | ||
517 | #define CFG_TEST_ANDROID_DIRECT_GO 0 | |
518 | ||
519 | #define CFG_UNITEST_P2P 0 | |
520 | ||
521 | /* | |
522 | * Enable cfg80211 option after Android 2.2(Froyo) is suggested, | |
523 | * cfg80211 on linux 2.6.29 is not mature yet | |
524 | */ | |
525 | #define CFG_ENABLE_WIFI_DIRECT_CFG_80211 1 | |
526 | ||
527 | #define CFG_SUPPORT_HOTSPOT_OPTIMIZATION 0 | |
528 | #define CFG_HOTSPOT_OPTIMIZATION_BEACON_INTERVAL 300 | |
529 | #define CFG_HOTSPOT_OPTIMIZATION_DTIM 1 | |
530 | #define CFG_AUTO_CHANNEL_SEL_SUPPORT 1 | |
531 | ||
532 | ||
533 | /*------------------------------------------------------------------------------ | |
534 | * Configuration Flags (Linux Only) | |
535 | *------------------------------------------------------------------------------ | |
536 | */ | |
537 | #define CFG_SUPPORT_EXT_CONFIG 0 | |
538 | ||
539 | /*------------------------------------------------------------------------------ | |
540 | * Statistics Buffering Mechanism | |
541 | *------------------------------------------------------------------------------ | |
542 | */ | |
543 | #if CFG_SUPPORT_PERFORMANCE_TEST | |
544 | #define CFG_ENABLE_STATISTICS_BUFFERING 1 | |
545 | #else | |
546 | #define CFG_ENABLE_STATISTICS_BUFFERING 0 | |
547 | #endif | |
548 | #define CFG_STATISTICS_VALID_CYCLE 2000 | |
549 | #define CFG_LINK_QUALITY_VALID_PERIOD 500 | |
550 | ||
551 | /*------------------------------------------------------------------------------ | |
552 | * Migration Option | |
553 | *------------------------------------------------------------------------------ | |
554 | */ | |
555 | #define CFG_SUPPORT_ADHOC 1 | |
556 | #define CFG_SUPPORT_AAA 1 | |
557 | ||
558 | #define CFG_SUPPORT_BCM 0 | |
559 | #define CFG_SUPPORT_BCM_BWCS 0 | |
560 | #define CFG_SUPPORT_BCM_BWCS_DEBUG 0 | |
561 | ||
562 | #define CFG_SUPPORT_RDD_TEST_MODE 0 | |
563 | ||
564 | #define CFG_SUPPORT_PWR_MGT 1 | |
565 | ||
566 | #define CFG_ENABLE_HOTSPOT_PRIVACY_CHECK 1 | |
567 | ||
568 | #define CFG_MGMT_FRAME_HANDLING 1 | |
569 | ||
570 | #define CFG_MGMT_HW_ACCESS_REPLACEMENT 0 | |
571 | ||
572 | #if CFG_SUPPORT_PERFORMANCE_TEST | |
573 | ||
574 | #else | |
575 | ||
576 | #endif | |
577 | ||
578 | #define CFG_SUPPORT_AIS_5GHZ 1 | |
579 | #define CFG_SUPPORT_BEACON_CHANGE_DETECTION 0 | |
580 | ||
581 | /*------------------------------------------------------------------------------ | |
582 | * Option for NVRAM and Version Checking | |
583 | *------------------------------------------------------------------------------ | |
584 | */ | |
585 | #define CFG_SUPPORT_NVRAM 1 | |
586 | #define CFG_NVRAM_EXISTENCE_CHECK 1 | |
587 | #define CFG_SW_NVRAM_VERSION_CHECK 1 | |
588 | #define CFG_SUPPORT_NIC_CAPABILITY 1 | |
589 | ||
590 | ||
591 | /*------------------------------------------------------------------------------ | |
592 | * CONFIG_TITLE : Stress Test Option | |
593 | * OWNER : Puff Wen | |
594 | * Description : For stress test only. DO NOT enable it while normal operation | |
595 | *------------------------------------------------------------------------------ | |
596 | */ | |
597 | #define CFG_STRESS_TEST_SUPPORT 0 | |
598 | ||
599 | ||
600 | /*------------------------------------------------------------------------------ | |
601 | * Flags for LINT | |
602 | *------------------------------------------------------------------------------ | |
603 | */ | |
604 | #define LINT_SAVE_AND_DISABLE /*lint -save -e* */ | |
605 | ||
606 | #define LINT_RESTORE /*lint -restore */ | |
607 | ||
608 | #define LINT_EXT_HEADER_BEGIN LINT_SAVE_AND_DISABLE | |
609 | ||
610 | #define LINT_EXT_HEADER_END LINT_RESTORE | |
611 | ||
612 | /*------------------------------------------------------------------------------ | |
613 | * Flags of Features | |
614 | *------------------------------------------------------------------------------ | |
615 | */ | |
616 | ||
617 | #define CFG_SUPPORT_TDLS 1 | |
618 | ||
619 | #define CFG_SUPPORT_QOS 1 /* Enable/disable QoS TX, AMPDU */ | |
620 | #define CFG_SUPPORT_AMPDU_TX 1 | |
621 | #define CFG_SUPPORT_AMPDU_RX 1 | |
622 | #define CFG_SUPPORT_TSPEC 0 /* Enable/disable TS-related Action frames handling */ | |
623 | #define CFG_SUPPORT_UAPSD 1 | |
624 | #define CFG_SUPPORT_UL_PSMP 0 | |
625 | ||
626 | #define CFG_SUPPORT_ROAMING 1 /* Roaming System */ | |
627 | #define CFG_SUPPORT_SWCR 1 | |
628 | ||
629 | #define CFG_SUPPORT_ANTI_PIRACY 1 | |
630 | ||
631 | #define CFG_SUPPORT_OSC_SETTING 1 | |
632 | ||
633 | #define CFG_SUPPORT_P2P_RSSI_QUERY 0 | |
634 | ||
635 | #define CFG_SHOW_MACADDR_SOURCE 1 | |
636 | ||
637 | #define CFG_SUPPORT_802_11V 0 /* Support 802.11v Wireless Network Management */ | |
638 | #define CFG_SUPPORT_802_11V_TIMING_MEASUREMENT 0 | |
639 | #if (CFG_SUPPORT_802_11V_TIMING_MEASUREMENT == 1) && (CFG_SUPPORT_802_11V == 0) | |
640 | #error "CFG_SUPPORT_802_11V should be 1 once CFG_SUPPORT_802_11V_TIMING_MEASUREMENT equals to 1" | |
641 | #endif | |
642 | #if (CFG_SUPPORT_802_11V == 0) | |
643 | #define WNM_UNIT_TEST 0 | |
644 | #endif | |
645 | ||
646 | #define CFG_DRIVER_COMPOSE_ASSOC_REQ 1 | |
647 | #define CFG_SUPPORT_802_11AC 1 | |
648 | #define CFG_STRICT_CHECK_CAPINFO_PRIVACY 0 | |
649 | ||
650 | #define CFG_SUPPORT_WFD 1 | |
651 | #define CFG_SUPPORT_WFD_COMPOSE_IE 1 | |
652 | ||
653 | #define CFG_SUPPORT_HOTSPOT_WPS_MANAGER 1 | |
654 | #define CFG_SUPPORT_NFC_BEAM_PLUS 1 | |
655 | ||
656 | /* Refer to CONFIG_MTK_STAGE_SCAN */ | |
657 | #define CFG_MTK_STAGE_SCAN 0 | |
658 | ||
659 | #define CFG_SUPPORT_MULTITHREAD 1 /* Enable driver support multicore */ | |
660 | ||
661 | #define CFG_SUPPORT_MTK_SYNERGY 1 | |
662 | /*------------------------------------------------------------------------------ | |
663 | * Flags of bus error tolerance | |
664 | *------------------------------------------------------------------------------ | |
665 | */ | |
666 | #define CFG_FORCE_RESET_UNDER_BUS_ERROR 0 | |
667 | ||
668 | /*------------------------------------------------------------------------------ | |
669 | * Build Date Code Integration | |
670 | *------------------------------------------------------------------------------ | |
671 | */ | |
672 | #define CFG_SUPPORT_BUILD_DATE_CODE 0 | |
673 | ||
674 | /*------------------------------------------------------------------------------ | |
675 | * Flags of SDIO test pattern support | |
676 | *------------------------------------------------------------------------------ | |
677 | */ | |
678 | #define CFG_SUPPORT_SDIO_READ_WRITE_PATTERN 1 | |
679 | ||
680 | /*------------------------------------------------------------------------------ | |
681 | * Flags of AIS passive scan support | |
682 | *------------------------------------------------------------------------------ | |
683 | */ | |
684 | #define CFG_SUPPORT_AIS_PASSIVE_SCAN 0 | |
685 | ||
686 | /*------------------------------------------------------------------------------ | |
687 | * Flags of Workaround | |
688 | *------------------------------------------------------------------------------ | |
689 | */ | |
690 | #define CFG_ENABLE_READ_EXTRA_4_BYTES 1 | |
691 | ||
692 | /*------------------------------------------------------------------------------ | |
693 | * Flags of 5G NVRAM SUPPORT | |
694 | *------------------------------------------------------------------------------ | |
695 | */ | |
696 | #define CFG_SUPPORT_NVRAM_5G 1 | |
697 | ||
698 | /*------------------------------------------------------------------------------ | |
699 | * Flags of Packet Lifetime Profiling Mechanism | |
700 | *------------------------------------------------------------------------------ | |
701 | */ | |
702 | #define CFG_ENABLE_PKT_LIFETIME_PROFILE 1 | |
703 | #define CFG_PRINT_PKT_LIFETIME_PROFILE 0 | |
704 | ||
705 | #define CFG_ENABLE_PER_STA_STATISTICS 1 | |
706 | ||
707 | /*------------------------------------------------------------------------------ | |
708 | * Flags for prepare the FW compile flag | |
709 | *------------------------------------------------------------------------------ | |
710 | */ | |
711 | #define COMPILE_FLAG0_GET_STA_LINK_STATUS (1<<0) | |
712 | #define COMPILE_FLAG0_WFD_ENHANCEMENT_PROTECT (1<<1) | |
713 | ||
714 | ||
715 | /*------------------------------------------------------------------------------ | |
716 | * Flags of Batch Scan SUPPORT | |
717 | *------------------------------------------------------------------------------ | |
718 | */ | |
719 | #define CFG_SUPPORT_BATCH_SCAN 1 | |
720 | #define CFG_BATCH_MAX_MSCAN 2 | |
721 | ||
722 | ||
723 | /******************************************************************************* | |
724 | * D A T A T Y P E S | |
725 | ******************************************************************************** | |
726 | */ | |
727 | ||
728 | /******************************************************************************* | |
729 | * P U B L I C D A T A | |
730 | ******************************************************************************** | |
731 | */ | |
732 | ||
733 | /******************************************************************************* | |
734 | * P R I V A T E D A T A | |
735 | ******************************************************************************** | |
736 | */ | |
737 | ||
738 | /******************************************************************************* | |
739 | * M A C R O S | |
740 | ******************************************************************************** | |
741 | */ | |
742 | ||
743 | /******************************************************************************* | |
744 | * F U N C T I O N D E C L A R A T I O N S | |
745 | ******************************************************************************** | |
746 | */ | |
747 | ||
748 | /******************************************************************************* | |
749 | * F U N C T I O N S | |
750 | ******************************************************************************** | |
751 | */ | |
752 | #endif /* _CONFIG_H */ |