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