1CONFIG_CNSS_PEACH := y
2CONFIG_CNSS_KIWI := y
3CONFIG_CNSS_KIWI_V2 := y
4
5#Enable 11BE EHT
6CONFIG_WLAN_FEATURE_11BE := y
7
8# Max Sta Vdev Config
9CONFIG_CFG_MAX_STA_VDEVS := 4
10
11#Enable 11BE MLO
12CONFIG_WLAN_FEATURE_11BE_MLO := y
13
14#BMISS offload max vdev config
15CONFIG_CFG_BMISS_OFFLOAD_MAX_VDEV := 4
16
17#Max MLD dev context
18CONFIG_WLAN_UMAC_MLO_MAX_DEV := 3
19
20#Chip version
21CONFIG_CHIP_VERSION := 1
22
23#DP configs
24CONFIG_WLAN_DP_DISABLE_TCL_CMD_CRED_SRNG := y
25CONFIG_WLAN_DP_DISABLE_TCL_STATUS_SRNG := y
26
27# Enable separate FW image
28CONFIG_GET_DRIVER_MODE := y
29
30CONFIG_QCA_SUPPORT_TX_MIN_RATES_FOR_SPECIAL_FRAMES := y
31
32#Enable COEX feature
33CONFIG_FEATURE_COEX := y
34
35#Enable DBAM feature
36CONFIG_WLAN_FEATURE_COEX_DBAM := y
37
38CONFIG_DP_TRAFFIC_END_INDICATION := y
39
40#Enable Constrained Application Protocol feature
41CONFIG_WLAN_FEATURE_COAP := y
42
43#Enable TSF read using scratch register
44CONFIG_QCA_GET_TSF_VIA_REG := y
45
46CONFIG_HANDLE_RX_REROUTE_ERR := y
47
48#Enable DP Bus Vote
49CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH := y
50
51#Enable KIWI based Configs
52ifeq ($(CONFIG_CNSS_EMULATION), y)
53	CONFIG_QCA_WIFI_EMULATION := y
54	CONFIG_SAP_MULTI_LINK_EMULATION := y
55endif
56CONFIG_EMULATION_2_0 := y
57CONFIG_DIRECT_BUF_RX_ENABLE := y
58CONFIG_WMI_DBR_SUPPORT := y
59CONFIG_WLAN_CFR_ENABLE := y
60CONFIG_WLAN_ENH_CFR_ENABLE := y
61CONFIG_BERYLLIUM := y
62CONFIG_WLAN_FEATURE_11AX := y
63CONFIG_WLAN_FEATURE_SR := y
64CONFIG_OBSS_PD := y
65CONFIG_WLAN_TWT_SAP_STA_COUNT := y
66CONFIG_WLAN_TWT_SAP_PDEV_COUNT := y
67CONFIG_WLAN_FEATURE_DFS_OFFLOAD := y
68CONFIG_DP_BE_WAR := y
69CONFIG_SCALE_INCLUDES := y
70CONFIG_HASTINGS_BT_WAR := y
71CONFIG_WDI3_IPA_OVER_GSI := y
72CONFIG_WLAN_FEATURE_LRO_CTX_IN_CB := y
73CONFIG_PCIE_GEN_SWITCH := y
74CONFIG_ATH_SUPPORT_SPECTRAL := n
75CONFIG_DP_FEATURE_HW_COOKIE_CONVERSION := y
76CONFIG_DP_HW_COOKIE_CONVERT_EXCEPTION := y
77CONFIG_WLAN_FEATURE_NEAR_FULL_IRQ := y
78CONFIG_WLAN_SYSFS_DP_STATS := y
79CONFIG_DP_USE_REDUCED_PEER_ID_FIELD_WIDTH := y
80CONFIG_DISABLE_STATUS_RING_TIMER_WAR := y
81CONFIG_CE_DISABLE_SRNG_TIMER_IRQ := y
82CONFIG_TX_ADDR_INDEX_SEARCH := y
83CONFIG_DP_CON_MON_MSI_ENABLED := y
84CONFIG_DEVICE_FORCE_WAKE_ENABLE :=y
85CONFIG_HIF_REG_WINDOW_SUPPORT :=y
86CONFIG_WINDOW_REG_PLD_LOCK_ENABLE := y
87CONFIG_TX_MULTI_TCL := y
88CONFIG_OFDM_SCRAMBLER_SEED := y
89CONFIG_WLAN_RX_MON_PARSE_CMN_USER_INFO := y
90CONFIG_WLAN_FEATURE_WMI_DIAG_OVER_CE7 := y
91CONFIG_WLAN_TSF_UPLINK_DELAY := y
92CONFIG_WLAN_SYNC_TSF_PLUS := y
93CONFIG_WLAN_SYNC_TSF_TIMER := y
94CONFIG_WIFI_POS_PASN := y
95CONFIG_WLAN_DP_SRNG_USAGE_WM_TRACKING := y
96CONFIG_WLAN_FEATURE_PEER_TXQ_FLUSH_CONF := y
97CONFIG_DP_PKT_STATS_PER_LMAC := y
98CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
99CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
100CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
101CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE := 2048
102CONFIG_DP_RX_REFILL_THRD_THRESHOLD := 512
103CONFIG_NO_RX_PKT_HDR_TLV := y
104ifeq ($(CONFIG_DP_CON_MON_MSI_ENABLED), y)
105	CONFIG_DP_CON_MON_MSI_SKIP_SET := y
106endif
107CONFIG_QCA_WIFI_MONITOR_MODE_NO_MSDU_START_TLV_SUPPORT := y
108CONFIG_WLAN_FEATURE_MCC_QUOTA := y
109CONFIG_QCACLD_FEATURE_GAP_LL_PS_MODE := y
110CONFIG_MON_ENABLE_DROP_FOR_NON_MON_PMAC := y
111CONFIG_DP_WAR_INVALID_FIRST_MSDU_FLAG := y
112#Enable 6 GHz Band
113CONFIG_BAND_6GHZ := y
114CONFIG_RX_FISA := y
115CONFIG_MORE_TX_DESC := y
116
117#Enable Berrylium based Configs
118CONFIG_FIX_TXDMA_LIMITATION := y
119CONFIG_PEER_PROTECTED_ACCESS := y
120CONFIG_SERIALIZE_QUEUE_SETUP := y
121CONFIG_DP_RX_PKT_NO_PEER_DELIVER := y
122CONFIG_DP_RX_DROP_RAW_FRM := y
123CONFIG_FEATURE_ALIGN_STATS_FROM_DP := y
124CONFIG_DP_RX_SPECIAL_FRAME_NEED := y
125CONFIG_FEATURE_STATS_EXT_V2 := y
126CONFIG_WLAN_FEATURE_DP_RX_THREADS := y
127CONFIG_WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT := y
128CONFIG_FEATURE_NO_DBS_INTRABAND_MCC_SUPPORT := y
129CONFIG_HAL_DISABLE_NON_BA_2K_JUMP_ERROR := y
130CONFIG_ENABLE_HAL_SOC_STATS := y
131CONFIG_ENABLE_HAL_REG_WR_HISTORY := y
132CONFIG_MON_ENABLE_DROP_FOR_MAC := y
133CONFIG_PCI_LINK_STATUS_SANITY := y
134CONFIG_DDP_MON_RSSI_IN_DBM := y
135CONFIG_SYSTEM_PM_CHECK := y
136CONFIG_DISABLE_EAPOL_INTRABSS_FWD := y
137CONFIG_FEATURE_RX_LINKSPEED_ROAM_TRIGGER := y
138CONFIG_FEATURE_AST := n
139CONFIG_WIFI_MONITOR_SUPPORT := y
140CONFIG_QCA_MONITOR_PKT_SUPPORT := y
141CONFIG_MONITOR_MODULARIZED_ENABLE := n
142#Flag to enable Legacy Fast Roaming3(LFR3)
143CONFIG_QCACLD_WLAN_LFR3 := y
144CONFIG_DP_HW_TX_DELAY_STATS_ENABLE := y
145CONFIG_WLAN_FEATURE_DP_EVENT_HISTORY := y
146CONFIG_DYNAMIC_RX_AGGREGATION := y
147CONFIG_WLAN_SUPPORT_DATA_STALL := y
148CONFIG_WLAN_DP_PER_RING_TYPE_CONFIG := y
149CONFIG_WLAN_CE_INTERRUPT_THRESHOLD_CONFIG := y
150#Enable WMI TX/RX over QMI
151CONFIG_WMI_SEND_RECV_QMI := y
152CONFIG_WLAN_DP_PENDING_MEM_FLUSH := y
153CONFIG_WLAN_SKIP_BAR_UPDATE := y
154CONFIG_TX_MULTIQ_PER_AC := y
155CONFIG_WLAN_TRACEPOINTS := y
156ENABLE_CE4_COMP_DISABLE_HTT_HTC_MISC_LIST := y
157# Flag to enable FW based TX Flow control
158CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
159CONFIG_RX_DEFRAG_DO_NOT_REINJECT := y
160CONFIG_MARK_ICMP_REQ_TO_FW := y
161CONFIG_IPA_SET_RESET_TX_DB_PA := y
162# Enable fw stats version 2
163CONFIG_AR900B := y
164# Enable Shadow V3 for all Beryllium platform
165CONFIG_SHADOW_V3 := y
166#Disable pktlog feature for Beryllium based target
167CONFIG_FEATURE_PKTLOG := n
168#Disable packet log
169CONFIG_REMOVE_PKT_LOG := y
170#Customize DSCP_to-UP map based on RFC8325
171CONFIG_WLAN_CUSTOM_DSCP_UP_MAP := y
172CONFIG_WAPI_BIG_ENDIAN := y
173CONFIG_WLAN_FEATURE_BMI := n
174CONFIG_LL_DP_SUPPORT := y
175CONFIG_LL_DP_SUPPORT := y
176#Define the legacy pktlog
177CONFIG_PKTLOG_LEGACY := n
178# Enable VERBOSE debug INI mechanism
179CONFIG_VERBOSE_DEBUG := y
180CONFIG_RX_DESC_SANITY_WAR := y
181ifeq ($(CONFIG_PCI_MSM), $(filter $(CONFIG_PCI_MSM), m y))
182	CONFIG_FEATURE_HAL_DELAYED_REG_WRITE := y
183endif
184
185CONFIG_KIWI_HEADERS_DEF := y
186CONFIG_QCA_WIFI_KIWI := y
187
188CONFIG_QCA_WIFI_QCA8074 := y
189CONFIG_QCA_WIFI_QCA8074_VP := y
190CONFIG_DP_INTR_POLL_BASED := y
191CONFIG_TX_PER_PDEV_DESC_POOL := y
192CONFIG_DP_TRACE := y
193CONFIG_FEATURE_TSO := y
194CONFIG_FEATURE_FORCE_WAKE := y
195CONFIG_DP_LFR := y
196CONFIG_DUP_RX_DESC_WAR := y
197CONFIG_HTT_PADDR64 := y
198CONFIG_RX_OL := y
199CONFIG_TX_TID_OVERRIDE := y
200CONFIG_DP_TXRX_SOC_ATTACH := y
201ifeq ($(CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH), y)
202	CONFIG_WLAN_CLD_PM_QOS := y
203endif
204CONFIG_WLAN_CLD_DEV_PM_QOS := y
205CONFIG_DISABLE_DP_STATS := n
206CONFIG_MAX_ALLOC_PAGE_SIZE := y
207CONFIG_REO_DESC_DEFER_FREE := y
208CONFIG_RXDMA_ERR_PKT_DROP := y
209CONFIG_DELIVERY_TO_STACK_STATUS_CHECK := y
210CONFIG_WLAN_TRACE_HIDE_MAC_ADDRESS := n
211CONFIG_WLAN_TRACE_HIDE_SSID := n
212CONFIG_DP_MEM_PRE_ALLOC := y
213CONFIG_FEATURE_GPIO_CFG := y
214ifeq ($(CONFIG_FEATURE_TSO), y)
215	CONFIG_FEATURE_TSO_STATS := y
216	CONFIG_TSO_DEBUG_LOG_ENABLE := y
217endif
218ifeq ($(CONFIG_DISABLE_DP_STATS), y)
219	CONFIG_FEATURE_TSO_STATS := n
220endif
221
222ifeq ($(CONFIG_CNSS2), m)
223	CONFIG_CNSS2_MODULE := y
224endif
225ifeq ($(CONFIG_CNSS_GENL), m)
226	CONFIG_CNSS_GENL_MODULE := y
227endif
228ifeq ($(CONFIG_CNSS_UTILS), m)
229	CONFIG_CNSS_UTILS_MODULE := y
230endif
231ifeq ($(CONFIG_WCNSS_MEM_PRE_ALLOC), m)
232	CONFIG_WCNSS_MEM_PRE_ALLOC_MODULE := y
233endif
234
235ifdef CONFIG_IPCIE_FW_SIM
236	CONFIG_ROME_IF = ipci
237	CONFIG_PLD_IPCI_ICNSS_FLAG := n
238endif
239
240ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS_MODULE) $(CONFIG_CNSS2) $(CONFIG_CNSS2_MODULE)))
241ifndef CONFIG_ROME_IF
242	#use pci as default interface
243ifndef CONFIG_IPCIE_FW_SIM
244	CONFIG_ROME_IF = pci
245endif
246endif
247endif
248
249# Make WLAN as open-source driver by default
250WLAN_OPEN_SOURCE := y
251
252ifneq ($(DEVELOPER_DISABLE_BUILD_TIMESTAMP), y)
253ifneq ($(WLAN_DISABLE_BUILD_TAG), y)
254CONFIG_BUILD_TAG := y
255endif
256endif
257
258CONFIG_WLAN_FEATURE_MBSSID := y
259CONFIG_WLAN_FEATURE_P2P_P2P_STA := y
260
261#Flag to enable Dynamic MAC address update
262CONFIG_WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE := y
263
264#Flag to enable hdd memory dump feature
265CONFIG_FEATURE_MEMDUMP_ENABLE := y
266
267#Flag to enable/disable WLAN D0-WOW
268ifeq ($(CONFIG_PCI_MSM), y)
269ifeq ($(CONFIG_HIF_PCI), y)
270CONFIG_FEATURE_WLAN_D0WOW := y
271endif
272endif
273
274ifneq ($(CONFIG_MOBILE_ROUTER), y)
275#Flag to enable TDLS feature
276CONFIG_QCOM_TDLS := y
277
278CONFIG_WLAN_SYSFS := y
279
280CONFIG_THERMAL_STATS_SUPPORT := y
281
282ifeq ($(CONFIG_WLAN_SYSFS), y)
283	CONFIG_WLAN_SYSFS_STA_INFO := y
284	CONFIG_WLAN_SYSFS_CHANNEL := y
285	CONFIG_WLAN_SYSFS_FW_MODE_CFG := y
286	CONFIG_WLAN_SYSFS_MEM_STATS := y
287	CONFIG_WLAN_REASSOC := y
288	CONFIG_WLAN_SYSFS_CONNECT_INFO := y
289	CONFIG_WLAN_SCAN_DISABLE := y
290	CONFIG_WLAN_SYSFS_DCM := y
291	CONFIG_WLAN_WOW_ITO := y
292	CONFIG_WLAN_WOWL_ADD_PTRN := y
293	CONFIG_WLAN_WOWL_DEL_PTRN := y
294	CONFIG_WLAN_SYSFS_TX_STBC := y
295	CONFIG_WLAN_SYSFS_WLAN_DBG := y
296	CONFIG_WLAN_TXRX_FW_ST_RST := y
297	CONFIG_WLAN_GTX_BW_MASK := y
298	CONFIG_WLAN_SYSFS_SCAN_CFG := y
299	CONFIG_WLAN_SYSFS_MONITOR_MODE_CHANNEL := y
300	CONFIG_WLAN_SYSFS_RADAR := y
301	CONFIG_WLAN_SYSFS_RTS_CTS := y
302	CONFIG_WLAN_SYSFS_HE_BSS_COLOR := y
303	CONFIG_WLAN_TXRX_FW_STATS := y
304	CONFIG_WLAN_TXRX_STATS := y
305	CONFIG_WLAN_SYSFS_DP_TRACE := y
306	CONFIG_WLAN_SYSFS_STATS := y
307ifeq ($(CONFIG_QCOM_TDLS), y)
308	CONFIG_WLAN_SYSFS_TDLS_PEERS := y
309endif
310	CONFIG_WLAN_SYSFS_TEMPERATURE := y
311	CONFIG_WLAN_THERMAL_CFG := y
312	CONFIG_WLAN_DL_MODES := y
313	CONFIG_WLAN_DUMP_IN_PROGRESS := n
314	CONFIG_WLAN_BMISS := y
315	CONFIG_WLAN_FREQ_LIST := y
316	CONFIG_DP_PKT_ADD_TIMESTAMP := y
317	CONFIG_WLAN_SYSFS_RANGE_EXT := y
318	# Enable EHT rate sysfs entry
319	CONFIG_WLAN_SYSFS_EHT_RATE := y
320	CONFIG_WLAN_SYSFS_LOG_BUFFER := y
321endif
322CONFIG_WLAN_PDEV_VDEV_SEND_MULTI_PARAM := y
323CONFIG_WLAN_POWER_DEBUG := y
324#Enable Beacon Reception Stats
325CONFIG_FEATURE_BECN_STATS := y
326#Flag to enable NAN
327CONFIG_QCACLD_FEATURE_NAN := y
328endif
329
330CONFIG_WLAN_FEATURE_MEDIUM_ASSESS := y
331
332CONFIG_QCACLD_FEATURE_GREEN_AP := y
333
334#Flag to enable pre cac feature
335CONFIG_FEATURE_WLAN_PRE_CAC := y
336
337#Flag to enable Android Packet Filtering
338CONFIG_QCACLD_FEATURE_APF := y
339
340#Flag to enable SARv1 -> SARv2 conversion
341CONFIG_WLAN_FEATURE_SARV1_TO_SARV2 := y
342
343#Flag to enable get firmware state
344CONFIG_QCACLD_FEATURE_FW_STATE := y
345
346#Flag to enable set coex configuration
347CONFIG_QCACLD_FEATURE_COEX_CONFIG := n
348
349#Flag to enable Fast Transition (11r) feature
350CONFIG_QCOM_VOWIFI_11R := y
351
352#Flag to enable disable ACTION OUI feature
353CONFIG_WLAN_FEATURE_ACTION_OUI := y
354
355#Flag to enable Adaptive 11r feature
356CONFIG_ADAPTIVE_11R := y
357
358#Flag to enable sae single pmk feature
359CONFIG_SAE_SINGLE_PMK := y
360
361#Flag to enable/disable multi client low latency feature support
362CONFIG_MULTI_CLIENT_LL_SUPPORT := y
363
364#Flag to enable/disable vendor handoff feature support
365CONFIG_WLAN_VENDOR_HANDOFF_CONTROL := y
366
367#Flag to enable mscs feature
368CONFIG_FEATURE_MSCS := y
369
370#Flag to enable FILS Feature (11ai)
371CONFIG_WLAN_FEATURE_FILS := y
372ifneq ($(CONFIG_QCA_CLD_WLAN),)
373	ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS_MODULE) $(CONFIG_CNSS2) \
374			$(CONFIG_CNSS2_MODULE) $(CONFIG_ICNSS) $(CONFIG_ICNSS_MODULE) \
375			$(CONFIG_ICNSS2) $(CONFIG_ICNSS2_MODULE)))
376	#Flag to enable LTE CoEx feature
377	CONFIG_QCOM_LTE_COEX := y
378	ifneq ($(CONFIG_MOBILE_ROUTER), y)
379		CONFIG_WLAN_FEATURE_LPSS := y
380	endif
381	endif
382endif
383
384CONFIG_FEATURE_EPPING := y
385
386#Flag to enable offload packets feature
387CONFIG_WLAN_OFFLOAD_PACKETS := y
388
389#enable TSF get feature
390CONFIG_WLAN_SYNC_TSF := y
391
392#Flag to enable SAE
393CONFIG_WLAN_FEATURE_SAE := y
394
395#Flag to enable DISA
396CONFIG_WLAN_FEATURE_DISA := y
397
398#Flag to enable FIPS
399CONFIG_WLAN_FEATURE_FIPS := y
400
401# Flag to enable NAPI
402CONFIG_WLAN_NAPI := y
403CONFIG_WLAN_NAPI_DEBUG := n
404
405CONFIG_POWER_MANAGEMENT_OFFLOAD := y
406
407# Flag to enable LFR Subnet Detection
408CONFIG_LFR_SUBNET_DETECTION := y
409
410# Flag to enable MCC to SCC switch feature
411CONFIG_MCC_TO_SCC_SWITCH := y
412
413ifeq ($(CONFIG_SLUB_DEBUG_ON), y)
414	# Enable Obj Mgr Degug services if slub build
415	CONFIG_WLAN_OBJMGR_DEBUG:= y
416	CONFIG_LOCK_STATS_ON:= y
417	CONFIG_WLAN_OBJMGR_REF_ID_TRACE := y
418endif
419
420
421ifeq ($(CONFIG_ROME_IF),pci)
422ifneq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
423ifneq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
424CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY := y
425endif
426endif
427endif
428
429#Whether have QMI support
430CONFIG_QMI_SUPPORT := y
431
432# As per target team, build is done as follows:
433# Defconfig : build with default flags
434# Slub      : defconfig  + CONFIG_SLUB_DEBUG=y +
435#	      CONFIG_SLUB_DEBUG_ON=y + CONFIG_PAGE_POISONING=y
436# Perf      : Using appropriate msmXXXX-perf_defconfig
437#
438# Shipment builds (user variants) should not have any debug feature
439# enabled. This is identified using 'TARGET_BUILD_VARIANT'. Slub builds
440# are identified using the CONFIG_SLUB_DEBUG_ON configuration. Since
441# there is no other way to identify defconfig builds, QCOMs internal
442# representation of perf builds (identified using the string 'perf'),
443# is used to identify if the build is a slub or defconfig one. This
444# way no critical debug feature will be enabled for perf and shipment
445# builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT
446# config.
447ifneq ($(TARGET_BUILD_VARIANT),user)
448	CONFIG_FEATURE_PKTLOG := y
449	CONFIG_WLAN_DEBUG_CRASH_INJECT := y
450endif
451
452#Enable WLAN/Power debugfs feature only if debug_fs is enabled
453ifeq ($(CONFIG_DEBUG_FS), y)
454       # Flag to enable debugfs. Depends on CONFIG_DEBUG_FS in kernel
455       # configuration.
456       CONFIG_WLAN_DEBUGFS := y
457
458       # Flag to enable streamfs. Depends on CONFIG_DEBUG_FS and
459       # CONFIG_RELAY in kernel configuration.
460ifeq ($(CONFIG_RELAY), y)
461       CONFIG_WLAN_STREAMFS := y
462endif
463endif
464
465ifeq ($(CONFIG_WLAN_DEBUGFS), y)
466       CONFIG_WLAN_MWS_INFO_DEBUGFS := y
467       CONFIG_WLAN_FEATURE_MIB_STATS := y
468endif
469
470#Whether to build debug version
471CONFIG_WLAN_DEBUG_VERSION := y
472
473#Enable this flag to build driver in diag version
474CONFIG_WLAN_DIAG_VERSION := y
475
476ifeq ($(CONFIG_SLUB_DEBUG), y)
477	PANIC_ON_BUG := y
478	WLAN_WARN_ON_ASSERT := y
479else ifeq ($(CONFIG_PERF_DEBUG), y)
480	PANIC_ON_BUG := y
481	WLAN_WARN_ON_ASSERT := y
482else
483	PANIC_ON_BUG := n
484	WLAN_WARN_ON_ASSERT := n
485endif
486
487# Compile all log levels by default
488CONFIG_WLAN_LOG_FATAL := y
489CONFIG_WLAN_LOG_ERROR := y
490CONFIG_WLAN_LOG_WARN := y
491CONFIG_WLAN_LOG_INFO := y
492CONFIG_WLAN_LOG_DEBUG := y
493CONFIG_WLAN_LOG_ENTER := y
494CONFIG_WLAN_LOG_EXIT := y
495
496#Enable OL debug and wmi unified functions
497CONFIG_ATH_PERF_PWR_OFFLOAD := y
498
499#Enable 11AC TX
500ifeq ($(CONFIG_ROME_IF),pci)
501	CONFIG_ATH_11AC_TXCOMPACT := y
502endif
503
504#Enable PCI specific APIS (dma, etc)
505ifeq ($(CONFIG_ROME_IF),pci)
506	CONFIG_HIF_PCI := y
507endif
508
509# enable/disable feature flags based upon mobile router profile
510ifeq ($(CONFIG_MOBILE_ROUTER), y)
511CONFIG_FEATURE_WLAN_MCC_TO_SCC_SWITCH := y
512CONFIG_FEATURE_WLAN_AUTO_SHUTDOWN := y
513CONFIG_FEATURE_WLAN_AP_AP_ACS_OPTIMIZE := y
514CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME := y
515CONFIG_MDM_PLATFORM := y
516CONFIG_FEATURE_HAL_DELAYED_REG_WRITE := n
517ifneq ($(CONFIG_ARCH_SDXPRAIRIE), y)
518ifneq ($(CONFIG_ARCH_SA515), y)
519ifneq ($(CONFIG_ARCH_SDXLEMUR), y)
520CONFIG_FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE := y
521endif
522endif
523endif
524CONFIG_FEATURE_AP_MCC_CH_AVOIDANCE := y
525CONFIG_FEATURE_STA_MODE_VOTE_LINK := y
526else
527CONFIG_QCOM_ESE := y
528CONFIG_WLAN_OPEN_P2P_INTERFACE := y
529CONFIG_WLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY := y
530endif
531
532#Enable power management suspend/resume functionality to PCI
533CONFIG_ATH_BUS_PM := y
534
535#Enable FLOWMAC module support
536CONFIG_ATH_SUPPORT_FLOWMAC_MODULE := n
537
538#Enable spectral support
539CONFIG_ATH_SUPPORT_SPECTRAL := n
540
541#Enable WDI Event support
542CONFIG_WDI_EVENT_ENABLE := y
543ifeq ($(CONFIG_REMOVE_PKT_LOG), y)
544ifeq ($(CONFIG_WLAN_ENH_CFR_ENABLE), n)
545CONFIG_WDI_EVENT_ENABLE := n
546endif
547endif
548
549#Enable the type_specific_data in the ath_pktlog_arg
550ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
551ifeq ($(CONFIG_BERYLLIUM), y)
552CONFIG_PKTLOG_HAS_SPECIFIC_DATA := y
553endif
554endif
555
556#Endianness selection
557CONFIG_LITTLE_ENDIAN := y
558
559#Enable TX reclaim support
560CONFIG_TX_CREDIT_RECLAIM_SUPPORT := n
561
562#Enable FTM support
563CONFIG_QCA_WIFI_FTM := y
564
565ifeq ($(CONFIG_QCA_WIFI_FTM), y)
566
567ifeq ($(CONFIG_NL80211_TESTMODE), y)
568	QCA_WIFI_FTM_NL80211 :=y
569else
570	QCA_WIFI_FTM_NL80211 :=n
571endif
572	CONFIG_LINUX_QCMBR :=y
573
574else
575	QCA_WIFI_FTM_NL80211 :=n
576	CONFIG_LINUX_QCMBR :=n
577endif
578
579
580#Enable Checksum Offload
581CONFIG_CHECKSUM_OFFLOAD := y
582
583#Enable GTK offload
584CONFIG_GTK_OFFLOAD := y
585
586#Set this to 1 to catch erroneous Target accesses during debug.
587CONFIG_ATH_PCIE_ACCESS_DEBUG := n
588
589#Enable IPA offload for MDM platforms
590ifeq ($(CONFIG_MDM_PLATFORM), y)
591ifeq ($(CONFIG_IPA), y)
592CONFIG_IPA_OFFLOAD := y
593endif
594ifeq ($(CONFIG_IPA3), y)
595CONFIG_IPA_OFFLOAD := y
596endif
597ifeq ($(CONFIG_IPA3), m)
598CONFIG_IPA_OFFLOAD := y
599endif
600else
601CONFIG_IPA_OFFLOAD := n
602endif
603
604#Enable Signed firmware support for split binary format
605CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := n
606
607#Enable single firmware binary format
608CONFIG_QCA_SINGLE_BINARY_SUPPORT := n
609
610#Enable collecting target RAM dump after kernel panic
611CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := y
612
613#Flag to enable/disable secure firmware feature
614CONFIG_FEATURE_SECURE_FIRMWARE := n
615
616#Flag to enable Stats Ext implementation
617CONFIG_FEATURE_STATS_EXT := y
618
619#Flag to allocate memory dynamically for different buffers
620CONFIG_WLAN_LOGGING_BUFFERS_DYNAMICALLY := n
621CONFIG_WLAN_DFS_STATIC_MEM_ALLOC := y
622
623#Flag to enable HTC credit history feature
624CONFIG_FEATURE_HTC_CREDIT_HISTORY := y
625
626#Flag to enable MTRACE feature
627CONFIG_TRACE_RECORD_FEATURE := y
628
629#Flag to enable p2p debug feature
630CONFIG_WLAN_FEATURE_P2P_DEBUG := y
631
632#Flag to enable roam debug log
633CONFIG_FEATURE_ROAM_DEBUG := y
634
635#Flag to enable DFS Master feature
636CONFIG_WLAN_DFS_MASTER_ENABLE := y
637
638#Flag to enable WEXT support for STA/AP/P2P interfaces
639ifeq ($(CONFIG_WIRELESS_EXT), y)
640CONFIG_WLAN_WEXT_SUPPORT_ENABLE := y
641endif
642
643#Flag to enable/disable MTRACE feature
644CONFIG_ENABLE_MTRACE_LOG := y
645
646#Flag to enable nud tracking feature
647CONFIG_WLAN_NUD_TRACKING := y
648
649#Flag to enable/Disable Function call trace
650CONFIG_FUNC_CALL_MAP := n
651
652#Flag to enable wbuff feature
653CONFIG_WLAN_WBUFF := y
654
655#Flag to enable set and get disable channel list feature
656CONFIG_DISABLE_CHANNEL_LIST :=y
657
658#Flag to enable beacon receive feature
659CONFIG_WLAN_BCN_RECV_FEATURE := y
660
661#Flag to enable LTE COEX feature
662CONFIG_LTE_COEX := y
663
664#Flag to enable/disable TARGET 11d scan
665CONFIG_TARGET_11D_SCAN := y
666
667#Flag to enable/disable Avoid acs freq feature
668CONFIG_SAP_AVOID_ACS_FREQ_LIST := y
669
670#Flag to enable HOST OPCLASS feature
671CONFIG_HOST_OPCLASS := y
672
673#Flag to enable Dynamic Voltage WDCVS (Config Voltage Mode)
674CONFIG_WLAN_DYNAMIC_CVM := y
675
676#Flag to enable SAR Safety Feature
677CONFIG_SAR_SAFETY_FEATURE := y
678
679CONFIG_CONNECTION_ROAMING_CFG := n
680
681CONFIG_FEATURE_SET := y
682
683CONFIG_WIFI_POS_CONVERGED := y
684CONFIG_WLAN_TWT_CONVERGED := y
685ifneq ($(CONFIG_WIFI_POS_CONVERGED), y)
686CONFIG_WIFI_POS_LEGACY := y
687endif
688
689CONFIG_CP_STATS := y
690
691CONFIG_QCA_TARGET_IF_MLME := y
692
693CONFIG_FEATURE_INTEROP_ISSUES_AP := y
694
695CONFIG_FEATURE_WLAN_WAPI := y
696
697CONFIG_AGEIE_ON_SCAN_RESULTS := y
698
699#Flag to enable FW log parsing support feature
700CONFIG_FEATURE_FW_LOG_PARSING := y
701
702CONFIG_PTT_SOCK_SVC_ENABLE := y
703CONFIG_SOFTAP_CHANNEL_RANGE := y
704CONFIG_FEATURE_WLAN_SCAN_PNO := y
705CONFIG_WLAN_FEATURE_PACKET_FILTERING := y
706CONFIG_WLAN_NS_OFFLOAD := y
707CONFIG_FEATURE_WLAN_RA_FILTERING:= y
708CONFIG_FEATURE_WLAN_LPHB := y
709CONFIG_QCA_SUPPORT_TX_THROTTLE := y
710CONFIG_WMI_INTERFACE_EVENT_LOGGING := y
711CONFIG_WLAN_FEATURE_LINK_LAYER_STATS := y
712CONFIG_FEATURE_CLUB_LL_STATS_AND_GET_STATION := y
713CONFIG_FEATURE_WLAN_EXTSCAN := n
714CONFIG_WMI_BCN_OFFLOAD := y
715CONFIG_160MHZ_SUPPORT := y
716CONFIG_REG_CLIENT := y
717CONFIG_WLAN_PMO_ENABLE := y
718CONFIG_CONVERGED_P2P_ENABLE := y
719CONFIG_WLAN_POLICY_MGR_ENABLE := y
720CONFIG_FEATURE_DENYLIST_MGR := y
721CONFIG_FOURTH_CONNECTION := y
722CONFIG_SUPPORT_11AX := y
723CONFIG_HDD_INIT_WITH_RTNL_LOCK := y
724CONFIG_WLAN_CONV_SPECTRAL_ENABLE := y
725CONFIG_WLAN_SPECTRAL_ENABLE := y
726CONFIG_WMI_CMD_STRINGS := y
727
728CONFIG_FEATURE_MONITOR_MODE_SUPPORT := y
729CONFIG_WLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY := n
730CONFIG_WLAN_FEATURE_TWT := y
731CONFIG_FW_THERMAL_THROTTLE := y
732CONFIG_WLAN_FEATURE_BIG_DATA_STATS := y
733CONFIG_WLAN_FEATURE_IGMP_OFFLOAD := y
734CONFIG_WLAN_FEATURE_GET_USABLE_CHAN_LIST := y
735CONFIG_FEATURE_RADAR_HISTORY := y
736
737#Flags to enable/disable vendor commands
738CONFIG_FEATURE_RSSI_MONITOR := y
739CONFIG_FEATURE_BSS_TRANSITION := y
740CONFIG_FEATURE_STATION_INFO := y
741CONFIG_FEATURE_TX_POWER := y
742CONFIG_FEATURE_OTA_TEST := y
743CONFIG_FEATURE_ACTIVE_TOS := y
744CONFIG_FEATURE_SAR_LIMITS := y
745CONFIG_FEATURE_CONCURRENCY_MATRIX := y
746CONFIG_FEATURE_SAP_COND_CHAN_SWITCH := y
747CONFIG_FEATURE_P2P_LISTEN_OFFLOAD := y
748CONFIG_QCACLD_FEATURE_MPTA_HELPER := n
749CONFIG_QCACLD_RX_DESC_MULTI_PAGE_ALLOC := y
750
751#Flags to enable/disable WMI APIs
752CONFIG_WMI_ROAM_SUPPORT := y
753CONFIG_WMI_CONCURRENCY_SUPPORT := y
754CONFIG_WMI_STA_SUPPORT := y
755
756CONFIG_DP_TRACE := y
757
758ifeq ($(CONFIG_CNSS_EMULATION), y)
759#on emulation platform, increase host timeouts by 1000 times
760CONFIG_QDF_TIMER_MULTIPLIER_FRAC := 1000
761endif
762
763ifeq ($(CONFIG_SLUB_DEBUG_ON), y)
764	CONFIG_DSC_DEBUG := y
765	CONFIG_DESC_TIMESTAMP_DEBUG_INFO := y
766	CONFIG_FEATURE_UNIT_TEST_SUSPEND := y
767	CONFIG_LEAK_DETECTION := y
768ifndef CONFIG_MAX_LOGS_PER_SEC
769	CONFIG_MAX_LOGS_PER_SEC := 500
770endif
771	CONFIG_SCHED_HISTORY_SIZE := 256
772	CONFIG_TALLOC_DEBUG := y
773	CONFIG_UNIT_TEST := y
774	CONFIG_REGISTER_OP_DEBUG := y
775	CONFIG_ENABLE_QDF_PTR_HASH_DEBUG := y
776	CONFIG_HAL_DEBUG := y
777	CONFIG_FEATURE_HAL_RECORD_SUSPEND_WRITE := y
778
779ifneq ($(CONFIG_HELIUMPLUS), y)
780ifneq ($(CONFIG_CNSS_EMULATION), y)
781	CONFIG_HIF_DETECTION_LATENCY_ENABLE := y
782endif
783endif
784endif
785
786ifeq ($(CONFIG_CNSS2_DEBUG), y)
787	CONFIG_DSC_DEBUG := y
788	CONFIG_DESC_TIMESTAMP_DEBUG_INFO := y
789	CONFIG_FEATURE_UNIT_TEST_SUSPEND := y
790	CONFIG_LEAK_DETECTION := y
791	CONFIG_MAX_LOGS_PER_SEC := 500
792	CONFIG_SCHED_HISTORY_SIZE := 256
793	CONFIG_TALLOC_DEBUG := y
794	CONFIG_UNIT_TEST := y
795	CONFIG_REGISTER_OP_DEBUG := y
796	CONFIG_ENABLE_QDF_PTR_HASH_DEBUG := y
797	CONFIG_HAL_DEBUG := y
798	CONFIG_ATH_DIAG_EXT_DIRECT := y
799	CONFIG_WLAN_OBJMGR_DEBUG:= y
800	CONFIG_WLAN_OBJMGR_REF_ID_TRACE := y
801endif
802
803	CONFIG_HIF_DEBUG := y
804
805ifeq ($(CONFIG_UNIT_TEST), y)
806	CONFIG_DSC_TEST := y
807	CONFIG_QDF_TEST := y
808	CONFIG_FEATURE_WLM_STATS := y
809endif
810
811ifeq (y,$(filter y,$(CONFIG_CNSS2_DEBUG) $(CONFIG_SLUB_DEBUG_ON)))
812	CONFIG_RX_DESC_DEBUG_CHECK:= y
813	CONFIG_ALLOW_PKT_DROPPING := y
814	CONFIG_WLAN_FEATURE_DP_MON_STATUS_RING_HISTORY := y
815	CONFIG_DP_TX_COMP_RING_DESC_SANITY_CHECK := y
816	CONFIG_HIF_CE_DEBUG_DATA_BUF := y
817	CONFIG_WLAN_RECORD_RX_PADDR := y
818	CONFIG_HIF_CPU_PERF_AFFINE_MASK := y
819	CONFIG_WLAN_FEATURE_DP_RX_RING_HISTORY := y
820	CONFIG_WLAN_FEATURE_DP_TX_DESC_HISTORY := y
821	CONFIG_REO_QDESC_HISTORY := y
822	CONFIG_DP_TX_HW_DESC_HISTORY := y
823	CONFIG_QDF_NBUF_HISTORY_SIZE := 8192
824	CONFIG_DP_RX_REFILL_CPU_PERF_AFFINE_MASK := y
825	CONFIG_FEATURE_HIF_LATENCY_PROFILE_ENABLE := y
826endif
827
828ifneq ($(CONFIG_HIF_USB), y)
829CONFIG_WLAN_LOGGING_SOCK_SVC := y
830endif
831
832CONFIG_CONNECTIVITY_PKTLOG := y
833CONFIG_PKTLOG_HAS_SPECIFIC_DATA := y
834
835ifneq ($(TARGET_BUILD_VARIANT),user)
836CONFIG_DESC_DUP_DETECT_DEBUG := y
837endif
838
839ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS_MODULE)))
840ifeq ($(CONFIG_CNSS_SDIO), y)
841CONFIG_PLD_SDIO_CNSS_FLAG := y
842endif
843ifeq ($(CONFIG_HIF_PCI), y)
844CONFIG_PLD_PCIE_CNSS_FLAG := y
845CONFIG_FEATURE_BUS_BANDWIDTH_MGR := y
846endif
847endif
848
849ifeq (y,$(findstring y,$(CONFIG_CNSS2) $(CONFIG_CNSS2_MODULE)))
850ifeq ($(CONFIG_HIF_PCI), y)
851CONFIG_FEATURE_BUS_BANDWIDTH_MGR := y
852CONFIG_PLD_PCIE_CNSS_FLAG := y
853CONFIG_PLD_PCIE_INIT_FLAG := y
854endif
855endif
856
857#Enable STATE MACHINE HISTORY
858CONFIG_SM_ENG_HIST := n
859
860#Enable OEM DATA feature
861CONFIG_FEATURE_OEM_DATA := y
862
863#Enable FW Offload
864CONFIG_WLAN_FW_OFFLOAD := y
865
866#Enable eLNA bypass feature
867ifeq ($(CONFIG_WLAN_FW_OFFLOAD), y)
868CONFIG_WLAN_FEATURE_ELNA := y
869endif
870
871#Enable mDNS and ICMP offload feature
872ifeq ($(CONFIG_WLAN_FW_OFFLOAD), y)
873CONFIG_WLAN_FEATURE_MDNS_OFFLOAD := y
874CONFIG_WLAN_FEATURE_ICMP_OFFLOAD := y
875endif
876
877
878CONFIG_HANDLE_BC_EAP_TX_FRM := y
879
880ifeq ($(CONFIG_BAND_6GHZ), y)
881
882CONFIG_6G_SCAN_CHAN_SORT_ALGO := y
883
884endif
885
886CONFIG_SAP_DHCP_FW_IND := y
887
888#Enable support to get ANI level
889CONFIG_ANI_LEVEL_REQUEST := y
890
891#Enable RX RING buffers debug
892CONFIG_DEBUG_RX_RING_BUFFER := y
893
894#Enable Hash debug
895CONFIG_RX_HASH_DEBUG := y
896
897#Enable VDEV OPS wakelock feature
898CONFIG_FEATURE_VDEV_OPS_WAKELOCK := y
899
900#Enable Hang Event
901CONFIG_WLAN_HANG_EVENT := y
902
903ifeq ($(CONFIG_FW_THERMAL_THROTTLE), y)
904CONFIG_WLAN_THERMAL_MULTI_CLIENT_SUPPORT := y
905endif
906
907CONFIG_WLAN_DEBUG_LINK_VOTE := y
908
909CONFIG_QCACLD_WLAN_CONNECTIVITY_DIAG_EVENT := y
910
911CONFIG_WLAN_FEATURE_CAL_FAILURE_TRIGGER := y
912
913ifeq ($(CONFIG_QCACLD_FEATURE_SON), y)
914CONFIG_WDI_EVENT_ENABLE := y
915CONFIG_FEATURE_MONITOR_MODE_SUPPORT := y
916CONFIG_WIFI_MONITOR_SUPPORT := y
917CONFIG_DCS := y
918CONFIG_FEATURE_WDS := y
919#Disable the Export Symbol config
920CONFIG_WLAN_DISABLE_EXPORT_SYMBOL := n
921else
922CONFIG_WLAN_DISABLE_EXPORT_SYMBOL := y
923endif
924
925ifeq ($(CONFIG_FEATURE_WDS), y)
926CONFIG_FEATURE_MEC := y
927CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME := y
928CONFIG_FEATURE_MCL_REPEATER := y
929CONFIG_BYPASS_WDS_OL_OPS := y
930CONFIG_WDS_CONV_TARGET_IF_OPS_ENABLE := y
931endif
932
933CONFIG_WLAN_FEATURE_SAP_ACS_OPTIMIZE := y
934CONFIG_4_BYTES_TLV_TAG := y
935
936#Enable Single NDEV Multi VDEV
937CONFIG_WLAN_HDD_MULTI_VDEV_SINGLE_NDEV := y
938