xref: /wlan-driver/qcacld-3.0/Kbuild (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name# We can build either as part of a standalone Kernel build or as
2*5113495bSYour Name# an external module.  Determine which mechanism is being used
3*5113495bSYour Nameifeq ($(MODNAME),)
4*5113495bSYour Name	KERNEL_BUILD := y
5*5113495bSYour Nameelse
6*5113495bSYour Name	KERNEL_BUILD := n
7*5113495bSYour Nameendif
8*5113495bSYour Name
9*5113495bSYour Nameifeq ($(KERNEL_BUILD), y)
10*5113495bSYour Name	# These are provided in external module based builds
11*5113495bSYour Name	# Need to explicitly define for Kernel-based builds
12*5113495bSYour Name	MODNAME := wlan
13*5113495bSYour Name	WLAN_ROOT := drivers/staging/qcacld-3.0
14*5113495bSYour Name	WLAN_COMMON_ROOT := cmn
15*5113495bSYour Name	WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
16*5113495bSYour Name	WLAN_FW_API := $(WLAN_ROOT)/../fw-api/
17*5113495bSYour Name	WLAN_PROFILE := default
18*5113495bSYour Nameendif
19*5113495bSYour Name
20*5113495bSYour NameWLAN_COMMON_ROOT ?= cmn
21*5113495bSYour NameWLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
22*5113495bSYour NameWLAN_FW_API ?= $(WLAN_ROOT)/../fw-api/
23*5113495bSYour NameWLAN_PROFILE ?= default
24*5113495bSYour NameCONFIG_QCA_CLD_WLAN_PROFILE ?= $(WLAN_PROFILE)
25*5113495bSYour NameDEVNAME ?= wlan
26*5113495bSYour NameWLAN_PLATFORM_INC ?= $(WLAN_ROOT)/../platform/inc
27*5113495bSYour NameDATA_IPA_INC ?= $(WLAN_ROOT)/../dataipa/drivers/platform/msm/include
28*5113495bSYour NameDATA_IPA_UAPI_INC ?= $(DATA_IPA_INC)/uapi
29*5113495bSYour Name
30*5113495bSYour Nameifeq ($(KERNEL_BUILD), n)
31*5113495bSYour Nameifneq ($(ANDROID_BUILD_TOP),)
32*5113495bSYour Name      ANDROID_BUILD_TOP_REL := $(shell python -c "import os.path; print(os.path.relpath('$(ANDROID_BUILD_TOP)'))")
33*5113495bSYour Name      override WLAN_ROOT := $(ANDROID_BUILD_TOP_REL)/$(WLAN_ROOT)
34*5113495bSYour Name      override WLAN_COMMON_INC := $(ANDROID_BUILD_TOP_REL)/$(WLAN_COMMON_INC)
35*5113495bSYour Name      override WLAN_FW_API := $(ANDROID_BUILD_TOP_REL)/$(WLAN_FW_API)
36*5113495bSYour Nameelse ifneq ($(LINUX_BUILD_TOP),)
37*5113495bSYour Name      LINUX_BUILD_TOP_REL := $(shell python -c "import os.path; print(os.path.relpath('$(LINUX_BUILD_TOP)'))")
38*5113495bSYour Name      $(warning "LINUX_BUILD_TOP_REL=: $(LINUX_BUILD_TOP_REL)")
39*5113495bSYour Name      override WLAN_ROOT := $(LINUX_BUILD_TOP_REL)/qcacld-3.0
40*5113495bSYour Name      override WLAN_COMMON_ROOT ?= cmn
41*5113495bSYour Name      override WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
42*5113495bSYour Name      override WLAN_FW_API := $(WLAN_ROOT)/../fw-api
43*5113495bSYour Nameendif
44*5113495bSYour Nameendif
45*5113495bSYour Name
46*5113495bSYour Nameinclude $(WLAN_ROOT)/configs/$(CONFIG_QCA_CLD_WLAN_PROFILE)_defconfig
47*5113495bSYour Name
48*5113495bSYour Name# add configurations in WLAN_CFG_OVERRIDE
49*5113495bSYour Name$(foreach cfg, $(WLAN_CFG_OVERRIDE), \
50*5113495bSYour Name	$(eval $(cfg)) \
51*5113495bSYour Name	$(warning "Overriding WLAN config with: $(cfg)"))
52*5113495bSYour Name
53*5113495bSYour Name# KERNEL_SUPPORTS_NESTED_COMPOSITES := y is used to enable nested
54*5113495bSYour Name# composite support. The nested composite support is available in some
55*5113495bSYour Name# MSM kernels, and is available in 5.10 GKI kernels beginning with
56*5113495bSYour Name# 5.10.20, but unfortunately is not available in any upstream kernel.
57*5113495bSYour Name#
58*5113495bSYour Name# When the feature is present in an MSM kernel, the flag is explicitly
59*5113495bSYour Name# set in the kernel sources.  When a GKI kernel is used, there isn't a
60*5113495bSYour Name# flag set in the sources, so set the flag here if we are building
61*5113495bSYour Name# with GKI kernel where the feature is present
62*5113495bSYour NameKERNEL_VERSION = $(shell echo $$(( ( $1 << 16 ) + ( $2 << 8 ) + $3 )))
63*5113495bSYour NameLINUX_CODE := $(call KERNEL_VERSION,$(VERSION),$(PATCHLEVEL),$(SUBLEVEL))
64*5113495bSYour Name
65*5113495bSYour Name# Comosite feature was added to GKI 5.10.20
66*5113495bSYour NameCOMPOSITE_CODE_ADDED := 330260 # hardcoded $(call KERNEL_VERSION,5,10,20)
67*5113495bSYour Name
68*5113495bSYour Name# Comosite feature was not ported beyond 5.10.x
69*5113495bSYour NameCOMPOSITE_CODE_REMOVED := 330496 # hardcoded $(call KERNEL_VERSION,5,11,0)
70*5113495bSYour Name
71*5113495bSYour Nameifeq ($(KERNEL_SUPPORTS_NESTED_COMPOSITES),)
72*5113495bSYour Name  #flag is not explicitly present
73*5113495bSYour Name  ifneq ($(findstring gki,$(CONFIG_LOCALVERSION))$(findstring qki,$(CONFIG_LOCALVERSION)),)
74*5113495bSYour Name    # GKI kernel
75*5113495bSYour Name    ifeq ($(shell test $(LINUX_CODE) -ge $(COMPOSITE_CODE_ADDED); echo $$?),0)
76*5113495bSYour Name      # version >= 5.10.20
77*5113495bSYour Name      ifeq ($(shell test $(LINUX_CODE) -lt $(COMPOSITE_CODE_REMOVED); echo $$?),0)
78*5113495bSYour Name        # version < 5.11.0
79*5113495bSYour Name        KERNEL_SUPPORTS_NESTED_COMPOSITES := y
80*5113495bSYour Name      endif
81*5113495bSYour Name    endif
82*5113495bSYour Name  endif
83*5113495bSYour Nameendif
84*5113495bSYour Name
85*5113495bSYour NameOBJS :=
86*5113495bSYour NameOBJS_DIRS :=
87*5113495bSYour Name
88*5113495bSYour Namedefine add-wlan-objs
89*5113495bSYour Name$(eval $(_add-wlan-objs))
90*5113495bSYour Nameendef
91*5113495bSYour Name
92*5113495bSYour Namedefine _add-wlan-objs
93*5113495bSYour Name  ifneq ($(2),)
94*5113495bSYour Name    ifeq ($(KERNEL_SUPPORTS_NESTED_COMPOSITES),y)
95*5113495bSYour Name      OBJS_DIRS += $(dir $(2))
96*5113495bSYour Name      OBJS += $(1).o
97*5113495bSYour Name      $(1)-y := $(2)
98*5113495bSYour Name    else
99*5113495bSYour Name      OBJS += $(2)
100*5113495bSYour Name    endif
101*5113495bSYour Name  endif
102*5113495bSYour Nameendef
103*5113495bSYour Name
104*5113495bSYour Name############ UAPI ############
105*5113495bSYour NameUAPI_DIR :=	uapi
106*5113495bSYour NameUAPI_INC :=	-I$(WLAN_ROOT)/$(UAPI_DIR)/linux
107*5113495bSYour Name
108*5113495bSYour Name############ COMMON ############
109*5113495bSYour NameCOMMON_DIR :=	core/common
110*5113495bSYour NameCOMMON_INC :=	-I$(WLAN_ROOT)/$(COMMON_DIR)
111*5113495bSYour Name
112*5113495bSYour Name############ HDD ############
113*5113495bSYour NameHDD_DIR :=	core/hdd
114*5113495bSYour NameHDD_INC_DIR :=	$(HDD_DIR)/inc
115*5113495bSYour NameHDD_SRC_DIR :=	$(HDD_DIR)/src
116*5113495bSYour Name
117*5113495bSYour NameHDD_INC := 	-I$(WLAN_ROOT)/$(HDD_INC_DIR) \
118*5113495bSYour Name		-I$(WLAN_ROOT)/$(HDD_SRC_DIR)
119*5113495bSYour Name
120*5113495bSYour NameHDD_OBJS := 	$(HDD_SRC_DIR)/wlan_hdd_assoc.o \
121*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_cfg.o \
122*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
123*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_data_stall_detection.o \
124*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \
125*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_ftm.o \
126*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
127*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_ioctl.o \
128*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_main.o \
129*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_object_manager.o \
130*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
131*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_p2p.o \
132*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_power.o \
133*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_regulatory.o \
134*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_scan.o \
135*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
136*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_sta_info.o \
137*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_stats.o \
138*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_trace.o \
139*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
140*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_wmm.o \
141*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_wowl.o\
142*5113495bSYour Name		$(HDD_SRC_DIR)/wlan_hdd_ll_lt_sap.o\
143*5113495bSYour Name
144*5113495bSYour Nameifeq ($(CONFIG_UNIT_TEST), y)
145*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_unit_test.o
146*5113495bSYour Nameendif
147*5113495bSYour Name
148*5113495bSYour Nameifeq ($(CONFIG_WLAN_WEXT_SUPPORT_ENABLE), y)
149*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_wext.o \
150*5113495bSYour Name	    $(HDD_SRC_DIR)/wlan_hdd_hostapd_wext.o
151*5113495bSYour Nameendif
152*5113495bSYour Name
153*5113495bSYour Nameifeq ($(CONFIG_AFC_SUPPORT), y)
154*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_afc.o
155*5113495bSYour Nameendif
156*5113495bSYour Name
157*5113495bSYour Nameifeq ($(CONFIG_DCS), y)
158*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_dcs.o
159*5113495bSYour Nameendif
160*5113495bSYour Name
161*5113495bSYour Nameifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y)
162*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o
163*5113495bSYour Nameendif
164*5113495bSYour Name
165*5113495bSYour Nameifeq ($(CONFIG_WLAN_DEBUGFS), y)
166*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs.o
167*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS), y)
168*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_llstat.o
169*5113495bSYour Nameendif
170*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_MIB_STATS), y)
171*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_mibstat.o
172*5113495bSYour Nameendif
173*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_csr.o
174*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_offload.o
175*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_roam.o
176*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_config.o
177*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_unit_test.o
178*5113495bSYour Nameifeq ($(CONFIG_WLAN_MWS_INFO_DEBUGFS), y)
179*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_coex.o
180*5113495bSYour Nameendif
181*5113495bSYour Nameendif
182*5113495bSYour Name
183*5113495bSYour Nameifeq ($(CONFIG_WLAN_CONV_SPECTRAL_ENABLE),y)
184*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_spectralscan.o
185*5113495bSYour Nameendif
186*5113495bSYour Name
187*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
188*5113495bSYour NameHDD_OBJS+=	$(HDD_SRC_DIR)/wlan_hdd_ocb.o
189*5113495bSYour Nameendif
190*5113495bSYour Name
191*5113495bSYour Nameifeq ($(CONFIG_FEATURE_MEMDUMP_ENABLE), y)
192*5113495bSYour NameHDD_OBJS+=	$(HDD_SRC_DIR)/wlan_hdd_memdump.o
193*5113495bSYour Nameendif
194*5113495bSYour Name
195*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
196*5113495bSYour NameHDD_OBJS+=	$(HDD_SRC_DIR)/wlan_hdd_fips.o
197*5113495bSYour Nameendif
198*5113495bSYour Name
199*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y)
200*5113495bSYour NameHDD_OBJS+=	$(HDD_SRC_DIR)/wlan_hdd_green_ap.o
201*5113495bSYour Nameendif
202*5113495bSYour Name
203*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_APF), y)
204*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_apf.o
205*5113495bSYour Nameendif
206*5113495bSYour Name
207*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_LPSS), y)
208*5113495bSYour NameHDD_OBJS +=	$(HDD_SRC_DIR)/wlan_hdd_lpass.o
209*5113495bSYour Nameendif
210*5113495bSYour Name
211*5113495bSYour Nameifeq ($(CONFIG_WLAN_NAPI), y)
212*5113495bSYour NameHDD_OBJS +=     $(HDD_SRC_DIR)/wlan_hdd_napi.o
213*5113495bSYour Nameendif
214*5113495bSYour Name
215*5113495bSYour Nameifeq ($(CONFIG_IPA_OFFLOAD), y)
216*5113495bSYour NameHDD_OBJS +=	$(HDD_SRC_DIR)/wlan_hdd_ipa.o
217*5113495bSYour Nameendif
218*5113495bSYour Name
219*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_SON), y)
220*5113495bSYour NameHDD_OBJS +=	$(HDD_SRC_DIR)/wlan_hdd_son.o
221*5113495bSYour Nameendif
222*5113495bSYour Name
223*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
224*5113495bSYour NameHDD_OBJS +=	$(HDD_SRC_DIR)/wlan_hdd_nan.o
225*5113495bSYour NameHDD_OBJS +=	$(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o
226*5113495bSYour Nameendif
227*5113495bSYour Name
228*5113495bSYour Nameifeq ($(CONFIG_QCOM_TDLS), y)
229*5113495bSYour NameHDD_OBJS +=	$(HDD_SRC_DIR)/wlan_hdd_tdls.o
230*5113495bSYour Nameendif
231*5113495bSYour Name
232*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
233*5113495bSYour NameCONFIG_WLAN_SYNC_TSF := y
234*5113495bSYour Nameendif
235*5113495bSYour Name
236*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYNC_TSF), y)
237*5113495bSYour NameHDD_OBJS +=	$(HDD_SRC_DIR)/wlan_hdd_tsf.o
238*5113495bSYour Nameendif
239*5113495bSYour Name
240*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
241*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o
242*5113495bSYour Nameendif
243*5113495bSYour Name
244*5113495bSYour Nameifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
245*5113495bSYour NameHDD_OBJS +=	$(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o
246*5113495bSYour Nameendif
247*5113495bSYour Name
248*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
249*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_he.o
250*5113495bSYour Nameendif
251*5113495bSYour Name
252*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_11BE), y)
253*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_eht.o
254*5113495bSYour Nameendif
255*5113495bSYour Name
256*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
257*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_twt.o
258*5113495bSYour Nameendif
259*5113495bSYour Name
260*5113495bSYour Nameifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y)
261*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rx_monitor.o
262*5113495bSYour Nameendif
263*5113495bSYour Name
264*5113495bSYour Nameifeq ($(CONFIG_WLAN_NUD_TRACKING), y)
265*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nud_tracking.o
266*5113495bSYour Nameendif
267*5113495bSYour Name
268*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y)
269*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_packet_filter.o
270*5113495bSYour Nameendif
271*5113495bSYour Name
272*5113495bSYour Nameifeq ($(CONFIG_FEATURE_RSSI_MONITOR), y)
273*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rssi_monitor.o
274*5113495bSYour Nameendif
275*5113495bSYour Name
276*5113495bSYour Nameifeq ($(CONFIG_FEATURE_BSS_TRANSITION), y)
277*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_bss_transition.o
278*5113495bSYour Nameendif
279*5113495bSYour Name
280*5113495bSYour Nameifeq ($(CONFIG_FEATURE_STATION_INFO), y)
281*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_station_info.o
282*5113495bSYour Nameendif
283*5113495bSYour Name
284*5113495bSYour Nameifeq ($(CONFIG_FEATURE_TX_POWER), y)
285*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tx_power.o
286*5113495bSYour Nameendif
287*5113495bSYour Name
288*5113495bSYour Nameifeq ($(CONFIG_FEATURE_OTA_TEST), y)
289*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ota_test.o
290*5113495bSYour Nameendif
291*5113495bSYour Name
292*5113495bSYour Nameifeq ($(CONFIG_FEATURE_ACTIVE_TOS), y)
293*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_active_tos.o
294*5113495bSYour Nameendif
295*5113495bSYour Name
296*5113495bSYour Nameifeq ($(CONFIG_FEATURE_SAR_LIMITS), y)
297*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sar_limits.o
298*5113495bSYour Nameendif
299*5113495bSYour Name
300*5113495bSYour Nameifeq ($(CONFIG_FEATURE_CONCURRENCY_MATRIX), y)
301*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_concurrency_matrix.o
302*5113495bSYour Nameendif
303*5113495bSYour Name
304*5113495bSYour Nameifeq ($(CONFIG_FEATURE_SAP_COND_CHAN_SWITCH), y)
305*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sap_cond_chan_switch.o
306*5113495bSYour Nameendif
307*5113495bSYour Name
308*5113495bSYour Nameifeq ($(CONFIG_FEATURE_P2P_LISTEN_OFFLOAD), y)
309*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_p2p_listen_offload.o
310*5113495bSYour Nameendif
311*5113495bSYour Name
312*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS), y)
313*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs.o
314*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_CHANNEL), y)
315*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_channel.o
316*5113495bSYour Nameendif
317*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_FW_MODE_CFG), y)
318*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_fw_mode_config.o
319*5113495bSYour Nameendif
320*5113495bSYour Nameifeq ($(CONFIG_WLAN_REASSOC), y)
321*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_reassoc.o
322*5113495bSYour Nameendif
323*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_STA_INFO), y)
324*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_sta_info.o
325*5113495bSYour Nameendif
326*5113495bSYour Nameifeq ($(CONFIG_WLAN_DEBUG_CRASH_INJECT), y)
327*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_crash_inject.o
328*5113495bSYour Nameendif
329*5113495bSYour Nameifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), y)
330*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_suspend_resume.o
331*5113495bSYour Nameendif
332*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_MEM_STATS), y)
333*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_mem_stats.o
334*5113495bSYour Nameendif
335*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_unit_test.o
336*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_modify_acl.o
337*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_CONNECT_INFO), y)
338*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_connect_info.o
339*5113495bSYour Nameendif
340*5113495bSYour Nameifeq ($(CONFIG_WLAN_SCAN_DISABLE), y)
341*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_scan_disable.o
342*5113495bSYour Nameendif
343*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_DCM), y)
344*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_dcm.o
345*5113495bSYour Nameendif
346*5113495bSYour Nameifeq ($(CONFIG_WLAN_WOW_ITO), y)
347*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_wow_ito.o
348*5113495bSYour Nameendif
349*5113495bSYour Nameifeq ($(CONFIG_WLAN_WOWL_ADD_PTRN), y)
350*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_wowl_add_ptrn.o
351*5113495bSYour Nameendif
352*5113495bSYour Nameifeq ($(CONFIG_WLAN_WOWL_DEL_PTRN), y)
353*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_wowl_del_ptrn.o
354*5113495bSYour Nameendif
355*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_TX_STBC), y)
356*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_tx_stbc.o
357*5113495bSYour Nameendif
358*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_SCAN_CFG), y)
359*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_scan_config.o
360*5113495bSYour Nameendif
361*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_MONITOR_MODE_CHANNEL), y)
362*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_monitor_mode_channel.o
363*5113495bSYour Nameendif
364*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_RANGE_EXT), y)
365*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_range_ext.o
366*5113495bSYour Nameendif
367*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_RADAR), y)
368*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_radar.o
369*5113495bSYour Nameendif
370*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_RTS_CTS), y)
371*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_rts_cts.o
372*5113495bSYour Nameendif
373*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_HE_BSS_COLOR), y)
374*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_he_bss_color.o
375*5113495bSYour Nameendif
376*5113495bSYour Nameifeq ($(CONFIG_WLAN_TXRX_FW_STATS), y)
377*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_txrx_fw_stats.o
378*5113495bSYour Nameendif
379*5113495bSYour Nameifeq ($(CONFIG_WLAN_TXRX_STATS), y)
380*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_txrx_stats.o
381*5113495bSYour Nameendif
382*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_DP_TRACE), y)
383*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_dp_trace.o
384*5113495bSYour Nameendif
385*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_STATS), y)
386*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_stats.o
387*5113495bSYour Nameendif
388*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_TDLS_PEERS), y)
389*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_tdls_peers.o
390*5113495bSYour Nameendif
391*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_TEMPERATURE), y)
392*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_temperature.o
393*5113495bSYour Nameendif
394*5113495bSYour Nameifeq ($(CONFIG_WLAN_THERMAL_CFG), y)
395*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_thermal_cfg.o
396*5113495bSYour Nameendif
397*5113495bSYour Nameifeq ($(CONFIG_FEATURE_MOTION_DETECTION), y)
398*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_motion_detection.o
399*5113495bSYour Nameendif
400*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_WLAN_DBG), y)
401*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_wlan_dbg.o
402*5113495bSYour Nameendif
403*5113495bSYour Nameifeq ($(CONFIG_WLAN_TXRX_FW_ST_RST), y)
404*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_txrx_fw_st_rst.o
405*5113495bSYour Nameendif
406*5113495bSYour Nameifeq ($(CONFIG_WLAN_GTX_BW_MASK), y)
407*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_gtx_bw_mask.o
408*5113495bSYour Nameendif
409*5113495bSYour Nameifeq ($(CONFIG_IPA_OFFLOAD), y)
410*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_ipa.o
411*5113495bSYour Nameendif
412*5113495bSYour Nameifeq ($(CONFIG_REMOVE_PKT_LOG), n)
413*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_pktlog.o
414*5113495bSYour Nameendif
415*5113495bSYour Nameifeq ($(CONFIG_WLAN_DL_MODES), y)
416*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_dl_modes.o
417*5113495bSYour Nameendif
418*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_policy_mgr.o
419*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_dp_aggregation.o
420*5113495bSYour Nameifeq ($(CONFIG_DP_SWLM), y)
421*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_swlm.o
422*5113495bSYour Nameendif
423*5113495bSYour Nameifeq ($(CONFIG_WLAN_DUMP_IN_PROGRESS), y)
424*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_dump_in_progress.o
425*5113495bSYour Nameendif
426*5113495bSYour Nameifeq ($(CONFIG_FEATURE_SET), y)
427*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_wifi_features.o
428*5113495bSYour Nameendif
429*5113495bSYour Nameifeq ($(CONFIG_WLAN_BMISS), y)
430*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_bmiss.o
431*5113495bSYour Nameendif
432*5113495bSYour Nameifeq ($(CONFIG_WLAN_FREQ_LIST), y)
433*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_get_freq_for_pwr.o
434*5113495bSYour Nameendif
435*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_DP_STATS), y)
436*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_txrx_stats_console.o
437*5113495bSYour Nameendif
438*5113495bSYour Name
439*5113495bSYour Nameifeq ($(CONFIG_DP_PKT_ADD_TIMESTAMP), y)
440*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_add_timestamp.o
441*5113495bSYour Nameendif
442*5113495bSYour Name
443*5113495bSYour Nameifeq ($(CONFIG_DP_TRAFFIC_END_INDICATION), y)
444*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_dp_traffic_end_indication.o
445*5113495bSYour Nameendif
446*5113495bSYour Name
447*5113495bSYour Nameifeq ($(CONFIG_DP_HW_TX_DELAY_STATS_ENABLE), y)
448*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_dp_tx_delay_stats.o
449*5113495bSYour Nameendif
450*5113495bSYour Name
451*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_EHT_RATE), y)
452*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_eht_rate.o
453*5113495bSYour Nameendif
454*5113495bSYour Name
455*5113495bSYour Nameifeq ($(CONFIG_FEATURE_DIRECT_LINK), y)
456*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_direct_link_ut_cmd.o
457*5113495bSYour Nameendif
458*5113495bSYour Name
459*5113495bSYour Nameifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
460*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_runtime_pm.o
461*5113495bSYour Nameendif
462*5113495bSYour Name
463*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_LOG_BUFFER), y)
464*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_log_buffer.o
465*5113495bSYour Nameendif
466*5113495bSYour Name
467*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_DFSNOL), y)
468*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_dfsnol.o
469*5113495bSYour Nameendif
470*5113495bSYour Name
471*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_WDS_MODE), y)
472*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_wds_mode.o
473*5113495bSYour Nameendif
474*5113495bSYour Name
475*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_ROAM_TRIGGER_BITMAP), y)
476*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_roam_trigger_bitmap.o
477*5113495bSYour Nameendif
478*5113495bSYour Name
479*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYSFS_RF_TEST_MODE), y)
480*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs_rf_test_mode.o
481*5113495bSYour Nameendif
482*5113495bSYour Name
483*5113495bSYour Nameendif # CONFIG_WLAN_SYSFS
484*5113495bSYour Name
485*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_FW_STATE), y)
486*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_fw_state.o
487*5113495bSYour Nameendif
488*5113495bSYour Name
489*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_COEX_CONFIG), y)
490*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_coex_config.o
491*5113495bSYour Nameendif
492*5113495bSYour Name
493*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_MPTA_HELPER), y)
494*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_mpta_helper.o
495*5113495bSYour Nameendif
496*5113495bSYour Name
497*5113495bSYour Nameifeq ($(CONFIG_WLAN_BCN_RECV_FEATURE), y)
498*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_bcn_recv.o
499*5113495bSYour Nameendif
500*5113495bSYour Name
501*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_HW_CAPABILITY), y)
502*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_hw_capability.o
503*5113495bSYour Nameendif
504*5113495bSYour Name
505*5113495bSYour Nameifeq ($(CONFIG_FW_THERMAL_THROTTLE), y)
506*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_thermal.o
507*5113495bSYour Nameendif
508*5113495bSYour Name
509*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_BTC_CHAIN_MODE), y)
510*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_btc_chain_mode.o
511*5113495bSYour Nameendif
512*5113495bSYour Name
513*5113495bSYour Nameifeq ($(CONFIG_FEATURE_WLAN_TIME_SYNC_FTM), y)
514*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ftm_time_sync.o
515*5113495bSYour Nameendif
516*5113495bSYour Name
517*5113495bSYour Nameifeq ($(CONFIG_WLAN_HANG_EVENT), y)
518*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_hang_event.o
519*5113495bSYour Nameendif
520*5113495bSYour Name
521*5113495bSYour Nameifeq ($(CONFIG_WLAN_CFR_ENABLE), y)
522*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cfr.o
523*5113495bSYour Nameendif
524*5113495bSYour Name
525*5113495bSYour Nameifeq ($(CONFIG_FEATURE_GPIO_CFG),y)
526*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_gpio.o
527*5113495bSYour Nameendif
528*5113495bSYour Name
529*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_MEDIUM_ASSESS), y)
530*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_medium_assess.o
531*5113495bSYour Nameendif
532*5113495bSYour Name
533*5113495bSYour Nameifeq ($(CONFIG_WLAN_ENABLE_GPIO_WAKEUP),y)
534*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_gpio_wakeup.o
535*5113495bSYour Nameendif
536*5113495bSYour Name
537*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cm_connect.o
538*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cm_disconnect.o
539*5113495bSYour Name
540*5113495bSYour Name
541*5113495bSYour Nameifeq ($(CONFIG_WLAN_BOOTUP_MARKER), y)
542*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_bootup_marker.o
543*5113495bSYour Nameendif
544*5113495bSYour Name
545*5113495bSYour Nameifeq ($(CONFIG_FEATURE_WLAN_CH_AVOID_EXT),y)
546*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_avoid_freq_ext.o
547*5113495bSYour Nameendif
548*5113495bSYour Name
549*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_11BE_MLO), y)
550*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_mlo.o
551*5113495bSYour Nameendif
552*5113495bSYour Name
553*5113495bSYour Name
554*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_MDNS_OFFLOAD),y)
555*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_mdns_offload.o
556*5113495bSYour Nameendif
557*5113495bSYour Name
558*5113495bSYour Nameifeq ($(CONFIG_QCACLD_WLAN_CONNECTIVITY_DIAG_EVENT), y)
559*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_connectivity_logging.o
560*5113495bSYour Nameelse ifeq ($(CONFIG_QCACLD_WLAN_CONNECTIVITY_LOGGING), y)
561*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_connectivity_logging.o
562*5113495bSYour Nameendif
563*5113495bSYour Name
564*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_MCC_QUOTA), y)
565*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_mcc_quota.o
566*5113495bSYour Nameendif
567*5113495bSYour Name
568*5113495bSYour Nameifeq ($(CONFIG_FEATURE_WDS), y)
569*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_wds.o
570*5113495bSYour Nameendif
571*5113495bSYour Name
572*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_PEER_TXQ_FLUSH_CONF), y)
573*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_peer_txq_flush.o
574*5113495bSYour Nameendif
575*5113495bSYour Name
576*5113495bSYour Nameifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
577*5113495bSYour Nameifeq ($(CONFIG_WIFI_POS_PASN), y)
578*5113495bSYour NameHDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_wifi_pos_pasn.o
579*5113495bSYour Nameendif
580*5113495bSYour Nameendif
581*5113495bSYour Name
582*5113495bSYour Name$(call add-wlan-objs,hdd,$(HDD_OBJS))
583*5113495bSYour Name
584*5113495bSYour Name###### OSIF_SYNC ########
585*5113495bSYour NameSYNC_DIR := os_if/sync
586*5113495bSYour NameSYNC_INC_DIR := $(SYNC_DIR)/inc
587*5113495bSYour NameSYNC_SRC_DIR := $(SYNC_DIR)/src
588*5113495bSYour Name
589*5113495bSYour NameSYNC_INC := \
590*5113495bSYour Name	-I$(WLAN_ROOT)/$(SYNC_INC_DIR) \
591*5113495bSYour Name	-I$(WLAN_ROOT)/$(SYNC_SRC_DIR) \
592*5113495bSYour Name
593*5113495bSYour NameSYNC_OBJS := \
594*5113495bSYour Name	$(SYNC_SRC_DIR)/osif_sync.o \
595*5113495bSYour Name	$(SYNC_SRC_DIR)/osif_driver_sync.o \
596*5113495bSYour Name	$(SYNC_SRC_DIR)/osif_psoc_sync.o \
597*5113495bSYour Name	$(SYNC_SRC_DIR)/osif_vdev_sync.o \
598*5113495bSYour Name
599*5113495bSYour Name$(call add-wlan-objs,sync,$(SYNC_OBJS))
600*5113495bSYour Name
601*5113495bSYour Name########### Driver Synchronization Core (DSC) ###########
602*5113495bSYour NameDSC_DIR := components/dsc
603*5113495bSYour NameDSC_INC_DIR := $(DSC_DIR)/inc
604*5113495bSYour NameDSC_SRC_DIR := $(DSC_DIR)/src
605*5113495bSYour NameDSC_TEST_DIR := $(DSC_DIR)/test
606*5113495bSYour Name
607*5113495bSYour NameDSC_INC := \
608*5113495bSYour Name	-I$(WLAN_ROOT)/$(DSC_INC_DIR) \
609*5113495bSYour Name	-I$(WLAN_ROOT)/$(DSC_SRC_DIR) \
610*5113495bSYour Name	-I$(WLAN_ROOT)/$(DSC_TEST_DIR)
611*5113495bSYour Name
612*5113495bSYour NameDSC_OBJS := \
613*5113495bSYour Name	$(DSC_SRC_DIR)/__wlan_dsc.o \
614*5113495bSYour Name	$(DSC_SRC_DIR)/wlan_dsc_driver.o \
615*5113495bSYour Name	$(DSC_SRC_DIR)/wlan_dsc_psoc.o \
616*5113495bSYour Name	$(DSC_SRC_DIR)/wlan_dsc_vdev.o
617*5113495bSYour Name
618*5113495bSYour Nameifeq ($(CONFIG_DSC_TEST), y)
619*5113495bSYour Name	DSC_OBJS += $(DSC_TEST_DIR)/wlan_dsc_test.o
620*5113495bSYour Nameendif
621*5113495bSYour Name
622*5113495bSYour Name$(call add-wlan-objs,dsc,$(DSC_OBJS))
623*5113495bSYour Name
624*5113495bSYour Name########### HOST DIAG LOG ###########
625*5113495bSYour NameHOST_DIAG_LOG_DIR :=	$(WLAN_COMMON_ROOT)/utils/host_diag_log
626*5113495bSYour Name
627*5113495bSYour NameHOST_DIAG_LOG_INC_DIR :=	$(HOST_DIAG_LOG_DIR)/inc
628*5113495bSYour NameHOST_DIAG_LOG_SRC_DIR :=	$(HOST_DIAG_LOG_DIR)/src
629*5113495bSYour Name
630*5113495bSYour NameHOST_DIAG_LOG_INC :=	-I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
631*5113495bSYour Name			-I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
632*5113495bSYour Name
633*5113495bSYour Nameifeq ($(CONFIG_WLAN_DIAG_VERSION), y)
634*5113495bSYour NameHOST_DIAG_LOG_OBJS +=	$(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
635*5113495bSYour Nameendif
636*5113495bSYour Name
637*5113495bSYour Name$(call add-wlan-objs,host_diag_log,$(HOST_DIAG_LOG_OBJS))
638*5113495bSYour Name
639*5113495bSYour Name############ EPPING ############
640*5113495bSYour NameEPPING_DIR :=	$(WLAN_COMMON_ROOT)/utils/epping
641*5113495bSYour NameEPPING_INC_DIR :=	$(EPPING_DIR)/inc
642*5113495bSYour NameEPPING_SRC_DIR :=	$(EPPING_DIR)/src
643*5113495bSYour Name
644*5113495bSYour NameEPPING_INC := 	-I$(WLAN_ROOT)/$(EPPING_INC_DIR)
645*5113495bSYour Name
646*5113495bSYour Nameifeq ($(CONFIG_FEATURE_EPPING), y)
647*5113495bSYour NameEPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \
648*5113495bSYour Name		$(EPPING_SRC_DIR)/epping_txrx.o \
649*5113495bSYour Name		$(EPPING_SRC_DIR)/epping_tx.o \
650*5113495bSYour Name		$(EPPING_SRC_DIR)/epping_rx.o \
651*5113495bSYour Name		$(EPPING_SRC_DIR)/epping_helper.o
652*5113495bSYour Nameendif
653*5113495bSYour Name
654*5113495bSYour Name$(call add-wlan-objs,epping,$(EPPING_OBJS))
655*5113495bSYour Name
656*5113495bSYour Name############ SYS ############
657*5113495bSYour NameCMN_SYS_DIR :=	$(WLAN_COMMON_ROOT)/utils/sys
658*5113495bSYour NameCMN_SYS_INC_DIR := 	$(CMN_SYS_DIR)
659*5113495bSYour NameCMN_SYS_INC :=	-I$(WLAN_ROOT)/$(CMN_SYS_INC_DIR)
660*5113495bSYour Name
661*5113495bSYour Name############ MAC ############
662*5113495bSYour NameMAC_DIR :=	core/mac
663*5113495bSYour NameMAC_INC_DIR :=	$(MAC_DIR)/inc
664*5113495bSYour NameMAC_SRC_DIR :=	$(MAC_DIR)/src
665*5113495bSYour Name
666*5113495bSYour NameMAC_INC := 	-I$(WLAN_ROOT)/$(MAC_INC_DIR) \
667*5113495bSYour Name		-I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
668*5113495bSYour Name		-I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
669*5113495bSYour Name		-I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
670*5113495bSYour Name		-I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \
671*5113495bSYour Name		-I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan
672*5113495bSYour Name
673*5113495bSYour NameMAC_DPH_OBJS :=	$(MAC_SRC_DIR)/dph/dph_hash_table.o
674*5113495bSYour Name
675*5113495bSYour Nameifeq ($(KERNEL_SUPPORTS_NESTED_COMPOSITES),y)
676*5113495bSYour NameMAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
677*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \
678*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_api.o \
679*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \
680*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_ft.o \
681*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \
682*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \
683*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \
684*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \
685*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \
686*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \
687*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \
688*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \
689*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \
690*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \
691*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \
692*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \
693*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \
694*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \
695*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \
696*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \
697*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \
698*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \
699*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \
700*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \
701*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \
702*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_session.o \
703*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \
704*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \
705*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \
706*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_trace.o \
707*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_utils.o
708*5113495bSYour Nameelse
709*5113495bSYour Name#composite of all of the above is in lim.c
710*5113495bSYour NameMAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim.o
711*5113495bSYour Nameendif
712*5113495bSYour Name
713*5113495bSYour Nameifeq ($(CONFIG_QCOM_TDLS), y)
714*5113495bSYour NameMAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o
715*5113495bSYour Nameendif
716*5113495bSYour Name
717*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_FILS), y)
718*5113495bSYour NameMAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_fils.o
719*5113495bSYour Nameendif
720*5113495bSYour Name
721*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
722*5113495bSYour NameMAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o
723*5113495bSYour Nameendif
724*5113495bSYour Name
725*5113495bSYour Nameifeq ($(CONFIG_QCACLD_WLAN_LFR2), y)
726*5113495bSYour Name	MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \
727*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \
728*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \
729*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \
730*5113495bSYour Name		$(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o
731*5113495bSYour Nameendif
732*5113495bSYour Name
733*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_11BE_MLO), y)
734*5113495bSYour Name	MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_mlo.o
735*5113495bSYour Nameendif
736*5113495bSYour Name
737*5113495bSYour NameMAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \
738*5113495bSYour Name		$(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \
739*5113495bSYour Name		$(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \
740*5113495bSYour Name		$(MAC_SRC_DIR)/pe/sch/sch_message.o
741*5113495bSYour Name
742*5113495bSYour NameMAC_RRM_OBJS :=	$(MAC_SRC_DIR)/pe/rrm/rrm_api.o
743*5113495bSYour Name
744*5113495bSYour NameMAC_OBJS := 	$(MAC_CFG_OBJS) \
745*5113495bSYour Name		$(MAC_DPH_OBJS) \
746*5113495bSYour Name		$(MAC_LIM_OBJS) \
747*5113495bSYour Name		$(MAC_SCH_OBJS) \
748*5113495bSYour Name		$(MAC_RRM_OBJS) \
749*5113495bSYour Name		$(MAC_NDP_OBJS)
750*5113495bSYour Name
751*5113495bSYour Name$(call add-wlan-objs,mac,$(MAC_OBJS))
752*5113495bSYour Name
753*5113495bSYour Name############ SAP ############
754*5113495bSYour NameSAP_DIR :=	core/sap
755*5113495bSYour NameSAP_INC_DIR :=	$(SAP_DIR)/inc
756*5113495bSYour NameSAP_SRC_DIR :=	$(SAP_DIR)/src
757*5113495bSYour Name
758*5113495bSYour NameSAP_INC := 	-I$(WLAN_ROOT)/$(SAP_INC_DIR) \
759*5113495bSYour Name		-I$(WLAN_ROOT)/$(SAP_SRC_DIR)
760*5113495bSYour Name
761*5113495bSYour NameSAP_OBJS :=	$(SAP_SRC_DIR)/sap_api_link_cntl.o \
762*5113495bSYour Name		$(SAP_SRC_DIR)/sap_ch_select.o \
763*5113495bSYour Name		$(SAP_SRC_DIR)/sap_fsm.o \
764*5113495bSYour Name		$(SAP_SRC_DIR)/sap_module.o
765*5113495bSYour Name
766*5113495bSYour Name$(call add-wlan-objs,sap,$(SAP_OBJS))
767*5113495bSYour Name
768*5113495bSYour Name############ CFG ############
769*5113495bSYour NameCFG_REL_DIR := $(WLAN_COMMON_ROOT)/cfg
770*5113495bSYour NameCFG_DIR := $(WLAN_ROOT)/$(CFG_REL_DIR)
771*5113495bSYour NameCFG_INC := \
772*5113495bSYour Name	-I$(CFG_DIR)/inc \
773*5113495bSYour Name	-I$(CFG_DIR)/dispatcher/inc \
774*5113495bSYour Name	-I$(WLAN_ROOT)/components/cfg
775*5113495bSYour NameCFG_OBJS := \
776*5113495bSYour Name	$(CFG_REL_DIR)/src/cfg.o
777*5113495bSYour Name
778*5113495bSYour Name$(call add-wlan-objs,cfg,$(CFG_OBJS))
779*5113495bSYour Name
780*5113495bSYour Name############ DFS ############
781*5113495bSYour NameDFS_DIR :=     $(WLAN_COMMON_ROOT)/umac/dfs
782*5113495bSYour NameDFS_CORE_INC_DIR := $(DFS_DIR)/core/inc
783*5113495bSYour NameDFS_CORE_SRC_DIR := $(DFS_DIR)/core/src
784*5113495bSYour Name
785*5113495bSYour NameDFS_DISP_INC_DIR := $(DFS_DIR)/dispatcher/inc
786*5113495bSYour NameDFS_DISP_SRC_DIR := $(DFS_DIR)/dispatcher/src
787*5113495bSYour NameDFS_TARGET_INC_DIR := $(WLAN_COMMON_ROOT)/target_if/dfs/inc
788*5113495bSYour NameDFS_CMN_SERVICES_INC_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/dfs/inc
789*5113495bSYour Name
790*5113495bSYour NameDFS_INC :=	-I$(WLAN_ROOT)/$(DFS_DISP_INC_DIR) \
791*5113495bSYour Name		-I$(WLAN_ROOT)/$(DFS_TARGET_INC_DIR) \
792*5113495bSYour Name		-I$(WLAN_ROOT)/$(DFS_CMN_SERVICES_INC_DIR)
793*5113495bSYour Name
794*5113495bSYour Nameifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y)
795*5113495bSYour Name
796*5113495bSYour NameDFS_OBJS :=	$(DFS_CORE_SRC_DIR)/misc/dfs.o \
797*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/misc/dfs_nol.o \
798*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/misc/dfs_random_chan_sel.o \
799*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/misc/dfs_process_radar_found_ind.o \
800*5113495bSYour Name		$(DFS_DISP_SRC_DIR)/wlan_dfs_init_deinit_api.o \
801*5113495bSYour Name		$(DFS_DISP_SRC_DIR)/wlan_dfs_lmac_api.o \
802*5113495bSYour Name		$(DFS_DISP_SRC_DIR)/wlan_dfs_mlme_api.o \
803*5113495bSYour Name		$(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o \
804*5113495bSYour Name		$(DFS_DISP_SRC_DIR)/wlan_dfs_ucfg_api.o \
805*5113495bSYour Name		$(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o \
806*5113495bSYour Name		$(DFS_DISP_SRC_DIR)/wlan_dfs_utils_api.o \
807*5113495bSYour Name		$(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs.o
808*5113495bSYour Name
809*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y)
810*5113495bSYour NameDFS_OBJS +=	$(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_full_offload.o
811*5113495bSYour Nameelse
812*5113495bSYour NameDFS_OBJS +=	$(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_partial_offload.o \
813*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/filtering/dfs_fcc_bin5.o \
814*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/filtering/dfs_bindetects.o \
815*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/filtering/dfs_debug.o \
816*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/filtering/dfs_init.o \
817*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/filtering/dfs_misc.o \
818*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/filtering/dfs_phyerr_tlv.o \
819*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/filtering/dfs_process_phyerr.o \
820*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/filtering/dfs_process_radarevent.o \
821*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/filtering/dfs_staggered.o \
822*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/filtering/dfs_radar.o \
823*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/filtering/dfs_partial_offload_radar.o \
824*5113495bSYour Name		$(DFS_CORE_SRC_DIR)/misc/dfs_filter_init.o
825*5113495bSYour Nameendif
826*5113495bSYour Nameendif
827*5113495bSYour Name
828*5113495bSYour Name$(call add-wlan-objs,dfs,$(DFS_OBJS))
829*5113495bSYour Name
830*5113495bSYour Name############ SME ############
831*5113495bSYour NameSME_DIR :=	core/sme
832*5113495bSYour NameSME_INC_DIR :=	$(SME_DIR)/inc
833*5113495bSYour NameSME_SRC_DIR :=	$(SME_DIR)/src
834*5113495bSYour Name
835*5113495bSYour NameSME_INC := 	-I$(WLAN_ROOT)/$(SME_INC_DIR) \
836*5113495bSYour Name		-I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr \
837*5113495bSYour Name		-I$(WLAN_ROOT)/$(SME_SRC_DIR)/qos \
838*5113495bSYour Name		-I$(WLAN_ROOT)/$(SME_SRC_DIR)/common \
839*5113495bSYour Name		-I$(WLAN_ROOT)/$(SME_SRC_DIR)/rrm \
840*5113495bSYour Name		-I$(WLAN_ROOT)/$(SME_SRC_DIR)/nan
841*5113495bSYour Name
842*5113495bSYour Nameifeq ($(KERNEL_SUPPORTS_NESTED_COMPOSITES),y)
843*5113495bSYour NameSME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \
844*5113495bSYour Name		$(SME_SRC_DIR)/csr/csr_api_scan.o \
845*5113495bSYour Name		$(SME_SRC_DIR)/csr/csr_cmd_process.o \
846*5113495bSYour Name		$(SME_SRC_DIR)/csr/csr_link_list.o \
847*5113495bSYour Name		$(SME_SRC_DIR)/csr/csr_util.o \
848*5113495bSYour Name
849*5113495bSYour NameSME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
850*5113495bSYour Name
851*5113495bSYour NameSME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
852*5113495bSYour Name		$(SME_SRC_DIR)/common/sme_power_save.o \
853*5113495bSYour Name		$(SME_SRC_DIR)/common/sme_trace.o
854*5113495bSYour Name
855*5113495bSYour NameSME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
856*5113495bSYour Name
857*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
858*5113495bSYour NameSME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o
859*5113495bSYour Nameendif
860*5113495bSYour Name
861*5113495bSYour NameSME_OBJS :=	$(SME_CMN_OBJS) \
862*5113495bSYour Name		$(SME_CSR_OBJS) \
863*5113495bSYour Name		$(SME_QOS_OBJS) \
864*5113495bSYour Name		$(SME_RRM_OBJS) \
865*5113495bSYour Name		$(SME_NAN_OBJS) \
866*5113495bSYour Name		$(SME_NDP_OBJS)
867*5113495bSYour Nameelse # KERNEL_SUPPORTS_NESTED_COMPOSITES
868*5113495bSYour NameSME_OBJS := $(SME_SRC_DIR)/sme.o
869*5113495bSYour Nameendif
870*5113495bSYour Name$(call add-wlan-objs,sme,$(SME_OBJS))
871*5113495bSYour Name
872*5113495bSYour Name############ NLINK ############
873*5113495bSYour NameNLINK_DIR     :=	$(WLAN_COMMON_ROOT)/utils/nlink
874*5113495bSYour NameNLINK_INC_DIR :=	$(NLINK_DIR)/inc
875*5113495bSYour NameNLINK_SRC_DIR :=	$(NLINK_DIR)/src
876*5113495bSYour Name
877*5113495bSYour NameNLINK_INC     := 	-I$(WLAN_ROOT)/$(NLINK_INC_DIR)
878*5113495bSYour NameNLINK_OBJS    :=	$(NLINK_SRC_DIR)/wlan_nlink_srv.o
879*5113495bSYour Name
880*5113495bSYour Name$(call add-wlan-objs,nlink,$(NLINK_OBJS))
881*5113495bSYour Name
882*5113495bSYour Name############ PTT ############
883*5113495bSYour NamePTT_DIR     :=	$(WLAN_COMMON_ROOT)/utils/ptt
884*5113495bSYour NamePTT_INC_DIR :=	$(PTT_DIR)/inc
885*5113495bSYour NamePTT_SRC_DIR :=	$(PTT_DIR)/src
886*5113495bSYour Name
887*5113495bSYour NamePTT_INC     := 	-I$(WLAN_ROOT)/$(PTT_INC_DIR)
888*5113495bSYour NamePTT_OBJS    :=	$(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
889*5113495bSYour Name
890*5113495bSYour Name$(call add-wlan-objs,ptt,$(PTT_OBJS))
891*5113495bSYour Name
892*5113495bSYour Name############ WLAN_LOGGING ############
893*5113495bSYour NameWLAN_LOGGING_DIR     :=	$(WLAN_COMMON_ROOT)/utils/logging
894*5113495bSYour NameWLAN_LOGGING_INC_DIR :=	$(WLAN_LOGGING_DIR)/inc
895*5113495bSYour NameWLAN_LOGGING_SRC_DIR :=	$(WLAN_LOGGING_DIR)/src
896*5113495bSYour Name
897*5113495bSYour NameWLAN_LOGGING_INC     := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR)
898*5113495bSYour NameWLAN_LOGGING_OBJS    := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o \
899*5113495bSYour Name		$(WLAN_LOGGING_SRC_DIR)/wlan_roam_debug.o
900*5113495bSYour Name
901*5113495bSYour Name$(call add-wlan-objs,wlan_logging,$(WLAN_LOGGING_OBJS))
902*5113495bSYour Name
903*5113495bSYour Name############ SYS ############
904*5113495bSYour NameSYS_DIR :=	core/mac/src/sys
905*5113495bSYour Name
906*5113495bSYour NameSYS_INC := 	-I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
907*5113495bSYour Name		-I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
908*5113495bSYour Name		-I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
909*5113495bSYour Name		-I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
910*5113495bSYour Name
911*5113495bSYour NameSYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
912*5113495bSYour NameSYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
913*5113495bSYour NameSYS_OBJS :=	$(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
914*5113495bSYour Name		$(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \
915*5113495bSYour Name		$(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \
916*5113495bSYour Name		$(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \
917*5113495bSYour Name		$(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
918*5113495bSYour Name		$(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \
919*5113495bSYour Name		$(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \
920*5113495bSYour Name		$(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o
921*5113495bSYour Name
922*5113495bSYour Name$(call add-wlan-objs,sys,$(SYS_OBJS))
923*5113495bSYour Name
924*5113495bSYour Name############ Qcacld WMI ###################
925*5113495bSYour NameWMI_DIR := components/wmi
926*5113495bSYour Name
927*5113495bSYour NameCLD_WMI_INC  :=	-I$(WLAN_ROOT)/$(WMI_DIR)/inc
928*5113495bSYour Name
929*5113495bSYour Nameifeq ($(CONFIG_WMI_ROAM_SUPPORT), y)
930*5113495bSYour NameCLD_WMI_ROAM_OBJS +=	$(WMI_DIR)/src/wmi_unified_roam_tlv.o \
931*5113495bSYour Name			$(WMI_DIR)/src/wmi_unified_roam_api.o
932*5113495bSYour Nameendif
933*5113495bSYour Name
934*5113495bSYour Nameifeq ($(CONFIG_CP_STATS), y)
935*5113495bSYour NameCLD_WMI_MC_CP_STATS_OBJS :=	$(WMI_DIR)/src/wmi_unified_mc_cp_stats_tlv.o \
936*5113495bSYour Name				$(WMI_DIR)/src/wmi_unified_mc_cp_stats_api.o
937*5113495bSYour Nameendif
938*5113495bSYour Name
939*5113495bSYour Nameifeq ($(CONFIG_QCA_TARGET_IF_MLME), y)
940*5113495bSYour NameCLD_WMI_MLME_OBJS += $(WMI_DIR)/src/wmi_unified_mlme_tlv.o \
941*5113495bSYour Name		     $(WMI_DIR)/src/wmi_unified_mlme_api.o
942*5113495bSYour Nameendif
943*5113495bSYour Name
944*5113495bSYour NameCLD_WMI_OBJS :=	$(CLD_WMI_ROAM_OBJS) \
945*5113495bSYour Name		$(CLD_WMI_MC_CP_STATS_OBJS) \
946*5113495bSYour Name		$(CLD_WMI_MLME_OBJS)
947*5113495bSYour Name
948*5113495bSYour Name$(call add-wlan-objs,cld_wmi,$(CLD_WMI_OBJS))
949*5113495bSYour Name
950*5113495bSYour Name############ Qca-wifi-host-cmn ############
951*5113495bSYour NameQDF_OS_DIR :=	qdf
952*5113495bSYour NameQDF_OS_INC_DIR := $(QDF_OS_DIR)/inc
953*5113495bSYour NameQDF_OS_SRC_DIR := $(QDF_OS_DIR)/src
954*5113495bSYour NameQDF_OS_LINUX_SRC_DIR := $(QDF_OS_DIR)/linux/src
955*5113495bSYour NameQDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR)
956*5113495bSYour NameQDF_LINUX_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_LINUX_SRC_DIR)
957*5113495bSYour NameQDF_TEST_DIR := $(QDF_OS_DIR)/test
958*5113495bSYour NameQDF_TEST_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_TEST_DIR)
959*5113495bSYour Name
960*5113495bSYour NameQDF_INC := \
961*5113495bSYour Name	-I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \
962*5113495bSYour Name	-I$(WLAN_COMMON_INC)/$(QDF_OS_LINUX_SRC_DIR) \
963*5113495bSYour Name	-I$(WLAN_COMMON_INC)/$(QDF_TEST_DIR)
964*5113495bSYour Name
965*5113495bSYour NameQDF_OBJS := \
966*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_crypto.o \
967*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_defer.o \
968*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_delayed_work.o \
969*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_event.o \
970*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_file.o \
971*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_func_tracker.o \
972*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_idr.o \
973*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_list.o \
974*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_lock.o \
975*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_mc_timer.o \
976*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_mem.o \
977*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_nbuf.o \
978*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_periodic_work.o \
979*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_status.o \
980*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_threads.o \
981*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_trace.o \
982*5113495bSYour Name	$(QDF_LINUX_OBJ_DIR)/qdf_nbuf_frag.o \
983*5113495bSYour Name	$(QDF_OBJ_DIR)/qdf_flex_mem.o \
984*5113495bSYour Name	$(QDF_OBJ_DIR)/qdf_parse.o \
985*5113495bSYour Name	$(QDF_OBJ_DIR)/qdf_platform.o \
986*5113495bSYour Name	$(QDF_OBJ_DIR)/qdf_str.o \
987*5113495bSYour Name	$(QDF_OBJ_DIR)/qdf_talloc.o \
988*5113495bSYour Name	$(QDF_OBJ_DIR)/qdf_types.o \
989*5113495bSYour Name
990*5113495bSYour Nameifeq ($(CONFIG_CNSS2_SSR_DRIVER_DUMP), y)
991*5113495bSYour NameQDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_ssr_driver_dump.o
992*5113495bSYour Nameendif
993*5113495bSYour Name
994*5113495bSYour Nameifeq ($(CONFIG_WLAN_DEBUGFS), y)
995*5113495bSYour NameQDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_debugfs.o
996*5113495bSYour Nameendif
997*5113495bSYour Name
998*5113495bSYour Nameifeq ($(CONFIG_WLAN_TRACEPOINTS), y)
999*5113495bSYour NameQDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_tracepoint.o
1000*5113495bSYour Nameendif
1001*5113495bSYour Name
1002*5113495bSYour Nameifeq ($(CONFIG_WLAN_STREAMFS), y)
1003*5113495bSYour NameQDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_streamfs.o
1004*5113495bSYour Nameendif
1005*5113495bSYour Name
1006*5113495bSYour Nameifeq ($(CONFIG_IPA_OFFLOAD), y)
1007*5113495bSYour NameQDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_ipa.o
1008*5113495bSYour Nameendif
1009*5113495bSYour Name
1010*5113495bSYour Nameifeq ($(CONFIG_DP_PKT_ADD_TIMESTAMP), y)
1011*5113495bSYour NameQDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_pkt_add_timestamp.o
1012*5113495bSYour Nameendif
1013*5113495bSYour Name
1014*5113495bSYour Name# enable CPU hotplug support if SMP is enabled
1015*5113495bSYour Nameifeq ($(CONFIG_SMP), y)
1016*5113495bSYour Name	QDF_OBJS += $(QDF_OBJ_DIR)/qdf_cpuhp.o
1017*5113495bSYour Name	QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_cpuhp.o
1018*5113495bSYour Nameendif
1019*5113495bSYour Name
1020*5113495bSYour Nameifeq ($(CONFIG_LEAK_DETECTION), y)
1021*5113495bSYour Name	QDF_OBJS += $(QDF_OBJ_DIR)/qdf_debug_domain.o
1022*5113495bSYour Name	QDF_OBJS += $(QDF_OBJ_DIR)/qdf_tracker.o
1023*5113495bSYour Nameendif
1024*5113495bSYour Name
1025*5113495bSYour Nameifeq ($(CONFIG_WLAN_HANG_EVENT), y)
1026*5113495bSYour Name	QDF_OBJS += $(QDF_OBJ_DIR)/qdf_notifier.o
1027*5113495bSYour Nameendif
1028*5113495bSYour Name
1029*5113495bSYour Nameifeq ($(CONFIG_QDF_TEST), y)
1030*5113495bSYour Name	QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_delayed_work_test.o
1031*5113495bSYour Name	QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_hashtable_test.o
1032*5113495bSYour Name	QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_periodic_work_test.o
1033*5113495bSYour Name	QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_ptr_hash_test.o
1034*5113495bSYour Name	QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_slist_test.o
1035*5113495bSYour Name	QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_talloc_test.o
1036*5113495bSYour Name	QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_tracker_test.o
1037*5113495bSYour Name	QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_types_test.o
1038*5113495bSYour Nameendif
1039*5113495bSYour Name
1040*5113495bSYour Nameifeq ($(CONFIG_WLAN_HANG_EVENT), y)
1041*5113495bSYour Name	QDF_OBJS += $(QDF_OBJ_DIR)/qdf_hang_event_notifier.o
1042*5113495bSYour Nameendif
1043*5113495bSYour Name
1044*5113495bSYour Nameifeq ($(CONFIG_WLAN_LRO), y)
1045*5113495bSYour NameQDF_OBJS +=     $(QDF_LINUX_OBJ_DIR)/qdf_lro.o
1046*5113495bSYour Nameendif
1047*5113495bSYour Name
1048*5113495bSYour Name$(call add-wlan-objs,qdf,$(QDF_OBJS))
1049*5113495bSYour Name
1050*5113495bSYour Name############ WBUFF ############
1051*5113495bSYour NameWBUFF_OS_DIR :=	wbuff
1052*5113495bSYour NameWBUFF_OS_INC_DIR := $(WBUFF_OS_DIR)/inc
1053*5113495bSYour NameWBUFF_OS_SRC_DIR := $(WBUFF_OS_DIR)/src
1054*5113495bSYour NameWBUFF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WBUFF_OS_SRC_DIR)
1055*5113495bSYour Name
1056*5113495bSYour NameWBUFF_INC :=	-I$(WLAN_COMMON_INC)/$(WBUFF_OS_INC_DIR) \
1057*5113495bSYour Name
1058*5113495bSYour Nameifeq ($(CONFIG_WLAN_WBUFF), y)
1059*5113495bSYour NameWBUFF_OBJS += 	$(WBUFF_OBJ_DIR)/wbuff.o
1060*5113495bSYour Nameendif
1061*5113495bSYour Name
1062*5113495bSYour Name$(call add-wlan-objs,wbuff,$(WBUFF_OBJS))
1063*5113495bSYour Name
1064*5113495bSYour Name##########QAL #######
1065*5113495bSYour NameQAL_OS_DIR :=	qal
1066*5113495bSYour NameQAL_OS_INC_DIR := $(QAL_OS_DIR)/inc
1067*5113495bSYour NameQAL_OS_LINUX_SRC_DIR := $(QAL_OS_DIR)/linux/src
1068*5113495bSYour Name
1069*5113495bSYour NameQAL_INC :=	-I$(WLAN_COMMON_INC)/$(QAL_OS_INC_DIR) \
1070*5113495bSYour Name		-I$(WLAN_COMMON_INC)/$(QAL_OS_LINUX_SRC_DIR)
1071*5113495bSYour Name
1072*5113495bSYour Name
1073*5113495bSYour Name##########OS_IF #######
1074*5113495bSYour NameOS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if
1075*5113495bSYour Name
1076*5113495bSYour NameOS_IF_INC += -I$(WLAN_COMMON_INC)/os_if/linux \
1077*5113495bSYour Name            -I$(WLAN_COMMON_INC)/os_if/linux/scan/inc \
1078*5113495bSYour Name            -I$(WLAN_COMMON_INC)/os_if/linux/spectral/inc \
1079*5113495bSYour Name            -I$(WLAN_COMMON_INC)/os_if/linux/crypto/inc \
1080*5113495bSYour Name            -I$(WLAN_COMMON_INC)/os_if/linux/mlme/inc \
1081*5113495bSYour Name            -I$(WLAN_COMMON_INC)/os_if/linux/gpio/inc
1082*5113495bSYour Name
1083*5113495bSYour NameOS_IF_OBJ += $(OS_IF_DIR)/linux/wlan_osif_request_manager.o \
1084*5113495bSYour Name	     $(OS_IF_DIR)/linux/crypto/src/wlan_nl_to_crypto_params.o \
1085*5113495bSYour Name	     $(OS_IF_DIR)/linux/mlme/src/osif_cm_util.o \
1086*5113495bSYour Name	     $(OS_IF_DIR)/linux/mlme/src/osif_cm_connect_rsp.o \
1087*5113495bSYour Name	     $(OS_IF_DIR)/linux/mlme/src/osif_cm_disconnect_rsp.o \
1088*5113495bSYour Name	     $(OS_IF_DIR)/linux/mlme/src/osif_cm_req.o \
1089*5113495bSYour Name	     $(OS_IF_DIR)/linux/mlme/src/osif_cm_roam_rsp.o \
1090*5113495bSYour Name	     $(OS_IF_DIR)/linux/mlme/src/osif_vdev_mgr_util.o
1091*5113495bSYour Name
1092*5113495bSYour NameOS_IF_OBJ += $(OS_IF_DIR)/linux/crypto/src/wlan_cfg80211_crypto.o
1093*5113495bSYour Name
1094*5113495bSYour Name$(call add-wlan-objs,os_if,$(OS_IF_OBJ))
1095*5113495bSYour Name
1096*5113495bSYour Name############ UMAC_DISP ############
1097*5113495bSYour NameUMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if
1098*5113495bSYour NameUMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc
1099*5113495bSYour NameUMAC_DISP_SRC_DIR := $(UMAC_DISP_DIR)/src
1100*5113495bSYour NameUMAC_DISP_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_DISP_SRC_DIR)
1101*5113495bSYour Name
1102*5113495bSYour NameUMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR)
1103*5113495bSYour Name
1104*5113495bSYour NameUMAC_DISP_OBJS := $(UMAC_DISP_OBJ_DIR)/wlan_lmac_if.o
1105*5113495bSYour Name
1106*5113495bSYour Name$(call add-wlan-objs,umac_disp,$(UMAC_DISP_OBJS))
1107*5113495bSYour Name
1108*5113495bSYour Name############# UMAC_SCAN ############
1109*5113495bSYour NameUMAC_SCAN_DIR := umac/scan
1110*5113495bSYour NameUMAC_SCAN_DISP_INC_DIR := $(UMAC_SCAN_DIR)/dispatcher/inc
1111*5113495bSYour NameUMAC_SCAN_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/core/src
1112*5113495bSYour NameUMAC_SCAN_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/dispatcher/src
1113*5113495bSYour NameUMAC_TARGET_SCAN_INC := -I$(WLAN_COMMON_INC)/target_if/scan/inc
1114*5113495bSYour Name
1115*5113495bSYour NameUMAC_SCAN_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SCAN_DISP_INC_DIR)
1116*5113495bSYour NameUMAC_SCAN_OBJS := $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db.o \
1117*5113495bSYour Name		$(UMAC_SCAN_CORE_DIR)/wlan_scan_11d.o \
1118*5113495bSYour Name		$(UMAC_SCAN_CORE_DIR)/wlan_scan_filter.o \
1119*5113495bSYour Name		$(UMAC_SCAN_CORE_DIR)/wlan_scan_main.o \
1120*5113495bSYour Name		$(UMAC_SCAN_CORE_DIR)/wlan_scan_manager.o \
1121*5113495bSYour Name		$(UMAC_SCAN_DISP_DIR)/wlan_scan_tgt_api.o \
1122*5113495bSYour Name		$(UMAC_SCAN_DISP_DIR)/wlan_scan_ucfg_api.o \
1123*5113495bSYour Name		$(UMAC_SCAN_DISP_DIR)/wlan_scan_api.o \
1124*5113495bSYour Name		$(UMAC_SCAN_DISP_DIR)/wlan_scan_utils_api.o \
1125*5113495bSYour Name		$(WLAN_COMMON_ROOT)/os_if/linux/scan/src/wlan_cfg80211_scan.o \
1126*5113495bSYour Name		$(WLAN_COMMON_ROOT)/os_if/linux/wlan_cfg80211.o \
1127*5113495bSYour Name		$(WLAN_COMMON_ROOT)/target_if/scan/src/target_if_scan.o
1128*5113495bSYour Name
1129*5113495bSYour Nameifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y)
1130*5113495bSYour NameUMAC_SCAN_OBJS += $(UMAC_SCAN_DISP_DIR)/wlan_extscan_api.o
1131*5113495bSYour Nameendif
1132*5113495bSYour Name
1133*5113495bSYour Nameifeq ($(CONFIG_BAND_6GHZ), y)
1134*5113495bSYour NameUMAC_SCAN_OBJS += $(UMAC_SCAN_CORE_DIR)/wlan_scan_manager_6ghz.o
1135*5113495bSYour Nameendif
1136*5113495bSYour Name
1137*5113495bSYour Name$(call add-wlan-objs,umac_scan,$(UMAC_SCAN_OBJS))
1138*5113495bSYour Name
1139*5113495bSYour Name############# UMAC_SPECTRAL_SCAN ############
1140*5113495bSYour NameUMAC_SPECTRAL_DIR := spectral
1141*5113495bSYour NameUMAC_SPECTRAL_DISP_INC_DIR := $(UMAC_SPECTRAL_DIR)/dispatcher/inc
1142*5113495bSYour NameUMAC_SPECTRAL_CORE_INC_DIR := $(UMAC_SPECTRAL_DIR)/core
1143*5113495bSYour NameUMAC_SPECTRAL_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/core
1144*5113495bSYour NameUMAC_SPECTRAL_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/dispatcher/src
1145*5113495bSYour NameUMAC_TARGET_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/target_if/spectral
1146*5113495bSYour Name
1147*5113495bSYour NameUMAC_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_DISP_INC_DIR) \
1148*5113495bSYour Name			-I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_CORE_INC_DIR) \
1149*5113495bSYour Name			-I$(WLAN_COMMON_INC)/target_if/direct_buf_rx/inc
1150*5113495bSYour Nameifeq ($(CONFIG_WLAN_CONV_SPECTRAL_ENABLE),y)
1151*5113495bSYour NameUMAC_SPECTRAL_OBJS := $(UMAC_SPECTRAL_CORE_DIR)/spectral_offload.o \
1152*5113495bSYour Name		$(UMAC_SPECTRAL_CORE_DIR)/spectral_common.o \
1153*5113495bSYour Name		$(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_ucfg_api.o \
1154*5113495bSYour Name		$(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_utils_api.o \
1155*5113495bSYour Name		$(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_tgt_api.o \
1156*5113495bSYour Name		$(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/wlan_cfg80211_spectral.o \
1157*5113495bSYour Name		$(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/os_if_spectral_netlink.o \
1158*5113495bSYour Name		$(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_netlink.o \
1159*5113495bSYour Name		$(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_phyerr.o \
1160*5113495bSYour Name		$(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral.o \
1161*5113495bSYour Name		$(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_sim.o
1162*5113495bSYour Nameendif
1163*5113495bSYour Name
1164*5113495bSYour Name$(call add-wlan-objs,umac_spectral,$(UMAC_SPECTRAL_OBJS))
1165*5113495bSYour Name
1166*5113495bSYour Name############# WLAN_CFR ############
1167*5113495bSYour NameWLAN_CFR_DIR := umac/cfr
1168*5113495bSYour NameWLAN_CFR_DISP_INC_DIR := $(WLAN_CFR_DIR)/dispatcher/inc
1169*5113495bSYour NameWLAN_CFR_CORE_INC_DIR := $(WLAN_CFR_DIR)/core/inc
1170*5113495bSYour NameWLAN_CFR_CORE_DIR := $(WLAN_COMMON_ROOT)/$(WLAN_CFR_DIR)/core/src
1171*5113495bSYour NameWLAN_CFR_DISP_DIR := $(WLAN_COMMON_ROOT)/$(WLAN_CFR_DIR)/dispatcher/src
1172*5113495bSYour NameWLAN_CFR_TARGET_INC_DIR := target_if/cfr/inc
1173*5113495bSYour Name
1174*5113495bSYour NameWLAN_CFR_INC := -I$(WLAN_COMMON_INC)/$(WLAN_CFR_DISP_INC_DIR) \
1175*5113495bSYour Name			-I$(WLAN_COMMON_INC)/$(WLAN_CFR_CORE_INC_DIR) \
1176*5113495bSYour Name			-I$(WLAN_COMMON_INC)/$(WLAN_CFR_TARGET_INC_DIR)
1177*5113495bSYour Nameifeq ($(CONFIG_WLAN_CFR_ENABLE),y)
1178*5113495bSYour NameWLAN_CFR_OBJS := $(WLAN_CFR_CORE_DIR)/cfr_common.o \
1179*5113495bSYour Name                $(WLAN_CFR_DISP_DIR)/wlan_cfr_tgt_api.o \
1180*5113495bSYour Name                $(WLAN_CFR_DISP_DIR)/wlan_cfr_ucfg_api.o \
1181*5113495bSYour Name                $(WLAN_CFR_DISP_DIR)/wlan_cfr_utils_api.o \
1182*5113495bSYour Name		$(WLAN_COMMON_ROOT)/target_if/cfr/src/target_if_cfr.o \
1183*5113495bSYour Name		$(WLAN_COMMON_ROOT)/target_if/cfr/src/target_if_cfr_6490.o
1184*5113495bSYour Nameifeq ($(CONFIG_WLAN_ENH_CFR_ENABLE),y)
1185*5113495bSYour NameWLAN_CFR_OBJS += $(WLAN_COMMON_ROOT)/target_if/cfr/src/target_if_cfr_enh.o
1186*5113495bSYour Nameendif
1187*5113495bSYour Nameifeq ($(CONFIG_WLAN_CFR_ADRASTEA),y)
1188*5113495bSYour NameWLAN_CFR_OBJS += $(WLAN_COMMON_ROOT)/target_if/cfr/src/target_if_cfr_adrastea.o
1189*5113495bSYour Nameendif
1190*5113495bSYour Nameifeq ($(CONFIG_WLAN_CFR_DBR),y)
1191*5113495bSYour NameWLAN_CFR_OBJS += $(WLAN_COMMON_ROOT)/target_if/cfr/src/target_if_cfr_dbr.o
1192*5113495bSYour Nameendif
1193*5113495bSYour Nameendif
1194*5113495bSYour Name
1195*5113495bSYour Name$(call add-wlan-objs,wlan_cfr,$(WLAN_CFR_OBJS))
1196*5113495bSYour Name
1197*5113495bSYour Name############# GPIO_CFG ############
1198*5113495bSYour NameUMAC_GPIO_DIR := gpio
1199*5113495bSYour NameUMAC_GPIO_DISP_INC_DIR := $(UMAC_GPIO_DIR)/dispatcher/inc
1200*5113495bSYour NameUMAC_GPIO_CORE_INC_DIR := $(UMAC_GPIO_DIR)/core/inc
1201*5113495bSYour NameUMAC_GPIO_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GPIO_DIR)/core/src
1202*5113495bSYour NameUMAC_GPIO_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GPIO_DIR)/dispatcher/src
1203*5113495bSYour NameUMAC_TARGET_GPIO_INC := -I$(WLAN_COMMON_INC)/target_if/gpio
1204*5113495bSYour Name
1205*5113495bSYour NameUMAC_GPIO_INC := -I$(WLAN_COMMON_INC)/$(UMAC_GPIO_DISP_INC_DIR) \
1206*5113495bSYour Name			-I$(WLAN_COMMON_INC)/$(UMAC_GPIO_CORE_INC_DIR)
1207*5113495bSYour Name
1208*5113495bSYour Nameifeq ($(CONFIG_FEATURE_GPIO_CFG),y)
1209*5113495bSYour NameUMAC_GPIO_OBJS := $(UMAC_GPIO_DISP_DIR)/wlan_gpio_tgt_api.o \
1210*5113495bSYour Name		$(UMAC_GPIO_DISP_DIR)/wlan_gpio_ucfg_api.o \
1211*5113495bSYour Name		$(UMAC_GPIO_CORE_DIR)/wlan_gpio_api.o \
1212*5113495bSYour Name		$(WLAN_COMMON_ROOT)/os_if/linux/gpio/src/wlan_cfg80211_gpio.o \
1213*5113495bSYour Name		$(WLAN_COMMON_ROOT)/target_if/gpio/target_if_gpio.o
1214*5113495bSYour Nameendif
1215*5113495bSYour Name
1216*5113495bSYour Name$(call add-wlan-objs,umac_gpio,$(UMAC_GPIO_OBJS))
1217*5113495bSYour Name
1218*5113495bSYour Name############# UMAC_GREEN_AP ############
1219*5113495bSYour NameUMAC_GREEN_AP_DIR := umac/green_ap
1220*5113495bSYour NameUMAC_GREEN_AP_DISP_INC_DIR := $(UMAC_GREEN_AP_DIR)/dispatcher/inc
1221*5113495bSYour NameUMAC_GREEN_AP_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/core/src
1222*5113495bSYour NameUMAC_GREEN_AP_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/dispatcher/src
1223*5113495bSYour NameUMAC_TARGET_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/target_if/green_ap/inc
1224*5113495bSYour Name
1225*5113495bSYour NameUMAC_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_GREEN_AP_DISP_INC_DIR)
1226*5113495bSYour Name
1227*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y)
1228*5113495bSYour NameUMAC_GREEN_AP_OBJS := $(UMAC_GREEN_AP_CORE_DIR)/wlan_green_ap_main.o \
1229*5113495bSYour Name		$(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_api.o \
1230*5113495bSYour Name                $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_ucfg_api.o \
1231*5113495bSYour Name                $(WLAN_COMMON_ROOT)/target_if/green_ap/src/target_if_green_ap.o
1232*5113495bSYour Nameendif
1233*5113495bSYour Name
1234*5113495bSYour Name$(call add-wlan-objs,umac_green_ap,$(UMAC_GREEN_AP_OBJS))
1235*5113495bSYour Name
1236*5113495bSYour Name############# WLAN_CONV_CRYPTO_SUPPORTED ############
1237*5113495bSYour NameUMAC_CRYPTO_DIR := umac/cmn_services/crypto
1238*5113495bSYour NameUMAC_CRYPTO_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_CRYPTO_DIR)/src
1239*5113495bSYour NameUMAC_CRYPTO_INC := -I$(WLAN_COMMON_INC)/$(UMAC_CRYPTO_DIR)/inc \
1240*5113495bSYour Name		-I$(WLAN_COMMON_INC)/$(UMAC_CRYPTO_DIR)/src
1241*5113495bSYour Name
1242*5113495bSYour NameUMAC_CRYPTO_OBJS := $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_global_api.o \
1243*5113495bSYour Name		$(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_ucfg_api.o \
1244*5113495bSYour Name		$(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_main.o \
1245*5113495bSYour Name		$(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_obj_mgr.o \
1246*5113495bSYour Name		$(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_param_handling.o
1247*5113495bSYour Name
1248*5113495bSYour Name$(call add-wlan-objs,umac_crypto,$(UMAC_CRYPTO_OBJS))
1249*5113495bSYour Name
1250*5113495bSYour Name############# FTM CORE ############
1251*5113495bSYour NameFTM_CORE_DIR := ftm
1252*5113495bSYour NameTARGET_IF_FTM_DIR := target_if/ftm
1253*5113495bSYour NameOS_IF_LINUX_FTM_DIR := os_if/linux/ftm
1254*5113495bSYour Name
1255*5113495bSYour NameFTM_CORE_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/core/src
1256*5113495bSYour NameFTM_DISP_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/dispatcher/src
1257*5113495bSYour NameTARGET_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(TARGET_IF_FTM_DIR)/src
1258*5113495bSYour NameOS_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(OS_IF_LINUX_FTM_DIR)/src
1259*5113495bSYour Name
1260*5113495bSYour NameFTM_CORE_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/core/src
1261*5113495bSYour NameFTM_DISP_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/dispatcher/inc
1262*5113495bSYour NameTARGET_IF_FTM_INC := $(WLAN_COMMON_INC)/$(TARGET_IF_FTM_DIR)/inc
1263*5113495bSYour NameOS_IF_FTM_INC := $(WLAN_COMMON_INC)/$(OS_IF_LINUX_FTM_DIR)/inc
1264*5113495bSYour Name
1265*5113495bSYour NameFTM_INC := -I$(FTM_DISP_INC)	\
1266*5113495bSYour Name	   -I$(FTM_CORE_INC)	\
1267*5113495bSYour Name	   -I$(OS_IF_FTM_INC)	\
1268*5113495bSYour Name	   -I$(TARGET_IF_FTM_INC)
1269*5113495bSYour Name
1270*5113495bSYour Nameifeq ($(CONFIG_QCA_WIFI_FTM), y)
1271*5113495bSYour NameFTM_OBJS := $(FTM_DISP_SRC)/wlan_ftm_init_deinit.o \
1272*5113495bSYour Name	    $(FTM_DISP_SRC)/wlan_ftm_ucfg_api.o \
1273*5113495bSYour Name	    $(FTM_CORE_SRC)/wlan_ftm_svc.o \
1274*5113495bSYour Name	    $(TARGET_IF_FTM_SRC)/target_if_ftm.o
1275*5113495bSYour Name
1276*5113495bSYour Nameifeq ($(QCA_WIFI_FTM_NL80211), y)
1277*5113495bSYour NameFTM_OBJS += $(OS_IF_FTM_SRC)/wlan_cfg80211_ftm.o
1278*5113495bSYour Nameendif
1279*5113495bSYour Name
1280*5113495bSYour Nameifeq ($(CONFIG_LINUX_QCMBR), y)
1281*5113495bSYour NameFTM_OBJS += $(OS_IF_FTM_SRC)/wlan_ioctl_ftm.o
1282*5113495bSYour Nameendif
1283*5113495bSYour Name
1284*5113495bSYour Nameendif
1285*5113495bSYour Name
1286*5113495bSYour Name$(call add-wlan-objs,ftm,$(FTM_OBJS))
1287*5113495bSYour Name
1288*5113495bSYour Name############# UMAC_CMN_SERVICES ############
1289*5113495bSYour NameUMAC_COMMON_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/cmn_defs/inc \
1290*5113495bSYour Name		-I$(WLAN_COMMON_INC)/umac/cmn_services/utils/inc
1291*5113495bSYour NameUMAC_COMMON_OBJS := $(WLAN_COMMON_ROOT)/umac/cmn_services/utils/src/wlan_utility.o
1292*5113495bSYour Name
1293*5113495bSYour Name$(call add-wlan-objs,umac_common,$(UMAC_COMMON_OBJS))
1294*5113495bSYour Name
1295*5113495bSYour Name############ CDS (Connectivity driver services) ############
1296*5113495bSYour NameCDS_DIR :=	core/cds
1297*5113495bSYour NameCDS_INC_DIR :=	$(CDS_DIR)/inc
1298*5113495bSYour NameCDS_SRC_DIR :=	$(CDS_DIR)/src
1299*5113495bSYour Name
1300*5113495bSYour NameCDS_INC := 	-I$(WLAN_ROOT)/$(CDS_INC_DIR) \
1301*5113495bSYour Name		-I$(WLAN_ROOT)/$(CDS_SRC_DIR)
1302*5113495bSYour Name
1303*5113495bSYour NameCDS_OBJS :=	$(CDS_SRC_DIR)/cds_api.o \
1304*5113495bSYour Name		$(CDS_SRC_DIR)/cds_reg_service.o \
1305*5113495bSYour Name		$(CDS_SRC_DIR)/cds_packet.o \
1306*5113495bSYour Name		$(CDS_SRC_DIR)/cds_regdomain.o \
1307*5113495bSYour Name		$(CDS_SRC_DIR)/cds_sched.o \
1308*5113495bSYour Name		$(CDS_SRC_DIR)/cds_utils.o
1309*5113495bSYour Name
1310*5113495bSYour Name$(call add-wlan-objs,cds,$(CDS_OBJS))
1311*5113495bSYour Name
1312*5113495bSYour Name###### UMAC OBJMGR ########
1313*5113495bSYour NameUMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr
1314*5113495bSYour Name
1315*5113495bSYour NameUMAC_OBJMGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/inc \
1316*5113495bSYour Name		-I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/src \
1317*5113495bSYour Name		-I$(WLAN_COMMON_INC)/umac/cmn_services/inc
1318*5113495bSYour Name
1319*5113495bSYour NameUMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \
1320*5113495bSYour Name		$(UMAC_OBJMGR_DIR)/src/wlan_objmgr_pdev_obj.o \
1321*5113495bSYour Name		$(UMAC_OBJMGR_DIR)/src/wlan_objmgr_peer_obj.o \
1322*5113495bSYour Name		$(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \
1323*5113495bSYour Name		$(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o
1324*5113495bSYour Name
1325*5113495bSYour Nameifeq ($(CONFIG_WLAN_OBJMGR_DEBUG), y)
1326*5113495bSYour NameUMAC_OBJMGR_OBJS += $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_debug.o
1327*5113495bSYour Nameendif
1328*5113495bSYour Name
1329*5113495bSYour Name$(call add-wlan-objs,umac_objmgr,$(UMAC_OBJMGR_OBJS))
1330*5113495bSYour Name
1331*5113495bSYour Name###########  UMAC MGMT TXRX ##########
1332*5113495bSYour NameUMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx
1333*5113495bSYour Name
1334*5113495bSYour NameUMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \
1335*5113495bSYour Name
1336*5113495bSYour NameUMAC_MGMT_TXRX_OBJS := $(UMAC_MGMT_TXRX_DIR)/core/src/wlan_mgmt_txrx_main.o \
1337*5113495bSYour Name	$(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_utils_api.o \
1338*5113495bSYour Name	$(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_tgt_api.o
1339*5113495bSYour Name
1340*5113495bSYour Name$(call add-wlan-objs,umac_mgmt_txrx,$(UMAC_MGMT_TXRX_OBJS))
1341*5113495bSYour Name
1342*5113495bSYour Name###### UMAC INTERFACE_MGR ########
1343*5113495bSYour NameUMAC_INTERFACE_MGR_COMP_DIR :=	components/cmn_services/interface_mgr
1344*5113495bSYour NameUMAC_INTERFACE_MGR_CMN_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/interface_mgr
1345*5113495bSYour Name
1346*5113495bSYour NameUMAC_INTERFACE_MGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/interface_mgr/inc \
1347*5113495bSYour Name			 -I$(WLAN_ROOT)/components/cmn_services/interface_mgr/inc
1348*5113495bSYour Name
1349*5113495bSYour NameUMAC_INTERFACE_MGR_OBJS := $(UMAC_INTERFACE_MGR_CMN_DIR)/src/wlan_if_mgr_main.o \
1350*5113495bSYour Name			  $(UMAC_INTERFACE_MGR_CMN_DIR)/src/wlan_if_mgr_core.o \
1351*5113495bSYour Name			  $(UMAC_INTERFACE_MGR_COMP_DIR)/src/wlan_if_mgr_sta.o \
1352*5113495bSYour Name			  $(UMAC_INTERFACE_MGR_COMP_DIR)/src/wlan_if_mgr_sap.o \
1353*5113495bSYour Name			  $(UMAC_INTERFACE_MGR_COMP_DIR)/src/wlan_if_mgr_roam.o
1354*5113495bSYour Name
1355*5113495bSYour Name$(call add-wlan-objs,umac_ifmgr,$(UMAC_INTERFACE_MGR_OBJS))
1356*5113495bSYour Name
1357*5113495bSYour Name###### UMAC MLO_MGR ########
1358*5113495bSYour NameUMAC_MLO_MGR_CMN_DIR :=	$(WLAN_COMMON_ROOT)/umac/mlo_mgr
1359*5113495bSYour NameMLO_MGR_TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if/mlo_mgr
1360*5113495bSYour Name
1361*5113495bSYour NameUMAC_MLO_MGR_CLD_DIR := components/umac/mlme/mlo_mgr
1362*5113495bSYour NameUMAC_MLO_MGR_CLD_INC := -I$(WLAN_ROOT)/$(UMAC_MLO_MGR_CLD_DIR)/inc \
1363*5113495bSYour Name			-I$(WLAN_ROOT)/$(UMAC_MLO_MGR_CLD_DIR)/dispatcher/inc \
1364*5113495bSYour Name
1365*5113495bSYour NameUMAC_MLO_MGR_INC := -I$(WLAN_COMMON_INC)/umac/mlo_mgr/inc \
1366*5113495bSYour Name		    -I$(WLAN_COMMON_INC)/target_if/mlo_mgr/inc
1367*5113495bSYour Name
1368*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_11BE_MLO), y)
1369*5113495bSYour NameUMAC_MLO_MGR_OBJS := $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_main.o \
1370*5113495bSYour Name			  $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_cmn.o \
1371*5113495bSYour Name			  $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_sta.o \
1372*5113495bSYour Name			  $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_op.o \
1373*5113495bSYour Name			  $(UMAC_MLO_MGR_CMN_DIR)/src/utils_mlo.o \
1374*5113495bSYour Name			  $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_ap.o \
1375*5113495bSYour Name			  $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_peer_list.o \
1376*5113495bSYour Name			  $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_aid.o \
1377*5113495bSYour Name			  $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_peer.o \
1378*5113495bSYour Name			  $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_msgq.o \
1379*5113495bSYour Name			  $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_primary_umac.o \
1380*5113495bSYour Name			  $(MLO_MGR_TARGET_IF_DIR)/src/target_if_mlo_mgr.o \
1381*5113495bSYour Name			  $(UMAC_MLO_MGR_CLD_DIR)/src/wlan_mlo_link_force.o \
1382*5113495bSYour Name			  $(UMAC_MLO_MGR_CLD_DIR)/src/wlan_mlo_mgr_roam.o \
1383*5113495bSYour Name			  $(UMAC_MLO_MGR_CLD_DIR)/src/wlan_t2lm_api.o \
1384*5113495bSYour Name			  $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_t2lm.o \
1385*5113495bSYour Name			  $(UMAC_MLO_MGR_CLD_DIR)/src/wlan_epcs_api.o \
1386*5113495bSYour Name			  $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_epcs.o \
1387*5113495bSYour Name			  $(UMAC_MLO_MGR_CLD_DIR)/dispatcher/src/wlan_mlo_epcs_ucfg_api.o \
1388*5113495bSYour Name			  $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_link_switch.o \
1389*5113495bSYour Name
1390*5113495bSYour Name$(call add-wlan-objs,umac_mlomgr,$(UMAC_MLO_MGR_OBJS))
1391*5113495bSYour Nameendif
1392*5113495bSYour Name########## POWER MANAGEMENT OFFLOADS (PMO) ##########
1393*5113495bSYour NamePMO_DIR :=	components/pmo
1394*5113495bSYour NamePMO_INC :=	-I$(WLAN_ROOT)/$(PMO_DIR)/core/inc \
1395*5113495bSYour Name			-I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/inc \
1396*5113495bSYour Name
1397*5113495bSYour Nameifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
1398*5113495bSYour NamePMO_OBJS :=     $(PMO_DIR)/core/src/wlan_pmo_main.o \
1399*5113495bSYour Name		$(PMO_DIR)/core/src/wlan_pmo_apf.o \
1400*5113495bSYour Name		$(PMO_DIR)/core/src/wlan_pmo_arp.o \
1401*5113495bSYour Name		$(PMO_DIR)/core/src/wlan_pmo_gtk.o \
1402*5113495bSYour Name		$(PMO_DIR)/core/src/wlan_pmo_mc_addr_filtering.o \
1403*5113495bSYour Name		$(PMO_DIR)/core/src/wlan_pmo_static_config.o \
1404*5113495bSYour Name		$(PMO_DIR)/core/src/wlan_pmo_wow.o \
1405*5113495bSYour Name		$(PMO_DIR)/core/src/wlan_pmo_lphb.o \
1406*5113495bSYour Name		$(PMO_DIR)/core/src/wlan_pmo_suspend_resume.o \
1407*5113495bSYour Name		$(PMO_DIR)/core/src/wlan_pmo_hw_filter.o \
1408*5113495bSYour Name		$(PMO_DIR)/dispatcher/src/wlan_pmo_obj_mgmt_api.o \
1409*5113495bSYour Name		$(PMO_DIR)/dispatcher/src/wlan_pmo_ucfg_api.o \
1410*5113495bSYour Name		$(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_arp.o \
1411*5113495bSYour Name		$(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_gtk.o \
1412*5113495bSYour Name		$(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_wow.o \
1413*5113495bSYour Name		$(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_static_config.o \
1414*5113495bSYour Name		$(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_mc_addr_filtering.o \
1415*5113495bSYour Name		$(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_lphb.o \
1416*5113495bSYour Name		$(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_suspend_resume.o \
1417*5113495bSYour Name		$(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_hw_filter.o \
1418*5113495bSYour Name
1419*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y)
1420*5113495bSYour NamePMO_OBJS +=	$(PMO_DIR)/core/src/wlan_pmo_pkt_filter.o \
1421*5113495bSYour Name		$(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_pkt_filter.o
1422*5113495bSYour Nameendif
1423*5113495bSYour Nameendif
1424*5113495bSYour Name
1425*5113495bSYour Nameifeq ($(CONFIG_WLAN_NS_OFFLOAD), y)
1426*5113495bSYour NamePMO_OBJS +=     $(PMO_DIR)/core/src/wlan_pmo_ns.o \
1427*5113495bSYour Name		$(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_ns.o
1428*5113495bSYour Nameendif
1429*5113495bSYour Name
1430*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_ICMP_OFFLOAD), y)
1431*5113495bSYour NamePMO_OBJS +=     $(PMO_DIR)/core/src/wlan_pmo_icmp.o \
1432*5113495bSYour Name		$(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_icmp.o
1433*5113495bSYour Nameendif
1434*5113495bSYour Name
1435*5113495bSYour Name$(call add-wlan-objs,pmo,$(PMO_OBJS))
1436*5113495bSYour Name
1437*5113495bSYour Name########## DISA (ENCRYPTION TEST) ##########
1438*5113495bSYour Name
1439*5113495bSYour NameDISA_DIR :=	components/disa
1440*5113495bSYour NameDISA_INC :=	-I$(WLAN_ROOT)/$(DISA_DIR)/core/inc \
1441*5113495bSYour Name		-I$(WLAN_ROOT)/$(DISA_DIR)/dispatcher/inc
1442*5113495bSYour Name
1443*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
1444*5113495bSYour NameDISA_OBJS :=	$(DISA_DIR)/core/src/wlan_disa_main.o \
1445*5113495bSYour Name		$(DISA_DIR)/dispatcher/src/wlan_disa_obj_mgmt_api.o \
1446*5113495bSYour Name		$(DISA_DIR)/dispatcher/src/wlan_disa_tgt_api.o \
1447*5113495bSYour Name		$(DISA_DIR)/dispatcher/src/wlan_disa_ucfg_api.o
1448*5113495bSYour Nameendif
1449*5113495bSYour Name
1450*5113495bSYour Name$(call add-wlan-objs,disa,$(DISA_OBJS))
1451*5113495bSYour Name
1452*5113495bSYour Name######## OCB ##############
1453*5113495bSYour NameOCB_DIR := components/ocb
1454*5113495bSYour NameOCB_INC := -I$(WLAN_ROOT)/$(OCB_DIR)/core/inc \
1455*5113495bSYour Name		-I$(WLAN_ROOT)/$(OCB_DIR)/dispatcher/inc
1456*5113495bSYour Name
1457*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1458*5113495bSYour NameOCB_OBJS :=	$(OCB_DIR)/dispatcher/src/wlan_ocb_ucfg_api.o \
1459*5113495bSYour Name		$(OCB_DIR)/dispatcher/src/wlan_ocb_tgt_api.o \
1460*5113495bSYour Name		$(OCB_DIR)/core/src/wlan_ocb_main.o
1461*5113495bSYour Nameendif
1462*5113495bSYour Name
1463*5113495bSYour Name$(call add-wlan-objs,ocb,$(OCB_OBJS))
1464*5113495bSYour Name
1465*5113495bSYour Name######## IPA ##############
1466*5113495bSYour NameIPA_DIR := $(WLAN_COMMON_ROOT)/ipa
1467*5113495bSYour NameIPA_INC := -I$(WLAN_ROOT)/$(IPA_DIR)/core/inc \
1468*5113495bSYour Name		-I$(WLAN_ROOT)/$(IPA_DIR)/dispatcher/inc
1469*5113495bSYour Name
1470*5113495bSYour Nameifeq ($(CONFIG_IPA_OFFLOAD), y)
1471*5113495bSYour NameIPA_OBJS :=	$(IPA_DIR)/dispatcher/src/wlan_ipa_ucfg_api.o \
1472*5113495bSYour Name		$(IPA_DIR)/dispatcher/src/wlan_ipa_obj_mgmt_api.o \
1473*5113495bSYour Name		$(IPA_DIR)/dispatcher/src/wlan_ipa_tgt_api.o \
1474*5113495bSYour Name		$(IPA_DIR)/core/src/wlan_ipa_main.o \
1475*5113495bSYour Name		$(IPA_DIR)/core/src/wlan_ipa_core.o \
1476*5113495bSYour Name		$(IPA_DIR)/core/src/wlan_ipa_stats.o \
1477*5113495bSYour Name		$(IPA_DIR)/core/src/wlan_ipa_rm.o
1478*5113495bSYour Nameendif
1479*5113495bSYour Name
1480*5113495bSYour Name$(call add-wlan-objs,ipa,$(IPA_OBJS))
1481*5113495bSYour Name
1482*5113495bSYour Name######## FWOL ##########
1483*5113495bSYour NameFWOL_CORE_INC := components/fw_offload/core/inc
1484*5113495bSYour NameFWOL_CORE_SRC := components/fw_offload/core/src
1485*5113495bSYour NameFWOL_DISPATCHER_INC := components/fw_offload/dispatcher/inc
1486*5113495bSYour NameFWOL_DISPATCHER_SRC := components/fw_offload/dispatcher/src
1487*5113495bSYour NameFWOL_TARGET_IF_INC := components/target_if/fw_offload/inc
1488*5113495bSYour NameFWOL_TARGET_IF_SRC := components/target_if/fw_offload/src
1489*5113495bSYour NameFWOL_OS_IF_INC := os_if/fw_offload/inc
1490*5113495bSYour NameFWOL_OS_IF_SRC := os_if/fw_offload/src
1491*5113495bSYour Name
1492*5113495bSYour NameFWOL_INC := -I$(WLAN_ROOT)/$(FWOL_CORE_INC) \
1493*5113495bSYour Name	    -I$(WLAN_ROOT)/$(FWOL_DISPATCHER_INC) \
1494*5113495bSYour Name	    -I$(WLAN_ROOT)/$(FWOL_TARGET_IF_INC) \
1495*5113495bSYour Name	    -I$(WLAN_ROOT)/$(FWOL_OS_IF_INC) \
1496*5113495bSYour Name	    -I$(WLAN_COMMON_INC)/umac/thermal/dispatcher/inc
1497*5113495bSYour Name
1498*5113495bSYour Nameifeq ($(CONFIG_WLAN_FW_OFFLOAD), y)
1499*5113495bSYour NameFWOL_OBJS :=	$(FWOL_CORE_SRC)/wlan_fw_offload_main.o \
1500*5113495bSYour Name		$(FWOL_DISPATCHER_SRC)/wlan_fwol_ucfg_api.o \
1501*5113495bSYour Name		$(FWOL_DISPATCHER_SRC)/wlan_fwol_tgt_api.o \
1502*5113495bSYour Name		$(FWOL_TARGET_IF_SRC)/target_if_fwol.o \
1503*5113495bSYour Name		$(FWOL_OS_IF_SRC)/os_if_fwol.o
1504*5113495bSYour Nameendif
1505*5113495bSYour Name
1506*5113495bSYour Name$(call add-wlan-objs,fwol,$(FWOL_OBJS))
1507*5113495bSYour Name
1508*5113495bSYour Name######## SM FRAMEWORK  ##############
1509*5113495bSYour NameUMAC_SM_DIR := umac/cmn_services/sm_engine
1510*5113495bSYour NameUMAC_SM_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SM_DIR)/inc
1511*5113495bSYour Name
1512*5113495bSYour NameUMAC_SM_OBJS := $(WLAN_COMMON_ROOT)/$(UMAC_SM_DIR)/src/wlan_sm_engine.o
1513*5113495bSYour Name
1514*5113495bSYour Nameifeq ($(CONFIG_SM_ENG_HIST), y)
1515*5113495bSYour NameUMAC_SM_OBJS +=	$(WLAN_COMMON_ROOT)/$(UMAC_SM_DIR)/src/wlan_sm_engine_dbg.o
1516*5113495bSYour Nameendif
1517*5113495bSYour Name
1518*5113495bSYour Name$(call add-wlan-objs,umac_sm,$(UMAC_SM_OBJS))
1519*5113495bSYour Name
1520*5113495bSYour Name######## COMMON MLME ##############
1521*5113495bSYour NameUMAC_MLME_INC := -I$(WLAN_COMMON_INC)/umac/mlme \
1522*5113495bSYour Name		-I$(WLAN_COMMON_INC)/umac/mlme/mlme_objmgr/dispatcher/inc \
1523*5113495bSYour Name		-I$(WLAN_COMMON_INC)/umac/mlme/vdev_mgr/dispatcher/inc \
1524*5113495bSYour Name		-I$(WLAN_COMMON_INC)/umac/mlme/pdev_mgr/dispatcher/inc \
1525*5113495bSYour Name		-I$(WLAN_COMMON_INC)/umac/mlme/psoc_mgr/dispatcher/inc \
1526*5113495bSYour Name		-I$(WLAN_COMMON_INC)/umac/mlme/connection_mgr/dispatcher/inc \
1527*5113495bSYour Name		-I$(WLAN_COMMON_INC)/umac/mlme/connection_mgr/utf/inc \
1528*5113495bSYour Name		-I$(WLAN_COMMON_INC)/umac/mlme/include \
1529*5113495bSYour Name		-I$(WLAN_COMMON_INC)/umac/mlme/mlme_utils/
1530*5113495bSYour Name
1531*5113495bSYour NameUMAC_MLME_OBJS := $(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_vdev_mlme_main.o \
1532*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/core/src/vdev_mlme_sm.o \
1533*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mlme_api.o \
1534*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/core/src/vdev_mgr_ops.o \
1535*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mgr_tgt_if_rx_api.o \
1536*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mgr_tgt_if_tx_api.o \
1537*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mgr_ucfg_api.o \
1538*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mgr_api.o \
1539*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mgr_utils_api.o \
1540*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_cmn_mlme_main.o \
1541*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_pdev_mlme_main.o \
1542*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/pdev_mgr/dispatcher/src/wlan_pdev_mlme_api.o \
1543*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_psoc_mlme_main.o \
1544*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/psoc_mgr/dispatcher/src/wlan_psoc_mlme_api.o \
1545*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/psoc_mgr/dispatcher/src/wlan_psoc_mlme_ucfg_api.o \
1546*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_bss_scoring.o \
1547*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_main.o \
1548*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_sm.o \
1549*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_roam_sm.o \
1550*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_connect.o \
1551*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_connect_scan.o \
1552*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_disconnect.o \
1553*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_util.o \
1554*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/dispatcher/src/wlan_cm_ucfg_api.o \
1555*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/dispatcher/src/wlan_cm_api.o \
1556*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/mlme_utils/wlan_vdev_mlme_ser_if.o
1557*5113495bSYour Nameifeq ($(CONFIG_CM_UTF_ENABLE), y)
1558*5113495bSYour NameUMAC_MLME_OBJS += $(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/utf/src/wlan_cm_utf_main.o \
1559*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/utf/src/wlan_cm_utf_scan.o
1560*5113495bSYour Nameendif
1561*5113495bSYour Name
1562*5113495bSYour Nameifeq ($(CONFIG_QCACLD_WLAN_LFR3), y)
1563*5113495bSYour Name# Add LFR3/FW roam specific connection manager files here
1564*5113495bSYour NameUMAC_MLME_OBJS += $(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_roam_util.o
1565*5113495bSYour Name
1566*5113495bSYour Nameendif
1567*5113495bSYour Nameifeq ($(CONFIG_QCACLD_WLAN_LFR2), y)
1568*5113495bSYour Name# Add LFR2/host roam specific connection manager files here
1569*5113495bSYour NameUMAC_MLME_OBJS += $(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_roam_util.o \
1570*5113495bSYour Name		$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_host_roam.o
1571*5113495bSYour Nameendif
1572*5113495bSYour Name
1573*5113495bSYour Name$(call add-wlan-objs,umac_mlme,$(UMAC_MLME_OBJS))
1574*5113495bSYour Name
1575*5113495bSYour Name######## MLME ##############
1576*5113495bSYour NameMLME_DIR := components/mlme
1577*5113495bSYour NameMLME_INC := -I$(WLAN_ROOT)/$(MLME_DIR)/core/inc \
1578*5113495bSYour Name		-I$(WLAN_ROOT)/$(MLME_DIR)/dispatcher/inc \
1579*5113495bSYour Name
1580*5113495bSYour NameMLME_OBJS :=	$(MLME_DIR)/core/src/wlan_mlme_main.o \
1581*5113495bSYour Name		$(MLME_DIR)/dispatcher/src/wlan_mlme_api.o \
1582*5113495bSYour Name		$(MLME_DIR)/dispatcher/src/wlan_mlme_ucfg_api.o
1583*5113495bSYour Name
1584*5113495bSYour NameMLME_OBJS += $(MLME_DIR)/core/src/wlan_mlme_vdev_mgr_interface.o
1585*5113495bSYour Name
1586*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
1587*5113495bSYour NameMLME_OBJS += $(MLME_DIR)/core/src/wlan_mlme_twt_api.o
1588*5113495bSYour NameMLME_OBJS += $(MLME_DIR)/dispatcher/src/wlan_mlme_twt_ucfg_api.o
1589*5113495bSYour Nameendif
1590*5113495bSYour Name
1591*5113495bSYour NameCM_DIR := components/umac/mlme/connection_mgr
1592*5113495bSYour NameCM_TGT_IF_DIR := components/target_if/connection_mgr
1593*5113495bSYour Name
1594*5113495bSYour NameCM_INC := -I$(WLAN_ROOT)/$(CM_DIR)/dispatcher/inc \
1595*5113495bSYour Name		-I$(WLAN_ROOT)/$(CM_DIR)/utf/inc \
1596*5113495bSYour Name		-I$(WLAN_ROOT)/$(CM_TGT_IF_DIR)/inc
1597*5113495bSYour Name
1598*5113495bSYour NameMLME_INC += $(CM_INC)
1599*5113495bSYour Name
1600*5113495bSYour NameMLME_OBJS +=    $(CM_DIR)/dispatcher/src/wlan_cm_tgt_if_tx_api.o \
1601*5113495bSYour Name		$(CM_DIR)/dispatcher/src/wlan_cm_roam_api.o \
1602*5113495bSYour Name		$(CM_DIR)/dispatcher/src/wlan_cm_roam_ucfg_api.o \
1603*5113495bSYour Name		$(CM_TGT_IF_DIR)/src/target_if_cm_roam_offload.o \
1604*5113495bSYour Name		$(CM_TGT_IF_DIR)/src/target_if_cm_roam_event.o \
1605*5113495bSYour Name		$(CM_DIR)/core/src/wlan_cm_roam_offload.o \
1606*5113495bSYour Name		$(CM_DIR)/core/src/wlan_cm_vdev_connect.o \
1607*5113495bSYour Name		$(CM_DIR)/core/src/wlan_cm_vdev_disconnect.o
1608*5113495bSYour Name
1609*5113495bSYour Nameifeq ($(CONFIG_CM_UTF_ENABLE), y)
1610*5113495bSYour NameMLME_OBJS +=    $(CM_DIR)/utf/src/cm_utf.o
1611*5113495bSYour Nameendif
1612*5113495bSYour Name
1613*5113495bSYour Nameifeq ($(CONFIG_QCACLD_WLAN_LFR3), y)
1614*5113495bSYour NameMLME_OBJS +=    $(CM_DIR)/core/src/wlan_cm_roam_fw_sync.o \
1615*5113495bSYour Name		$(CM_DIR)/core/src/wlan_cm_roam_offload_event.o
1616*5113495bSYour Nameendif
1617*5113495bSYour Name
1618*5113495bSYour Nameifeq ($(CONFIG_QCACLD_WLAN_LFR2), y)
1619*5113495bSYour Name# Add LFR2/host roam specific connection manager files here
1620*5113495bSYour NameMLME_OBJS +=    $(CM_DIR)/core/src/wlan_cm_host_roam_preauth.o \
1621*5113495bSYour Name		$(CM_DIR)/core/src/wlan_cm_host_util.o
1622*5113495bSYour Nameendif
1623*5113495bSYour Name
1624*5113495bSYour Name####### WFA_CONFIG ########
1625*5113495bSYour Name
1626*5113495bSYour NameWFA_DIR := components/umac/mlme/wfa_config
1627*5113495bSYour NameWFA_TGT_IF_DIR := components/target_if/wfa_config
1628*5113495bSYour Name
1629*5113495bSYour NameWFA_INC := -I$(WLAN_ROOT)/$(WFA_DIR)/dispatcher/inc \
1630*5113495bSYour Name		-I$(WLAN_ROOT)/$(WFA_TGT_IF_DIR)/inc
1631*5113495bSYour Name
1632*5113495bSYour NameMLME_INC += $(WFA_INC)
1633*5113495bSYour Name
1634*5113495bSYour NameMLME_OBJS += $(WFA_TGT_IF_DIR)/src/target_if_wfa_testcmd.o \
1635*5113495bSYour Name		$(WFA_DIR)/dispatcher/src/wlan_wfa_tgt_if_tx_api.o
1636*5113495bSYour Name
1637*5113495bSYour Name####### LL_SAP #######
1638*5113495bSYour NameLL_SAP_DIR := components/umac/mlme/sap/ll_sap
1639*5113495bSYour NameLL_SAP_OS_IF_DIR := os_if/mlme/sap/ll_sap
1640*5113495bSYour NameLL_SAP_TARGET_IF_DIR := components/target_if/sap/ll_sap
1641*5113495bSYour NameLL_SAP_WMI_DIR := components/wmi/
1642*5113495bSYour Name
1643*5113495bSYour NameLL_SAP_INC := -I$(WLAN_ROOT)/$(LL_SAP_DIR)/dispatcher/inc \
1644*5113495bSYour Name		-I$(WLAN_ROOT)/$(LL_SAP_OS_IF_DIR)/inc \
1645*5113495bSYour Name		-I$(WLAN_ROOT)/$(LL_SAP_TARGET_IF_DIR)/inc \
1646*5113495bSYour Name		-I$(WLAN_ROOT)/$(LL_SAP_WMI_DIR)/inc
1647*5113495bSYour Name
1648*5113495bSYour NameMLME_INC += $(LL_SAP_INC)
1649*5113495bSYour Name
1650*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_LL_LT_SAP), y)
1651*5113495bSYour NameMLME_OBJS += $(LL_SAP_DIR)/dispatcher/src/wlan_ll_sap_ucfg_api.o \
1652*5113495bSYour Name		$(LL_SAP_DIR)/dispatcher/src/wlan_ll_sap_api.o \
1653*5113495bSYour Name		$(LL_SAP_DIR)/core/src/wlan_ll_sap_main.o \
1654*5113495bSYour Name		$(LL_SAP_DIR)/core/src/wlan_ll_lt_sap_main.o \
1655*5113495bSYour Name		$(LL_SAP_DIR)/core/src/wlan_ll_lt_sap_bearer_switch.o \
1656*5113495bSYour Name		$(LL_SAP_OS_IF_DIR)/src/os_if_ll_sap.o \
1657*5113495bSYour Name		$(LL_SAP_TARGET_IF_DIR)/src/target_if_ll_sap.o \
1658*5113495bSYour Name		$(LL_SAP_WMI_DIR)/src/wmi_unified_ll_sap_api.o \
1659*5113495bSYour Name		$(LL_SAP_WMI_DIR)/src/wmi_unified_ll_sap_tlv.o
1660*5113495bSYour Nameendif
1661*5113495bSYour Name
1662*5113495bSYour Name$(call add-wlan-objs,mlme,$(MLME_OBJS))
1663*5113495bSYour Name
1664*5113495bSYour Name####### DENYLIST_MGR ########
1665*5113495bSYour Name
1666*5113495bSYour NameDLM_DIR := components/denylist_mgr
1667*5113495bSYour NameDLM_INC := -I$(WLAN_ROOT)/$(DLM_DIR)/core/inc \
1668*5113495bSYour Name                -I$(WLAN_ROOT)/$(DLM_DIR)/dispatcher/inc
1669*5113495bSYour Nameifeq ($(CONFIG_FEATURE_DENYLIST_MGR), y)
1670*5113495bSYour NameDLM_OBJS :=    $(DLM_DIR)/core/src/wlan_dlm_main.o \
1671*5113495bSYour Name                $(DLM_DIR)/core/src/wlan_dlm_core.o \
1672*5113495bSYour Name                $(DLM_DIR)/dispatcher/src/wlan_dlm_ucfg_api.o \
1673*5113495bSYour Name                $(DLM_DIR)/dispatcher/src/wlan_dlm_tgt_api.o
1674*5113495bSYour Nameendif
1675*5113495bSYour Name
1676*5113495bSYour Name$(call add-wlan-objs,dlm,$(DLM_OBJS))
1677*5113495bSYour Name
1678*5113495bSYour Name######### CONNECTIVITY_LOGGING #########
1679*5113495bSYour NameCONN_LOGGING_DIR := components/cmn_services/logging
1680*5113495bSYour NameCONN_LOGGING_INC := -I$(WLAN_ROOT)/$(CONN_LOGGING_DIR)/inc
1681*5113495bSYour Name
1682*5113495bSYour Nameifeq ($(CONFIG_QCACLD_WLAN_CONNECTIVITY_DIAG_EVENT), y)
1683*5113495bSYour NameCONN_LOGGING_OBJS := $(CONN_LOGGING_DIR)/src/wlan_connectivity_logging.o
1684*5113495bSYour Nameelse ifeq ($(CONFIG_QCACLD_WLAN_CONNECTIVITY_LOGGING), y)
1685*5113495bSYour NameCONN_LOGGING_OBJS := $(CONN_LOGGING_DIR)/src/wlan_connectivity_logging.o
1686*5113495bSYour Nameendif
1687*5113495bSYour Name
1688*5113495bSYour Name$(call add-wlan-objs,conn_logging,$(CONN_LOGGING_OBJS))
1689*5113495bSYour Name
1690*5113495bSYour Name########## ACTION OUI ##########
1691*5113495bSYour Name
1692*5113495bSYour NameACTION_OUI_DIR := components/action_oui
1693*5113495bSYour NameACTION_OUI_INC := -I$(WLAN_ROOT)/$(ACTION_OUI_DIR)/core/inc \
1694*5113495bSYour Name		  -I$(WLAN_ROOT)/$(ACTION_OUI_DIR)/dispatcher/inc
1695*5113495bSYour Name
1696*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
1697*5113495bSYour NameACTION_OUI_OBJS := $(ACTION_OUI_DIR)/core/src/wlan_action_oui_main.o \
1698*5113495bSYour Name		$(ACTION_OUI_DIR)/core/src/wlan_action_oui_parse.o \
1699*5113495bSYour Name		$(ACTION_OUI_DIR)/dispatcher/src/wlan_action_oui_tgt_api.o \
1700*5113495bSYour Name		$(ACTION_OUI_DIR)/dispatcher/src/wlan_action_oui_ucfg_api.o
1701*5113495bSYour Nameendif
1702*5113495bSYour Name
1703*5113495bSYour Name$(call add-wlan-objs,action_oui,$(ACTION_OUI_OBJS))
1704*5113495bSYour Name
1705*5113495bSYour Name######## PACKET CAPTURE ########
1706*5113495bSYour Name
1707*5113495bSYour NamePKT_CAPTURE_DIR := components/pkt_capture
1708*5113495bSYour NamePKT_CAPTURE_OS_IF_DIR := os_if/pkt_capture
1709*5113495bSYour NamePKT_CAPTURE_TARGET_IF_DIR := components/target_if/pkt_capture/
1710*5113495bSYour NamePKT_CAPTURE_INC := -I$(WLAN_ROOT)/$(PKT_CAPTURE_DIR)/core/inc \
1711*5113495bSYour Name		  -I$(WLAN_ROOT)/$(PKT_CAPTURE_DIR)/dispatcher/inc \
1712*5113495bSYour Name		  -I$(WLAN_ROOT)/$(PKT_CAPTURE_TARGET_IF_DIR)/inc \
1713*5113495bSYour Name		  -I$(WLAN_ROOT)/$(PKT_CAPTURE_OS_IF_DIR)/inc
1714*5113495bSYour Name
1715*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_PKT_CAPTURE), y)
1716*5113495bSYour NamePKT_CAPTURE_OBJS := $(PKT_CAPTURE_DIR)/core/src/wlan_pkt_capture_main.o \
1717*5113495bSYour Name		$(PKT_CAPTURE_DIR)/core/src/wlan_pkt_capture_mon_thread.o \
1718*5113495bSYour Name		$(PKT_CAPTURE_DIR)/core/src/wlan_pkt_capture_mgmt_txrx.o \
1719*5113495bSYour Name		$(PKT_CAPTURE_DIR)/core/src/wlan_pkt_capture_data_txrx.o \
1720*5113495bSYour Name		$(PKT_CAPTURE_DIR)/dispatcher/src/wlan_pkt_capture_ucfg_api.o \
1721*5113495bSYour Name		$(PKT_CAPTURE_DIR)/dispatcher/src/wlan_pkt_capture_tgt_api.o \
1722*5113495bSYour Name		$(PKT_CAPTURE_DIR)/dispatcher/src/wlan_pkt_capture_api.o \
1723*5113495bSYour Name		$(PKT_CAPTURE_TARGET_IF_DIR)/src/target_if_pkt_capture.o \
1724*5113495bSYour Name		$(PKT_CAPTURE_OS_IF_DIR)/src/os_if_pkt_capture.o
1725*5113495bSYour Nameendif
1726*5113495bSYour Name
1727*5113495bSYour Name$(call add-wlan-objs,pkt_capture,$(PKT_CAPTURE_OBJS))
1728*5113495bSYour Name
1729*5113495bSYour Name########## FTM TIME SYNC ##########
1730*5113495bSYour Name
1731*5113495bSYour NameFTM_TIME_SYNC_DIR := components/ftm_time_sync
1732*5113495bSYour NameFTM_TIME_SYNC_INC := -I$(WLAN_ROOT)/$(FTM_TIME_SYNC_DIR)/core/inc \
1733*5113495bSYour Name		  -I$(WLAN_ROOT)/$(FTM_TIME_SYNC_DIR)/dispatcher/inc
1734*5113495bSYour Name
1735*5113495bSYour Nameifeq ($(CONFIG_FEATURE_WLAN_TIME_SYNC_FTM), y)
1736*5113495bSYour NameFTM_TIME_SYNC_OBJS := $(FTM_TIME_SYNC_DIR)/core/src/ftm_time_sync_main.o \
1737*5113495bSYour Name		$(FTM_TIME_SYNC_DIR)/dispatcher/src/ftm_time_sync_ucfg_api.o \
1738*5113495bSYour Name		$(FTM_TIME_SYNC_DIR)/dispatcher/src/wlan_ftm_time_sync_tgt_api.o
1739*5113495bSYour Nameendif
1740*5113495bSYour Name
1741*5113495bSYour Name$(call add-wlan-objs,ftm_time_sync,$(FTM_TIME_SYNC_OBJS))
1742*5113495bSYour Name
1743*5113495bSYour Name########## WLAN PRE_CAC ##########
1744*5113495bSYour Name
1745*5113495bSYour NameWLAN_PRE_CAC_DIR := components/pre_cac
1746*5113495bSYour NamePRE_CAC_OSIF_DIR := os_if/pre_cac
1747*5113495bSYour NameWLAN_PRE_CAC_INC := -I$(WLAN_ROOT)/$(WLAN_PRE_CAC_DIR)/dispatcher/inc \
1748*5113495bSYour Name		  -I$(WLAN_ROOT)/$(WLAN_PRE_CAC_DIR)/core/src \
1749*5113495bSYour Name		  -I$(WLAN_ROOT)/$(PRE_CAC_OSIF_DIR)/inc
1750*5113495bSYour Name
1751*5113495bSYour Nameifeq ($(CONFIG_FEATURE_WLAN_PRE_CAC), y)
1752*5113495bSYour NameWLAN_PRE_CAC_OBJS := $(HDD_SRC_DIR)/wlan_hdd_pre_cac.o \
1753*5113495bSYour Name		$(WLAN_PRE_CAC_DIR)/core/src/wlan_pre_cac_main.o \
1754*5113495bSYour Name		$(WLAN_PRE_CAC_DIR)/dispatcher/src/wlan_pre_cac_ucfg_api.o \
1755*5113495bSYour Name		$(WLAN_PRE_CAC_DIR)/dispatcher/src/wlan_pre_cac_api.o \
1756*5113495bSYour Name		$(PRE_CAC_OSIF_DIR)/src/osif_pre_cac.o
1757*5113495bSYour Nameendif
1758*5113495bSYour Name
1759*5113495bSYour Name$(call add-wlan-objs,wlan_pre_cac,$(WLAN_PRE_CAC_OBJS))
1760*5113495bSYour Name
1761*5113495bSYour Name########## CLD TARGET_IF #######
1762*5113495bSYour NameCLD_TARGET_IF_DIR := components/target_if
1763*5113495bSYour Name
1764*5113495bSYour NameCLD_TARGET_IF_INC := -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/inc \
1765*5113495bSYour Name		     -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/mlme/inc \
1766*5113495bSYour Name
1767*5113495bSYour Nameifeq ($(CONFIG_QCA_TARGET_IF_MLME), y)
1768*5113495bSYour NameCLD_TARGET_IF_OBJ := $(CLD_TARGET_IF_DIR)/mlme/src/target_if_mlme.o
1769*5113495bSYour Nameendif
1770*5113495bSYour Name
1771*5113495bSYour Nameifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
1772*5113495bSYour NameCLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \
1773*5113495bSYour Name		$(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \
1774*5113495bSYour Name		$(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_hw_filter.o \
1775*5113495bSYour Name		$(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \
1776*5113495bSYour Name		$(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \
1777*5113495bSYour Name		$(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \
1778*5113495bSYour Name		$(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \
1779*5113495bSYour Name		$(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \
1780*5113495bSYour Name		$(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o
1781*5113495bSYour Nameifeq ($(CONFIG_WLAN_NS_OFFLOAD), y)
1782*5113495bSYour NameCLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o
1783*5113495bSYour Nameendif
1784*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y)
1785*5113495bSYour NameCLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_pkt_filter.o
1786*5113495bSYour Nameendif
1787*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_ICMP_OFFLOAD), y)
1788*5113495bSYour NameCLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_icmp.o
1789*5113495bSYour Nameendif
1790*5113495bSYour Nameendif
1791*5113495bSYour Name
1792*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1793*5113495bSYour NameCLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ocb/inc
1794*5113495bSYour NameCLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ocb/src/target_if_ocb.o
1795*5113495bSYour Nameendif
1796*5113495bSYour Name
1797*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
1798*5113495bSYour NameCLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/disa/inc
1799*5113495bSYour NameCLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/disa/src/target_if_disa.o
1800*5113495bSYour Nameendif
1801*5113495bSYour Name
1802*5113495bSYour Nameifeq ($(CONFIG_FEATURE_DENYLIST_MGR), y)
1803*5113495bSYour NameCLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/denylist_mgr/inc
1804*5113495bSYour NameCLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/denylist_mgr/src/target_if_dlm.o
1805*5113495bSYour Nameendif
1806*5113495bSYour Name
1807*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
1808*5113495bSYour NameCLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/action_oui/inc
1809*5113495bSYour NameCLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/action_oui/src/target_if_action_oui.o
1810*5113495bSYour Nameendif
1811*5113495bSYour Name
1812*5113495bSYour Nameifeq ($(CONFIG_FEATURE_WLAN_TIME_SYNC_FTM), y)
1813*5113495bSYour NameCLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ftm_time_sync/inc
1814*5113495bSYour NameCLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ftm_time_sync/src/target_if_ftm_time_sync.o
1815*5113495bSYour Nameendif
1816*5113495bSYour Name
1817*5113495bSYour Name$(call add-wlan-objs,cld_target_if,$(CLD_TARGET_IF_OBJ))
1818*5113495bSYour Name
1819*5113495bSYour Name############## UMAC P2P ###########
1820*5113495bSYour NameP2P_DIR := components/p2p
1821*5113495bSYour NameP2P_CORE_OBJ_DIR := $(P2P_DIR)/core/src
1822*5113495bSYour NameP2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher
1823*5113495bSYour NameP2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc
1824*5113495bSYour NameP2P_DISPATCHER_OBJ_DIR := $(P2P_DISPATCHER_DIR)/src
1825*5113495bSYour NameP2P_OS_IF_INC := os_if/p2p/inc
1826*5113495bSYour NameP2P_OS_IF_SRC := os_if/p2p/src
1827*5113495bSYour NameP2P_TARGET_IF_INC := components/target_if/p2p/inc
1828*5113495bSYour NameP2P_TARGET_IF_SRC := components/target_if/p2p/src
1829*5113495bSYour NameP2P_INC := -I$(WLAN_ROOT)/$(P2P_DISPATCHER_INC_DIR) \
1830*5113495bSYour Name	   -I$(WLAN_ROOT)/$(P2P_OS_IF_INC) \
1831*5113495bSYour Name	   -I$(WLAN_ROOT)/$(P2P_TARGET_IF_INC)
1832*5113495bSYour NameP2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \
1833*5113495bSYour Name	    $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \
1834*5113495bSYour Name	    $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_cfg.o \
1835*5113495bSYour Name	    $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_api.o \
1836*5113495bSYour Name	    $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \
1837*5113495bSYour Name	    $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \
1838*5113495bSYour Name	    $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o \
1839*5113495bSYour Name	    $(P2P_OS_IF_SRC)/wlan_cfg80211_p2p.o \
1840*5113495bSYour Name	    $(P2P_TARGET_IF_SRC)/target_if_p2p.o
1841*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_MCC_QUOTA), y)
1842*5113495bSYour NameP2P_OBJS += $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_mcc_quota_tgt_api.o \
1843*5113495bSYour Name	    $(P2P_CORE_OBJ_DIR)/wlan_p2p_mcc_quota.o \
1844*5113495bSYour Name	    $(P2P_TARGET_IF_SRC)/target_if_p2p_mcc_quota.o
1845*5113495bSYour Nameendif
1846*5113495bSYour Name$(call add-wlan-objs,p2p,$(P2P_OBJS))
1847*5113495bSYour Name
1848*5113495bSYour Name###### UMAC POLICY MGR ########
1849*5113495bSYour NamePOLICY_MGR_DIR := components/cmn_services/policy_mgr
1850*5113495bSYour Name
1851*5113495bSYour NamePOLICY_MGR_INC := -I$(WLAN_ROOT)/$(POLICY_MGR_DIR)/inc \
1852*5113495bSYour Name		  -I$(WLAN_ROOT)/$(POLICY_MGR_DIR)/src
1853*5113495bSYour Name
1854*5113495bSYour NamePOLICY_MGR_OBJS := $(POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \
1855*5113495bSYour Name	$(POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \
1856*5113495bSYour Name	$(POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \
1857*5113495bSYour Name	$(POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \
1858*5113495bSYour Name	$(POLICY_MGR_DIR)/src/wlan_policy_mgr_ucfg.o \
1859*5113495bSYour Name	$(POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o
1860*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_LL_LT_SAP), y)
1861*5113495bSYour NamePOLICY_MGR_OBJS += $(POLICY_MGR_DIR)/src/wlan_policy_mgr_ll_sap.o
1862*5113495bSYour Nameendif
1863*5113495bSYour Name
1864*5113495bSYour Name$(call add-wlan-objs,policy_mgr,$(POLICY_MGR_OBJS))
1865*5113495bSYour Name
1866*5113495bSYour Name###### UMAC TDLS ########
1867*5113495bSYour NameTDLS_DIR := components/tdls
1868*5113495bSYour Name
1869*5113495bSYour NameTDLS_OS_IF_INC := os_if/tdls/inc
1870*5113495bSYour NameTDLS_OS_IF_SRC := os_if/tdls/src
1871*5113495bSYour NameTDLS_TARGET_IF_INC := components/target_if/tdls/inc
1872*5113495bSYour NameTDLS_TARGET_IF_SRC := components/target_if/tdls/src
1873*5113495bSYour NameTDLS_INC := -I$(WLAN_ROOT)/$(TDLS_DIR)/dispatcher/inc \
1874*5113495bSYour Name	    -I$(WLAN_ROOT)/$(TDLS_DIR)/core/src \
1875*5113495bSYour Name	    -I$(WLAN_ROOT)/$(TDLS_OS_IF_INC) \
1876*5113495bSYour Name	    -I$(WLAN_ROOT)/$(TDLS_TARGET_IF_INC)
1877*5113495bSYour Name
1878*5113495bSYour Nameifeq ($(CONFIG_QCOM_TDLS), y)
1879*5113495bSYour NameTDLS_OBJS := $(TDLS_DIR)/core/src/wlan_tdls_main.o \
1880*5113495bSYour Name       $(TDLS_DIR)/core/src/wlan_tdls_cmds_process.o \
1881*5113495bSYour Name       $(TDLS_DIR)/core/src/wlan_tdls_peer.o \
1882*5113495bSYour Name       $(TDLS_DIR)/core/src/wlan_tdls_mgmt.o \
1883*5113495bSYour Name       $(TDLS_DIR)/core/src/wlan_tdls_ct.o \
1884*5113495bSYour Name       $(TDLS_DIR)/dispatcher/src/wlan_tdls_tgt_api.o \
1885*5113495bSYour Name       $(TDLS_DIR)/dispatcher/src/wlan_tdls_ucfg_api.o \
1886*5113495bSYour Name       $(TDLS_DIR)/dispatcher/src/wlan_tdls_utils_api.o \
1887*5113495bSYour Name       $(TDLS_DIR)/dispatcher/src/wlan_tdls_cfg.o \
1888*5113495bSYour Name       $(TDLS_DIR)/dispatcher/src/wlan_tdls_api.o \
1889*5113495bSYour Name       $(TDLS_OS_IF_SRC)/wlan_cfg80211_tdls.o \
1890*5113495bSYour Name       $(TDLS_TARGET_IF_SRC)/target_if_tdls.o
1891*5113495bSYour Nameendif
1892*5113495bSYour Name
1893*5113495bSYour Name$(call add-wlan-objs,tdls,$(TDLS_OBJS))
1894*5113495bSYour Name
1895*5113495bSYour Name########### BMI ###########
1896*5113495bSYour NameBMI_DIR := core/bmi
1897*5113495bSYour Name
1898*5113495bSYour NameBMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
1899*5113495bSYour Name
1900*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
1901*5113495bSYour NameBMI_OBJS := $(BMI_DIR)/src/bmi.o \
1902*5113495bSYour Name            $(BMI_DIR)/src/bmi_1.o \
1903*5113495bSYour Name            $(BMI_DIR)/src/ol_fw.o \
1904*5113495bSYour Name            $(BMI_DIR)/src/ol_fw_common.o
1905*5113495bSYour Nameendif
1906*5113495bSYour Name
1907*5113495bSYour Name$(call add-wlan-objs,bmi,$(BMI_OBJS))
1908*5113495bSYour Name
1909*5113495bSYour Name##########  TARGET_IF #######
1910*5113495bSYour NameTARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if
1911*5113495bSYour Name
1912*5113495bSYour NameTARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \
1913*5113495bSYour Name		 -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \
1914*5113495bSYour Name		 -I$(WLAN_COMMON_INC)/target_if/crypto/inc \
1915*5113495bSYour Name		 -I$(WLAN_COMMON_INC)/target_if/regulatory/inc \
1916*5113495bSYour Name		 -I$(WLAN_COMMON_INC)/target_if/mlme/vdev_mgr/inc \
1917*5113495bSYour Name		 -I$(WLAN_COMMON_INC)/target_if/dispatcher/inc \
1918*5113495bSYour Name		 -I$(WLAN_COMMON_INC)/target_if/mlme/psoc/inc \
1919*5113495bSYour Name		 -I$(WLAN_COMMON_INC)/target_if/ipa/inc
1920*5113495bSYour Name
1921*5113495bSYour NameTARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \
1922*5113495bSYour Name		$(TARGET_IF_DIR)/regulatory/src/target_if_reg.o \
1923*5113495bSYour Name		$(TARGET_IF_DIR)/regulatory/src/target_if_reg_lte.o \
1924*5113495bSYour Name		$(TARGET_IF_DIR)/regulatory/src/target_if_reg_11d.o \
1925*5113495bSYour Name		$(TARGET_IF_DIR)/init_deinit/src/init_cmd_api.o \
1926*5113495bSYour Name		$(TARGET_IF_DIR)/init_deinit/src/init_deinit_lmac.o \
1927*5113495bSYour Name		$(TARGET_IF_DIR)/init_deinit/src/init_event_handler.o \
1928*5113495bSYour Name		$(TARGET_IF_DIR)/init_deinit/src/service_ready_util.o \
1929*5113495bSYour Name		$(TARGET_IF_DIR)/mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.o \
1930*5113495bSYour Name		$(TARGET_IF_DIR)/mlme/vdev_mgr/src/target_if_vdev_mgr_rx_ops.o \
1931*5113495bSYour Name		$(TARGET_IF_DIR)/mlme/psoc/src/target_if_psoc_timer_tx_ops.o
1932*5113495bSYour Name
1933*5113495bSYour Nameifeq ($(CONFIG_FEATURE_VDEV_OPS_WAKELOCK), y)
1934*5113495bSYour NameTARGET_IF_OBJ += $(TARGET_IF_DIR)/mlme/psoc/src/target_if_psoc_wake_lock.o
1935*5113495bSYour Nameendif
1936*5113495bSYour Name
1937*5113495bSYour NameTARGET_IF_OBJ += $(TARGET_IF_DIR)/crypto/src/target_if_crypto.o
1938*5113495bSYour Name
1939*5113495bSYour Nameifeq ($(CONFIG_IPA_OFFLOAD), y)
1940*5113495bSYour NameTARGET_IF_OBJ += $(TARGET_IF_DIR)/ipa/src/target_if_ipa.o
1941*5113495bSYour Nameendif
1942*5113495bSYour Name
1943*5113495bSYour Name$(call add-wlan-objs,target_if,$(TARGET_IF_OBJ))
1944*5113495bSYour Name
1945*5113495bSYour Name########### GLOBAL_LMAC_IF ##########
1946*5113495bSYour NameGLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if
1947*5113495bSYour Name
1948*5113495bSYour NameGLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \
1949*5113495bSYour Name
1950*5113495bSYour NameGLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o
1951*5113495bSYour Name
1952*5113495bSYour Name$(call add-wlan-objs,global_lmac_if,$(GLOBAL_LMAC_IF_OBJ))
1953*5113495bSYour Name
1954*5113495bSYour Name########### WMI ###########
1955*5113495bSYour NameWMI_ROOT_DIR := wmi
1956*5113495bSYour Name
1957*5113495bSYour NameWMI_SRC_DIR := $(WMI_ROOT_DIR)/src
1958*5113495bSYour NameWMI_INC_DIR := $(WMI_ROOT_DIR)/inc
1959*5113495bSYour NameWMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
1960*5113495bSYour Name
1961*5113495bSYour NameWMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
1962*5113495bSYour Name
1963*5113495bSYour NameWMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
1964*5113495bSYour Name	    $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
1965*5113495bSYour Name	    $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
1966*5113495bSYour Name	    $(WMI_OBJ_DIR)/wmi_unified_api.o \
1967*5113495bSYour Name	    $(WMI_OBJ_DIR)/wmi_unified_reg_api.o \
1968*5113495bSYour Name	    $(WMI_OBJ_DIR)/wmi_unified_vdev_api.o \
1969*5113495bSYour Name	    $(WMI_OBJ_DIR)/wmi_unified_vdev_tlv.o \
1970*5113495bSYour Name	    $(WMI_OBJ_DIR)/wmi_unified_crypto_api.o
1971*5113495bSYour Name
1972*5113495bSYour Nameifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
1973*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o
1974*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_pmo_tlv.o
1975*5113495bSYour Nameendif
1976*5113495bSYour Name
1977*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_APF), y)
1978*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_apf_tlv.o
1979*5113495bSYour Nameendif
1980*5113495bSYour Name
1981*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
1982*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_action_oui_tlv.o
1983*5113495bSYour Nameendif
1984*5113495bSYour Name
1985*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1986*5113495bSYour Nameifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
1987*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_ut.o
1988*5113495bSYour Nameendif
1989*5113495bSYour Nameendif
1990*5113495bSYour Name
1991*5113495bSYour Nameifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y)
1992*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_dfs_api.o
1993*5113495bSYour Nameendif
1994*5113495bSYour Name
1995*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
1996*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_api.o
1997*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_tlv.o
1998*5113495bSYour Nameendif
1999*5113495bSYour Name
2000*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
2001*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_api.o
2002*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_tlv.o
2003*5113495bSYour Nameendif
2004*5113495bSYour Name
2005*5113495bSYour Nameifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y)
2006*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_api.o
2007*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_tlv.o
2008*5113495bSYour Nameendif
2009*5113495bSYour Name
2010*5113495bSYour Nameifeq ($(CONFIG_FEATURE_INTEROP_ISSUES_AP), y)
2011*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_interop_issues_ap_api.o
2012*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_interop_issues_ap_tlv.o
2013*5113495bSYour Nameendif
2014*5113495bSYour Name
2015*5113495bSYour Nameifeq ($(CONFIG_DCS), y)
2016*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_dcs_api.o
2017*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_dcs_tlv.o
2018*5113495bSYour Nameendif
2019*5113495bSYour Name
2020*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
2021*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_nan_api.o
2022*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_nan_tlv.o
2023*5113495bSYour Nameendif
2024*5113495bSYour Name
2025*5113495bSYour Nameifeq ($(CONFIG_CONVERGED_P2P_ENABLE), y)
2026*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_p2p_api.o
2027*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_p2p_tlv.o
2028*5113495bSYour Nameendif
2029*5113495bSYour Name
2030*5113495bSYour Nameifeq ($(CONFIG_WMI_CONCURRENCY_SUPPORT), y)
2031*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_concurrency_api.o
2032*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_concurrency_tlv.o
2033*5113495bSYour Nameendif
2034*5113495bSYour Name
2035*5113495bSYour Nameifeq ($(CONFIG_WMI_STA_SUPPORT), y)
2036*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_sta_api.o
2037*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_sta_tlv.o
2038*5113495bSYour Nameendif
2039*5113495bSYour Name
2040*5113495bSYour Nameifeq ($(CONFIG_WMI_BCN_OFFLOAD), y)
2041*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_bcn_api.o
2042*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_bcn_tlv.o
2043*5113495bSYour Nameendif
2044*5113495bSYour Name
2045*5113495bSYour Nameifeq ($(CONFIG_WLAN_FW_OFFLOAD), y)
2046*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_fwol_api.o
2047*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_fwol_tlv.o
2048*5113495bSYour Nameendif
2049*5113495bSYour Name
2050*5113495bSYour Nameifeq ($(CONFIG_WLAN_HANG_EVENT), y)
2051*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_hang_event.o
2052*5113495bSYour Nameendif
2053*5113495bSYour Name
2054*5113495bSYour Nameifeq ($(CONFIG_WLAN_CFR_ENABLE), y)
2055*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_cfr_tlv.o
2056*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_cfr_api.o
2057*5113495bSYour Nameendif
2058*5113495bSYour Name
2059*5113495bSYour Nameifeq ($(CONFIG_CP_STATS), y)
2060*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_cp_stats_api.o
2061*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_cp_stats_tlv.o
2062*5113495bSYour Nameendif
2063*5113495bSYour Name
2064*5113495bSYour Nameifeq ($(CONFIG_FEATURE_GPIO_CFG), y)
2065*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_gpio_api.o
2066*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_gpio_tlv.o
2067*5113495bSYour Nameendif
2068*5113495bSYour Name
2069*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_11BE_MLO), y)
2070*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_11be_tlv.o
2071*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_11be_api.o
2072*5113495bSYour Nameendif
2073*5113495bSYour Name
2074*5113495bSYour Nameifeq ($(CONFIG_FEATURE_WDS), y)
2075*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_wds_api.o
2076*5113495bSYour NameWMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_wds_tlv.o
2077*5113495bSYour Nameendif
2078*5113495bSYour Name
2079*5113495bSYour Name$(call add-wlan-objs,wmi,$(WMI_OBJS))
2080*5113495bSYour Name
2081*5113495bSYour Name########### FWLOG ###########
2082*5113495bSYour NameFWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog
2083*5113495bSYour Name
2084*5113495bSYour NameFWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
2085*5113495bSYour Name
2086*5113495bSYour Nameifeq ($(CONFIG_FEATURE_FW_LOG_PARSING), y)
2087*5113495bSYour NameFWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
2088*5113495bSYour Nameendif
2089*5113495bSYour Name
2090*5113495bSYour Name$(call add-wlan-objs,fwlog,$(FWLOG_OBJS))
2091*5113495bSYour Name
2092*5113495bSYour Name############ TXRX ############
2093*5113495bSYour NameTXRX_DIR :=     core/dp/txrx
2094*5113495bSYour NameTXRX_INC :=     -I$(WLAN_ROOT)/$(TXRX_DIR)
2095*5113495bSYour Name
2096*5113495bSYour NameTXRX_OBJS :=
2097*5113495bSYour Nameifeq ($(CONFIG_WDI_EVENT_ENABLE), y)
2098*5113495bSYour NameTXRX_OBJS += 	$(TXRX_DIR)/ol_txrx_event.o
2099*5113495bSYour Nameendif
2100*5113495bSYour Name
2101*5113495bSYour Nameifneq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM) $(CONFIG_RHINE)))
2102*5113495bSYour NameTXRX_OBJS += $(TXRX_DIR)/ol_txrx.o \
2103*5113495bSYour Name		$(TXRX_DIR)/ol_cfg.o \
2104*5113495bSYour Name                $(TXRX_DIR)/ol_rx.o \
2105*5113495bSYour Name                $(TXRX_DIR)/ol_rx_fwd.o \
2106*5113495bSYour Name                $(TXRX_DIR)/ol_txrx.o \
2107*5113495bSYour Name                $(TXRX_DIR)/ol_rx_defrag.o \
2108*5113495bSYour Name                $(TXRX_DIR)/ol_tx_desc.o \
2109*5113495bSYour Name                $(TXRX_DIR)/ol_tx.o \
2110*5113495bSYour Name                $(TXRX_DIR)/ol_rx_reorder_timeout.o \
2111*5113495bSYour Name                $(TXRX_DIR)/ol_rx_reorder.o \
2112*5113495bSYour Name                $(TXRX_DIR)/ol_rx_pn.o \
2113*5113495bSYour Name                $(TXRX_DIR)/ol_txrx_peer_find.o \
2114*5113495bSYour Name                $(TXRX_DIR)/ol_txrx_encap.o \
2115*5113495bSYour Name                $(TXRX_DIR)/ol_tx_send.o
2116*5113495bSYour Name
2117*5113495bSYour Nameifeq ($(CONFIG_LL_DP_SUPPORT), y)
2118*5113495bSYour Name
2119*5113495bSYour NameTXRX_OBJS +=     $(TXRX_DIR)/ol_tx_ll.o
2120*5113495bSYour Name
2121*5113495bSYour Nameifeq ($(CONFIG_WLAN_FASTPATH), y)
2122*5113495bSYour NameTXRX_OBJS +=     $(TXRX_DIR)/ol_tx_ll_fastpath.o
2123*5113495bSYour Nameelse
2124*5113495bSYour NameTXRX_OBJS +=     $(TXRX_DIR)/ol_tx_ll_legacy.o
2125*5113495bSYour Nameendif
2126*5113495bSYour Name
2127*5113495bSYour Nameifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
2128*5113495bSYour NameTXRX_OBJS +=     $(TXRX_DIR)/ol_txrx_flow_control.o
2129*5113495bSYour Nameendif
2130*5113495bSYour Name
2131*5113495bSYour Nameendif #CONFIG_LL_DP_SUPPORT
2132*5113495bSYour Name
2133*5113495bSYour Nameifeq ($(CONFIG_HL_DP_SUPPORT), y)
2134*5113495bSYour NameTXRX_OBJS +=     $(TXRX_DIR)/ol_tx_hl.o
2135*5113495bSYour NameTXRX_OBJS +=     $(TXRX_DIR)/ol_tx_classify.o
2136*5113495bSYour NameTXRX_OBJS +=     $(TXRX_DIR)/ol_tx_sched.o
2137*5113495bSYour NameTXRX_OBJS +=     $(TXRX_DIR)/ol_tx_queue.o
2138*5113495bSYour Nameendif #CONFIG_HL_DP_SUPPORT
2139*5113495bSYour Name
2140*5113495bSYour Nameifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY), y)
2141*5113495bSYour NameTXRX_OBJS +=     $(TXRX_DIR)/ol_txrx_legacy_flow_control.o
2142*5113495bSYour Nameendif
2143*5113495bSYour Name
2144*5113495bSYour Nameifeq ($(CONFIG_IPA_OFFLOAD), y)
2145*5113495bSYour NameTXRX_OBJS +=     $(TXRX_DIR)/ol_txrx_ipa.o
2146*5113495bSYour Nameendif
2147*5113495bSYour Name
2148*5113495bSYour Nameifeq ($(CONFIG_QCA_SUPPORT_TX_THROTTLE), y)
2149*5113495bSYour NameTXRX_OBJS +=     $(TXRX_DIR)/ol_tx_throttle.o
2150*5113495bSYour Nameendif
2151*5113495bSYour Nameendif #LITHIUM/BERYLLIUM/RHINE
2152*5113495bSYour Name
2153*5113495bSYour Name$(call add-wlan-objs,txrx,$(TXRX_OBJS))
2154*5113495bSYour Name
2155*5113495bSYour Nameifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM) $(CONFIG_RHINE)))
2156*5113495bSYour Name############ DP 3.0 ############
2157*5113495bSYour NameDP_INC := -I$(WLAN_COMMON_INC)/dp/inc \
2158*5113495bSYour Name	-I$(WLAN_COMMON_INC)/dp/wifi3.0 \
2159*5113495bSYour Name	-I$(WLAN_COMMON_INC)/target_if/dp/inc \
2160*5113495bSYour Name	-I$(WLAN_COMMON_INC)/dp/cmn_dp_api
2161*5113495bSYour Name
2162*5113495bSYour NameDP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0
2163*5113495bSYour NameDP_OBJS := $(DP_SRC)/dp_main.o \
2164*5113495bSYour Name		$(DP_SRC)/dp_tx.o \
2165*5113495bSYour Name		$(DP_SRC)/dp_arch_ops.o \
2166*5113495bSYour Name		$(DP_SRC)/dp_tx_desc.o \
2167*5113495bSYour Name		$(DP_SRC)/dp_rx.o \
2168*5113495bSYour Name		$(DP_SRC)/dp_htt.o \
2169*5113495bSYour Name		$(DP_SRC)/dp_peer.o \
2170*5113495bSYour Name		$(DP_SRC)/dp_rx_desc.o \
2171*5113495bSYour Name		$(DP_SRC)/dp_rx_defrag.o \
2172*5113495bSYour Name		$(DP_SRC)/dp_stats.o \
2173*5113495bSYour Name		$(WLAN_COMMON_ROOT)/target_if/dp/src/target_if_dp.o
2174*5113495bSYour Name
2175*5113495bSYour Nameifneq ($(CONFIG_RHINE), y)
2176*5113495bSYour NameDP_OBJS += $(DP_SRC)/dp_rings_main.o
2177*5113495bSYour NameDP_OBJS += $(DP_SRC)/dp_reo.o
2178*5113495bSYour NameDP_OBJS += $(DP_SRC)/dp_rx_err.o
2179*5113495bSYour NameDP_OBJS += $(DP_SRC)/dp_rx_tid.o
2180*5113495bSYour Nameendif
2181*5113495bSYour Name
2182*5113495bSYour Nameifeq ($(CONFIG_WIFI_MONITOR_SUPPORT), y)
2183*5113495bSYour NameDP_INC += -I$(WLAN_COMMON_INC)/dp/wifi3.0/monitor \
2184*5113495bSYour Name	-I$(WLAN_COMMON_INC)/dp/wifi3.0/monitor/1.0 \
2185*5113495bSYour Name	-I$(WLAN_COMMON_INC)/dp/wifi3.0/monitor/2.0 \
2186*5113495bSYour Name
2187*5113495bSYour NameDP_OBJS += $(DP_SRC)/monitor/dp_mon.o \
2188*5113495bSYour Name		$(DP_SRC)/monitor/dp_mon_filter.o \
2189*5113495bSYour Name		$(DP_SRC)/monitor/dp_rx_mon.o \
2190*5113495bSYour Name		$(DP_SRC)/monitor/1.0/dp_rx_mon_dest_1.0.o \
2191*5113495bSYour Name		$(DP_SRC)/monitor/1.0/dp_rx_mon_status_1.0.o \
2192*5113495bSYour Name		$(DP_SRC)/monitor/1.0/dp_mon_filter_1.0.o \
2193*5113495bSYour Name		$(DP_SRC)/monitor/1.0/dp_mon_1.0.o
2194*5113495bSYour Nameendif
2195*5113495bSYour Name
2196*5113495bSYour NameDP_OBJS += $(DP_SRC)/../cmn_dp_api/dp_ratetable.o
2197*5113495bSYour Name
2198*5113495bSYour Nameifeq ($(CONFIG_BERYLLIUM), y)
2199*5113495bSYour NameDP_INC += -I$(WLAN_COMMON_INC)/dp/wifi3.0/be
2200*5113495bSYour Name
2201*5113495bSYour NameDP_OBJS += $(DP_SRC)/be/dp_be.o
2202*5113495bSYour NameDP_OBJS += $(DP_SRC)/be/dp_be_tx.o
2203*5113495bSYour NameDP_OBJS += $(DP_SRC)/be/dp_be_rx.o
2204*5113495bSYour Name
2205*5113495bSYour Nameifeq ($(CONFIG_WIFI_MONITOR_SUPPORT), y)
2206*5113495bSYour Nameifeq ($(CONFIG_WLAN_TX_MON_2_0), y)
2207*5113495bSYour NameDP_OBJS += $(DP_SRC)/monitor/2.0/dp_mon_2.0.o \
2208*5113495bSYour Name		$(DP_SRC)/monitor/2.0/dp_mon_filter_2.0.o
2209*5113495bSYour NameDP_OBJS += $(DP_SRC)/monitor/2.0/dp_tx_mon_2.0.o \
2210*5113495bSYour Name		$(DP_SRC)/monitor/2.0/dp_tx_mon_status_2.0.o
2211*5113495bSYour Nameccflags-$(CONFIG_WLAN_TX_MON_2_0) += -DWLAN_PKT_CAPTURE_TX_2_0
2212*5113495bSYour Nameccflags-y += -DWLAN_TX_PKT_CAPTURE_ENH_BE
2213*5113495bSYour Nameccflags-y += -DQDF_FRAG_CACHE_SUPPORT
2214*5113495bSYour Nameendif
2215*5113495bSYour Nameendif
2216*5113495bSYour Nameendif
2217*5113495bSYour Name
2218*5113495bSYour Nameifeq ($(CONFIG_LITHIUM), y)
2219*5113495bSYour NameDP_OBJS += $(DP_SRC)/li/dp_li.o
2220*5113495bSYour NameDP_OBJS += $(DP_SRC)/li/dp_li_tx.o
2221*5113495bSYour NameDP_OBJS += $(DP_SRC)/li/dp_li_rx.o
2222*5113495bSYour Nameendif
2223*5113495bSYour Name
2224*5113495bSYour Nameifeq ($(CONFIG_RHINE), y)
2225*5113495bSYour NameDP_OBJS += $(DP_SRC)/rh/dp_rh.o
2226*5113495bSYour NameDP_OBJS += $(DP_SRC)/rh/dp_rh_tx.o
2227*5113495bSYour NameDP_OBJS += $(DP_SRC)/rh/dp_rh_rx.o
2228*5113495bSYour NameDP_OBJS += $(DP_SRC)/rh/dp_rh_htt.o
2229*5113495bSYour Nameendif
2230*5113495bSYour Name
2231*5113495bSYour Nameifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
2232*5113495bSYour NameDP_OBJS += $(DP_SRC)/dp_tx_flow_control.o
2233*5113495bSYour Nameendif
2234*5113495bSYour Name
2235*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_RX_BUFFER_POOL), y)
2236*5113495bSYour NameDP_OBJS += $(DP_SRC)/dp_rx_buffer_pool.o
2237*5113495bSYour Nameendif
2238*5113495bSYour Name
2239*5113495bSYour Nameifeq ($(CONFIG_IPA_OFFLOAD), y)
2240*5113495bSYour NameDP_OBJS +=     $(DP_SRC)/dp_ipa.o
2241*5113495bSYour Nameendif
2242*5113495bSYour Name
2243*5113495bSYour Nameifeq ($(CONFIG_WDI_EVENT_ENABLE), y)
2244*5113495bSYour NameDP_OBJS +=     $(DP_SRC)/dp_wdi_event.o
2245*5113495bSYour Nameendif
2246*5113495bSYour Name
2247*5113495bSYour Nameifeq ($(CONFIG_FEATURE_MEC), y)
2248*5113495bSYour NameDP_OBJS += $(DP_SRC)/dp_txrx_wds.o
2249*5113495bSYour Nameendif
2250*5113495bSYour Name
2251*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_SON), y)
2252*5113495bSYour NameDP_OBJS += $(WLAN_COMMON_ROOT)/dp/cmn_dp_api/dp_ratetable.o
2253*5113495bSYour NameDP_INC += -I$(WLAN_COMMON_INC)/dp/cmn_dp_api
2254*5113495bSYour Nameendif
2255*5113495bSYour Name
2256*5113495bSYour Nameendif #LITHIUM
2257*5113495bSYour Name
2258*5113495bSYour Name$(call add-wlan-objs,dp,$(DP_OBJS))
2259*5113495bSYour Name
2260*5113495bSYour Name############ CFG ############
2261*5113495bSYour NameWCFG_DIR := wlan_cfg
2262*5113495bSYour NameWCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR)
2263*5113495bSYour NameWCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR)
2264*5113495bSYour Name
2265*5113495bSYour Nameifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM) $(CONFIG_RHINE)))
2266*5113495bSYour NameWCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o
2267*5113495bSYour Nameendif
2268*5113495bSYour Name
2269*5113495bSYour Name$(call add-wlan-objs,wcfg,$(WCFG_OBJS))
2270*5113495bSYour Name
2271*5113495bSYour Name############ OL ############
2272*5113495bSYour NameOL_DIR :=     core/dp/ol
2273*5113495bSYour NameOL_INC :=     -I$(WLAN_ROOT)/$(OL_DIR)/inc
2274*5113495bSYour Name
2275*5113495bSYour Name############ CDP ############
2276*5113495bSYour NameCDP_ROOT_DIR := dp
2277*5113495bSYour NameCDP_INC_DIR := $(CDP_ROOT_DIR)/inc
2278*5113495bSYour NameCDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
2279*5113495bSYour Name
2280*5113495bSYour Name############ PKTLOG ############
2281*5113495bSYour NamePKTLOG_DIR :=      $(WLAN_COMMON_ROOT)/utils/pktlog
2282*5113495bSYour NamePKTLOG_INC :=      -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
2283*5113495bSYour Name
2284*5113495bSYour Nameifeq ($(CONFIG_REMOVE_PKT_LOG), n)
2285*5113495bSYour NamePKTLOG_OBJS :=	$(PKTLOG_DIR)/pktlog_ac.o \
2286*5113495bSYour Name		$(PKTLOG_DIR)/pktlog_internal.o \
2287*5113495bSYour Name		$(PKTLOG_DIR)/linux_ac.o
2288*5113495bSYour Name
2289*5113495bSYour Nameifeq ($(CONFIG_PKTLOG_LEGACY), y)
2290*5113495bSYour Name	PKTLOG_OBJS  += $(PKTLOG_DIR)/pktlog_wifi2.o
2291*5113495bSYour Nameelse
2292*5113495bSYour Name	PKTLOG_OBJS  += $(PKTLOG_DIR)/pktlog_wifi3.o
2293*5113495bSYour Nameendif
2294*5113495bSYour Name
2295*5113495bSYour Nameendif
2296*5113495bSYour Name
2297*5113495bSYour Name
2298*5113495bSYour Name$(call add-wlan-objs,pktlog,$(PKTLOG_OBJS))
2299*5113495bSYour Name
2300*5113495bSYour Name############ HTT ############
2301*5113495bSYour NameHTT_DIR :=      core/dp/htt
2302*5113495bSYour NameHTT_INC :=      -I$(WLAN_ROOT)/$(HTT_DIR)
2303*5113495bSYour Name
2304*5113495bSYour Nameifneq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM) $(CONFIG_RHINE)))
2305*5113495bSYour NameHTT_OBJS := $(HTT_DIR)/htt_tx.o \
2306*5113495bSYour Name            $(HTT_DIR)/htt.o \
2307*5113495bSYour Name            $(HTT_DIR)/htt_t2h.o \
2308*5113495bSYour Name            $(HTT_DIR)/htt_h2t.o \
2309*5113495bSYour Name            $(HTT_DIR)/htt_fw_stats.o \
2310*5113495bSYour Name            $(HTT_DIR)/htt_rx.o
2311*5113495bSYour Name
2312*5113495bSYour Nameifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y)
2313*5113495bSYour NameHTT_OBJS += $(HTT_DIR)/htt_monitor_rx.o
2314*5113495bSYour Nameendif
2315*5113495bSYour Name
2316*5113495bSYour Nameifeq ($(CONFIG_LL_DP_SUPPORT), y)
2317*5113495bSYour NameHTT_OBJS += $(HTT_DIR)/htt_rx_ll.o
2318*5113495bSYour Nameendif
2319*5113495bSYour Name
2320*5113495bSYour Nameifeq ($(CONFIG_HL_DP_SUPPORT), y)
2321*5113495bSYour NameHTT_OBJS += $(HTT_DIR)/htt_rx_hl.o
2322*5113495bSYour Nameendif
2323*5113495bSYour Nameendif
2324*5113495bSYour Name
2325*5113495bSYour Name$(call add-wlan-objs,htt,$(HTT_OBJS))
2326*5113495bSYour Name
2327*5113495bSYour Name############## INIT-DEINIT ###########
2328*5113495bSYour NameINIT_DEINIT_DIR := init_deinit/dispatcher
2329*5113495bSYour NameINIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc
2330*5113495bSYour NameINIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src
2331*5113495bSYour NameINIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR)
2332*5113495bSYour NameINIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR)
2333*5113495bSYour NameINIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o
2334*5113495bSYour Name
2335*5113495bSYour Name$(call add-wlan-objs,init_deinit,$(INIT_DEINIT_OBJS))
2336*5113495bSYour Name
2337*5113495bSYour Name############## REGULATORY ###########
2338*5113495bSYour NameREGULATORY_DIR := umac/regulatory
2339*5113495bSYour NameREGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src
2340*5113495bSYour NameREG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc
2341*5113495bSYour NameREG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src
2342*5113495bSYour NameREG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR)
2343*5113495bSYour NameREG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR)
2344*5113495bSYour NameREGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_SRC_DIR)
2345*5113495bSYour NameREGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR)
2346*5113495bSYour NameREGULATORY_INC += -I$(WLAN_COMMON_INC)/umac/cmn_services/regulatory/inc
2347*5113495bSYour NameREGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_build_chan_list.o \
2348*5113495bSYour Name		    $(REG_CORE_OBJ_DIR)/reg_callbacks.o \
2349*5113495bSYour Name		    $(REG_CORE_OBJ_DIR)/reg_db.o \
2350*5113495bSYour Name		    $(REG_CORE_OBJ_DIR)/reg_db_parser.o \
2351*5113495bSYour Name		    $(REG_CORE_OBJ_DIR)/reg_utils.o \
2352*5113495bSYour Name		    $(REG_CORE_OBJ_DIR)/reg_lte.o \
2353*5113495bSYour Name		    $(REG_CORE_OBJ_DIR)/reg_offload_11d_scan.o \
2354*5113495bSYour Name		    $(REG_CORE_OBJ_DIR)/reg_opclass.o \
2355*5113495bSYour Name		    $(REG_CORE_OBJ_DIR)/reg_priv_objs.o \
2356*5113495bSYour Name		    $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \
2357*5113495bSYour Name		    $(REG_CORE_OBJ_DIR)/reg_services_common.o \
2358*5113495bSYour Name		    $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \
2359*5113495bSYour Name		    $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o
2360*5113495bSYour Nameifeq ($(CONFIG_HOST_11D_SCAN), y)
2361*5113495bSYour NameREGULATORY_OBJS += $(REG_CORE_OBJ_DIR)/reg_host_11d.o
2362*5113495bSYour Nameendif
2363*5113495bSYour Name
2364*5113495bSYour Name$(call add-wlan-objs,regulatory,$(REGULATORY_OBJS))
2365*5113495bSYour Name
2366*5113495bSYour Name############## Control path common scheduler ##########
2367*5113495bSYour NameSCHEDULER_DIR := scheduler
2368*5113495bSYour NameSCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc
2369*5113495bSYour NameSCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src
2370*5113495bSYour NameSCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR)
2371*5113495bSYour NameSCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR)
2372*5113495bSYour NameSCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \
2373*5113495bSYour Name                  $(SCHEDULER_OBJ_DIR)/scheduler_core.o
2374*5113495bSYour Name
2375*5113495bSYour Name$(call add-wlan-objs,scheduler,$(SCHEDULER_OBJS))
2376*5113495bSYour Name
2377*5113495bSYour Name###### UMAC SERIALIZATION ########
2378*5113495bSYour NameUMAC_SER_DIR := umac/cmn_services/serialization
2379*5113495bSYour NameUMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc
2380*5113495bSYour NameUMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src
2381*5113495bSYour NameUMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR)
2382*5113495bSYour Name
2383*5113495bSYour NameUMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR)
2384*5113495bSYour NameUMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \
2385*5113495bSYour Name		 $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \
2386*5113495bSYour Name		 $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \
2387*5113495bSYour Name		 $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \
2388*5113495bSYour Name		 $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o \
2389*5113495bSYour Name		 $(UMAC_SER_OBJ_DIR)/wlan_serialization_internal.o \
2390*5113495bSYour Name		 $(UMAC_SER_OBJ_DIR)/wlan_serialization_non_scan.o \
2391*5113495bSYour Name		 $(UMAC_SER_OBJ_DIR)/wlan_serialization_queue.o \
2392*5113495bSYour Name		 $(UMAC_SER_OBJ_DIR)/wlan_serialization_scan.o
2393*5113495bSYour Name
2394*5113495bSYour Name$(call add-wlan-objs,umac_ser,$(UMAC_SER_OBJS))
2395*5113495bSYour Name
2396*5113495bSYour Name###### WIFI POS ########
2397*5113495bSYour NameWIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src
2398*5113495bSYour NameWIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc
2399*5113495bSYour NameWIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src
2400*5113495bSYour NameWIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc
2401*5113495bSYour NameWIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src
2402*5113495bSYour NameWIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc
2403*5113495bSYour Name
2404*5113495bSYour Name
2405*5113495bSYour Nameifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
2406*5113495bSYour Name
2407*5113495bSYour NameWIFI_POS_CLD_DIR := components/wifi_pos
2408*5113495bSYour NameWIFI_POS_CLD_CORE_DIR := $(WIFI_POS_CLD_DIR)/core
2409*5113495bSYour NameWIFI_POS_CLD_CORE_SRC := $(WIFI_POS_CLD_CORE_DIR)/src
2410*5113495bSYour NameWIFI_POS_CLD_DISP_DIR := $(WIFI_POS_CLD_DIR)/dispatcher
2411*5113495bSYour Name
2412*5113495bSYour NameWIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \
2413*5113495bSYour Name		 $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \
2414*5113495bSYour Name		 $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \
2415*5113495bSYour Name		 $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \
2416*5113495bSYour Name		 $(WIFI_POS_CLD_DISP_DIR)/src/wifi_pos_ucfg_api.o \
2417*5113495bSYour Name		 $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \
2418*5113495bSYour Name		 $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos_utils.o \
2419*5113495bSYour Name		 $(WIFI_POS_OS_IF_DIR)/wlan_cfg80211_wifi_pos.o \
2420*5113495bSYour Name		 $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o \
2421*5113495bSYour Name		 $(WIFI_POS_TGT_DIR)/target_if_wifi_pos_rx_ops.o \
2422*5113495bSYour Name		 $(WIFI_POS_TGT_DIR)/target_if_wifi_pos_tx_ops.o
2423*5113495bSYour Name
2424*5113495bSYour Nameifeq ($(CONFIG_WIFI_POS_PASN), y)
2425*5113495bSYour NameWIFI_POS_OBJS += $(WIFI_POS_CORE_DIR)/wifi_pos_pasn_api.o
2426*5113495bSYour NameWIFI_POS_OBJS += $(WIFI_POS_CLD_CORE_SRC)/wlan_wifi_pos_interface.o
2427*5113495bSYour Nameendif
2428*5113495bSYour Name
2429*5113495bSYour NameWIFI_POS_CLD_INC :=	-I$(WLAN_ROOT)/$(WIFI_POS_CLD_CORE_DIR)/inc \
2430*5113495bSYour Name			-I$(WLAN_ROOT)/$(WIFI_POS_CLD_DISP_DIR)/inc
2431*5113495bSYour Nameendif
2432*5113495bSYour Name
2433*5113495bSYour Name$(call add-wlan-objs,wifi_pos,$(WIFI_POS_OBJS))
2434*5113495bSYour Name
2435*5113495bSYour Name###### TWT CONVERGED ########
2436*5113495bSYour NameTWT_CONV_CMN_OSIF_SRC := $(WLAN_COMMON_ROOT)/os_if/linux/twt/src
2437*5113495bSYour NameTWT_CONV_CMN_DISPATCHER_SRC := $(WLAN_COMMON_ROOT)/umac/twt/dispatcher/src
2438*5113495bSYour NameTWT_CONV_CMN_CORE_SRC := $(WLAN_COMMON_ROOT)/umac/twt/core/src
2439*5113495bSYour NameTWT_CONV_CMN_TGT_SRC := $(WLAN_COMMON_ROOT)/target_if/twt/src
2440*5113495bSYour NameTWT_CONV_OSIF_SRC := os_if/twt/src
2441*5113495bSYour NameTWT_CONV_DISPATCHER_SRC := components/umac/twt/dispatcher/src
2442*5113495bSYour NameTWT_CONV_CORE_SRC := components/umac/twt/core/src
2443*5113495bSYour NameTWT_CONV_TGT_SRC := components/target_if/twt/src
2444*5113495bSYour Name
2445*5113495bSYour NameTWT_CONV_INCS := -I$(WLAN_COMMON_INC)/umac \
2446*5113495bSYour Name		 -I$(WLAN_ROOT)/components/umac \
2447*5113495bSYour Name		 -I$(WLAN_COMMON_INC)/os_if/linux/twt/inc \
2448*5113495bSYour Name		 -I$(WLAN_COMMON_INC)/umac/twt/dispatcher/inc \
2449*5113495bSYour Name		 -I$(WLAN_COMMON_INC)/target_if/twt/inc \
2450*5113495bSYour Name		 -I$(WLAN_ROOT)/os_if/twt/inc \
2451*5113495bSYour Name		 -I$(WLAN_ROOT)/components/umac/twt/dispatcher/inc \
2452*5113495bSYour Name		 -I$(WLAN_ROOT)/components/target_if/twt/inc
2453*5113495bSYour Name
2454*5113495bSYour Name
2455*5113495bSYour Nameifeq ($(CONFIG_WLAN_TWT_CONVERGED), y)
2456*5113495bSYour NameTWT_CONV_OBJS := $(TWT_CONV_CMN_OSIF_SRC)/osif_twt_req.o \
2457*5113495bSYour Name		 $(TWT_CONV_CMN_OSIF_SRC)/osif_twt_rsp.o \
2458*5113495bSYour Name		 $(TWT_CONV_CMN_DISPATCHER_SRC)/wlan_twt_api.o \
2459*5113495bSYour Name		 $(TWT_CONV_CMN_DISPATCHER_SRC)/wlan_twt_tgt_if_rx_api.o \
2460*5113495bSYour Name		 $(TWT_CONV_CMN_DISPATCHER_SRC)/wlan_twt_tgt_if_tx_api.o \
2461*5113495bSYour Name		 $(TWT_CONV_CMN_DISPATCHER_SRC)/wlan_twt_ucfg_api.o \
2462*5113495bSYour Name		 $(TWT_CONV_CMN_CORE_SRC)/wlan_twt_common.o \
2463*5113495bSYour Name		 $(TWT_CONV_CMN_CORE_SRC)/wlan_twt_objmgr.o \
2464*5113495bSYour Name		 $(TWT_CONV_CMN_TGT_SRC)/target_if_twt_cmd.o \
2465*5113495bSYour Name		 $(TWT_CONV_CMN_TGT_SRC)/target_if_twt_evt.o \
2466*5113495bSYour Name		 $(TWT_CONV_CMN_TGT_SRC)/target_if_twt.o \
2467*5113495bSYour Name		 $(TWT_CONV_OSIF_SRC)/osif_twt_ext_req.o \
2468*5113495bSYour Name		 $(TWT_CONV_OSIF_SRC)/osif_twt_ext_rsp.o \
2469*5113495bSYour Name		 $(TWT_CONV_OSIF_SRC)/osif_twt_ext_util.o \
2470*5113495bSYour Name		 $(TWT_CONV_DISPATCHER_SRC)/wlan_twt_ucfg_ext_api.o \
2471*5113495bSYour Name		 $(TWT_CONV_DISPATCHER_SRC)/wlan_twt_cfg_ext_api.o \
2472*5113495bSYour Name		 $(TWT_CONV_DISPATCHER_SRC)/wlan_twt_tgt_if_ext_rx_api.o \
2473*5113495bSYour Name		 $(TWT_CONV_DISPATCHER_SRC)/wlan_twt_tgt_if_ext_tx_api.o \
2474*5113495bSYour Name		 $(TWT_CONV_CORE_SRC)/wlan_twt_cfg.o \
2475*5113495bSYour Name		 $(TWT_CONV_CORE_SRC)/wlan_twt_main.o \
2476*5113495bSYour Name		 $(TWT_CONV_TGT_SRC)/target_if_ext_twt_cmd.o \
2477*5113495bSYour Name		 $(TWT_CONV_TGT_SRC)/target_if_ext_twt_evt.o
2478*5113495bSYour Nameendif
2479*5113495bSYour Name
2480*5113495bSYour Name$(call add-wlan-objs,twt_conv,$(TWT_CONV_OBJS))
2481*5113495bSYour Name
2482*5113495bSYour Name###### CP STATS ########
2483*5113495bSYour NameCP_MC_STATS_OS_IF_SRC           := os_if/cp_stats/src
2484*5113495bSYour NameCP_STATS_TGT_SRC                := $(WLAN_COMMON_ROOT)/target_if/cp_stats/src
2485*5113495bSYour NameCP_STATS_CORE_SRC               := $(WLAN_COMMON_ROOT)/umac/cp_stats/core/src
2486*5113495bSYour NameCP_STATS_DISPATCHER_SRC         := $(WLAN_COMMON_ROOT)/umac/cp_stats/dispatcher/src
2487*5113495bSYour NameCP_MC_STATS_COMPONENT_SRC       := components/cp_stats/dispatcher/src
2488*5113495bSYour NameCP_MC_STATS_COMPONENT_TGT_SRC   := $(CLD_TARGET_IF_DIR)/cp_stats/src
2489*5113495bSYour Name
2490*5113495bSYour NameCP_STATS_OS_IF_INC              := -I$(WLAN_COMMON_INC)/os_if/linux/cp_stats/inc
2491*5113495bSYour NameCP_STATS_TGT_INC                := -I$(WLAN_COMMON_INC)/target_if/cp_stats/inc
2492*5113495bSYour NameCP_STATS_DISPATCHER_INC         := -I$(WLAN_COMMON_INC)/umac/cp_stats/dispatcher/inc
2493*5113495bSYour NameCP_MC_STATS_COMPONENT_INC       := -I$(WLAN_ROOT)/components/cp_stats/dispatcher/inc
2494*5113495bSYour NameCP_STATS_CFG80211_OS_IF_INC     := -I$(WLAN_ROOT)/os_if/cp_stats/inc
2495*5113495bSYour Name
2496*5113495bSYour Nameifeq ($(CONFIG_CP_STATS), y)
2497*5113495bSYour NameCP_STATS_OBJS := $(CP_MC_STATS_COMPONENT_SRC)/wlan_cp_stats_mc_tgt_api.o	\
2498*5113495bSYour Name		 $(CP_MC_STATS_COMPONENT_SRC)/wlan_cp_stats_mc_ucfg_api.o	\
2499*5113495bSYour Name		 $(CP_MC_STATS_COMPONENT_TGT_SRC)/target_if_mc_cp_stats.o	\
2500*5113495bSYour Name		 $(CP_STATS_CORE_SRC)/wlan_cp_stats_comp_handler.o		\
2501*5113495bSYour Name		 $(CP_STATS_CORE_SRC)/wlan_cp_stats_obj_mgr_handler.o		\
2502*5113495bSYour Name		 $(CP_STATS_CORE_SRC)/wlan_cp_stats_ol_api.o			\
2503*5113495bSYour Name		 $(CP_MC_STATS_OS_IF_SRC)/wlan_cfg80211_mc_cp_stats.o		\
2504*5113495bSYour Name		 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_utils_api.o		\
2505*5113495bSYour Name		 $(WLAN_COMMON_ROOT)/target_if/cp_stats/src/target_if_cp_stats.o	\
2506*5113495bSYour Name		 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_ucfg_api.o
2507*5113495bSYour Name
2508*5113495bSYour Nameendif
2509*5113495bSYour Name
2510*5113495bSYour Name$(call add-wlan-objs,cp_stats,$(CP_STATS_OBJS))
2511*5113495bSYour Name
2512*5113495bSYour Name###### DCS ######
2513*5113495bSYour NameDCS_TGT_IF_SRC := $(WLAN_COMMON_ROOT)/target_if/dcs/src
2514*5113495bSYour NameDCS_CORE_SRC   := $(WLAN_COMMON_ROOT)/umac/dcs/core/src
2515*5113495bSYour NameDCS_DISP_SRC   := $(WLAN_COMMON_ROOT)/umac/dcs/dispatcher/src
2516*5113495bSYour Name
2517*5113495bSYour NameDCS_TGT_IF_INC := -I$(WLAN_COMMON_INC)/target_if/dcs/inc
2518*5113495bSYour NameDCS_DISP_INC   := -I$(WLAN_COMMON_INC)/umac/dcs/dispatcher/inc
2519*5113495bSYour Name
2520*5113495bSYour Nameifeq ($(CONFIG_DCS), y)
2521*5113495bSYour NameDCS_OBJS := $(DCS_TGT_IF_SRC)/target_if_dcs.o \
2522*5113495bSYour Name	$(DCS_CORE_SRC)/wlan_dcs.o \
2523*5113495bSYour Name	$(DCS_DISP_SRC)/wlan_dcs_init_deinit_api.o \
2524*5113495bSYour Name	$(DCS_DISP_SRC)/wlan_dcs_ucfg_api.o \
2525*5113495bSYour Name	$(DCS_DISP_SRC)/wlan_dcs_tgt_api.o
2526*5113495bSYour Nameendif
2527*5113495bSYour Name
2528*5113495bSYour Name$(call add-wlan-objs,dcs,$(DCS_OBJS))
2529*5113495bSYour Name
2530*5113495bSYour Name####### AFC ######
2531*5113495bSYour NameAFC_CMN_OSIF_SRC  := $(WLAN_COMMON_ROOT)/os_if/linux/afc/src
2532*5113495bSYour NameAFC_CMN_CORE_SRC  := $(WLAN_COMMON_ROOT)/umac/afc/core/src
2533*5113495bSYour NameAFC_CMN_DISP_SRC  := $(WLAN_COMMON_ROOT)/umac/afc/dispatcher/src
2534*5113495bSYour Name
2535*5113495bSYour NameAFC_CMN_OSIF_INC  := -I$(WLAN_COMMON_INC)/os_if/linux/afc/inc
2536*5113495bSYour NameAFC_CMN_DISP_INC  := -I$(WLAN_COMMON_INC)/umac/afc/dispatcher/inc
2537*5113495bSYour NameAFC_CMN_CORE_INC  := -I$(WLAN_COMMON_INC)/umac/afc/core/inc
2538*5113495bSYour Name
2539*5113495bSYour Nameifeq ($(CONFIG_AFC_SUPPORT), y)
2540*5113495bSYour NameAFC_OBJS := $(AFC_CMN_OSIF_SRC)/wlan_cfg80211_afc.o \
2541*5113495bSYour Name	    $(AFC_CMN_CORE_SRC)/wlan_afc_main.o \
2542*5113495bSYour Name	    $(AFC_CMN_DISP_SRC)/wlan_afc_ucfg_api.o
2543*5113495bSYour Nameendif
2544*5113495bSYour Name
2545*5113495bSYour Name$(call add-wlan-objs,afc,$(AFC_OBJS))
2546*5113495bSYour Name
2547*5113495bSYour Name###### INTEROP ISSUES AP ########
2548*5113495bSYour NameINTEROP_ISSUES_AP_OS_IF_SRC      := os_if/interop_issues_ap/src
2549*5113495bSYour NameINTEROP_ISSUES_AP_TGT_SRC        := components/target_if/interop_issues_ap/src
2550*5113495bSYour NameINTEROP_ISSUES_AP_CORE_SRC       := components/interop_issues_ap/core/src
2551*5113495bSYour NameINTEROP_ISSUES_AP_DISPATCHER_SRC := components/interop_issues_ap/dispatcher/src
2552*5113495bSYour Name
2553*5113495bSYour NameINTEROP_ISSUES_AP_OS_IF_INC      := -I$(WLAN_ROOT)/os_if/interop_issues_ap/inc
2554*5113495bSYour NameINTEROP_ISSUES_AP_TGT_INC        := -I$(WLAN_ROOT)/components/target_if/interop_issues_ap/inc
2555*5113495bSYour NameINTEROP_ISSUES_AP_DISPATCHER_INC := -I$(WLAN_ROOT)/components/interop_issues_ap/dispatcher/inc
2556*5113495bSYour NameINTEROP_ISSUES_AP_CORE_INC       := -I$(WLAN_ROOT)/components/interop_issues_ap/core/inc
2557*5113495bSYour Name
2558*5113495bSYour Nameifeq ($(CONFIG_FEATURE_INTEROP_ISSUES_AP), y)
2559*5113495bSYour NameINTEROP_ISSUES_AP_OBJS := $(INTEROP_ISSUES_AP_TGT_SRC)/target_if_interop_issues_ap.o \
2560*5113495bSYour Name		$(INTEROP_ISSUES_AP_CORE_SRC)/wlan_interop_issues_ap_api.o \
2561*5113495bSYour Name		$(INTEROP_ISSUES_AP_OS_IF_SRC)/wlan_cfg80211_interop_issues_ap.o \
2562*5113495bSYour Name		$(INTEROP_ISSUES_AP_DISPATCHER_SRC)/wlan_interop_issues_ap_tgt_api.o \
2563*5113495bSYour Name		$(INTEROP_ISSUES_AP_DISPATCHER_SRC)/wlan_interop_issues_ap_ucfg_api.o
2564*5113495bSYour Nameendif
2565*5113495bSYour Name
2566*5113495bSYour Name$(call add-wlan-objs,interop_issues_ap,$(INTEROP_ISSUES_AP_OBJS))
2567*5113495bSYour Name
2568*5113495bSYour Name######################### NAN #########################
2569*5113495bSYour NameNAN_CORE_DIR := components/nan/core/src
2570*5113495bSYour NameNAN_CORE_INC := -I$(WLAN_ROOT)/components/nan/core/inc
2571*5113495bSYour NameNAN_UCFG_DIR := components/nan/dispatcher/src
2572*5113495bSYour NameNAN_UCFG_INC := -I$(WLAN_ROOT)/components/nan/dispatcher/inc
2573*5113495bSYour NameNAN_TGT_DIR  := components/target_if/nan/src
2574*5113495bSYour NameNAN_TGT_INC  := -I$(WLAN_ROOT)/components/target_if/nan/inc
2575*5113495bSYour Name
2576*5113495bSYour NameNAN_OS_IF_DIR  := os_if/nan/src
2577*5113495bSYour NameNAN_OS_IF_INC  := -I$(WLAN_ROOT)/os_if/nan/inc
2578*5113495bSYour Name
2579*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
2580*5113495bSYour NameWLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \
2581*5113495bSYour Name		 $(NAN_CORE_DIR)/nan_api.o \
2582*5113495bSYour Name		 $(NAN_UCFG_DIR)/nan_ucfg_api.o \
2583*5113495bSYour Name		 $(NAN_UCFG_DIR)/wlan_nan_api.o \
2584*5113495bSYour Name		 $(NAN_UCFG_DIR)/cfg_nan.o \
2585*5113495bSYour Name		 $(NAN_TGT_DIR)/target_if_nan.o \
2586*5113495bSYour Name		 $(NAN_OS_IF_DIR)/os_if_nan.o
2587*5113495bSYour Nameendif
2588*5113495bSYour Name
2589*5113495bSYour Name$(call add-wlan-objs,nan,$(WLAN_NAN_OBJS))
2590*5113495bSYour Name
2591*5113495bSYour Name#######################################################
2592*5113495bSYour Name
2593*5113495bSYour Name######################### DP_COMPONENT #########################
2594*5113495bSYour NameDP_COMP_CORE_DIR := components/dp/core/src
2595*5113495bSYour NameDP_COMP_UCFG_DIR := components/dp/dispatcher/src
2596*5113495bSYour NameDP_COMP_TGT_DIR  := components/target_if/dp/src
2597*5113495bSYour NameDP_COMP_OS_IF_DIR  := os_if/dp/src
2598*5113495bSYour Name
2599*5113495bSYour NameDP_COMP_INC	:= -I$(WLAN_ROOT)/components/dp/core/inc	\
2600*5113495bSYour Name		-I$(WLAN_ROOT)/components/dp/core/src		\
2601*5113495bSYour Name		-I$(WLAN_ROOT)/components/dp/dispatcher/inc	\
2602*5113495bSYour Name		-I$(WLAN_ROOT)/components/target_if/dp/inc	\
2603*5113495bSYour Name		-I$(WLAN_ROOT)/os_if/dp/inc
2604*5113495bSYour Name
2605*5113495bSYour NameWLAN_DP_COMP_OBJS := $(DP_COMP_CORE_DIR)/wlan_dp_main.o \
2606*5113495bSYour Name		 $(DP_COMP_UCFG_DIR)/wlan_dp_ucfg_api.o \
2607*5113495bSYour Name		$(DP_COMP_UCFG_DIR)/wlan_dp_api.o \
2608*5113495bSYour Name		 $(DP_COMP_OS_IF_DIR)/os_if_dp.o \
2609*5113495bSYour Name		 $(DP_COMP_OS_IF_DIR)/os_if_dp_txrx.o \
2610*5113495bSYour Name		 $(DP_COMP_CORE_DIR)/wlan_dp_bus_bandwidth.o \
2611*5113495bSYour Name		 $(DP_COMP_CORE_DIR)/wlan_dp_softap_txrx.o \
2612*5113495bSYour Name		 $(DP_COMP_CORE_DIR)/wlan_dp_txrx.o \
2613*5113495bSYour Name		 $(DP_COMP_TGT_DIR)/target_if_dp_comp.o
2614*5113495bSYour Name
2615*5113495bSYour Nameifeq ($(CONFIG_WLAN_LRO), y)
2616*5113495bSYour NameWLAN_DP_COMP_OBJS += $(DP_COMP_OS_IF_DIR)/os_if_dp_lro.o
2617*5113495bSYour Nameendif
2618*5113495bSYour Name
2619*5113495bSYour Nameifeq ($(CONFIG_WLAN_NUD_TRACKING), y)
2620*5113495bSYour NameWLAN_DP_COMP_OBJS += $(DP_COMP_CORE_DIR)/wlan_dp_nud_tracking.o
2621*5113495bSYour Nameendif
2622*5113495bSYour Name
2623*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_PERIODIC_STA_STATS), y)
2624*5113495bSYour NameWLAN_DP_COMP_OBJS += $(DP_COMP_CORE_DIR)/wlan_dp_periodic_sta_stats.o
2625*5113495bSYour Nameendif
2626*5113495bSYour Name
2627*5113495bSYour Nameifeq ($(CONFIG_DP_SWLM), y)
2628*5113495bSYour NameWLAN_DP_COMP_OBJS += $(DP_COMP_CORE_DIR)/wlan_dp_swlm.o
2629*5113495bSYour Nameendif
2630*5113495bSYour Name
2631*5113495bSYour Nameifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM) $(CONFIG_RHINE)))
2632*5113495bSYour NameWLAN_DP_COMP_OBJS += $(DP_COMP_CORE_DIR)/wlan_dp_prealloc.o
2633*5113495bSYour Name
2634*5113495bSYour Nameifeq ($(CONFIG_WLAN_TX_MON_2_0), y)
2635*5113495bSYour Nameifeq ($(CONFIG_WLAN_DP_LOCAL_PKT_CAPTURE), y)
2636*5113495bSYour NameWLAN_DP_COMP_OBJS += $(DP_COMP_OS_IF_DIR)/os_if_dp_local_pkt_capture.o
2637*5113495bSYour Nameendif #CONFIG_WLAN_DP_LOCAL_PKT_CAPTURE
2638*5113495bSYour Nameendif #CONFIG_WLAN_TX_MON_2_0
2639*5113495bSYour Nameendif
2640*5113495bSYour Name
2641*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_DP_RX_THREADS), y)
2642*5113495bSYour NameWLAN_DP_COMP_OBJS += $(DP_COMP_CORE_DIR)/wlan_dp_rx_thread.o
2643*5113495bSYour Nameendif
2644*5113495bSYour Name
2645*5113495bSYour Nameifeq ($(CONFIG_RX_FISA), y)
2646*5113495bSYour NameWLAN_DP_COMP_OBJS += $(DP_COMP_CORE_DIR)/wlan_dp_fisa_rx.o
2647*5113495bSYour NameWLAN_DP_COMP_OBJS += $(DP_COMP_CORE_DIR)/wlan_dp_rx_fst.o
2648*5113495bSYour Nameendif
2649*5113495bSYour Name
2650*5113495bSYour Nameifeq ($(CONFIG_FEATURE_DIRECT_LINK), y)
2651*5113495bSYour NameWLAN_DP_COMP_OBJS += $(DP_COMP_CORE_DIR)/wlan_dp_wfds.o
2652*5113495bSYour Nameendif
2653*5113495bSYour Name
2654*5113495bSYour Name$(call add-wlan-objs,dp_comp,$(WLAN_DP_COMP_OBJS))
2655*5113495bSYour Name
2656*5113495bSYour Name#######################################################
2657*5113495bSYour Name
2658*5113495bSYour Name######################### QMI_COMPONENT #########################
2659*5113495bSYour NameQMI_COMP_CORE_DIR := components/qmi/core/src
2660*5113495bSYour NameQMI_COMP_UCFG_DIR := components/qmi/dispatcher/src
2661*5113495bSYour NameQMI_COMP_OS_IF_DIR := os_if/qmi/src
2662*5113495bSYour Name
2663*5113495bSYour NameQMI_COMP_INC := -I$(WLAN_ROOT)/components/qmi/core/inc       \
2664*5113495bSYour Name		-I$(WLAN_ROOT)/components/qmi/core/src       \
2665*5113495bSYour Name		-I$(WLAN_ROOT)/components/qmi/dispatcher/inc \
2666*5113495bSYour Name		-I$(WLAN_ROOT)/os_if/qmi/inc
2667*5113495bSYour Name
2668*5113495bSYour Nameifeq ($(CONFIG_QMI_COMPONENT_ENABLE), y)
2669*5113495bSYour NameWLAN_QMI_COMP_OBJS := $(QMI_COMP_CORE_DIR)/wlan_qmi_main.o \
2670*5113495bSYour Name		 $(QMI_COMP_UCFG_DIR)/wlan_qmi_ucfg_api.o  \
2671*5113495bSYour Name		 $(QMI_COMP_OS_IF_DIR)/os_if_qmi.o
2672*5113495bSYour Name
2673*5113495bSYour Nameifeq ($(CONFIG_QMI_WFDS), y)
2674*5113495bSYour NameWLAN_QMI_COMP_OBJS += $(QMI_COMP_OS_IF_DIR)/os_if_qmi_wifi_driver_service_v01.o
2675*5113495bSYour NameWLAN_QMI_COMP_OBJS += $(QMI_COMP_OS_IF_DIR)/os_if_qmi_wfds.o
2676*5113495bSYour NameWLAN_QMI_COMP_OBJS += $(QMI_COMP_UCFG_DIR)/wlan_qmi_wfds_api.o
2677*5113495bSYour Nameendif
2678*5113495bSYour Nameendif
2679*5113495bSYour Name
2680*5113495bSYour Name$(call add-wlan-objs,qmi_comp,$(WLAN_QMI_COMP_OBJS))
2681*5113495bSYour Name
2682*5113495bSYour Name#######################################################
2683*5113495bSYour Name
2684*5113495bSYour Name######################### SON #########################
2685*5113495bSYour Name#SON_CORE_DIR := components/son/core/src
2686*5113495bSYour Name#SON_CORE_INC := -I$(WLAN_ROOT)/components/son/core/inc
2687*5113495bSYour NameSON_UCFG_DIR := components/son/dispatcher/src
2688*5113495bSYour NameSON_UCFG_INC := -I$(WLAN_ROOT)/components/son/dispatcher/inc
2689*5113495bSYour NameSON_TGT_DIR  := $(WLAN_COMMON_ROOT)/target_if/son/src
2690*5113495bSYour NameSON_TGT_INC  := -I$(WLAN_COMMON_INC)/target_if/son/inc/
2691*5113495bSYour Name
2692*5113495bSYour NameSON_OS_IF_DIR  := os_if/son/src
2693*5113495bSYour NameSON_OS_IF_INC  := -I$(WLAN_ROOT)/os_if/son/inc
2694*5113495bSYour Name
2695*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_SON), y)
2696*5113495bSYour NameWLAN_SON_OBJS := $(SON_UCFG_DIR)/son_ucfg_api.o \
2697*5113495bSYour Name		 $(SON_UCFG_DIR)/son_api.o \
2698*5113495bSYour Name		 $(SON_OS_IF_DIR)/os_if_son.o \
2699*5113495bSYour Name		 $(SON_TGT_DIR)/target_if_son.o
2700*5113495bSYour Nameendif
2701*5113495bSYour Name
2702*5113495bSYour Name$(call add-wlan-objs,son,$(WLAN_SON_OBJS))
2703*5113495bSYour Name
2704*5113495bSYour Name#######################################################
2705*5113495bSYour Name
2706*5113495bSYour Name######################### SPATIAL_REUSE #########################
2707*5113495bSYour NameSR_UCFG_DIR := components/spatial_reuse/dispatcher/src
2708*5113495bSYour NameSR_UCFG_INC := -I$(WLAN_ROOT)/components/spatial_reuse/dispatcher/inc
2709*5113495bSYour NameSR_TGT_DIR  := $(WLAN_COMMON_ROOT)/target_if/spatial_reuse/src
2710*5113495bSYour NameSR_TGT_INC  := -I$(WLAN_COMMON_INC)/target_if/spatial_reuse/inc/
2711*5113495bSYour Name
2712*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_SR), y)
2713*5113495bSYour NameWLAN_SR_OBJS := $(SR_UCFG_DIR)/spatial_reuse_ucfg_api.o \
2714*5113495bSYour Name		 $(SR_UCFG_DIR)/spatial_reuse_api.o \
2715*5113495bSYour Name		 $(SR_TGT_DIR)/target_if_spatial_reuse.o
2716*5113495bSYour Nameendif
2717*5113495bSYour Name
2718*5113495bSYour Name$(call add-wlan-objs,spatial_reuse,$(WLAN_SR_OBJS))
2719*5113495bSYour Name
2720*5113495bSYour Name#######################################################
2721*5113495bSYour Name
2722*5113495bSYour Name###### COEX ########
2723*5113495bSYour NameCOEX_OS_IF_SRC      := os_if/coex/src
2724*5113495bSYour NameCOEX_TGT_SRC        := components/target_if/coex/src
2725*5113495bSYour NameCOEX_CORE_SRC       := components/coex/core/src
2726*5113495bSYour NameCOEX_DISPATCHER_SRC := components/coex/dispatcher/src
2727*5113495bSYour Name
2728*5113495bSYour NameCOEX_OS_IF_INC      := -I$(WLAN_ROOT)/os_if/coex/inc
2729*5113495bSYour NameCOEX_TGT_INC        := -I$(WLAN_ROOT)/components/target_if/coex/inc
2730*5113495bSYour NameCOEX_DISPATCHER_INC := -I$(WLAN_ROOT)/components/coex/dispatcher/inc
2731*5113495bSYour NameCOEX_CORE_INC       := -I$(WLAN_ROOT)/components/coex/core/inc
2732*5113495bSYour NameCOEX_STRUCT_INC     := -I$(WLAN_COMMON_INC)/coex/dispatcher/inc
2733*5113495bSYour Name
2734*5113495bSYour Nameifeq ($(CONFIG_FEATURE_COEX), y)
2735*5113495bSYour NameCOEX_OBJS := $(COEX_TGT_SRC)/target_if_coex.o                 \
2736*5113495bSYour Name		 $(COEX_CORE_SRC)/wlan_coex_main.o                 \
2737*5113495bSYour Name		 $(COEX_OS_IF_SRC)/wlan_cfg80211_coex.o           \
2738*5113495bSYour Name		 $(COEX_DISPATCHER_SRC)/wlan_coex_tgt_api.o       \
2739*5113495bSYour Name		 $(COEX_DISPATCHER_SRC)/wlan_coex_utils_api.o       \
2740*5113495bSYour Name		 $(COEX_DISPATCHER_SRC)/wlan_coex_ucfg_api.o
2741*5113495bSYour Nameendif
2742*5113495bSYour Name
2743*5113495bSYour Name$(call add-wlan-objs,coex,$(COEX_OBJS))
2744*5113495bSYour Name
2745*5113495bSYour Name###### COAP ########
2746*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_COAP), y)
2747*5113495bSYour NameCOAP_HDD_SRC := core/hdd/src
2748*5113495bSYour NameCOAP_OS_IF_SRC := os_if/coap/src
2749*5113495bSYour NameCOAP_TGT_SRC := components/target_if/coap/src
2750*5113495bSYour NameCOAP_CORE_SRC  := components/coap/core/src
2751*5113495bSYour NameCOAP_DISPATCHER_SRC := components/coap/dispatcher/src
2752*5113495bSYour NameCOAP_WMI_SRC := components/wmi/src
2753*5113495bSYour Name
2754*5113495bSYour NameCOAP_OS_IF_INC  := -I$(WLAN_ROOT)/os_if/coap/inc
2755*5113495bSYour NameCOAP_TGT_INC := -I$(WLAN_ROOT)/components/target_if/coap/inc
2756*5113495bSYour NameCOAP_DISPATCHER_INC := -I$(WLAN_ROOT)/components/coap/dispatcher/inc
2757*5113495bSYour NameCOAP_CORE_INC := -I$(WLAN_ROOT)/components/coap/core/inc
2758*5113495bSYour NameCOAP_WMI_INC := -I$(WLAN_ROOT)/components/wmi/inc
2759*5113495bSYour Name
2760*5113495bSYour NameCOAP_OBJS := \
2761*5113495bSYour Name	$(COAP_HDD_SRC)/wlan_hdd_coap.o \
2762*5113495bSYour Name	$(COAP_OS_IF_SRC)/wlan_cfg80211_coap.o \
2763*5113495bSYour Name	$(COAP_TGT_SRC)/target_if_coap.o  \
2764*5113495bSYour Name	$(COAP_CORE_SRC)/wlan_coap_main.o  \
2765*5113495bSYour Name	$(COAP_DISPATCHER_SRC)/wlan_coap_tgt_api.o \
2766*5113495bSYour Name	$(COAP_DISPATCHER_SRC)/wlan_coap_ucfg_api.o \
2767*5113495bSYour Name	$(COAP_WMI_SRC)/wmi_unified_coap_tlv.o
2768*5113495bSYour Name$(call add-wlan-objs,coap,$(COAP_OBJS))
2769*5113495bSYour Nameendif
2770*5113495bSYour Name
2771*5113495bSYour Name############## HTC ##########
2772*5113495bSYour NameHTC_DIR := htc
2773*5113495bSYour NameHTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
2774*5113495bSYour Name
2775*5113495bSYour NameHTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
2776*5113495bSYour Name            $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
2777*5113495bSYour Name            $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
2778*5113495bSYour Name            $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
2779*5113495bSYour Name
2780*5113495bSYour Nameifeq ($(CONFIG_FEATURE_HTC_CREDIT_HISTORY), y)
2781*5113495bSYour NameHTC_OBJS += $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_credit_history.o
2782*5113495bSYour Nameendif
2783*5113495bSYour Name
2784*5113495bSYour Nameifeq ($(CONFIG_WLAN_HANG_EVENT), y)
2785*5113495bSYour NameHTC_OBJS += $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_hang_event.o
2786*5113495bSYour Nameendif
2787*5113495bSYour Name
2788*5113495bSYour Name$(call add-wlan-objs,htc,$(HTC_OBJS))
2789*5113495bSYour Name
2790*5113495bSYour Name########### HIF ###########
2791*5113495bSYour NameHIF_DIR := hif
2792*5113495bSYour NameHIF_CE_DIR := $(HIF_DIR)/src/ce
2793*5113495bSYour Name
2794*5113495bSYour NameHIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
2795*5113495bSYour Name
2796*5113495bSYour NameHIF_PCIE_DIR := $(HIF_DIR)/src/pcie
2797*5113495bSYour NameHIF_IPCIE_DIR := $(HIF_DIR)/src/ipcie
2798*5113495bSYour NameHIF_SNOC_DIR := $(HIF_DIR)/src/snoc
2799*5113495bSYour NameHIF_USB_DIR := $(HIF_DIR)/src/usb
2800*5113495bSYour NameHIF_SDIO_DIR := $(HIF_DIR)/src/sdio
2801*5113495bSYour Name
2802*5113495bSYour NameHIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio
2803*5113495bSYour NameHIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include
2804*5113495bSYour NameHIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src
2805*5113495bSYour Name
2806*5113495bSYour NameHIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
2807*5113495bSYour Name	   -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src
2808*5113495bSYour Name
2809*5113495bSYour Nameifeq ($(CONFIG_HIF_PCI), y)
2810*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
2811*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
2812*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
2813*5113495bSYour Nameendif
2814*5113495bSYour Name
2815*5113495bSYour Nameifeq ($(CONFIG_HIF_IPCI), y)
2816*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
2817*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_IPCIE_DIR)
2818*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
2819*5113495bSYour Nameendif
2820*5113495bSYour Name
2821*5113495bSYour Nameifeq ($(CONFIG_HIF_SNOC), y)
2822*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
2823*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
2824*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
2825*5113495bSYour Nameendif
2826*5113495bSYour Name
2827*5113495bSYour Nameifeq ($(CONFIG_HIF_USB), y)
2828*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
2829*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR)
2830*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
2831*5113495bSYour Nameendif
2832*5113495bSYour Name
2833*5113495bSYour Nameifeq ($(CONFIG_HIF_SDIO), y)
2834*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
2835*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR)
2836*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR)
2837*5113495bSYour NameHIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
2838*5113495bSYour Nameendif
2839*5113495bSYour Name
2840*5113495bSYour NameHIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
2841*5113495bSYour Name		   $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
2842*5113495bSYour Name		   $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_runtime_pm.o \
2843*5113495bSYour Name		   $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_exec.o
2844*5113495bSYour Name
2845*5113495bSYour Nameifneq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
2846*5113495bSYour NameHIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main_legacy.o
2847*5113495bSYour Nameendif
2848*5113495bSYour Name
2849*5113495bSYour Nameifeq ($(CONFIG_WLAN_NAPI), y)
2850*5113495bSYour NameHIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_irq_affinity.o
2851*5113495bSYour Nameendif
2852*5113495bSYour Name
2853*5113495bSYour NameHIF_CE_OBJS :=  $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
2854*5113495bSYour Name                $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
2855*5113495bSYour Name                $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
2856*5113495bSYour Name                $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
2857*5113495bSYour Name                $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o \
2858*5113495bSYour Name                $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
2859*5113495bSYour Name
2860*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
2861*5113495bSYour NameHIF_CE_OBJS +=  $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o
2862*5113495bSYour Nameendif
2863*5113495bSYour Name
2864*5113495bSYour Nameifeq ($(CONFIG_LITHIUM), y)
2865*5113495bSYour Nameifeq ($(CONFIG_CNSS_QCA6290), y)
2866*5113495bSYour NameHIF_CE_OBJS +=  $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o
2867*5113495bSYour Nameendif
2868*5113495bSYour Name
2869*5113495bSYour Nameifeq ($(CONFIG_CNSS_QCA6390), y)
2870*5113495bSYour NameHIF_CE_OBJS +=  $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6390def.o
2871*5113495bSYour Nameendif
2872*5113495bSYour Name
2873*5113495bSYour Nameifeq ($(CONFIG_CNSS_QCA6490), y)
2874*5113495bSYour NameHIF_CE_OBJS +=  $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6490def.o
2875*5113495bSYour Nameendif
2876*5113495bSYour Name
2877*5113495bSYour Nameifeq ($(CONFIG_CNSS_QCA6750), y)
2878*5113495bSYour NameHIF_CE_OBJS +=  $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6750def.o
2879*5113495bSYour Nameendif
2880*5113495bSYour Name
2881*5113495bSYour NameHIF_CE_OBJS +=  $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
2882*5113495bSYour Nameelse ifeq ($(CONFIG_BERYLLIUM), y)
2883*5113495bSYour Nameifeq (y,$(findstring y,$(CONFIG_CNSS_KIWI) $(CONFIG_CNSS_KIWI_V2) $CONFIG_CNSS_PEACH))
2884*5113495bSYour NameHIF_CE_OBJS +=  $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/kiwidef.o
2885*5113495bSYour Nameendif
2886*5113495bSYour Name
2887*5113495bSYour NameHIF_CE_OBJS +=  $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
2888*5113495bSYour Nameelse
2889*5113495bSYour NameHIF_CE_OBJS +=  $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_legacy.o
2890*5113495bSYour Nameendif
2891*5113495bSYour Name
2892*5113495bSYour NameHIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \
2893*5113495bSYour Name                $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \
2894*5113495bSYour Name                $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \
2895*5113495bSYour Name                $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o
2896*5113495bSYour Name
2897*5113495bSYour NameHIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \
2898*5113495bSYour Name                 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \
2899*5113495bSYour Name                 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \
2900*5113495bSYour Name                 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o \
2901*5113495bSYour Name                 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/transfer.o
2902*5113495bSYour Name
2903*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
2904*5113495bSYour NameHIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o
2905*5113495bSYour Nameendif
2906*5113495bSYour Name
2907*5113495bSYour Nameifeq ($(CONFIG_SDIO_TRANSFER), adma)
2908*5113495bSYour NameHIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/adma.o
2909*5113495bSYour Nameelse
2910*5113495bSYour NameHIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/mailbox.o
2911*5113495bSYour Nameendif
2912*5113495bSYour Name
2913*5113495bSYour NameHIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \
2914*5113495bSYour Name                        $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o \
2915*5113495bSYour Name                        $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/dev_quirks.o
2916*5113495bSYour Name
2917*5113495bSYour Nameifeq ($(CONFIG_WLAN_NAPI), y)
2918*5113495bSYour NameHIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
2919*5113495bSYour Nameendif
2920*5113495bSYour Name
2921*5113495bSYour Nameifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), y)
2922*5113495bSYour Name	HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_unit_test_suspend.o
2923*5113495bSYour Nameendif
2924*5113495bSYour Name
2925*5113495bSYour NameHIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
2926*5113495bSYour NameHIF_IPCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_IPCIE_DIR)/if_ipci.o
2927*5113495bSYour NameHIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
2928*5113495bSYour NameHIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o
2929*5113495bSYour Name
2930*5113495bSYour NameHIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
2931*5113495bSYour NameHIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
2932*5113495bSYour NameHIF_OBJS += $(HIF_COMMON_OBJS)
2933*5113495bSYour Name
2934*5113495bSYour Nameifeq ($(CONFIG_HIF_PCI), y)
2935*5113495bSYour NameHIF_OBJS += $(HIF_PCIE_OBJS)
2936*5113495bSYour NameHIF_OBJS += $(HIF_CE_OBJS)
2937*5113495bSYour NameHIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
2938*5113495bSYour Nameendif
2939*5113495bSYour Name
2940*5113495bSYour Nameifeq ($(CONFIG_HIF_IPCI), y)
2941*5113495bSYour NameHIF_OBJS += $(HIF_IPCIE_OBJS)
2942*5113495bSYour NameHIF_OBJS += $(HIF_CE_OBJS)
2943*5113495bSYour NameHIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_ipci.o
2944*5113495bSYour Nameendif
2945*5113495bSYour Name
2946*5113495bSYour Nameifeq ($(CONFIG_HIF_SNOC), y)
2947*5113495bSYour NameHIF_OBJS += $(HIF_SNOC_OBJS)
2948*5113495bSYour NameHIF_OBJS += $(HIF_CE_OBJS)
2949*5113495bSYour NameHIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
2950*5113495bSYour Nameendif
2951*5113495bSYour Name
2952*5113495bSYour Nameifeq ($(CONFIG_HIF_SDIO), y)
2953*5113495bSYour NameHIF_OBJS += $(HIF_SDIO_OBJS)
2954*5113495bSYour NameHIF_OBJS += $(HIF_SDIO_NATIVE_OBJS)
2955*5113495bSYour NameHIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o
2956*5113495bSYour Nameendif
2957*5113495bSYour Name
2958*5113495bSYour Nameifeq ($(CONFIG_HIF_USB), y)
2959*5113495bSYour NameHIF_OBJS += $(HIF_USB_OBJS)
2960*5113495bSYour NameHIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o
2961*5113495bSYour Nameendif
2962*5113495bSYour Name
2963*5113495bSYour Name$(call add-wlan-objs,hif,$(HIF_OBJS))
2964*5113495bSYour Name
2965*5113495bSYour Name############ HAL ############
2966*5113495bSYour Nameifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM) $(CONFIG_RHINE)))
2967*5113495bSYour NameHAL_DIR :=	hal
2968*5113495bSYour NameHAL_INC :=	-I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \
2969*5113495bSYour Name		-I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0
2970*5113495bSYour Name
2971*5113495bSYour Name#TODO fix hal_reo for RHINE
2972*5113495bSYour NameHAL_OBJS :=	$(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \
2973*5113495bSYour Name		$(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o
2974*5113495bSYour Name
2975*5113495bSYour Nameifeq ($(CONFIG_RX_FISA), y)
2976*5113495bSYour NameHAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_rx_flow.o
2977*5113495bSYour Nameendif
2978*5113495bSYour Nameendif #### CONFIG LITHIUM/BERYLLIUM/RHINE ####
2979*5113495bSYour Name
2980*5113495bSYour Nameifeq ($(CONFIG_LITHIUM), y)
2981*5113495bSYour NameHAL_INC += 	-I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/li
2982*5113495bSYour Name
2983*5113495bSYour NameHAL_OBJS +=	$(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/li/hal_li_generic_api.o
2984*5113495bSYour Name
2985*5113495bSYour NameHAL_OBJS +=	$(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/li/hal_li_reo.o
2986*5113495bSYour Name
2987*5113495bSYour Nameifeq ($(CONFIG_CNSS_QCA6290), y)
2988*5113495bSYour NameHAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6290
2989*5113495bSYour NameHAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6290/hal_6290.o
2990*5113495bSYour Nameelse ifeq ($(CONFIG_CNSS_QCA6390), y)
2991*5113495bSYour NameHAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6390
2992*5113495bSYour NameHAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6390/hal_6390.o
2993*5113495bSYour Nameelse ifeq ($(CONFIG_CNSS_QCA6490), y)
2994*5113495bSYour NameHAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6490
2995*5113495bSYour NameHAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6490/hal_6490.o
2996*5113495bSYour Nameelse ifeq ($(CONFIG_CNSS_QCA6750), y)
2997*5113495bSYour NameHAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6750
2998*5113495bSYour NameHAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6750/hal_6750.o
2999*5113495bSYour Nameelse
3000*5113495bSYour Name#error "Not 11ax"
3001*5113495bSYour Nameendif
3002*5113495bSYour Name
3003*5113495bSYour Nameendif #####CONFIG_LITHIUM####
3004*5113495bSYour Name
3005*5113495bSYour Nameifeq ($(CONFIG_BERYLLIUM), y)
3006*5113495bSYour NameHAL_INC += 	-I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/be
3007*5113495bSYour Name
3008*5113495bSYour NameHAL_OBJS +=	$(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/be/hal_be_generic_api.o
3009*5113495bSYour Name
3010*5113495bSYour NameHAL_OBJS +=	$(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/be/hal_be_reo.o \
3011*5113495bSYour Name
3012*5113495bSYour Nameifeq (y,$(findstring y,$(CONFIG_CNSS_KIWI) $(CONFIG_CNSS_KIWI_V2) $(CONFIG_CNSS_PEACH)))
3013*5113495bSYour NameHAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/kiwi
3014*5113495bSYour NameHAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/kiwi/hal_kiwi.o
3015*5113495bSYour Nameelse
3016*5113495bSYour Name#error "Not Beryllium"
3017*5113495bSYour Nameendif
3018*5113495bSYour Name
3019*5113495bSYour Nameendif #### CONFIG_BERYLLIUM ####
3020*5113495bSYour Name
3021*5113495bSYour Nameifeq ($(CONFIG_RHINE), y)
3022*5113495bSYour NameHAL_INC += 	-I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/rh
3023*5113495bSYour Name
3024*5113495bSYour NameHAL_OBJS +=	$(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/rh/hal_rh_generic_api.o
3025*5113495bSYour Name
3026*5113495bSYour Nameifeq ($(CONFIG_CNSS_WCN6450), y)
3027*5113495bSYour Name#TODO fix this for RHINE
3028*5113495bSYour NameHAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/wcn6450
3029*5113495bSYour NameHAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/wcn6450/hal_wcn6450.o
3030*5113495bSYour Nameelse
3031*5113495bSYour Name#error "Not RHINE"
3032*5113495bSYour Nameendif
3033*5113495bSYour Name
3034*5113495bSYour Nameendif #####CONFIG_RHINE####
3035*5113495bSYour Name
3036*5113495bSYour Name$(call add-wlan-objs,hal,$(HAL_OBJS))
3037*5113495bSYour Name
3038*5113495bSYour Name############ WMA ############
3039*5113495bSYour NameWMA_DIR :=	core/wma
3040*5113495bSYour Name
3041*5113495bSYour NameWMA_INC_DIR :=  $(WMA_DIR)/inc
3042*5113495bSYour NameWMA_SRC_DIR :=  $(WMA_DIR)/src
3043*5113495bSYour Name
3044*5113495bSYour NameWMA_INC :=	-I$(WLAN_ROOT)/$(WMA_INC_DIR) \
3045*5113495bSYour Name		-I$(WLAN_ROOT)/$(WMA_SRC_DIR)
3046*5113495bSYour Name
3047*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
3048*5113495bSYour NameWMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
3049*5113495bSYour Nameendif
3050*5113495bSYour Name
3051*5113495bSYour NameWMA_OBJS :=	$(WMA_SRC_DIR)/wma_main.o \
3052*5113495bSYour Name		$(WMA_SRC_DIR)/wma_scan_roam.o \
3053*5113495bSYour Name		$(WMA_SRC_DIR)/wma_dev_if.o \
3054*5113495bSYour Name		$(WMA_SRC_DIR)/wma_mgmt.o \
3055*5113495bSYour Name		$(WMA_SRC_DIR)/wma_power.o \
3056*5113495bSYour Name		$(WMA_SRC_DIR)/wma_data.o \
3057*5113495bSYour Name		$(WMA_SRC_DIR)/wma_utils.o \
3058*5113495bSYour Name		$(WMA_SRC_DIR)/wma_features.o \
3059*5113495bSYour Name		$(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
3060*5113495bSYour Name		$(WMA_NDP_OBJS)
3061*5113495bSYour Name
3062*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_11BE), y)
3063*5113495bSYour NameWMA_OBJS +=	$(WMA_SRC_DIR)/wma_eht.o
3064*5113495bSYour Nameendif
3065*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
3066*5113495bSYour NameWMA_OBJS+=	$(WMA_SRC_DIR)/wma_ocb.o
3067*5113495bSYour Nameendif
3068*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
3069*5113495bSYour NameWMA_OBJS+=	$(WMA_SRC_DIR)/wma_fips_api.o
3070*5113495bSYour Nameendif
3071*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
3072*5113495bSYour NameWMA_OBJS+=	$(WMA_SRC_DIR)/wma_he.o
3073*5113495bSYour Nameendif
3074*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
3075*5113495bSYour NameWMA_OBJS +=	$(WMA_SRC_DIR)/wma_twt.o
3076*5113495bSYour Nameendif
3077*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_FW_STATE), y)
3078*5113495bSYour NameWMA_OBJS +=	$(WMA_SRC_DIR)/wma_fw_state.o
3079*5113495bSYour Nameendif
3080*5113495bSYour Nameifeq ($(CONFIG_WLAN_MWS_INFO_DEBUGFS), y)
3081*5113495bSYour NameWMA_OBJS +=	$(WMA_SRC_DIR)/wma_coex.o
3082*5113495bSYour Nameendif
3083*5113495bSYour Nameifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
3084*5113495bSYour Nameifeq ($(CONFIG_WIFI_POS_PASN), y)
3085*5113495bSYour NameWMA_OBJS +=	$(WMA_SRC_DIR)/wma_pasn_peer_api.o
3086*5113495bSYour Nameendif
3087*5113495bSYour Nameendif
3088*5113495bSYour Name
3089*5113495bSYour Name$(call add-wlan-objs,wma,$(WMA_OBJS))
3090*5113495bSYour Name
3091*5113495bSYour Name#######DIRECT_BUFFER_RX#########
3092*5113495bSYour Nameifeq ($(CONFIG_DIRECT_BUF_RX_ENABLE), y)
3093*5113495bSYour NameDBR_DIR = $(WLAN_COMMON_ROOT)/target_if/direct_buf_rx
3094*5113495bSYour NameUMAC_DBR_INC := -I$(WLAN_COMMON_INC)/target_if/direct_buf_tx/inc
3095*5113495bSYour NameUMAC_DBR_OBJS := $(DBR_DIR)/src/target_if_direct_buf_rx_api.o \
3096*5113495bSYour Name		 $(DBR_DIR)/src/target_if_direct_buf_rx_main.o \
3097*5113495bSYour Name		 $(WLAN_COMMON_ROOT)/wmi/src/wmi_unified_dbr_api.o \
3098*5113495bSYour Name		 $(WLAN_COMMON_ROOT)/wmi/src/wmi_unified_dbr_tlv.o
3099*5113495bSYour Nameendif
3100*5113495bSYour Name
3101*5113495bSYour Name$(call add-wlan-objs,umac_dbr,$(UMAC_DBR_OBJS))
3102*5113495bSYour Name
3103*5113495bSYour Name############## PLD ##########
3104*5113495bSYour NamePLD_DIR := core/pld
3105*5113495bSYour NamePLD_INC_DIR := $(PLD_DIR)/inc
3106*5113495bSYour NamePLD_SRC_DIR := $(PLD_DIR)/src
3107*5113495bSYour Name
3108*5113495bSYour NamePLD_INC :=	-I$(WLAN_ROOT)/$(PLD_INC_DIR) \
3109*5113495bSYour Name		-I$(WLAN_ROOT)/$(PLD_SRC_DIR)
3110*5113495bSYour Name
3111*5113495bSYour NamePLD_OBJS :=	$(PLD_SRC_DIR)/pld_common.o
3112*5113495bSYour Name
3113*5113495bSYour Nameifeq ($(CONFIG_IPCIE_FW_SIM), y)
3114*5113495bSYour NamePLD_OBJS +=     $(PLD_SRC_DIR)/pld_pcie_fw_sim.o
3115*5113495bSYour Nameendif
3116*5113495bSYour Nameifeq ($(CONFIG_PCIE_FW_SIM), y)
3117*5113495bSYour NamePLD_OBJS +=     $(PLD_SRC_DIR)/pld_pcie_fw_sim.o
3118*5113495bSYour Nameelse ifeq ($(CONFIG_HIF_PCI), y)
3119*5113495bSYour NamePLD_OBJS +=     $(PLD_SRC_DIR)/pld_pcie.o
3120*5113495bSYour Nameendif
3121*5113495bSYour Nameifeq ($(CONFIG_SNOC_FW_SIM),y)
3122*5113495bSYour NamePLD_OBJS +=     $(PLD_SRC_DIR)/pld_snoc_fw_sim.o
3123*5113495bSYour Nameelse ifeq (y,$(findstring y, $(CONFIG_ICNSS) $(CONFIG_PLD_SNOC_ICNSS_FLAG)))
3124*5113495bSYour NamePLD_OBJS +=     $(PLD_SRC_DIR)/pld_snoc.o
3125*5113495bSYour Nameelse ifeq (y,$(findstring y, $(CONFIG_PLD_IPCI_ICNSS_FLAG)))
3126*5113495bSYour NamePLD_OBJS +=     $(PLD_SRC_DIR)/pld_ipci.o
3127*5113495bSYour Nameendif
3128*5113495bSYour Name
3129*5113495bSYour Nameifeq ($(CONFIG_QCA_WIFI_SDIO), y)
3130*5113495bSYour NamePLD_OBJS +=	$(PLD_SRC_DIR)/pld_sdio.o
3131*5113495bSYour Nameendif
3132*5113495bSYour Nameifeq ($(CONFIG_HIF_USB), y)
3133*5113495bSYour NamePLD_OBJS +=	$(PLD_SRC_DIR)/pld_usb.o
3134*5113495bSYour Nameendif
3135*5113495bSYour Name
3136*5113495bSYour Name$(call add-wlan-objs,pld,$(PLD_OBJS))
3137*5113495bSYour Name
3138*5113495bSYour Name
3139*5113495bSYour NameTARGET_INC := 	-I$(WLAN_FW_API)/fw
3140*5113495bSYour Name
3141*5113495bSYour Nameifeq ($(CONFIG_CNSS_QCA6290), y)
3142*5113495bSYour Nameifeq ($(CONFIG_QCA6290_11AX), y)
3143*5113495bSYour NameTARGET_INC +=	-I$(WLAN_FW_API)/hw/qca6290/11ax/v2
3144*5113495bSYour Nameelse
3145*5113495bSYour NameTARGET_INC +=	-I$(WLAN_FW_API)/hw/qca6290/v2
3146*5113495bSYour Nameendif
3147*5113495bSYour Nameendif
3148*5113495bSYour Name
3149*5113495bSYour Nameifeq ($(CONFIG_CNSS_QCA6390), y)
3150*5113495bSYour NameTARGET_INC +=	-I$(WLAN_FW_API)/hw/qca6390/v1
3151*5113495bSYour Nameendif
3152*5113495bSYour Name
3153*5113495bSYour Nameifeq ($(CONFIG_CNSS_QCA6490), y)
3154*5113495bSYour NameTARGET_INC +=	-I$(WLAN_FW_API)/hw/qca6490/v1
3155*5113495bSYour Nameendif
3156*5113495bSYour Name
3157*5113495bSYour Nameifeq ($(CONFIG_CNSS_QCA6750), y)
3158*5113495bSYour NameTARGET_INC +=	-I$(WLAN_FW_API)/hw/qca6750/v1
3159*5113495bSYour Nameendif
3160*5113495bSYour Name
3161*5113495bSYour Nameifeq ($(CONFIG_CNSS_WCN6450), y)
3162*5113495bSYour NameTARGET_INC +=	-I$(WLAN_FW_API)/hw/wcn6450/v1
3163*5113495bSYour Nameendif
3164*5113495bSYour Name
3165*5113495bSYour Nameifeq ($(CONFIG_CNSS_PEACH), y)
3166*5113495bSYour NameTARGET_INC +=	-I$(WLAN_FW_API)/hw/peach/v1/
3167*5113495bSYour Nameelse
3168*5113495bSYour Nameifeq ($(CONFIG_CNSS_KIWI_V2), y)
3169*5113495bSYour NameTARGET_INC +=	-I$(WLAN_FW_API)/hw/kiwi/v2/
3170*5113495bSYour Nameelse
3171*5113495bSYour Nameifeq ($(CONFIG_CNSS_KIWI), y)
3172*5113495bSYour NameTARGET_INC +=	-I$(WLAN_FW_API)/hw/kiwi/v1/
3173*5113495bSYour Nameendif
3174*5113495bSYour Nameendif
3175*5113495bSYour Nameendif
3176*5113495bSYour Name
3177*5113495bSYour NameLINUX_INC :=	-Iinclude
3178*5113495bSYour Name
3179*5113495bSYour NameINCS :=		$(HDD_INC) \
3180*5113495bSYour Name		$(SYNC_INC) \
3181*5113495bSYour Name		$(DSC_INC) \
3182*5113495bSYour Name		$(EPPING_INC) \
3183*5113495bSYour Name		$(LINUX_INC) \
3184*5113495bSYour Name		$(MAC_INC) \
3185*5113495bSYour Name		$(SAP_INC) \
3186*5113495bSYour Name		$(SME_INC) \
3187*5113495bSYour Name		$(SYS_INC) \
3188*5113495bSYour Name		$(CLD_WMI_INC) \
3189*5113495bSYour Name		$(QAL_INC) \
3190*5113495bSYour Name		$(QDF_INC) \
3191*5113495bSYour Name		$(WBUFF_INC) \
3192*5113495bSYour Name		$(CDS_INC) \
3193*5113495bSYour Name		$(CFG_INC) \
3194*5113495bSYour Name		$(DFS_INC) \
3195*5113495bSYour Name		$(TARGET_IF_INC) \
3196*5113495bSYour Name		$(CLD_TARGET_IF_INC) \
3197*5113495bSYour Name		$(OS_IF_INC) \
3198*5113495bSYour Name		$(GLOBAL_LMAC_IF_INC) \
3199*5113495bSYour Name		$(FTM_INC)
3200*5113495bSYour Name
3201*5113495bSYour NameINCS +=		$(WMA_INC) \
3202*5113495bSYour Name		$(UAPI_INC) \
3203*5113495bSYour Name		$(COMMON_INC) \
3204*5113495bSYour Name		$(WMI_INC) \
3205*5113495bSYour Name		$(FWLOG_INC) \
3206*5113495bSYour Name		$(TXRX_INC) \
3207*5113495bSYour Name		$(OL_INC) \
3208*5113495bSYour Name		$(CDP_INC) \
3209*5113495bSYour Name		$(PKTLOG_INC) \
3210*5113495bSYour Name		$(HTT_INC) \
3211*5113495bSYour Name		$(INIT_DEINIT_INC) \
3212*5113495bSYour Name		$(SCHEDULER_INC) \
3213*5113495bSYour Name		$(REGULATORY_INC) \
3214*5113495bSYour Name		$(HTC_INC) \
3215*5113495bSYour Name		$(WCFG_INC)
3216*5113495bSYour Name
3217*5113495bSYour NameINCS +=		$(HIF_INC) \
3218*5113495bSYour Name		$(BMI_INC) \
3219*5113495bSYour Name		$(CMN_SYS_INC)
3220*5113495bSYour Name
3221*5113495bSYour Nameifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM) $(CONFIG_RHINE)))
3222*5113495bSYour NameINCS += 	$(HAL_INC) \
3223*5113495bSYour Name		$(DP_INC)
3224*5113495bSYour Nameendif
3225*5113495bSYour Name
3226*5113495bSYour Name################ WIFI POS ################
3227*5113495bSYour NameINCS +=		$(WIFI_POS_CLD_INC)
3228*5113495bSYour NameINCS +=		$(WIFI_POS_API_INC)
3229*5113495bSYour NameINCS +=		$(WIFI_POS_TGT_INC)
3230*5113495bSYour NameINCS +=		$(WIFI_POS_OS_IF_INC)
3231*5113495bSYour Name################ CP STATS ################
3232*5113495bSYour NameINCS +=		$(CP_STATS_OS_IF_INC)
3233*5113495bSYour NameINCS +=		$(CP_STATS_TGT_INC)
3234*5113495bSYour NameINCS +=		$(CP_STATS_DISPATCHER_INC)
3235*5113495bSYour NameINCS +=		$(CP_MC_STATS_COMPONENT_INC)
3236*5113495bSYour NameINCS +=		$(CP_STATS_CFG80211_OS_IF_INC)
3237*5113495bSYour Name################ TWT CONVERGED ################
3238*5113495bSYour NameINCS +=		$(TWT_CONV_INCS)
3239*5113495bSYour Name################ Dynamic ACS ####################
3240*5113495bSYour NameINCS +=		$(DCS_TGT_IF_INC)
3241*5113495bSYour NameINCS +=		$(DCS_DISP_INC)
3242*5113495bSYour Name################ AFC #################
3243*5113495bSYour NameINCS +=		$(AFC_CMN_OSIF_INC)
3244*5113495bSYour NameINCS +=		$(AFC_CMN_DISP_INC)
3245*5113495bSYour NameINCS +=		$(AFC_CMN_CORE_INC)
3246*5113495bSYour Name################ INTEROP ISSUES AP ################
3247*5113495bSYour NameINCS +=		$(INTEROP_ISSUES_AP_OS_IF_INC)
3248*5113495bSYour NameINCS +=		$(INTEROP_ISSUES_AP_TGT_INC)
3249*5113495bSYour NameINCS +=		$(INTEROP_ISSUES_AP_DISPATCHER_INC)
3250*5113495bSYour NameINCS +=		$(INTEROP_ISSUES_AP_CORE_INC)
3251*5113495bSYour Name################ NAN POS ################
3252*5113495bSYour NameINCS +=		$(NAN_CORE_INC)
3253*5113495bSYour NameINCS +=		$(NAN_UCFG_INC)
3254*5113495bSYour NameINCS +=		$(NAN_TGT_INC)
3255*5113495bSYour NameINCS +=		$(NAN_OS_IF_INC)
3256*5113495bSYour Name###########DP_COMPONENT ####################
3257*5113495bSYour NameINCS +=		$(DP_COMP_INC)
3258*5113495bSYour Name###########QMI_COMPONENT ####################
3259*5113495bSYour NameINCS +=		$(QMI_COMP_INC)
3260*5113495bSYour Name################ SON ################
3261*5113495bSYour NameINCS +=		$(SON_CORE_INC)
3262*5113495bSYour NameINCS +=		$(SON_UCFG_INC)
3263*5113495bSYour NameINCS +=		$(SON_TGT_INC)
3264*5113495bSYour NameINCS +=		$(SON_OS_IF_INC)
3265*5113495bSYour Name################ SPATIAL_REUSE ################
3266*5113495bSYour NameINCS +=		$(SR_UCFG_INC)
3267*5113495bSYour NameINCS +=		$(SR_TGT_INC)
3268*5113495bSYour Name##########################################
3269*5113495bSYour Name
3270*5113495bSYour NameINCS +=		$(UMAC_OBJMGR_INC)
3271*5113495bSYour NameINCS +=		$(UMAC_MGMT_TXRX_INC)
3272*5113495bSYour NameINCS +=		$(PMO_INC)
3273*5113495bSYour NameINCS +=		$(P2P_INC)
3274*5113495bSYour NameINCS +=		$(POLICY_MGR_INC)
3275*5113495bSYour NameINCS +=		$(TARGET_INC)
3276*5113495bSYour NameINCS +=		$(TDLS_INC)
3277*5113495bSYour NameINCS +=		$(UMAC_SER_INC)
3278*5113495bSYour NameINCS +=		$(NLINK_INC) \
3279*5113495bSYour Name		$(PTT_INC) \
3280*5113495bSYour Name		$(WLAN_LOGGING_INC)
3281*5113495bSYour Name
3282*5113495bSYour NameINCS +=		$(PLD_INC)
3283*5113495bSYour NameINCS +=		$(OCB_INC)
3284*5113495bSYour Name
3285*5113495bSYour NameINCS +=		$(IPA_INC)
3286*5113495bSYour NameINCS +=		$(UMAC_SM_INC)
3287*5113495bSYour NameINCS +=		$(UMAC_MLME_INC)
3288*5113495bSYour NameINCS +=		$(MLME_INC)
3289*5113495bSYour NameINCS +=		$(FWOL_INC)
3290*5113495bSYour NameINCS +=		$(DLM_INC)
3291*5113495bSYour NameINCS +=		$(CONN_LOGGING_INC)
3292*5113495bSYour Name
3293*5113495bSYour Nameifeq ($(CONFIG_REMOVE_PKT_LOG), n)
3294*5113495bSYour NameINCS +=		$(PKTLOG_INC)
3295*5113495bSYour Nameendif
3296*5113495bSYour Name
3297*5113495bSYour NameINCS +=		$(HOST_DIAG_LOG_INC)
3298*5113495bSYour Name
3299*5113495bSYour NameINCS +=		$(DISA_INC)
3300*5113495bSYour NameINCS +=		$(ACTION_OUI_INC)
3301*5113495bSYour NameINCS +=		$(PKT_CAPTURE_INC)
3302*5113495bSYour NameINCS +=		$(FTM_TIME_SYNC_INC)
3303*5113495bSYour NameINCS +=		$(WLAN_PRE_CAC_INC)
3304*5113495bSYour Name
3305*5113495bSYour NameINCS +=		$(UMAC_DISP_INC)
3306*5113495bSYour NameINCS +=		$(UMAC_SCAN_INC)
3307*5113495bSYour NameINCS +=		$(UMAC_TARGET_SCAN_INC)
3308*5113495bSYour NameINCS +=		$(UMAC_GREEN_AP_INC)
3309*5113495bSYour NameINCS +=		$(UMAC_TARGET_GREEN_AP_INC)
3310*5113495bSYour NameINCS +=		$(UMAC_COMMON_INC)
3311*5113495bSYour NameINCS +=		$(UMAC_SPECTRAL_INC)
3312*5113495bSYour NameINCS +=		$(WLAN_CFR_INC)
3313*5113495bSYour NameINCS +=		$(UMAC_TARGET_SPECTRAL_INC)
3314*5113495bSYour NameINCS +=		$(UMAC_GPIO_INC)
3315*5113495bSYour NameINCS +=		$(UMAC_TARGET_GPIO_INC)
3316*5113495bSYour NameINCS +=		$(UMAC_DBR_INC)
3317*5113495bSYour NameINCS +=		$(UMAC_CRYPTO_INC)
3318*5113495bSYour NameINCS +=		$(UMAC_INTERFACE_MGR_INC)
3319*5113495bSYour NameINCS +=		$(UMAC_MLO_MGR_INC)
3320*5113495bSYour NameINCS +=		$(UMAC_MLO_MGR_CLD_INC)
3321*5113495bSYour NameINCS +=		$(COEX_OS_IF_INC)
3322*5113495bSYour NameINCS +=		$(COEX_TGT_INC)
3323*5113495bSYour NameINCS +=		$(COEX_DISPATCHER_INC)
3324*5113495bSYour NameINCS +=		$(COEX_CORE_INC)
3325*5113495bSYour NameINCS +=		$(COEX_STRUCT_INC)
3326*5113495bSYour Name################ COAP ################
3327*5113495bSYour NameINCS +=		$(COAP_OS_IF_INC)
3328*5113495bSYour NameINCS +=		$(COAP_TGT_INC)
3329*5113495bSYour NameINCS +=		$(COAP_DISPATCHER_INC)
3330*5113495bSYour NameINCS +=		$(COAP_CORE_INC)
3331*5113495bSYour NameINCS +=		$(COAP_WMI_INC)
3332*5113495bSYour Name
3333*5113495bSYour Nameccflags-y += $(INCS)
3334*5113495bSYour Name
3335*5113495bSYour Nameccflags-y += -include $(WLAN_ROOT)/configs/default_config.h
3336*5113495bSYour Name
3337*5113495bSYour Name# CFG80211_MLO_KEY_OPERATION_SUPPORT
3338*5113495bSYour Name# Used to indicate the Linux Kernel contains support for ML key operation
3339*5113495bSYour Name# support.
3340*5113495bSYour Name#
3341*5113495bSYour Name# This feature was backported to Android Common Kernel 5.15 via:
3342*5113495bSYour Name# https://android-review.googlesource.com/c/kernel/common/+/2173923
3343*5113495bSYour Namefound = $(shell if grep -qF "nl80211_validate_key_link_id" $(srctree)/net/wireless/nl80211.c; then echo "yes" ;else echo "no" ;fi;)
3344*5113495bSYour Nameifeq ($(findstring yes, $(found)), yes)
3345*5113495bSYour Nameccflags-y += -DCFG80211_MLO_KEY_OPERATION_SUPPORT
3346*5113495bSYour Nameendif
3347*5113495bSYour Name
3348*5113495bSYour Namefound = $(shell if grep -qF "struct link_station_parameters" $(srctree)/include/net/cfg80211.h; then echo "yes"; else echo "no"; fi;)
3349*5113495bSYour Nameifeq ($(findstring yes, $(found)), yes)
3350*5113495bSYour Nameccflags-y += -DCFG80211_LINK_STA_PARAMS_PRESENT
3351*5113495bSYour Nameendif
3352*5113495bSYour Name
3353*5113495bSYour Namefound = $(shell if grep -qF "NL80211_EXT_FEATURE_PUNCT" $(srctree)/include/uapi/linux/nl80211.h; then echo "yes" ;else echo "no" ;fi;)
3354*5113495bSYour Nameifeq ($(findstring yes, $(found)), yes)
3355*5113495bSYour Nameccflags-y += -DNL80211_EXT_FEATURE_PUNCT_SUPPORT
3356*5113495bSYour Nameendif
3357*5113495bSYour Name
3358*5113495bSYour Namefound = $(shell if grep -qF "unsigned int link_id, u16 punct_bitmap" $(srctree)/include/net/cfg80211.h; then echo "yes" ;else echo "no" ;fi;)
3359*5113495bSYour Nameifeq ($(findstring yes, $(found)), yes)
3360*5113495bSYour Nameccflags-y += -DCFG80211_RU_PUNCT_NOTIFY
3361*5113495bSYour Nameendif
3362*5113495bSYour Name
3363*5113495bSYour Namefound = $(shell if grep -qF "NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA" $(srctree)/include/uapi/linux/nl80211.h; then echo "yes"; else echo "no"; fi;)
3364*5113495bSYour Nameifeq ($(findstring yes, $(found)), yes)
3365*5113495bSYour Nameccflags-y += -DCFG80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA
3366*5113495bSYour Nameendif
3367*5113495bSYour Name
3368*5113495bSYour Name# CFG80211_EXTERNAL_AUTH_MLO_SUPPORT
3369*5113495bSYour Name# Used to indicate Linux kernel contains support for ML external auth support.
3370*5113495bSYour Name#
3371*5113495bSYour Name# This feature was backported to Android Common Kernel 5.15 via:
3372*5113495bSYour Name# https://android-review.googlesource.com/c/kernel/common/+/2450264
3373*5113495bSYour Namefound = $(shell if grep -qF "MLD address of the peer. Used by the authentication request event" $(srctree)/include/net/cfg80211.h; then echo "yes" ;else echo "no" ;fi;)
3374*5113495bSYour Nameifeq ($(findstring yes, $(found)), yes)
3375*5113495bSYour Nameccflags-y += -DCFG80211_EXTERNAL_AUTH_MLO_SUPPORT
3376*5113495bSYour Nameendif
3377*5113495bSYour Name
3378*5113495bSYour Namefound = $(shell if grep -qF "NL80211_EXT_FEATURE_SECURE_NAN" $(srctree)/include/uapi/linux/nl80211.h; then echo "yes"; else echo "no"; fi;)
3379*5113495bSYour Nameifeq ($(findstring yes, $(found)), yes)
3380*5113495bSYour Nameccflags-y += -DCFG80211_EXT_FEATURE_SECURE_NAN
3381*5113495bSYour Nameendif
3382*5113495bSYour Name
3383*5113495bSYour Namefound = $(shell if grep -qF "bool mlo_params_valid;" $(srctree)/include/net/cfg80211.h; then echo "yes" ;else echo "no" ;fi;)
3384*5113495bSYour Nameifeq ($(findstring yes, $(found)), yes)
3385*5113495bSYour Nameccflags-y += -DCFG80211_MLD_AP_STA_CONNECT_UPSTREAM_SUPPORT
3386*5113495bSYour Nameendif
3387*5113495bSYour Name
3388*5113495bSYour Nameifeq (qca_cld3, $(WLAN_WEAR_CHIPSET))
3389*5113495bSYour Name	ccflags-y += -DWLAN_WEAR_CHIPSET
3390*5113495bSYour Nameendif
3391*5113495bSYour Name
3392*5113495bSYour Nameccflags-$(CONFIG_ONE_MSI_VECTOR) += -DWLAN_ONE_MSI_VECTOR
3393*5113495bSYour Name
3394*5113495bSYour Nameccflags-$(CONFIG_DSC_DEBUG) += -DWLAN_DSC_DEBUG
3395*5113495bSYour Nameccflags-$(CONFIG_DSC_TEST) += -DWLAN_DSC_TEST
3396*5113495bSYour Name
3397*5113495bSYour Nameifeq ($(CONFIG_LITHIUM), y)
3398*5113495bSYour Nameccflags-y += -DCONFIG_LITHIUM
3399*5113495bSYour Nameendif
3400*5113495bSYour Name
3401*5113495bSYour Nameifeq ($(CONFIG_BERYLLIUM), y)
3402*5113495bSYour Nameccflags-y += -DCONFIG_BERYLLIUM
3403*5113495bSYour Nameccflags-y += -DDP_OFFLOAD_FRAME_WITH_SW_EXCEPTION
3404*5113495bSYour Nameendif
3405*5113495bSYour Name
3406*5113495bSYour Nameifeq ($(CONFIG_RHINE), y)
3407*5113495bSYour Nameccflags-y += -DCONFIG_RHINE
3408*5113495bSYour Nameccflags-y += -DDP_OFFLOAD_FRAME_WITH_SW_EXCEPTION
3409*5113495bSYour Nameendif
3410*5113495bSYour Name
3411*5113495bSYour Nameccflags-$(CONFIG_TALLOC_DEBUG) += -DWLAN_TALLOC_DEBUG
3412*5113495bSYour Nameccflags-$(CONFIG_QDF_TEST) += -DWLAN_DELAYED_WORK_TEST
3413*5113495bSYour Nameccflags-$(CONFIG_QDF_TEST) += -DWLAN_HASHTABLE_TEST
3414*5113495bSYour Nameccflags-$(CONFIG_QDF_TEST) += -DWLAN_PERIODIC_WORK_TEST
3415*5113495bSYour Nameccflags-$(CONFIG_QDF_TEST) += -DWLAN_PTR_HASH_TEST
3416*5113495bSYour Nameccflags-$(CONFIG_QDF_TEST) += -DWLAN_SLIST_TEST
3417*5113495bSYour Nameccflags-$(CONFIG_QDF_TEST) += -DWLAN_TALLOC_TEST
3418*5113495bSYour Nameccflags-$(CONFIG_QDF_TEST) += -DWLAN_TRACKER_TEST
3419*5113495bSYour Nameccflags-$(CONFIG_QDF_TEST) += -DWLAN_TYPES_TEST
3420*5113495bSYour Nameccflags-$(CONFIG_WLAN_HANG_EVENT) += -DWLAN_HANG_EVENT
3421*5113495bSYour Name
3422*5113495bSYour Name#Flag to enable pre_cac
3423*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_PRE_CAC)  += -DPRE_CAC_SUPPORT
3424*5113495bSYour Name
3425*5113495bSYour Nameccflags-$(CONFIG_WIFI_POS_PASN) += -DWLAN_FEATURE_RTT_11AZ_SUPPORT
3426*5113495bSYour Name
3427*5113495bSYour Nameifeq ($(CONFIG_DIRECT_BUF_RX_ENABLE), y)
3428*5113495bSYour Nameifeq ($(CONFIG_DBR_HOLD_LARGE_MEM), y)
3429*5113495bSYour Nameccflags-y += -DDBR_HOLD_LARGE_MEM
3430*5113495bSYour Nameendif
3431*5113495bSYour Nameendif
3432*5113495bSYour Name
3433*5113495bSYour Nameccflags-$(CONFIG_QCA_DMA_PADDR_CHECK) += -DQCA_DMA_PADDR_CHECK
3434*5113495bSYour Nameccflags-$(CONFIG_PADDR_CHECK_ON_3RD_PARTY_PLATFORM) += -DQCA_PADDR_CHECK_ON_3RD_PARTY_PLATFORM
3435*5113495bSYour Nameccflags-$(CONFIG_DP_TRAFFIC_END_INDICATION) += -DDP_TRAFFIC_END_INDICATION
3436*5113495bSYour Nameccflags-$(CONFIG_THERMAL_STATS_SUPPORT) += -DTHERMAL_STATS_SUPPORT
3437*5113495bSYour Nameccflags-$(CONFIG_PTT_SOCK_SVC_ENABLE) += -DPTT_SOCK_SVC_ENABLE
3438*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DFEATURE_WLAN_WAPI
3439*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DATH_SUPPORT_WAPI
3440*5113495bSYour Nameccflags-$(CONFIG_SOFTAP_CHANNEL_RANGE) += -DSOFTAP_CHANNEL_RANGE
3441*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_SCAN_PNO) += -DFEATURE_WLAN_SCAN_PNO
3442*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_PACKET_FILTERING) += -DWLAN_FEATURE_PACKET_FILTERING
3443*5113495bSYour Nameccflags-$(CONFIG_DHCP_SERVER_OFFLOAD) += -DDHCP_SERVER_OFFLOAD
3444*5113495bSYour Nameccflags-$(CONFIG_WLAN_NS_OFFLOAD) += -DWLAN_NS_OFFLOAD
3445*5113495bSYour Nameccflags-$(CONFIG_QCA_TARGET_IF_MLME) += -DQCA_TARGET_IF_MLME
3446*5113495bSYour Nameccflags-$(CONFIG_WLAN_DYNAMIC_ARP_NS_OFFLOAD) += -DFEATURE_WLAN_DYNAMIC_ARP_NS_OFFLOAD
3447*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_ICMP_OFFLOAD) += -DWLAN_FEATURE_ICMP_OFFLOAD
3448*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_RA_FILTERING) += -DFEATURE_WLAN_RA_FILTERING
3449*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_LPHB) += -DFEATURE_WLAN_LPHB
3450*5113495bSYour Nameccflags-$(CONFIG_QCA_SUPPORT_TX_THROTTLE) += -DQCA_SUPPORT_TX_THROTTLE
3451*5113495bSYour Nameccflags-$(CONFIG_WMI_INTERFACE_EVENT_LOGGING) += -DWMI_INTERFACE_EVENT_LOGGING
3452*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS) += -DWLAN_FEATURE_LINK_LAYER_STATS
3453*5113495bSYour Nameccflags-$(CONFIG_FEATURE_CLUB_LL_STATS_AND_GET_STATION) += -DFEATURE_CLUB_LL_STATS_AND_GET_STATION
3454*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_MIB_STATS) += -DWLAN_FEATURE_MIB_STATS
3455*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_EXTSCAN) += -DFEATURE_WLAN_EXTSCAN
3456*5113495bSYour Nameccflags-$(CONFIG_160MHZ_SUPPORT) += -DCONFIG_160MHZ_SUPPORT
3457*5113495bSYour Nameccflags-$(CONFIG_REG_CLIENT) += -DCONFIG_REG_CLIENT
3458*5113495bSYour Nameccflags-$(CONFIG_WLAN_PMO_ENABLE) += -DWLAN_PMO_ENABLE
3459*5113495bSYour Nameccflags-$(CONFIG_CONVERGED_P2P_ENABLE) += -DCONVERGED_P2P_ENABLE
3460*5113495bSYour Nameccflags-$(CONFIG_WLAN_POLICY_MGR_ENABLE) += -DWLAN_POLICY_MGR_ENABLE
3461*5113495bSYour Nameccflags-$(CONFIG_FEATURE_DENYLIST_MGR) += -DFEATURE_DENYLIST_MGR
3462*5113495bSYour Nameccflags-$(CONFIG_WAPI_BIG_ENDIAN) += -DFEATURE_WAPI_BIG_ENDIAN
3463*5113495bSYour Nameccflags-$(CONFIG_SUPPORT_11AX) += -DSUPPORT_11AX
3464*5113495bSYour Nameccflags-$(CONFIG_HDD_INIT_WITH_RTNL_LOCK) += -DCONFIG_HDD_INIT_WITH_RTNL_LOCK
3465*5113495bSYour Nameccflags-$(CONFIG_WLAN_CONV_SPECTRAL_ENABLE) += -DWLAN_CONV_SPECTRAL_ENABLE
3466*5113495bSYour Nameccflags-$(CONFIG_WLAN_CFR_ENABLE) += -DWLAN_CFR_ENABLE
3467*5113495bSYour Nameccflags-$(CONFIG_WLAN_ENH_CFR_ENABLE) += -DWLAN_ENH_CFR_ENABLE
3468*5113495bSYour Nameccflags-$(CONFIG_WLAN_ENH_CFR_ENABLE) += -DWLAN_CFR_PM
3469*5113495bSYour Nameccflags-$(CONFIG_WLAN_CFR_ADRASTEA) += -DWLAN_CFR_ADRASTEA
3470*5113495bSYour Nameccflags-$(CONFIG_WLAN_CFR_DBR) += -DWLAN_CFR_DBR
3471*5113495bSYour Nameccflags-$(CONFIG_WLAN_CFR_ENABLE) += -DCFR_USE_FIXED_FOLDER
3472*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_MEDIUM_ASSESS) += -DWLAN_FEATURE_MEDIUM_ASSESS
3473*5113495bSYour Nameccflags-$(CONFIG_FEATURE_RADAR_HISTORY) += -DFEATURE_RADAR_HISTORY
3474*5113495bSYour Nameccflags-$(CONFIG_DIRECT_BUF_RX_ENABLE) += -DDIRECT_BUF_RX_ENABLE
3475*5113495bSYour Nameccflags-$(CONFIG_WMI_DBR_SUPPORT) += -DWMI_DBR_SUPPORT
3476*5113495bSYour Nameifneq ($(CONFIG_CNSS_QCA6750), y)
3477*5113495bSYour Nameccflags-$(CONFIG_DIRECT_BUF_RX_ENABLE) += -DDBR_MULTI_SRNG_ENABLE
3478*5113495bSYour Nameendif
3479*5113495bSYour Nameifneq ($(CONFIG_CNSS_WCN6450), y)
3480*5113495bSYour Nameccflags-$(CONFIG_DIRECT_BUF_RX_ENABLE) += -DDBR_MULTI_SRNG_ENABLE
3481*5113495bSYour Nameendif
3482*5113495bSYour Nameccflags-$(CONFIG_WMI_CMD_STRINGS) += -DWMI_CMD_STRINGS
3483*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_TWT) += -DWLAN_SUPPORT_TWT
3484*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_11BE_MLO), y)
3485*5113495bSYour Nameifeq ($(CONFIG_DP_USE_REDUCED_PEER_ID_FIELD_WIDTH), y)
3486*5113495bSYour Nameccflags-y += -DDP_USE_REDUCED_PEER_ID_FIELD_WIDTH
3487*5113495bSYour Nameendif
3488*5113495bSYour Nameendif
3489*5113495bSYour Nameccflags-$(CONFIG_DP_MULTIPASS_SUPPORT) += -DQCA_MULTIPASS_SUPPORT
3490*5113495bSYour Nameccflags-$(CONFIG_DP_MULTIPASS_SUPPORT) += -DWLAN_REPEATER_NOT_SUPPORTED
3491*5113495bSYour Nameccflags-$(CONFIG_DP_MULTIPASS_SUPPORT) += -DQCA_SUPPORT_PEER_ISOLATION
3492*5113495bSYour Nameccflags-$(CONFIG_WLAN_DP_PROFILE_SUPPORT) += -DWLAN_DP_PROFILE_SUPPORT
3493*5113495bSYour Name
3494*5113495bSYour Nameifdef CONFIG_WLAN_TWT_SAP_STA_COUNT
3495*5113495bSYour NameWLAN_TWT_SAP_STA_COUNT ?= 32
3496*5113495bSYour Nameccflags-y += -DWLAN_TWT_SAP_STA_COUNT=$(WLAN_TWT_SAP_STA_COUNT)
3497*5113495bSYour Nameendif
3498*5113495bSYour Name
3499*5113495bSYour Nameccflags-$(CONFIG_ENABLE_LOW_POWER_MODE) += -DCONFIG_ENABLE_LOW_POWER_MODE
3500*5113495bSYour Nameccflags-$(CONFIG_WLAN_TWT_SAP_PDEV_COUNT) += -DWLAN_TWT_AP_PDEV_COUNT_NUM_PHY
3501*5113495bSYour Nameccflags-$(CONFIG_WLAN_DISABLE_EXPORT_SYMBOL) += -DWLAN_DISABLE_EXPORT_SYMBOL
3502*5113495bSYour Nameccflags-$(CONFIG_WIFI_POS_CONVERGED) += -DWIFI_POS_CONVERGED
3503*5113495bSYour Nameccflags-$(CONFIG_WLAN_TWT_CONVERGED) += -DWLAN_TWT_CONV_SUPPORTED
3504*5113495bSYour Nameccflags-$(CONFIG_WIFI_POS_LEGACY) += -DFEATURE_OEM_DATA_SUPPORT
3505*5113495bSYour Nameccflags-$(CONFIG_FEATURE_HTC_CREDIT_HISTORY) += -DFEATURE_HTC_CREDIT_HISTORY
3506*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_P2P_DEBUG) += -DWLAN_FEATURE_P2P_DEBUG
3507*5113495bSYour Nameccflags-$(CONFIG_WLAN_WEXT_SUPPORT_ENABLE) += -DWLAN_WEXT_SUPPORT_ENABLE
3508*5113495bSYour Nameccflags-$(CONFIG_WLAN_LOGGING_SOCK_SVC) += -DWLAN_LOGGING_SOCK_SVC_ENABLE
3509*5113495bSYour Nameccflags-$(CONFIG_WLAN_LOGGING_BUFFERS_DYNAMICALLY) += -DWLAN_LOGGING_BUFFERS_DYNAMICALLY
3510*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_FILS) += -DWLAN_FEATURE_FILS_SK
3511*5113495bSYour Nameccflags-$(CONFIG_CP_STATS) += -DWLAN_SUPPORT_INFRA_CTRL_PATH_STATS
3512*5113495bSYour Nameccflags-$(CONFIG_CP_STATS) += -DQCA_SUPPORT_CP_STATS
3513*5113495bSYour Nameccflags-$(CONFIG_CP_STATS) += -DQCA_SUPPORT_MC_CP_STATS
3514*5113495bSYour Nameccflags-$(CONFIG_CP_STATS) += -DWLAN_SUPPORT_LEGACY_CP_STATS_HANDLERS
3515*5113495bSYour Nameccflags-$(CONFIG_DCS) += -DDCS_INTERFERENCE_DETECTION
3516*5113495bSYour Nameccflags-$(CONFIG_FEATURE_INTEROP_ISSUES_AP) += -DWLAN_FEATURE_INTEROP_ISSUES_AP
3517*5113495bSYour Nameccflags-$(CONFIG_FEATURE_MEMDUMP_ENABLE) += -DWLAN_FEATURE_MEMDUMP_ENABLE
3518*5113495bSYour Nameccflags-$(CONFIG_FEATURE_FW_LOG_PARSING) += -DFEATURE_FW_LOG_PARSING
3519*5113495bSYour Nameccflags-$(CONFIG_FEATURE_OEM_DATA) += -DFEATURE_OEM_DATA
3520*5113495bSYour Nameccflags-$(CONFIG_FEATURE_MOTION_DETECTION) += -DWLAN_FEATURE_MOTION_DETECTION
3521*5113495bSYour Nameccflags-$(CONFIG_WLAN_FW_OFFLOAD) += -DWLAN_FW_OFFLOAD
3522*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_ELNA) += -DWLAN_FEATURE_ELNA
3523*5113495bSYour Nameccflags-$(CONFIG_FEATURE_COEX) += -DFEATURE_COEX
3524*5113495bSYour Nameccflags-$(CONFIG_HOST_WAKEUP_OVER_QMI) += -DHOST_WAKEUP_OVER_QMI
3525*5113495bSYour Nameccflags-$(CONFIG_DISABLE_STATUS_RING_TIMER_WAR) += -DWLAN_DISABLE_STATUS_RING_TIMER_WAR
3526*5113495bSYour Nameccflags-$(CONFIG_CE_DISABLE_SRNG_TIMER_IRQ) += -DWLAN_WAR_CE_DISABLE_SRNG_TIMER_IRQ
3527*5113495bSYour Name
3528*5113495bSYour Nameccflags-$(CONFIG_PLD_IPCI_ICNSS_FLAG) += -DCONFIG_PLD_IPCI_ICNSS
3529*5113495bSYour Nameccflags-$(CONFIG_PLD_SDIO_CNSS_FLAG) += -DCONFIG_PLD_SDIO_CNSS
3530*5113495bSYour Nameccflags-$(CONFIG_WLAN_RESIDENT_DRIVER) += -DFEATURE_WLAN_RESIDENT_DRIVER
3531*5113495bSYour Nameccflags-$(CONFIG_FEATURE_GPIO_CFG) += -DWLAN_FEATURE_GPIO_CFG
3532*5113495bSYour Nameccflags-$(CONFIG_FEATURE_BUS_BANDWIDTH_MGR) += -DFEATURE_BUS_BANDWIDTH_MGR
3533*5113495bSYour Nameccflags-$(CONFIG_DP_BE_WAR) += -DDP_BE_WAR
3534*5113495bSYour Name
3535*5113495bSYour Nameifeq ($(CONFIG_IPCIE_FW_SIM), y)
3536*5113495bSYour Nameccflags-y += -DCONFIG_PLD_IPCIE_FW_SIM
3537*5113495bSYour Nameendif
3538*5113495bSYour Nameifeq ($(CONFIG_PLD_PCIE_CNSS_FLAG), y)
3539*5113495bSYour Nameifeq ($(CONFIG_PCIE_FW_SIM), y)
3540*5113495bSYour Nameccflags-y += -DCONFIG_PLD_PCIE_FW_SIM
3541*5113495bSYour Nameelse
3542*5113495bSYour Nameccflags-y += -DCONFIG_PLD_PCIE_CNSS
3543*5113495bSYour Nameendif
3544*5113495bSYour Nameendif
3545*5113495bSYour Name
3546*5113495bSYour Nameccflags-$(CONFIG_PLD_PCIE_INIT_FLAG) += -DCONFIG_PLD_PCIE_INIT
3547*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_DP_RX_THREADS) += -DFEATURE_WLAN_DP_RX_THREADS
3548*5113495bSYour Nameccflags-$(CONFIG_WLAN_DP_LOCAL_PKT_CAPTURE) += -DWLAN_FEATURE_LOCAL_PKT_CAPTURE
3549*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT) += -DWLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT
3550*5113495bSYour Nameccflags-$(CONFIG_FEATURE_HIF_LATENCY_PROFILE_ENABLE) += -DHIF_LATENCY_PROFILE_ENABLE
3551*5113495bSYour Nameccflags-$(CONFIG_FEATURE_HAL_DELAYED_REG_WRITE) += -DFEATURE_HAL_DELAYED_REG_WRITE
3552*5113495bSYour Nameccflags-$(CONFIG_FEATURE_HAL_RECORD_SUSPEND_WRITE) += -DFEATURE_HAL_RECORD_SUSPEND_WRITE
3553*5113495bSYour Nameccflags-$(CONFIG_QCA_OL_DP_SRNG_LOCK_LESS_ACCESS) += -DQCA_OL_DP_SRNG_LOCK_LESS_ACCESS
3554*5113495bSYour Nameccflags-$(CONFIG_SHADOW_WRITE_DELAY) += -DSHADOW_WRITE_DELAY
3555*5113495bSYour Name
3556*5113495bSYour Nameccflags-$(CONFIG_PLD_USB_CNSS) += -DCONFIG_PLD_USB_CNSS
3557*5113495bSYour Nameccflags-$(CONFIG_PLD_SDIO_CNSS2) += -DCONFIG_PLD_SDIO_CNSS2
3558*5113495bSYour Nameccflags-$(CONFIG_WLAN_RECORD_RX_PADDR) += -DHIF_RECORD_RX_PADDR
3559*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_TIME_SYNC_FTM) += -DFEATURE_WLAN_TIME_SYNC_FTM
3560*5113495bSYour Name
3561*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_LRO_CTX_IN_CB) += -DWLAN_FEATURE_LRO_CTX_IN_CB
3562*5113495bSYour Name
3563*5113495bSYour Name#For both legacy and lithium chip's monitor mode config
3564*5113495bSYour Nameifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y)
3565*5113495bSYour Nameccflags-y += -DFEATURE_MONITOR_MODE_SUPPORT
3566*5113495bSYour Nameccflags-$(CONFIG_DP_CON_MON_MSI_ENABLED) += -DDP_CON_MON_MSI_ENABLED
3567*5113495bSYour Nameccflags-$(CONFIG_WLAN_RX_MON_PARSE_CMN_USER_INFO) += -DWLAN_RX_MON_PARSE_CMN_USER_INFO
3568*5113495bSYour Nameccflags-$(CONFIG_DP_CON_MON_MSI_SKIP_SET) += -DDP_CON_MON_MSI_SKIP_SET
3569*5113495bSYour Nameccflags-$(CONFIG_QCA_WIFI_MONITOR_MODE_NO_MSDU_START_TLV_SUPPORT) += -DQCA_WIFI_MONITOR_MODE_NO_MSDU_START_TLV_SUPPORT
3570*5113495bSYour Nameelse
3571*5113495bSYour Nameccflags-y += -DDISABLE_MON_CONFIG
3572*5113495bSYour Nameendif
3573*5113495bSYour Name
3574*5113495bSYour Nameifeq ($(CONFIG_SMP), y)
3575*5113495bSYour Nameifneq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM) $(CONFIG_RHINE)))
3576*5113495bSYour Nameccflags-y += -DWLAN_DP_LEGACY_OL_RX_THREAD
3577*5113495bSYour Nameendif
3578*5113495bSYour Nameendif
3579*5113495bSYour Name
3580*5113495bSYour Name#Enable NL80211 test mode
3581*5113495bSYour Nameccflags-$(CONFIG_NL80211_TESTMODE) += -DWLAN_NL80211_TESTMODE
3582*5113495bSYour Name
3583*5113495bSYour Name# Flag to enable bus auto suspend
3584*5113495bSYour Nameifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
3585*5113495bSYour Nameccflags-y += -DFEATURE_RUNTIME_PM
3586*5113495bSYour Nameendif
3587*5113495bSYour Name
3588*5113495bSYour Nameifeq (y,$(findstring y, $(CONFIG_ICNSS) $(CONFIG_ICNSS_MODULE)))
3589*5113495bSYour Nameifeq ($(CONFIG_SNOC_FW_SIM), y)
3590*5113495bSYour Nameccflags-y += -DCONFIG_PLD_SNOC_FW_SIM
3591*5113495bSYour Nameelse
3592*5113495bSYour Nameccflags-y += -DCONFIG_PLD_SNOC_ICNSS
3593*5113495bSYour Nameendif
3594*5113495bSYour Nameendif
3595*5113495bSYour Name
3596*5113495bSYour Nameccflags-$(CONFIG_PLD_SNOC_ICNSS_FLAG) += -DCONFIG_PLD_SNOC_ICNSS
3597*5113495bSYour Nameccflags-$(CONFIG_ICNSS2_HELIUM) += -DCONFIG_PLD_SNOC_ICNSS2
3598*5113495bSYour Name
3599*5113495bSYour Nameccflags-$(CONFIG_WIFI_3_0_ADRASTEA) += -DQCA_WIFI_3_0_ADRASTEA
3600*5113495bSYour Nameccflags-$(CONFIG_WIFI_3_0_ADRASTEA) += -DQCA_WIFI_3_0
3601*5113495bSYour Nameccflags-$(CONFIG_ADRASTEA_SHADOW_REGISTERS) += -DADRASTEA_SHADOW_REGISTERS
3602*5113495bSYour Nameccflags-$(CONFIG_ADRASTEA_RRI_ON_DDR) += -DADRASTEA_RRI_ON_DDR
3603*5113495bSYour Name
3604*5113495bSYour Nameifeq ($(CONFIG_QMI_SUPPORT), n)
3605*5113495bSYour Nameccflags-y += -DCONFIG_BYPASS_QMI
3606*5113495bSYour Nameendif
3607*5113495bSYour Name
3608*5113495bSYour Nameccflags-$(CONFIG_WLAN_FASTPATH) +=	-DWLAN_FEATURE_FASTPATH
3609*5113495bSYour Name
3610*5113495bSYour Nameccflags-$(CONFIG_FEATURE_PKTLOG) +=     -DFEATURE_PKTLOG
3611*5113495bSYour Name
3612*5113495bSYour Nameccflags-$(CONFIG_CONNECTIVITY_PKTLOG) += -DCONNECTIVITY_PKTLOG
3613*5113495bSYour Name
3614*5113495bSYour Nameifeq ($(CONFIG_WLAN_NAPI), y)
3615*5113495bSYour Nameccflags-y += -DFEATURE_NAPI
3616*5113495bSYour Nameccflags-y += -DHIF_IRQ_AFFINITY
3617*5113495bSYour Nameifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
3618*5113495bSYour Nameccflags-y += -DFEATURE_NAPI_DEBUG
3619*5113495bSYour Nameendif
3620*5113495bSYour Nameendif
3621*5113495bSYour Name
3622*5113495bSYour Nameifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
3623*5113495bSYour Nameccflags-y += -DMSM_PLATFORM
3624*5113495bSYour Nameendif
3625*5113495bSYour Name
3626*5113495bSYour Nameccflags-$(CONFIG_CNSS_OUT_OF_TREE) += -DCONFIG_CNSS_OUT_OF_TREE
3627*5113495bSYour Nameccflags-$(CONFIG_CNSS_OUT_OF_TREE) += -I$(WLAN_PLATFORM_INC)
3628*5113495bSYour Nameccflags-$(CONFIG_IPA_OUT_OF_TREE) += -I$(DATA_IPA_INC)
3629*5113495bSYour Nameccflags-$(CONFIG_IPA_OUT_OF_TREE) += -I$(DATA_IPA_UAPI_INC)
3630*5113495bSYour Name
3631*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH) += -DWLAN_FEATURE_DP_BUS_BANDWIDTH
3632*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_PERIODIC_STA_STATS) += -DWLAN_FEATURE_PERIODIC_STA_STATS
3633*5113495bSYour Name
3634*5113495bSYour Nameccflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_CONTROL_V2
3635*5113495bSYour Nameccflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
3636*5113495bSYour Nameccflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY) += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
3637*5113495bSYour Nameccflags-$(CONFIG_WLAN_PDEV_TX_FLOW_CONTROL) += -DQCA_LL_PDEV_TX_FLOW_CONTROL
3638*5113495bSYour Name
3639*5113495bSYour Nameifeq ($(CONFIG_WLAN_DEBUG_VERSION), y)
3640*5113495bSYour Nameccflags-y +=	-DWLAN_DEBUG
3641*5113495bSYour Nameifeq ($(CONFIG_TRACE_RECORD_FEATURE), y)
3642*5113495bSYour Nameccflags-y +=	-DTRACE_RECORD \
3643*5113495bSYour Name		-DLIM_TRACE_RECORD \
3644*5113495bSYour Name		-DSME_TRACE_RECORD \
3645*5113495bSYour Name		-DHDD_TRACE_RECORD
3646*5113495bSYour Nameendif
3647*5113495bSYour Nameendif
3648*5113495bSYour Nameccflags-$(CONFIG_UNIT_TEST) += -DWLAN_UNIT_TEST
3649*5113495bSYour Nameccflags-$(CONFIG_WLAN_DEBUG_CRASH_INJECT) += -DCONFIG_WLAN_DEBUG_CRASH_INJECT
3650*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_FW_MODE_CFG) += -DCONFIG_WLAN_SYSFS_FW_MODE_CFG
3651*5113495bSYour Nameccflags-$(CONFIG_WLAN_REASSOC) += -DCONFIG_WLAN_REASSOC
3652*5113495bSYour Nameccflags-$(CONFIG_WLAN_SCAN_DISABLE) += -DCONFIG_WLAN_SCAN_DISABLE
3653*5113495bSYour Nameccflags-$(CONFIG_WLAN_WOW_ITO) += -DCONFIG_WLAN_WOW_ITO
3654*5113495bSYour Nameccflags-$(CONFIG_WLAN_WOWL_ADD_PTRN) += -DCONFIG_WLAN_WOWL_ADD_PTRN
3655*5113495bSYour Nameccflags-$(CONFIG_WLAN_WOWL_DEL_PTRN) += -DCONFIG_WLAN_WOWL_DEL_PTRN
3656*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_TX_STBC) += -DCONFIG_WLAN_SYSFS_TX_STBC
3657*5113495bSYour Nameccflags-$(CONFIG_WLAN_GET_STATS) += -DCONFIG_WLAN_GET_STATS
3658*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_WLAN_DBG) += -DCONFIG_WLAN_SYSFS_WLAN_DBG
3659*5113495bSYour Nameccflags-$(CONFIG_WLAN_TXRX_FW_ST_RST) += -DCONFIG_WLAN_TXRX_FW_ST_RST
3660*5113495bSYour Nameccflags-$(CONFIG_WLAN_GTX_BW_MASK) += -DCONFIG_WLAN_GTX_BW_MASK
3661*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_SCAN_CFG) += -DCONFIG_WLAN_SYSFS_SCAN_CFG
3662*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_MONITOR_MODE_CHANNEL) += -DCONFIG_WLAN_SYSFS_MONITOR_MODE_CHANNEL
3663*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_RADAR) += -DCONFIG_WLAN_SYSFS_RADAR
3664*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_RTS_CTS) += -DWLAN_SYSFS_RTS_CTS
3665*5113495bSYour Nameccflags-$(CONFIG_WLAN_TXRX_FW_STATS) += -DCONFIG_WLAN_TXRX_FW_STATS
3666*5113495bSYour Nameccflags-$(CONFIG_WLAN_TXRX_STATS) += -DCONFIG_WLAN_TXRX_STATS
3667*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_DP_TRACE) += -DWLAN_SYSFS_DP_TRACE
3668*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_STATS) += -DWLAN_SYSFS_STATS
3669*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_TEMPERATURE) += -DCONFIG_WLAN_SYSFS_TEMPERATURE
3670*5113495bSYour Nameccflags-$(CONFIG_WLAN_THERMAL_CFG) += -DCONFIG_WLAN_THERMAL_CFG
3671*5113495bSYour Nameccflags-$(CONFIG_FEATURE_UNIT_TEST_SUSPEND) += -DWLAN_SUSPEND_RESUME_TEST
3672*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLM_STATS) += -DFEATURE_WLM_STATS
3673*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_MEM_STATS) += -DCONFIG_WLAN_SYSFS_MEM_STATS
3674*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_DCM) += -DWLAN_SYSFS_DCM
3675*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_HE_BSS_COLOR) += -DWLAN_SYSFS_HE_BSS_COLOR
3676*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_STA_INFO) += -DWLAN_SYSFS_STA_INFO
3677*5113495bSYour Nameccflags-$(CONFIG_WLAN_DL_MODES) += -DCONFIG_WLAN_DL_MODES
3678*5113495bSYour Nameccflags-$(CONFIG_WLAN_THERMAL_MULTI_CLIENT_SUPPORT) += -DFEATURE_WPSS_THERMAL_MITIGATION
3679*5113495bSYour Nameccflags-$(CONFIG_WLAN_DUMP_IN_PROGRESS) += -DCONFIG_WLAN_DUMP_IN_PROGRESS
3680*5113495bSYour Nameccflags-$(CONFIG_WLAN_BMISS) += -DCONFIG_WLAN_BMISS
3681*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_DP_STATS) += -DWLAN_SYSFS_DP_STATS
3682*5113495bSYour Nameccflags-$(CONFIG_WLAN_FREQ_LIST) += -DCONFIG_WLAN_FREQ_LIST
3683*5113495bSYour Name
3684*5113495bSYour Nameccflags-$(CONFIG_WIFI_MONITOR_SUPPORT) += -DWIFI_MONITOR_SUPPORT
3685*5113495bSYour Nameccflags-$(CONFIG_QCA_MONITOR_PKT_SUPPORT) += -DQCA_MONITOR_PKT_SUPPORT
3686*5113495bSYour Nameccflags-$(CONFIG_MONITOR_MODULARIZED_ENABLE) += -DMONITOR_MODULARIZED_ENABLE
3687*5113495bSYour Nameccflags-$(CONFIG_DP_PKT_ADD_TIMESTAMP) += -DCONFIG_DP_PKT_ADD_TIMESTAMP
3688*5113495bSYour Nameccflags-$(CONFIG_WLAN_PDEV_VDEV_SEND_MULTI_PARAM) += -DWLAN_PDEV_VDEV_SEND_MULTI_PARAM
3689*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_LOG_BUFFER) += -DFEATURE_SYSFS_LOG_BUFFER
3690*5113495bSYour Nameccflags-$(CONFIG_ENABLE_VALLOC_REPLACE_MALLOC) += -DENABLE_VALLOC_REPLACE_MALLOC
3691*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_DFSNOL) += -DCONFIG_WLAN_SYSFS_DFSNOL
3692*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_WDS_MODE) += -DFEATURE_SYSFS_WDS_MODE
3693*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_ROAM_TRIGGER_BITMAP) += -DFEATURE_SYSFS_ROAM_TRIGGER_BITMAP
3694*5113495bSYour Namecppflags-$(CONFIG_BCN_RATECODE_ENABLE) += -DWLAN_BCN_RATECODE_ENABLE
3695*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_RF_TEST_MODE) += -DFEATURE_SYSFS_RF_TEST_MODE
3696*5113495bSYour Name
3697*5113495bSYour Nameifeq ($(CONFIG_LEAK_DETECTION), y)
3698*5113495bSYour Nameccflags-y += \
3699*5113495bSYour Name	-DCONFIG_HALT_KMEMLEAK \
3700*5113495bSYour Name	-DCONFIG_LEAK_DETECTION \
3701*5113495bSYour Name	-DMEMORY_DEBUG \
3702*5113495bSYour Name	-DNBUF_MEMORY_DEBUG \
3703*5113495bSYour Name	-DNBUF_MAP_UNMAP_DEBUG \
3704*5113495bSYour Name	-DTIMER_MANAGER \
3705*5113495bSYour Name	-DWLAN_DELAYED_WORK_DEBUG \
3706*5113495bSYour Name	-DWLAN_WAKE_LOCK_DEBUG \
3707*5113495bSYour Name	-DWLAN_PERIODIC_WORK_DEBUG
3708*5113495bSYour Nameendif
3709*5113495bSYour Name
3710*5113495bSYour Namecppflags-$(CONFIG_ALLOC_CONTIGUOUS_MULTI_PAGE) += -DALLOC_CONTIGUOUS_MULTI_PAGE
3711*5113495bSYour Name
3712*5113495bSYour Nameifeq ($(CONFIG_QCOM_VOWIFI_11R), y)
3713*5113495bSYour Nameccflags-y += -DKERNEL_SUPPORT_11R_CFG80211
3714*5113495bSYour Nameccflags-y += -DUSE_80211_WMMTSPEC_FOR_RIC
3715*5113495bSYour Nameendif
3716*5113495bSYour Name
3717*5113495bSYour Nameifeq ($(CONFIG_QCOM_ESE), y)
3718*5113495bSYour Nameccflags-y += -DFEATURE_WLAN_ESE
3719*5113495bSYour Nameendif
3720*5113495bSYour Name
3721*5113495bSYour Name#normally, TDLS negative behavior is not needed
3722*5113495bSYour Nameccflags-$(CONFIG_QCOM_TDLS) += -DFEATURE_WLAN_TDLS
3723*5113495bSYour Nameccflags-$(CONFIG_QCOM_TDLS) += -DWLAN_FEATURE_TDLS_CONCURRENCIES
3724*5113495bSYour Name
3725*5113495bSYour Nameifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
3726*5113495bSYour Nameccflags-$(CONFIG_QCOM_TDLS) += -DTDLS_WOW_ENABLED
3727*5113495bSYour Nameendif
3728*5113495bSYour Name
3729*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_TDLS_PEERS) += -DWLAN_SYSFS_TDLS_PEERS
3730*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_RANGE_EXT) += -DWLAN_SYSFS_RANGE_EXT
3731*5113495bSYour Name
3732*5113495bSYour Nameccflags-$(CONFIG_QCACLD_WLAN_LFR2) += -DWLAN_FEATURE_PREAUTH_ENABLE
3733*5113495bSYour Name
3734*5113495bSYour Nameifeq ($(CONFIG_CM_UTF_ENABLE), y)
3735*5113495bSYour Nameccflags-y += -DFEATURE_CM_UTF_ENABLE
3736*5113495bSYour Nameendif
3737*5113495bSYour Name
3738*5113495bSYour Nameccflags-$(CONFIG_QCACLD_WLAN_LFR3) += -DWLAN_FEATURE_ROAM_OFFLOAD
3739*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_ROAM_INFO_STATS) += -DWLAN_FEATURE_ROAM_INFO_STATS
3740*5113495bSYour Nameccflags-$(CONFIG_QCACLD_WLAN_CONNECTIVITY_LOGGING) += -DWLAN_FEATURE_CONNECTIVITY_LOGGING
3741*5113495bSYour Nameccflags-$(CONFIG_QCACLD_WLAN_CONNECTIVITY_DIAG_EVENT) += -DCONNECTIVITY_DIAG_EVENT
3742*5113495bSYour Nameccflags-$(CONFIG_OFDM_SCRAMBLER_SEED) += -DWLAN_FEATURE_OFDM_SCRAMBLER_SEED
3743*5113495bSYour Name
3744*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_MBSSID) += -DWLAN_FEATURE_MBSSID
3745*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_P2P_P2P_STA) += -DWLAN_FEATURE_P2P_P2P_STA
3746*5113495bSYour Name
3747*5113495bSYour Nameifeq (y,$(findstring y, $(CONFIG_CNSS_GENL) $(CONFIG_CNSS_GENL_MODULE)))
3748*5113495bSYour Nameccflags-y += -DCNSS_GENL
3749*5113495bSYour Nameendif
3750*5113495bSYour Name
3751*5113495bSYour Nameifeq (y,$(findstring y, $(CONFIG_CNSS_UTILS) $(CONFIG_CNSS_UTILS_MODULE)))
3752*5113495bSYour Nameccflags-y += -DCNSS_UTILS
3753*5113495bSYour Nameendif
3754*5113495bSYour Name
3755*5113495bSYour Nameifeq (y,$(findstring y, $(CONFIG_WCNSS_MEM_PRE_ALLOC) $(CONFIG_WCNSS_MEM_PRE_ALLOC_MODULE)))
3756*5113495bSYour Nameccflags-y += -DCNSS_MEM_PRE_ALLOC
3757*5113495bSYour Nameendif
3758*5113495bSYour Name
3759*5113495bSYour Nameccflags-$(CONFIG_QCACLD_WLAN_LFR2) += -DWLAN_FEATURE_HOST_ROAM
3760*5113495bSYour Name
3761*5113495bSYour Nameccflags-$(CONFIG_FEATURE_ROAM_DEBUG) += -DFEATURE_ROAM_DEBUG
3762*5113495bSYour Name
3763*5113495bSYour Nameccflags-$(CONFIG_WLAN_POWER_DEBUG) += -DWLAN_POWER_DEBUG
3764*5113495bSYour Name
3765*5113495bSYour Nameccflags-$(CONFIG_WLAN_MWS_INFO_DEBUGFS) += -DWLAN_MWS_INFO_DEBUGFS
3766*5113495bSYour Name
3767*5113495bSYour Nameifeq ($(CONFIG_WLAN_DEBUG_LINK_VOTE), y)
3768*5113495bSYour Nameccflags-$(CONFIG_WLAN_DEBUG_LINK_VOTE) += -DWLAN_DEBUG_LINK_VOTE
3769*5113495bSYour Nameendif
3770*5113495bSYour Name# Enable object manager reference count debug infrastructure
3771*5113495bSYour Nameccflags-$(CONFIG_WLAN_OBJMGR_DEBUG) += -DWLAN_OBJMGR_DEBUG
3772*5113495bSYour Nameccflags-$(CONFIG_WLAN_OBJMGR_DEBUG) += -DWLAN_OBJMGR_REF_ID_DEBUG
3773*5113495bSYour Nameccflags-$(CONFIG_WLAN_OBJMGR_REF_ID_TRACE) += -DWLAN_OBJMGR_REF_ID_TRACE
3774*5113495bSYour Nameccflags-$(CONFIG_FEATURE_DELAYED_PEER_OBJ_DESTROY) += -DFEATURE_DELAYED_PEER_OBJ_DESTROY
3775*5113495bSYour Name
3776*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_SAE) += -DWLAN_FEATURE_SAE
3777*5113495bSYour Name
3778*5113495bSYour Nameifeq ($(CONFIG_WLAN_DIAG_VERSION), y)
3779*5113495bSYour Nameccflags-y += -DFEATURE_WLAN_DIAG_SUPPORT
3780*5113495bSYour Nameccflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
3781*5113495bSYour Nameccflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
3782*5113495bSYour Nameifeq ($(CONFIG_HIF_PCI), y)
3783*5113495bSYour Nameccflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
3784*5113495bSYour Nameendif
3785*5113495bSYour Nameifeq ($(CONFIG_HIF_IPCI), y)
3786*5113495bSYour Nameccflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
3787*5113495bSYour Nameendif
3788*5113495bSYour Nameendif
3789*5113495bSYour Name
3790*5113495bSYour Nameifeq ($(CONFIG_HIF_USB), y)
3791*5113495bSYour Nameccflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
3792*5113495bSYour Nameccflags-y += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
3793*5113495bSYour Nameccflags-y += -DCONFIG_ATH_PCIE_MAX_PERF=0 -DCONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD=0 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0
3794*5113495bSYour Nameendif
3795*5113495bSYour Name
3796*5113495bSYour Nameccflags-$(CONFIG_QCA_SUPPORT_TXRX_DRIVER_TCP_DEL_ACK) += -DQCA_SUPPORT_TXRX_DRIVER_TCP_DEL_ACK
3797*5113495bSYour Name
3798*5113495bSYour Nameccflags-$(CONFIG_QCA_TXDESC_SANITY_CHECKS) += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS
3799*5113495bSYour Name
3800*5113495bSYour Nameccflags-$(CONFIG_QCOM_LTE_COEX) += -DFEATURE_WLAN_CH_AVOID
3801*5113495bSYour Name
3802*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_LPSS) += -DWLAN_FEATURE_LPSS
3803*5113495bSYour Name
3804*5113495bSYour Nameccflags-$(CONFIG_DESC_DUP_DETECT_DEBUG) += -DDESC_DUP_DETECT_DEBUG
3805*5113495bSYour Nameccflags-$(CONFIG_DEBUG_RX_RING_BUFFER) += -DDEBUG_RX_RING_BUFFER
3806*5113495bSYour Name
3807*5113495bSYour Nameccflags-$(CONFIG_DESC_TIMESTAMP_DEBUG_INFO) += -DDESC_TIMESTAMP_DEBUG_INFO
3808*5113495bSYour Name
3809*5113495bSYour Nameccflags-$(PANIC_ON_BUG) += -DPANIC_ON_BUG
3810*5113495bSYour Name
3811*5113495bSYour Nameccflags-$(WLAN_WARN_ON_ASSERT) += -DWLAN_WARN_ON_ASSERT
3812*5113495bSYour Name
3813*5113495bSYour Nameccflags-$(CONFIG_POWER_MANAGEMENT_OFFLOAD) += -DWLAN_POWER_MANAGEMENT_OFFLOAD
3814*5113495bSYour Name
3815*5113495bSYour Nameccflags-$(CONFIG_WLAN_LOG_FATAL) += -DWLAN_LOG_FATAL
3816*5113495bSYour Nameccflags-$(CONFIG_WLAN_LOG_ERROR) += -DWLAN_LOG_ERROR
3817*5113495bSYour Nameccflags-$(CONFIG_WLAN_LOG_WARN) += -DWLAN_LOG_WARN
3818*5113495bSYour Nameccflags-$(CONFIG_WLAN_LOG_INFO) += -DWLAN_LOG_INFO
3819*5113495bSYour Nameccflags-$(CONFIG_WLAN_LOG_DEBUG) += -DWLAN_LOG_DEBUG
3820*5113495bSYour Nameccflags-$(CONFIG_WLAN_LOG_ENTER) += -DWLAN_LOG_ENTER
3821*5113495bSYour Nameccflags-$(CONFIG_WLAN_LOG_EXIT) += -DWLAN_LOG_EXIT
3822*5113495bSYour Nameccflags-$(WLAN_OPEN_SOURCE) += -DWLAN_OPEN_SOURCE
3823*5113495bSYour Nameccflags-$(CONFIG_FEATURE_STATS_EXT) += -DWLAN_FEATURE_STATS_EXT
3824*5113495bSYour Nameccflags-$(CONFIG_QCACLD_FEATURE_NAN) += -DWLAN_FEATURE_NAN
3825*5113495bSYour Nameccflags-$(CONFIG_QCACLD_FEATURE_SON) += -DWLAN_FEATURE_SON
3826*5113495bSYour Nameccflags-$(CONFIG_NDP_SAP_CONCURRENCY_ENABLE) += -DNDP_SAP_CONCURRENCY_ENABLE
3827*5113495bSYour Nameccflags-$(CONFIG_ENFORCE_PLD_REMOVE) += -DENFORCE_PLD_REMOVE
3828*5113495bSYour Name
3829*5113495bSYour Nameifeq ($(CONFIG_DFS_FCC_TYPE4_DURATION_CHECK), y)
3830*5113495bSYour Nameccflags-$(CONFIG_DFS_FCC_TYPE4_DURATION_CHECK) += -DDFS_FCC_TYPE4_DURATION_CHECK
3831*5113495bSYour Nameendif
3832*5113495bSYour Name
3833*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS) += -DWLAN_SYSFS
3834*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_CHANNEL) += -DWLAN_SYSFS_CHANNEL
3835*5113495bSYour Nameccflags-$(CONFIG_FEATURE_BECN_STATS) += -DWLAN_FEATURE_BEACON_RECEPTION_STATS
3836*5113495bSYour Name
3837*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_CONNECT_INFO) += -DWLAN_SYSFS_CONNECT_INFO
3838*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYSFS_EHT_RATE) += -DWLAN_SYSFS_EHT_RATE
3839*5113495bSYour Name
3840*5113495bSYour Name#Set RX_PERFORMANCE
3841*5113495bSYour Nameccflags-$(CONFIG_RX_PERFORMANCE) += -DRX_PERFORMANCE
3842*5113495bSYour Name
3843*5113495bSYour Name#Set MULTI_IF_LOG
3844*5113495bSYour Nameccflags-$(CONFIG_MULTI_IF_LOG) += -DMULTI_IF_LOG
3845*5113495bSYour Name
3846*5113495bSYour Name#Set SLUB_MEM_OPTIMIZE
3847*5113495bSYour Nameccflags-$(CONFIG_SLUB_MEM_OPTIMIZE) += -DSLUB_MEM_OPTIMIZE
3848*5113495bSYour Name
3849*5113495bSYour Nameifeq ($(CONFIG_ARCH_SDXBAAGHA), y)
3850*5113495bSYour Nameccflags-$(CONFIG_WLAN_MEMORY_OPT) += -DWLAN_MEMORY_OPT
3851*5113495bSYour Nameendif
3852*5113495bSYour Name
3853*5113495bSYour Name#Set DFS_PRI_MULTIPLIER
3854*5113495bSYour Nameccflags-$(CONFIG_DFS_PRI_MULTIPLIER) += -DDFS_PRI_MULTIPLIER
3855*5113495bSYour Name
3856*5113495bSYour Name#Set DFS_OVERRIDE_RF_THRESHOLD
3857*5113495bSYour Nameccflags-$(CONFIG_DFS_OVERRIDE_RF_THRESHOLD) += -DDFS_OVERRIDE_RF_THRESHOLD
3858*5113495bSYour Name
3859*5113495bSYour Name#Enable OL debug and wmi unified functions
3860*5113495bSYour Nameccflags-$(CONFIG_ATH_PERF_PWR_OFFLOAD) += -DATH_PERF_PWR_OFFLOAD
3861*5113495bSYour Name
3862*5113495bSYour Name#Disable packet log
3863*5113495bSYour Nameccflags-$(CONFIG_REMOVE_PKT_LOG) += -DREMOVE_PKT_LOG
3864*5113495bSYour Name
3865*5113495bSYour Name#Enable 11AC TX
3866*5113495bSYour Nameccflags-$(CONFIG_ATH_11AC_TXCOMPACT) += -DATH_11AC_TXCOMPACT
3867*5113495bSYour Name
3868*5113495bSYour Name#ENABLE HTT HTC tx completion
3869*5113495bSYour Nameccflags-$(ENABLE_CE4_COMP_DISABLE_HTT_HTC_MISC_LIST) += -DENABLE_CE4_COMP_DISABLE_HTT_HTC_MISC_LIST
3870*5113495bSYour Name
3871*5113495bSYour Name#Enable PCI specific APIS (dma, etc)
3872*5113495bSYour Nameccflags-$(CONFIG_HIF_PCI) += -DHIF_PCI
3873*5113495bSYour Name
3874*5113495bSYour Nameccflags-$(CONFIG_HIF_IPCI) += -DHIF_IPCI
3875*5113495bSYour Name
3876*5113495bSYour Nameccflags-$(CONFIG_HIF_SNOC) += -DHIF_SNOC
3877*5113495bSYour Name
3878*5113495bSYour Nameccflags-$(CONFIG_HL_DP_SUPPORT) += -DCONFIG_HL_SUPPORT
3879*5113495bSYour Nameccflags-$(CONFIG_HL_DP_SUPPORT) += -DWLAN_PARTIAL_REORDER_OFFLOAD
3880*5113495bSYour Nameccflags-$(CONFIG_HL_DP_SUPPORT) += -DQCA_COMPUTE_TX_DELAY
3881*5113495bSYour Nameccflags-$(CONFIG_HL_DP_SUPPORT) += -DQCA_COMPUTE_TX_DELAY_PER_TID
3882*5113495bSYour Nameccflags-$(CONFIG_LL_DP_SUPPORT) += -DCONFIG_LL_DP_SUPPORT
3883*5113495bSYour Nameccflags-$(CONFIG_LL_DP_SUPPORT) += -DWLAN_FULL_REORDER_OFFLOAD
3884*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_BIG_DATA_STATS) += -DWLAN_FEATURE_BIG_DATA_STATS
3885*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
3886*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_SR) += -DWLAN_FEATURE_SR
3887*5113495bSYour Nameccflags-$(CONFIG_OBSS_PD) += -DOBSS_PD
3888*5113495bSYour Nameendif
3889*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_IGMP_OFFLOAD) += -DWLAN_FEATURE_IGMP_OFFLOAD
3890*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_GET_USABLE_CHAN_LIST) += -DWLAN_FEATURE_GET_USABLE_CHAN_LIST
3891*5113495bSYour Name
3892*5113495bSYour Name# For PCIe GEN switch
3893*5113495bSYour Nameccflags-$(CONFIG_PCIE_GEN_SWITCH) += -DPCIE_GEN_SWITCH
3894*5113495bSYour Name
3895*5113495bSYour Name# For OOB testing
3896*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_WOW_PULSE) += -DWLAN_FEATURE_WOW_PULSE
3897*5113495bSYour Name
3898*5113495bSYour Name#Enable High Latency related Flags
3899*5113495bSYour Nameifeq ($(CONFIG_QCA_WIFI_SDIO), y)
3900*5113495bSYour Nameccflags-y += -DCONFIG_AR6320_SUPPORT \
3901*5113495bSYour Name            -DSDIO_3_0 \
3902*5113495bSYour Name            -DHIF_SDIO \
3903*5113495bSYour Name            -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \
3904*5113495bSYour Name            -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \
3905*5113495bSYour Name            -DHIF_MBOX_SLEEP_WAR \
3906*5113495bSYour Name            -DDEBUG_HL_LOGGING \
3907*5113495bSYour Name            -DQCA_BAD_PEER_TX_FLOW_CL \
3908*5113495bSYour Name            -DCONFIG_SDIO \
3909*5113495bSYour Name            -DFEATURE_WLAN_FORCE_SAP_SCC
3910*5113495bSYour Name
3911*5113495bSYour Nameifeq ($(CONFIG_SDIO_TRANSFER), adma)
3912*5113495bSYour Nameccflags-y += -DCONFIG_SDIO_TRANSFER_ADMA
3913*5113495bSYour Nameelse
3914*5113495bSYour Nameccflags-y += -DCONFIG_SDIO_TRANSFER_MAILBOX
3915*5113495bSYour Nameendif
3916*5113495bSYour Nameendif
3917*5113495bSYour Name
3918*5113495bSYour Nameccflags-$(CONFIG_AR6320_SUPPORT) += -DCONFIG_AR6320_SUPPORT
3919*5113495bSYour Name
3920*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
3921*5113495bSYour Nameccflags-y += -DWLAN_FEATURE_DSRC
3922*5113495bSYour Nameifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
3923*5113495bSYour Nameccflags-y += -DWLAN_OCB_UT
3924*5113495bSYour Nameendif
3925*5113495bSYour Name
3926*5113495bSYour Nameelse ifeq ($(CONFIG_WLAN_REG_AUTO), y)
3927*5113495bSYour Nameccflags-y += -DWLAN_REG_AUTO
3928*5113495bSYour Nameendif
3929*5113495bSYour Name
3930*5113495bSYour Nameccflags-$(CONFIG_FEATURE_SKB_PRE_ALLOC) += -DFEATURE_SKB_PRE_ALLOC
3931*5113495bSYour Name
3932*5113495bSYour Name#Enable USB specific APIS
3933*5113495bSYour Nameifeq ($(CONFIG_HIF_USB), y)
3934*5113495bSYour Nameccflags-y += -DHIF_USB \
3935*5113495bSYour Name            -DDEBUG_HL_LOGGING
3936*5113495bSYour Nameendif
3937*5113495bSYour Name
3938*5113495bSYour Name#Enable Genoa specific features.
3939*5113495bSYour Nameccflags-$(CONFIG_QCA_HL_NETDEV_FLOW_CONTROL) += -DQCA_HL_NETDEV_FLOW_CONTROL
3940*5113495bSYour Nameccflags-$(CONFIG_FEATURE_HL_GROUP_CREDIT_FLOW_CONTROL) += -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL
3941*5113495bSYour Nameccflags-$(CONFIG_FEATURE_HL_DBS_GROUP_CREDIT_SHARING) += -DFEATURE_HL_DBS_GROUP_CREDIT_SHARING
3942*5113495bSYour Nameccflags-$(CONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE) += -DCONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE
3943*5113495bSYour Nameccflags-$(CONFIG_RX_PN_CHECK_OFFLOAD) += -DCONFIG_RX_PN_CHECK_OFFLOAD
3944*5113495bSYour Name
3945*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYNC_TSF_TIMER) += -DWLAN_FEATURE_TSF_TIMER_SYNC
3946*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYNC_TSF_PTP) += -DWLAN_FEATURE_TSF_PTP
3947*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYNC_TSF_PLUS_EXT_GPIO_IRQ) += -DWLAN_FEATURE_TSF_PLUS_EXT_GPIO_IRQ
3948*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYNC_TSF_PLUS_EXT_GPIO_SYNC) += -DWLAN_FEATURE_TSF_PLUS_EXT_GPIO_SYNC
3949*5113495bSYour Nameccflags-$(CONFIG_TX_DESC_HI_PRIO_RESERVE) += -DCONFIG_TX_DESC_HI_PRIO_RESERVE
3950*5113495bSYour Name
3951*5113495bSYour Name#Enable power management suspend/resume functionality
3952*5113495bSYour Nameccflags-$(CONFIG_ATH_BUS_PM) += -DATH_BUS_PM
3953*5113495bSYour Name
3954*5113495bSYour Name#Enable FLOWMAC module support
3955*5113495bSYour Nameccflags-$(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE) += -DATH_SUPPORT_FLOWMAC_MODULE
3956*5113495bSYour Name
3957*5113495bSYour Name#Enable spectral support
3958*5113495bSYour Nameccflags-$(CONFIG_ATH_SUPPORT_SPECTRAL) += -DATH_SUPPORT_SPECTRAL
3959*5113495bSYour Name
3960*5113495bSYour Name#Enable legacy pktlog
3961*5113495bSYour Nameccflags-$(CONFIG_PKTLOG_LEGACY) += -DPKTLOG_LEGACY
3962*5113495bSYour Name
3963*5113495bSYour Name#Enable WDI Event support
3964*5113495bSYour Nameccflags-$(CONFIG_WDI_EVENT_ENABLE) += -DWDI_EVENT_ENABLE
3965*5113495bSYour Name
3966*5113495bSYour Name#Enable the type_specific_data in the struct ath_pktlog_arg
3967*5113495bSYour Nameccflags-$(CONFIG_PKTLOG_HAS_SPECIFIC_DATA) += -DPKTLOG_HAS_SPECIFIC_DATA
3968*5113495bSYour Name
3969*5113495bSYour Name#Endianness selection
3970*5113495bSYour Nameifeq ($(CONFIG_LITTLE_ENDIAN), y)
3971*5113495bSYour Nameccflags-y += -DANI_LITTLE_BYTE_ENDIAN
3972*5113495bSYour Nameccflags-y += -DANI_LITTLE_BIT_ENDIAN
3973*5113495bSYour Nameccflags-y += -DDOT11F_LITTLE_ENDIAN_HOST
3974*5113495bSYour Nameelse
3975*5113495bSYour Nameccflags-y += -DANI_BIG_BYTE_ENDIAN
3976*5113495bSYour Nameccflags-y += -DBIG_ENDIAN_HOST
3977*5113495bSYour Nameendif
3978*5113495bSYour Name
3979*5113495bSYour Name#Enable TX reclaim support
3980*5113495bSYour Nameccflags-$(CONFIG_TX_CREDIT_RECLAIM_SUPPORT) += -DTX_CREDIT_RECLAIM_SUPPORT
3981*5113495bSYour Name
3982*5113495bSYour Name#Enable FTM support
3983*5113495bSYour Nameccflags-$(CONFIG_QCA_WIFI_FTM) += -DQCA_WIFI_FTM
3984*5113495bSYour Nameccflags-$(CONFIG_NL80211_TESTMODE) += -DQCA_WIFI_FTM_NL80211
3985*5113495bSYour Nameccflags-$(CONFIG_LINUX_QCMBR) += -DLINUX_QCMBR -DQCA_WIFI_FTM_IOCTL
3986*5113495bSYour Name
3987*5113495bSYour Name#Enable Checksum Offload support
3988*5113495bSYour Nameccflags-$(CONFIG_CHECKSUM_OFFLOAD) += -DCHECKSUM_OFFLOAD
3989*5113495bSYour Name
3990*5113495bSYour Name#Enable IPA Offload support
3991*5113495bSYour Nameccflags-$(CONFIG_IPA_OFFLOAD) += -DIPA_OFFLOAD
3992*5113495bSYour Name
3993*5113495bSYour Name#Enable IPA optional Wifi datapath
3994*5113495bSYour Nameifeq ($(CONFIG_IPA_OPT_WIFI_DP), y)
3995*5113495bSYour Nameifeq ($(CONFIG_IPA_OFFLOAD), y)
3996*5113495bSYour Nameccflags-$(CONFIG_IPA_OPT_WIFI_DP) += -DIPA_OPT_WIFI_DP
3997*5113495bSYour Nameendif
3998*5113495bSYour Nameendif
3999*5113495bSYour Name
4000*5113495bSYour Nameccflags-$(CONFIG_WDI3_IPA_OVER_GSI) += -DIPA_WDI3_GSI
4001*5113495bSYour Nameccflags-$(CONFIG_WDI2_IPA_OVER_GSI) += -DIPA_WDI2_GSI
4002*5113495bSYour Name
4003*5113495bSYour Name#Enable WMI DIAG log over CE7
4004*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_WMI_DIAG_OVER_CE7) += -DWLAN_FEATURE_WMI_DIAG_OVER_CE7
4005*5113495bSYour Name
4006*5113495bSYour Nameifdef CONFIG_WLAN_DP_FEATURE_DEFERRED_REO_QDESC_DESTROY
4007*5113495bSYour Nameccflags-y += -DWLAN_DP_FEATURE_DEFERRED_REO_QDESC_DESTROY
4008*5113495bSYour Nameendif
4009*5113495bSYour Name
4010*5113495bSYour Nameifeq ($(CONFIG_ARCH_SDX20), y)
4011*5113495bSYour Nameccflags-y += -DSYNC_IPA_READY
4012*5113495bSYour Nameendif
4013*5113495bSYour Name
4014*5113495bSYour Nameifeq ($(CONFIG_ARCH_SDXPOORWILLS), y)
4015*5113495bSYour NameCONFIG_FEATURE_SG := y
4016*5113495bSYour Nameendif
4017*5113495bSYour Name
4018*5113495bSYour Nameifeq ($(CONFIG_ARCH_MSM8996), y)
4019*5113495bSYour Nameifneq ($(CONFIG_QCN7605_SUPPORT), y)
4020*5113495bSYour NameCONFIG_FEATURE_SG := y
4021*5113495bSYour NameCONFIG_RX_THREAD_PRIORITY := y
4022*5113495bSYour Nameendif
4023*5113495bSYour Nameendif
4024*5113495bSYour Name
4025*5113495bSYour Nameifeq ($(CONFIG_FEATURE_SG), y)
4026*5113495bSYour Nameccflags-y += -DFEATURE_SG
4027*5113495bSYour Nameendif
4028*5113495bSYour Name
4029*5113495bSYour Nameifeq ($(CONFIG_RX_THREAD_PRIORITY), y)
4030*5113495bSYour Nameccflags-y += -DRX_THREAD_PRIORITY
4031*5113495bSYour Nameendif
4032*5113495bSYour Name
4033*5113495bSYour Nameifeq ($(CONFIG_SUPPORT_P2P_BY_ONE_INTF_WLAN), y)
4034*5113495bSYour Name#sta support to tx P2P action frames
4035*5113495bSYour Nameccflags-y += -DSUPPORT_P2P_BY_ONE_INTF_WLAN
4036*5113495bSYour Nameelse
4037*5113495bSYour Name#Open P2P device interface only for non-Mobile router use cases
4038*5113495bSYour Nameccflags-$(CONFIG_WLAN_OPEN_P2P_INTERFACE) += -DWLAN_OPEN_P2P_INTERFACE
4039*5113495bSYour Nameendif
4040*5113495bSYour Name
4041*5113495bSYour Nameccflags-$(CONFIG_WMI_BCN_OFFLOAD) += -DWLAN_WMI_BCN
4042*5113495bSYour Name
4043*5113495bSYour Name#Enable wbuff
4044*5113495bSYour Nameccflags-$(CONFIG_WLAN_WBUFF) += -DWLAN_FEATURE_WBUFF
4045*5113495bSYour Name
4046*5113495bSYour Name#Enable GTK Offload
4047*5113495bSYour Nameccflags-$(CONFIG_GTK_OFFLOAD) += -DWLAN_FEATURE_GTK_OFFLOAD
4048*5113495bSYour Name
4049*5113495bSYour Name#Enable External WoW
4050*5113495bSYour Nameccflags-$(CONFIG_EXT_WOW) += -DWLAN_FEATURE_EXTWOW_SUPPORT
4051*5113495bSYour Name
4052*5113495bSYour Name#Mark it as SMP Kernel
4053*5113495bSYour Nameccflags-$(CONFIG_SMP) += -DQCA_CONFIG_SMP
4054*5113495bSYour Name
4055*5113495bSYour Name#CONFIG_RPS default Y, but depend on CONFIG_SMP
4056*5113495bSYour Nameccflags-$(CONFIG_RPS) += -DQCA_CONFIG_RPS
4057*5113495bSYour Name
4058*5113495bSYour Nameccflags-$(CONFIG_CHNL_MATRIX_RESTRICTION) += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
4059*5113495bSYour Name
4060*5113495bSYour Name#Enable ICMP packet disable powersave feature
4061*5113495bSYour Nameccflags-$(CONFIG_ICMP_DISABLE_PS) += -DWLAN_ICMP_DISABLE_PS
4062*5113495bSYour Name
4063*5113495bSYour Name#enable MCC TO SCC switch
4064*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
4065*5113495bSYour Name
4066*5113495bSYour Name#enable wlan auto shutdown feature
4067*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_AUTO_SHUTDOWN) += -DFEATURE_WLAN_AUTO_SHUTDOWN
4068*5113495bSYour Name
4069*5113495bSYour Name#enable AP-AP ACS Optimization
4070*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_AP_AP_ACS_OPTIMIZE) += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
4071*5113495bSYour Name
4072*5113495bSYour Name#Enable 4address scheme
4073*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME) += -DFEATURE_WLAN_STA_4ADDR_SCHEME
4074*5113495bSYour Name
4075*5113495bSYour Name#Optimize GC connection speed by skipping JOIN
4076*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_GC_SKIP_JOIN) += -DFEATURE_WLAN_GC_SKIP_JOIN
4077*5113495bSYour Name
4078*5113495bSYour Name#enable MDM/SDX special config
4079*5113495bSYour Nameccflags-$(CONFIG_MDM_PLATFORM) += -DMDM_PLATFORM
4080*5113495bSYour Name
4081*5113495bSYour Name#Disable STA-AP Mode DFS support
4082*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE) += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
4083*5113495bSYour Name
4084*5113495bSYour Name#Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
4085*5113495bSYour Nameccflags-$(CONFIG_WLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY) += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
4086*5113495bSYour Name
4087*5113495bSYour Name#Green AP feature
4088*5113495bSYour Nameccflags-$(CONFIG_QCACLD_FEATURE_GREEN_AP) += -DWLAN_SUPPORT_GREEN_AP
4089*5113495bSYour Name
4090*5113495bSYour Nameccflags-$(CONFIG_QCACLD_FEATURE_GAP_LL_PS_MODE) += -DWLAN_SUPPORT_GAP_LL_PS_MODE
4091*5113495bSYour Name
4092*5113495bSYour Nameccflags-$(CONFIG_QCACLD_FEATURE_APF) += -DFEATURE_WLAN_APF
4093*5113495bSYour Name
4094*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_SARV1_TO_SARV2) += -DWLAN_FEATURE_SARV1_TO_SARV2
4095*5113495bSYour Name
4096*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_FT_IEEE8021X) += -DFEATURE_WLAN_FT_IEEE8021X
4097*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_FT_PSK) += -DFEATURE_WLAN_FT_PSK
4098*5113495bSYour Name
4099*5113495bSYour Name#Enable host 11d scan
4100*5113495bSYour Nameccflags-$(CONFIG_HOST_11D_SCAN) += -DHOST_11D_SCAN
4101*5113495bSYour Name
4102*5113495bSYour Name#Stats & Quota Metering feature
4103*5113495bSYour Nameifeq ($(CONFIG_IPA_OFFLOAD), y)
4104*5113495bSYour Nameifeq ($(CONFIG_QCACLD_FEATURE_METERING), y)
4105*5113495bSYour Nameccflags-y += -DFEATURE_METERING
4106*5113495bSYour Nameendif
4107*5113495bSYour Nameendif
4108*5113495bSYour Name
4109*5113495bSYour Name#Define Max IPA interface
4110*5113495bSYour Nameifeq ($(CONFIG_IPA_OFFLOAD), y)
4111*5113495bSYour Nameifdef CONFIG_NUM_IPA_IFACE
4112*5113495bSYour Nameccflags-y += -DMAX_IPA_IFACE=$(CONFIG_NUM_IPA_IFACE)
4113*5113495bSYour Nameelse
4114*5113495bSYour NameNUM_IPA_IFACE ?= 3
4115*5113495bSYour Nameccflags-y += -DMAX_IPA_IFACE=$(NUM_IPA_IFACE)
4116*5113495bSYour Nameendif
4117*5113495bSYour Nameendif
4118*5113495bSYour Name
4119*5113495bSYour Name
4120*5113495bSYour Nameccflags-$(CONFIG_TUFELLO_DUAL_FW_SUPPORT) += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT
4121*5113495bSYour Nameccflags-$(CONFIG_CHANNEL_HOPPING_ALL_BANDS) += -DCHANNEL_HOPPING_ALL_BANDS
4122*5113495bSYour Name
4123*5113495bSYour Name#Enable Signed firmware support for split binary format
4124*5113495bSYour Nameccflags-$(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT) += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
4125*5113495bSYour Name
4126*5113495bSYour Name#Enable single firmware binary format
4127*5113495bSYour Nameccflags-$(CONFIG_QCA_SINGLE_BINARY_SUPPORT) += -DQCA_SINGLE_BINARY_SUPPORT
4128*5113495bSYour Name
4129*5113495bSYour Name#Enable collecting target RAM dump after kernel panic
4130*5113495bSYour Nameccflags-$(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC) += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
4131*5113495bSYour Name
4132*5113495bSYour Name#Enable/disable secure firmware feature
4133*5113495bSYour Nameccflags-$(CONFIG_FEATURE_SECURE_FIRMWARE) += -DFEATURE_SECURE_FIRMWARE
4134*5113495bSYour Name
4135*5113495bSYour Nameccflags-$(CONFIG_ATH_PCIE_ACCESS_DEBUG) += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
4136*5113495bSYour Name
4137*5113495bSYour Name# Enable feature support for Linux version QCMBR
4138*5113495bSYour Nameccflags-$(CONFIG_LINUX_QCMBR) += -DLINUX_QCMBR
4139*5113495bSYour Name
4140*5113495bSYour Name# Enable feature sync tsf between multi devices
4141*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYNC_TSF) += -DWLAN_FEATURE_TSF
4142*5113495bSYour Name
4143*5113495bSYour Nameifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
4144*5113495bSYour Nameccflags-y += -DWLAN_FEATURE_TSF_PLUS
4145*5113495bSYour Name
4146*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYNC_TSF_ACCURACY) += -DWLAN_FEATURE_TSF_ACCURACY
4147*5113495bSYour Name
4148*5113495bSYour Nameifneq ($(CONFIG_WLAN_SYNC_TSF_PLUS_DISABLE_SOCK_TS), y)
4149*5113495bSYour Nameccflags-y += -DWLAN_FEATURE_TSF_PLUS_SOCK_TS
4150*5113495bSYour Nameendif
4151*5113495bSYour Name
4152*5113495bSYour Nameendif
4153*5113495bSYour Name
4154*5113495bSYour Name# Enable feature sync tsf for chips based on Adrastea arch
4155*5113495bSYour Nameccflags-$(CONFIG_WLAN_SYNC_TSF_PLUS_NOIRQ) += -DWLAN_FEATURE_TSF_PLUS_NOIRQ
4156*5113495bSYour Name
4157*5113495bSYour Nameifeq ($(CONFIG_WLAN_TSF_UPLINK_DELAY), y)
4158*5113495bSYour Name# Enable uplink delay report feature
4159*5113495bSYour Nameccflags-y += -DWLAN_FEATURE_TSF_UPLINK_DELAY
4160*5113495bSYour NameCONFIG_WLAN_TSF_AUTO_REPORT := y
4161*5113495bSYour Nameendif
4162*5113495bSYour Name
4163*5113495bSYour Name# Enable tx latency stats feature
4164*5113495bSYour Nameifeq ($(CONFIG_WLAN_TX_LATENCY_STATS), y)
4165*5113495bSYour Nameccflags-y += -DWLAN_FEATURE_TX_LATENCY_STATS
4166*5113495bSYour NameCONFIG_WLAN_TSF_AUTO_REPORT := y
4167*5113495bSYour Nameendif
4168*5113495bSYour Name
4169*5113495bSYour Name# Enable TSF auto report feature
4170*5113495bSYour Nameccflags-$(CONFIG_WLAN_TSF_AUTO_REPORT) += -DWLAN_FEATURE_TSF_AUTO_REPORT
4171*5113495bSYour Name
4172*5113495bSYour Nameccflags-$(CONFIG_ATH_PROCFS_DIAG_SUPPORT) += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
4173*5113495bSYour Name
4174*5113495bSYour Nameccflags-$(CONFIG_HELIUMPLUS) += -DHELIUMPLUS
4175*5113495bSYour Nameccflags-$(CONFIG_RX_OL) += -DRECEIVE_OFFLOAD
4176*5113495bSYour Nameccflags-$(CONFIG_TX_TID_OVERRIDE) += -DATH_TX_PRI_OVERRIDE
4177*5113495bSYour Nameccflags-$(CONFIG_AR900B) += -DAR900B
4178*5113495bSYour Nameccflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64
4179*5113495bSYour Nameccflags-$(CONFIG_OL_RX_INDICATION_RECORD) += -DOL_RX_INDICATION_RECORD
4180*5113495bSYour Nameccflags-$(CONFIG_TSOSEG_DEBUG) += -DTSOSEG_DEBUG
4181*5113495bSYour Nameccflags-$(CONFIG_ALLOW_PKT_DROPPING) += -DFEATURE_ALLOW_PKT_DROPPING
4182*5113495bSYour Name
4183*5113495bSYour Name# Enable feature for athdiag live debug mode
4184*5113495bSYour Nameccflags-$(CONFIG_ATH_DIAG_EXT_DIRECT) += -DATH_DIAG_EXT_DIRECT
4185*5113495bSYour Name
4186*5113495bSYour Nameccflags-$(CONFIG_ENABLE_DEBUG_ADDRESS_MARKING) += -DENABLE_DEBUG_ADDRESS_MARKING
4187*5113495bSYour Nameccflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO
4188*5113495bSYour Nameccflags-$(CONFIG_FEATURE_TSO_DEBUG) += -DFEATURE_TSO_DEBUG
4189*5113495bSYour Nameccflags-$(CONFIG_FEATURE_TSO_STATS) += -DFEATURE_TSO_STATS
4190*5113495bSYour Nameccflags-$(CONFIG_FEATURE_FORCE_WAKE) += -DFORCE_WAKE
4191*5113495bSYour Nameccflags-$(CONFIG_WLAN_LRO) += -DFEATURE_LRO
4192*5113495bSYour Name
4193*5113495bSYour Nameccflags-$(CONFIG_FEATURE_AP_MCC_CH_AVOIDANCE) += -DFEATURE_AP_MCC_CH_AVOIDANCE
4194*5113495bSYour Name
4195*5113495bSYour Nameccflags-$(CONFIG_FEATURE_EPPING) += -DWLAN_FEATURE_EPPING
4196*5113495bSYour Name
4197*5113495bSYour Nameccflags-$(CONFIG_WLAN_OFFLOAD_PACKETS) += -DWLAN_FEATURE_OFFLOAD_PACKETS
4198*5113495bSYour Name
4199*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_DISA) += -DWLAN_FEATURE_DISA
4200*5113495bSYour Name
4201*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_ACTION_OUI) += -DWLAN_FEATURE_ACTION_OUI
4202*5113495bSYour Name
4203*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_FIPS) += -DWLAN_FEATURE_FIPS
4204*5113495bSYour Name
4205*5113495bSYour Nameccflags-$(CONFIG_LFR_SUBNET_DETECTION) += -DFEATURE_LFR_SUBNET_DETECTION
4206*5113495bSYour Name
4207*5113495bSYour Nameccflags-$(CONFIG_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
4208*5113495bSYour Name
4209*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_D0WOW) += -DFEATURE_WLAN_D0WOW
4210*5113495bSYour Name
4211*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_PKT_CAPTURE) += -DWLAN_FEATURE_PKT_CAPTURE
4212*5113495bSYour Name
4213*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_PKT_CAPTURE_V2) += -DWLAN_FEATURE_PKT_CAPTURE_V2
4214*5113495bSYour Name
4215*5113495bSYour Nameccflags-$(CONFIG_DP_RX_UDP_OVER_PEER_ROAM) += -DDP_RX_UDP_OVER_PEER_ROAM
4216*5113495bSYour Name
4217*5113495bSYour Namecppflags-$(CONFIG_WLAN_BOOST_CPU_FREQ_IN_ROAM) += -DWLAN_BOOST_CPU_FREQ_IN_ROAM
4218*5113495bSYour Name
4219*5113495bSYour Nameccflags-$(CONFIG_QCA_WIFI_EMULATION) += -DQCA_WIFI_EMULATION
4220*5113495bSYour Nameccflags-$(CONFIG_SAP_MULTI_LINK_EMULATION) += -DSAP_MULTI_LINK_EMULATION
4221*5113495bSYour Nameccflags-$(CONFIG_SHADOW_V2) += -DCONFIG_SHADOW_V2
4222*5113495bSYour Nameccflags-$(CONFIG_SHADOW_V3) += -DCONFIG_SHADOW_V3
4223*5113495bSYour Nameccflags-$(CONFIG_QCA6290_HEADERS_DEF) += -DQCA6290_HEADERS_DEF
4224*5113495bSYour Nameccflags-$(CONFIG_QCA_WIFI_QCA6290) += -DQCA_WIFI_QCA6290
4225*5113495bSYour Nameccflags-$(CONFIG_QCA6390_HEADERS_DEF) += -DQCA6390_HEADERS_DEF
4226*5113495bSYour Nameccflags-$(CONFIG_QCA6750_HEADERS_DEF) += -DQCA6750_HEADERS_DEF
4227*5113495bSYour Nameccflags-$(CONFIG_QCA_WIFI_QCA6390) += -DQCA_WIFI_QCA6390
4228*5113495bSYour Nameccflags-$(CONFIG_QCA6490_HEADERS_DEF) += -DQCA6490_HEADERS_DEF
4229*5113495bSYour Nameccflags-$(CONFIG_KIWI_HEADERS_DEF) += -DKIWI_HEADERS_DEF
4230*5113495bSYour Nameccflags-$(CONFIG_WCN6450_HEADERS_DEF) += -DWCN6450_HEADERS_DEF
4231*5113495bSYour Nameccflags-$(CONFIG_QCA_WIFI_QCA6490) += -DQCA_WIFI_QCA6490
4232*5113495bSYour Nameccflags-$(CONFIG_QCA_WIFI_QCA6750) += -DQCA_WIFI_QCA6750
4233*5113495bSYour Nameccflags-$(CONFIG_QCA_WIFI_KIWI) += -DQCA_WIFI_KIWI
4234*5113495bSYour Nameccflags-$(CONFIG_QCA_WIFI_WCN6450) += -DQCA_WIFI_WCN6450
4235*5113495bSYour Nameccflags-$(CONFIG_QCA_WIFI_WCN6450) += -DWLAN_40BIT_ADDRESSING_SUPPORT
4236*5113495bSYour Nameccflags-$(CONFIG_QCA_WIFI_WCN6450) += -DWLAN_64BIT_DATA_SUPPORT
4237*5113495bSYour Nameccflags-$(CONFIG_CE_LEGACY_MSI_SUPPORT) += -DCE_LEGACY_MSI_SUPPORT
4238*5113495bSYour Nameccflags-$(CONFIG_HIF_HAL_REG_ACCESS_SUPPORT) += -DHIF_HAL_REG_ACCESS_SUPPORT
4239*5113495bSYour Nameccflags-$(CONFIG_FEATURE_HIF_DELAYED_REG_WRITE) += -DFEATURE_HIF_DELAYED_REG_WRITE
4240*5113495bSYour Nameccflags-$(CONFIG_CNSS_KIWI_V2) += -DQCA_WIFI_KIWI_V2
4241*5113495bSYour Nameccflags-$(CONFIG_CNSS_MANGO) += -DQCA_WIFI_MANGO
4242*5113495bSYour Nameccflags-$(CONFIG_CNSS_PEACH) += -DQCA_WIFI_PEACH
4243*5113495bSYour Nameccflags-$(CONFIG_QCA_WIFI_QCA8074) += -DQCA_WIFI_QCA8074
4244*5113495bSYour Nameccflags-$(CONFIG_SCALE_INCLUDES) += -DSCALE_INCLUDES
4245*5113495bSYour Nameccflags-$(CONFIG_QCA_WIFI_QCA8074_VP) += -DQCA_WIFI_QCA8074_VP
4246*5113495bSYour Nameccflags-$(CONFIG_DP_INTR_POLL_BASED) += -DDP_INTR_POLL_BASED
4247*5113495bSYour Nameccflags-$(CONFIG_TX_PER_PDEV_DESC_POOL) += -DTX_PER_PDEV_DESC_POOL
4248*5113495bSYour Nameccflags-$(CONFIG_DP_TRACE) += -DCONFIG_DP_TRACE
4249*5113495bSYour Nameccflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO
4250*5113495bSYour Nameccflags-$(CONFIG_TSO_DEBUG_LOG_ENABLE) += -DTSO_DEBUG_LOG_ENABLE
4251*5113495bSYour Nameccflags-$(CONFIG_DP_LFR) += -DDP_LFR
4252*5113495bSYour Nameccflags-$(CONFIG_DUP_RX_DESC_WAR) += -DDUP_RX_DESC_WAR
4253*5113495bSYour Nameccflags-$(CONFIG_DP_MEM_PRE_ALLOC) += -DDP_MEM_PRE_ALLOC
4254*5113495bSYour Nameccflags-$(CONFIG_DP_TXRX_SOC_ATTACH) += -DDP_TXRX_SOC_ATTACH
4255*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_BMI) += -DWLAN_FEATURE_BMI
4256*5113495bSYour Nameccflags-$(CONFIG_QCA_TX_PADDING_CREDIT_SUPPORT) += -DQCA_TX_PADDING_CREDIT_SUPPORT
4257*5113495bSYour Nameccflags-$(CONFIG_QCN7605_SUPPORT) += -DQCN7605_SUPPORT -DPLATFORM_GENOA
4258*5113495bSYour Nameccflags-$(CONFIG_HIF_REG_WINDOW_SUPPORT) += -DHIF_REG_WINDOW_SUPPORT
4259*5113495bSYour Nameccflags-$(CONFIG_WLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY) += -DWLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY
4260*5113495bSYour Nameccflags-$(CONFIG_HIF_CE_DEBUG_DATA_BUF) += -DHIF_CE_DEBUG_DATA_BUF
4261*5113495bSYour Nameccflags-$(CONFIG_IPA_DISABLE_OVERRIDE) += -DIPA_DISABLE_OVERRIDE
4262*5113495bSYour Nameccflags-$(CONFIG_QCA_LL_TX_FLOW_CONTROL_RESIZE) += -DQCA_LL_TX_FLOW_CONTROL_RESIZE
4263*5113495bSYour Nameccflags-$(CONFIG_HIF_PCI) += -DCE_SVC_CMN_INIT
4264*5113495bSYour Nameccflags-$(CONFIG_HIF_IPCI) += -DCE_SVC_CMN_INIT
4265*5113495bSYour Nameccflags-$(CONFIG_HIF_SNOC) += -DCE_SVC_CMN_INIT
4266*5113495bSYour Nameccflags-$(CONFIG_RX_DESC_SANITY_WAR) += -DRX_DESC_SANITY_WAR
4267*5113495bSYour Nameccflags-$(CONFIG_WBM_IDLE_LSB_WR_CNF_WAR) += -DWBM_IDLE_LSB_WRITE_CONFIRM_WAR
4268*5113495bSYour Nameccflags-$(CONFIG_DYNAMIC_RX_AGGREGATION) += -DWLAN_FEATURE_DYNAMIC_RX_AGGREGATION
4269*5113495bSYour Nameccflags-$(CONFIG_DP_FEATURE_HW_COOKIE_CONVERSION) += -DDP_FEATURE_HW_COOKIE_CONVERSION
4270*5113495bSYour Nameccflags-$(CONFIG_DP_HW_COOKIE_CONVERT_EXCEPTION) += -DDP_HW_COOKIE_CONVERT_EXCEPTION
4271*5113495bSYour Nameccflags-$(CONFIG_TX_ADDR_INDEX_SEARCH) += -DTX_ADDR_INDEX_SEARCH
4272*5113495bSYour Nameccflags-$(CONFIG_QCA_SUPPORT_TX_MIN_RATES_FOR_SPECIAL_FRAMES) += -DQCA_SUPPORT_TX_MIN_RATES_FOR_SPECIAL_FRAMES
4273*5113495bSYour Nameccflags-$(CONFIG_QCA_GET_TSF_VIA_REG) += -DQCA_GET_TSF_VIA_REG
4274*5113495bSYour Nameccflags-$(CONFIG_DP_TX_COMP_RING_DESC_SANITY_CHECK) += -DDP_TX_COMP_RING_DESC_SANITY_CHECK
4275*5113495bSYour Nameccflags-$(CONFIG_HAL_SRNG_REG_HIS_DEBUG) += -DHAL_SRNG_REG_HIS_DEBUG
4276*5113495bSYour Nameccflags-$(CONFIG_DP_MLO_LINK_STATS_SUPPORT) += -DDP_MLO_LINK_STATS_SUPPORT
4277*5113495bSYour Name
4278*5113495bSYour Nameccflags-$(CONFIG_RX_HASH_DEBUG) += -DRX_HASH_DEBUG
4279*5113495bSYour Nameccflags-$(CONFIG_DP_PKT_STATS_PER_LMAC) += -DDP_PKT_STATS_PER_LMAC
4280*5113495bSYour Nameccflags-$(CONFIG_NO_RX_PKT_HDR_TLV) += -DNO_RX_PKT_HDR_TLV
4281*5113495bSYour Nameccflags-$(CONFIG_DP_TX_PACKET_INSPECT_FOR_ILP) += -DDP_TX_PACKET_INSPECT_FOR_ILP
4282*5113495bSYour Name
4283*5113495bSYour Nameifeq ($(CONFIG_QCA6290_11AX), y)
4284*5113495bSYour Nameccflags-y += -DQCA_WIFI_QCA6290_11AX -DQCA_WIFI_QCA6290_11AX_MU_UL
4285*5113495bSYour Nameendif
4286*5113495bSYour Name
4287*5113495bSYour Nameccflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_AC_BASED_FLOW_CONTROL
4288*5113495bSYour Name
4289*5113495bSYour Name# Enable Low latency optimisation mode
4290*5113495bSYour Nameccflags-$(CONFIG_FEATURE_NO_DBS_INTRABAND_MCC_SUPPORT) += -DFEATURE_NO_DBS_INTRABAND_MCC_SUPPORT
4291*5113495bSYour Nameccflags-$(CONFIG_HAL_DISABLE_NON_BA_2K_JUMP_ERROR) += -DHAL_DISABLE_NON_BA_2K_JUMP_ERROR
4292*5113495bSYour Nameccflags-$(CONFIG_ENABLE_HAL_SOC_STATS) += -DENABLE_HAL_SOC_STATS
4293*5113495bSYour Nameccflags-$(CONFIG_ENABLE_HAL_REG_WR_HISTORY) += -DENABLE_HAL_REG_WR_HISTORY
4294*5113495bSYour Nameccflags-$(CONFIG_DP_RX_DESC_COOKIE_INVALIDATE) += -DDP_RX_DESC_COOKIE_INVALIDATE
4295*5113495bSYour Nameccflags-$(CONFIG_MON_ENABLE_DROP_FOR_MAC) += -DMON_ENABLE_DROP_FOR_MAC
4296*5113495bSYour Nameccflags-$(CONFIG_MON_ENABLE_DROP_FOR_NON_MON_PMAC) += -DMON_ENABLE_DROP_FOR_NON_MON_PMAC
4297*5113495bSYour Nameccflags-$(CONFIG_DP_WAR_INVALID_FIRST_MSDU_FLAG) += -DDP_WAR_INVALID_FIRST_MSDU_FLAG
4298*5113495bSYour Nameccflags-$(CONFIG_LITHIUM) += -DDISABLE_MON_RING_MSI_CFG
4299*5113495bSYour Nameccflags-$(CONFIG_LITHIUM) += -DFEATURE_IRQ_AFFINITY
4300*5113495bSYour Nameccflags-$(CONFIG_RHINE) += -DFEATURE_IRQ_AFFINITY
4301*5113495bSYour Nameccflags-$(CONFIG_RHINE) += -DWLAN_SOFTUMAC_SUPPORT
4302*5113495bSYour Nameccflags-$(CONFIG_BERYLLIUM) += -DFEATURE_IRQ_AFFINITY
4303*5113495bSYour Nameccflags-$(CONFIG_TX_MULTIQ_PER_AC) += -DTX_MULTIQ_PER_AC
4304*5113495bSYour Nameccflags-$(CONFIG_PCI_LINK_STATUS_SANITY) += -DPCI_LINK_STATUS_SANITY
4305*5113495bSYour Nameccflags-$(CONFIG_DDP_MON_RSSI_IN_DBM) += -DDP_MON_RSSI_IN_DBM
4306*5113495bSYour Nameccflags-$(CONFIG_SYSTEM_PM_CHECK) += -DSYSTEM_PM_CHECK
4307*5113495bSYour Nameccflags-$(CONFIG_DISABLE_EAPOL_INTRABSS_FWD) += -DDISABLE_EAPOL_INTRABSS_FWD
4308*5113495bSYour Nameccflags-$(CONFIG_TX_AGGREGATION_SIZE_ENABLE) += -DTX_AGGREGATION_SIZE_ENABLE
4309*5113495bSYour Nameccflags-$(CONFIG_TX_MULTI_TCL) += -DTX_MULTI_TCL
4310*5113495bSYour Nameccflags-$(CONFIG_WLAN_DP_DISABLE_TCL_CMD_CRED_SRNG) += -DWLAN_DP_DISABLE_TCL_CMD_CRED_SRNG
4311*5113495bSYour Nameccflags-$(CONFIG_WLAN_DP_DISABLE_TCL_STATUS_SRNG) += -DWLAN_DP_DISABLE_TCL_STATUS_SRNG
4312*5113495bSYour Nameccflags-$(CONFIG_DP_WAR_VALIDATE_RX_ERR_MSDU_COOKIE) += -DDP_WAR_VALIDATE_RX_ERR_MSDU_COOKIE
4313*5113495bSYour Nameccflags-$(CONFIG_WLAN_DP_SRNG_USAGE_WM_TRACKING) += -DWLAN_DP_SRNG_USAGE_WM_TRACKING
4314*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_DP_CFG_EVENT_HISTORY) += -DWLAN_FEATURE_DP_CFG_EVENT_HISTORY
4315*5113495bSYour Nameccflags-$(CONFIG_WLAN_DP_VDEV_NO_SELF_PEER) += -DWLAN_DP_VDEV_NO_SELF_PEER
4316*5113495bSYour Nameccflags-$(CONFIG_DP_RX_MSDU_DONE_FAIL_HISTORY) += -DDP_RX_MSDU_DONE_FAIL_HISTORY
4317*5113495bSYour Nameccflags-$(CONFIG_DP_RX_PEEK_MSDU_DONE_WAR) += -DDP_RX_PEEK_MSDU_DONE_WAR
4318*5113495bSYour Name
4319*5113495bSYour Name# Enable Low latency
4320*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_LL_MODE) += -DWLAN_FEATURE_LL_MODE
4321*5113495bSYour Name
4322*5113495bSYour Name# Enable PCI low power interrupt register configuration
4323*5113495bSYour Nameccflags-$(CONFIG_PCI_LOW_POWER_INT_REG) += -DCONFIG_PCI_LOW_POWER_INT_REG
4324*5113495bSYour Name
4325*5113495bSYour Nameccflags-$(CONFIG_WLAN_CLD_PM_QOS) += -DCLD_PM_QOS
4326*5113495bSYour Nameccflags-$(CONFIG_WLAN_CLD_DEV_PM_QOS) += -DCLD_DEV_PM_QOS
4327*5113495bSYour Nameccflags-$(CONFIG_REO_DESC_DEFER_FREE) += -DREO_DESC_DEFER_FREE
4328*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX
4329*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX_BSS_COLOR
4330*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_11AX) += -DSUPPORT_11AX_D3
4331*5113495bSYour Nameccflags-$(CONFIG_RXDMA_ERR_PKT_DROP) += -DRXDMA_ERR_PKT_DROP
4332*5113495bSYour Nameccflags-$(CONFIG_MAX_ALLOC_PAGE_SIZE) += -DMAX_ALLOC_PAGE_SIZE
4333*5113495bSYour Nameccflags-$(CONFIG_DELIVERY_TO_STACK_STATUS_CHECK) += -DDELIVERY_TO_STACK_STATUS_CHECK
4334*5113495bSYour Nameccflags-$(CONFIG_WLAN_TRACE_HIDE_MAC_ADDRESS) += -DWLAN_TRACE_HIDE_MAC_ADDRESS
4335*5113495bSYour Nameccflags-$(CONFIG_WLAN_TRACE_HIDE_SSID) += -DWLAN_TRACE_HIDE_SSID
4336*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_11BE) += -DWLAN_FEATURE_11BE
4337*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_11BE_MLO) += -DWLAN_FEATURE_11BE_MLO
4338*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_11BE_MLO) += -DWLAN_FEATURE_11BE_MLO_ADV_FEATURE
4339*5113495bSYour Nameccflags-$(CONFIG_WLAN_HDD_MULTI_VDEV_SINGLE_NDEV) += -DWLAN_HDD_MULTI_VDEV_SINGLE_NDEV
4340*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_11BE_MLO) += -DWLAN_SUPPORT_11BE_D3_0
4341*5113495bSYour Nameccflags-$(CONFIG_FIX_TXDMA_LIMITATION) += -DFIX_TXDMA_LIMITATION
4342*5113495bSYour Nameccflags-$(CONFIG_FEATURE_AST) += -DFEATURE_AST
4343*5113495bSYour Nameccflags-$(CONFIG_PEER_PROTECTED_ACCESS) += -DPEER_PROTECTED_ACCESS
4344*5113495bSYour Nameccflags-$(CONFIG_SERIALIZE_QUEUE_SETUP) += -DSERIALIZE_QUEUE_SETUP
4345*5113495bSYour Nameccflags-$(CONFIG_DP_RX_PKT_NO_PEER_DELIVER) += -DDP_RX_PKT_NO_PEER_DELIVER
4346*5113495bSYour Nameccflags-$(CONFIG_DP_RX_DROP_RAW_FRM) += -DDP_RX_DROP_RAW_FRM
4347*5113495bSYour Nameccflags-$(CONFIG_FEATURE_ALIGN_STATS_FROM_DP) += -DFEATURE_ALIGN_STATS_FROM_DP
4348*5113495bSYour Nameccflags-$(CONFIG_DP_RX_SPECIAL_FRAME_NEED) += -DDP_RX_SPECIAL_FRAME_NEED
4349*5113495bSYour Nameccflags-$(CONFIG_FEATURE_STATS_EXT_V2) += -DFEATURE_STATS_EXT_V2
4350*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_CAL_FAILURE_TRIGGER) += -DWLAN_FEATURE_CAL_FAILURE_TRIGGER
4351*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE) += -DWLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE
4352*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_SAP_ACS_OPTIMIZE) += -DWLAN_FEATURE_SAP_ACS_OPTIMIZE
4353*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_NO_STA_SAP_CONCURRENCY) += -DWLAN_FEATURE_NO_STA_SAP_CONCURRENCY
4354*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_NO_STA_NAN_CONCURRENCY) += -DWLAN_FEATURE_NO_STA_NAN_CONCURRENCY
4355*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_NO_P2P_CONCURRENCY) += -DWLAN_FEATURE_NO_P2P_CONCURRENCY
4356*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_NO_SAP_NAN_CONCURRENCY) += -DWLAN_FEATURE_NO_SAP_NAN_CONCURRENCY
4357*5113495bSYour Name
4358*5113495bSYour Nameccflags-$(CONFIG_VERBOSE_DEBUG) += -DENABLE_VERBOSE_DEBUG
4359*5113495bSYour Nameccflags-$(CONFIG_RX_DESC_DEBUG_CHECK) += -DRX_DESC_DEBUG_CHECK
4360*5113495bSYour Nameccflags-$(CONFIG_REGISTER_OP_DEBUG) += -DHAL_REGISTER_WRITE_DEBUG
4361*5113495bSYour Nameccflags-$(CONFIG_ENABLE_QDF_PTR_HASH_DEBUG) += -DENABLE_QDF_PTR_HASH_DEBUG
4362*5113495bSYour Name#Enable STATE MACHINE HISTORY
4363*5113495bSYour Nameccflags-$(CONFIG_SM_ENG_HIST) += -DSM_ENG_HIST_ENABLE
4364*5113495bSYour Nameccflags-$(CONFIG_FEATURE_VDEV_OPS_WAKELOCK) += -DFEATURE_VDEV_OPS_WAKELOCK
4365*5113495bSYour Name
4366*5113495bSYour Name# Vendor Commands
4367*5113495bSYour Nameccflags-$(CONFIG_FEATURE_RSSI_MONITOR) += -DFEATURE_RSSI_MONITOR
4368*5113495bSYour Nameccflags-$(CONFIG_FEATURE_BSS_TRANSITION) += -DFEATURE_BSS_TRANSITION
4369*5113495bSYour Nameccflags-$(CONFIG_FEATURE_STATION_INFO) += -DFEATURE_STATION_INFO
4370*5113495bSYour Nameccflags-$(CONFIG_FEATURE_TX_POWER) += -DFEATURE_TX_POWER
4371*5113495bSYour Nameccflags-$(CONFIG_FEATURE_OTA_TEST) += -DFEATURE_OTA_TEST
4372*5113495bSYour Nameccflags-$(CONFIG_FEATURE_ACTIVE_TOS) += -DFEATURE_ACTIVE_TOS
4373*5113495bSYour Nameccflags-$(CONFIG_FEATURE_SAR_LIMITS) += -DFEATURE_SAR_LIMITS
4374*5113495bSYour Nameccflags-$(CONFIG_FEATURE_CONCURRENCY_MATRIX) += -DFEATURE_CONCURRENCY_MATRIX
4375*5113495bSYour Nameccflags-$(CONFIG_FEATURE_SAP_COND_CHAN_SWITCH) += -DFEATURE_SAP_COND_CHAN_SWITCH
4376*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WLAN_CH_AVOID_EXT) += -DFEATURE_WLAN_CH_AVOID_EXT
4377*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_MDNS_OFFLOAD) += -DWLAN_FEATURE_MDNS_OFFLOAD
4378*5113495bSYour Name
4379*5113495bSYour Name#if converged p2p is enabled
4380*5113495bSYour Nameifeq ($(CONFIG_CONVERGED_P2P_ENABLE), y)
4381*5113495bSYour Nameccflags-$(CONFIG_FEATURE_P2P_LISTEN_OFFLOAD) += -DFEATURE_P2P_LISTEN_OFFLOAD
4382*5113495bSYour Nameendif
4383*5113495bSYour Name
4384*5113495bSYour Name#Enable support to get ANI value
4385*5113495bSYour Nameifeq ($(CONFIG_ANI_LEVEL_REQUEST), y)
4386*5113495bSYour Nameccflags-y += -DFEATURE_ANI_LEVEL_REQUEST
4387*5113495bSYour Nameendif
4388*5113495bSYour Name
4389*5113495bSYour Name#Flags to enable/disable WMI APIs
4390*5113495bSYour Nameccflags-$(CONFIG_WMI_ROAM_SUPPORT) += -DWMI_ROAM_SUPPORT
4391*5113495bSYour Nameccflags-$(CONFIG_WMI_CONCURRENCY_SUPPORT) += -DWMI_CONCURRENCY_SUPPORT
4392*5113495bSYour Nameccflags-$(CONFIG_WMI_STA_SUPPORT) += -DWMI_STA_SUPPORT
4393*5113495bSYour Name
4394*5113495bSYour Nameifdef CONFIG_HIF_LARGE_CE_RING_HISTORY
4395*5113495bSYour Nameccflags-y += -DHIF_CE_HISTORY_MAX=$(CONFIG_HIF_LARGE_CE_RING_HISTORY)
4396*5113495bSYour Nameendif
4397*5113495bSYour Name
4398*5113495bSYour Nameccflags-$(CONFIG_WLAN_HANG_EVENT) += -DHIF_CE_LOG_INFO
4399*5113495bSYour Nameccflags-$(CONFIG_WLAN_HANG_EVENT) += -DHIF_BUS_LOG_INFO
4400*5113495bSYour Nameccflags-$(CONFIG_WLAN_HANG_EVENT) += -DDP_SUPPORT_RECOVERY_NOTIFY
4401*5113495bSYour Name
4402*5113495bSYour Nameccflags-$(CONFIG_ENABLE_SIZE_OPTIMIZE) += -Os
4403*5113495bSYour Name
4404*5113495bSYour Name# DFS component
4405*5113495bSYour Nameccflags-$(CONFIG_WLAN_DFS_STATIC_MEM_ALLOC) += -DWLAN_DFS_STATIC_MEM_ALLOC
4406*5113495bSYour Nameccflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DMOBILE_DFS_SUPPORT
4407*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y)
4408*5113495bSYour Nameccflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_FULL_OFFLOAD
4409*5113495bSYour Nameelse
4410*5113495bSYour Nameccflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_PARTIAL_OFFLOAD
4411*5113495bSYour Nameendif
4412*5113495bSYour Nameccflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DDFS_COMPONENT_ENABLE
4413*5113495bSYour Nameccflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_USE_POLICY_MANAGER
4414*5113495bSYour Nameccflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_NOL_PLATFORM_DRV_SUPPORT
4415*5113495bSYour Nameccflags-$(CONFIG_QCA_DFS_BW_PUNCTURE) += -DQCA_DFS_BW_PUNCTURE
4416*5113495bSYour Name
4417*5113495bSYour Nameccflags-$(CONFIG_WLAN_DEBUGFS) += -DWLAN_DEBUGFS
4418*5113495bSYour Nameccflags-$(CONFIG_WLAN_DEBUGFS) += -DWLAN_DBGLOG_DEBUGFS
4419*5113495bSYour Nameccflags-$(CONFIG_WLAN_STREAMFS) += -DWLAN_STREAMFS
4420*5113495bSYour Name
4421*5113495bSYour Nameccflags-$(CONFIG_DYNAMIC_DEBUG) += -DFEATURE_MULTICAST_HOST_FW_MSGS
4422*5113495bSYour Name
4423*5113495bSYour Nameccflags-$(CONFIG_ENABLE_SMMU_S1_TRANSLATION) += -DENABLE_SMMU_S1_TRANSLATION
4424*5113495bSYour Name
4425*5113495bSYour Name#Flag to enable/disable Line number logging
4426*5113495bSYour Nameccflags-$(CONFIG_LOG_LINE_NUMBER) += -DLOG_LINE_NUMBER
4427*5113495bSYour Name
4428*5113495bSYour Name#Flag to enable/disable MTRACE feature
4429*5113495bSYour Nameccflags-$(CONFIG_ENABLE_MTRACE_LOG) += -DENABLE_MTRACE_LOG
4430*5113495bSYour Name
4431*5113495bSYour Nameccflags-$(CONFIG_FUNC_CALL_MAP) += -DFUNC_CALL_MAP
4432*5113495bSYour Name
4433*5113495bSYour Name#Flag to enable/disable Adaptive 11r feature
4434*5113495bSYour Nameccflags-$(CONFIG_ADAPTIVE_11R) += -DWLAN_ADAPTIVE_11R
4435*5113495bSYour Name
4436*5113495bSYour Name#Flag to enable/disable sae single pmk feature feature
4437*5113495bSYour Nameccflags-$(CONFIG_SAE_SINGLE_PMK) += -DWLAN_SAE_SINGLE_PMK
4438*5113495bSYour Name
4439*5113495bSYour Name#Flag to enable/disable multi client low latency feature support
4440*5113495bSYour Nameccflags-$(CONFIG_MULTI_CLIENT_LL_SUPPORT) += -DMULTI_CLIENT_LL_SUPPORT
4441*5113495bSYour Name
4442*5113495bSYour Name#Flag to enable/disable vendor handoff control feature support
4443*5113495bSYour Nameccflags-$(CONFIG_WLAN_VENDOR_HANDOFF_CONTROL) += -DWLAN_VENDOR_HANDOFF_CONTROL
4444*5113495bSYour Name
4445*5113495bSYour Name#Flag to enable/disable mscs feature
4446*5113495bSYour Nameccflags-$(CONFIG_FEATURE_MSCS) += -DWLAN_FEATURE_MSCS
4447*5113495bSYour Name
4448*5113495bSYour Name#Flag to enable NUD tracking
4449*5113495bSYour Nameccflags-$(CONFIG_WLAN_NUD_TRACKING) += -DWLAN_NUD_TRACKING
4450*5113495bSYour Name
4451*5113495bSYour Name#Flag to enable set and get disable channel list feature
4452*5113495bSYour Nameccflags-$(CONFIG_DISABLE_CHANNEL_LIST) += -DDISABLE_CHANNEL_LIST
4453*5113495bSYour Name
4454*5113495bSYour Name#Flag to enable/disable WIPS feature
4455*5113495bSYour Nameccflags-$(CONFIG_WLAN_BCN_RECV_FEATURE) += -DWLAN_BCN_RECV_FEATURE
4456*5113495bSYour Name
4457*5113495bSYour Name#Flag to enable/disable thermal mitigation
4458*5113495bSYour Nameccflags-$(CONFIG_FW_THERMAL_THROTTLE) += -DFW_THERMAL_THROTTLE
4459*5113495bSYour Name
4460*5113495bSYour Name#Flag to enable/disable LTE COEX support
4461*5113495bSYour Nameccflags-$(CONFIG_LTE_COEX) += -DLTE_COEX
4462*5113495bSYour Name
4463*5113495bSYour Name#Flag to enable/disable HOST_OPCLASS
4464*5113495bSYour Nameccflags-$(CONFIG_HOST_OPCLASS) += -DHOST_OPCLASS
4465*5113495bSYour Nameccflags-$(CONFIG_HOST_OPCLASS) += -DHOST_OPCLASS_EXT
4466*5113495bSYour Name
4467*5113495bSYour Name#Flag to enable/disable TARGET_11D_SCAN
4468*5113495bSYour Nameccflags-$(CONFIG_TARGET_11D_SCAN) += -DTARGET_11D_SCAN
4469*5113495bSYour Name
4470*5113495bSYour Name#Flag to enable/disable avoid acs frequency list feature
4471*5113495bSYour Nameccflags-$(CONFIG_SAP_AVOID_ACS_FREQ_LIST) += -DSAP_AVOID_ACS_FREQ_LIST
4472*5113495bSYour Name
4473*5113495bSYour Name#Flag to enable Dynamic Voltage WDCVS (Config Voltage Mode)
4474*5113495bSYour Nameccflags-$(CONFIG_WLAN_DYNAMIC_CVM) += -DFEATURE_WLAN_DYNAMIC_CVM
4475*5113495bSYour Name
4476*5113495bSYour Name#Flag to enable get firmware state feature
4477*5113495bSYour Nameccflags-$(CONFIG_QCACLD_FEATURE_FW_STATE) += -DFEATURE_FW_STATE
4478*5113495bSYour Name
4479*5113495bSYour Name#Flag to enable set coex configuration feature
4480*5113495bSYour Nameccflags-$(CONFIG_QCACLD_FEATURE_COEX_CONFIG) += -DFEATURE_COEX_CONFIG
4481*5113495bSYour Name
4482*5113495bSYour Name#Flag to enable MPTA helper feature
4483*5113495bSYour Nameccflags-$(CONFIG_QCACLD_FEATURE_MPTA_HELPER) += -DFEATURE_MPTA_HELPER
4484*5113495bSYour Name
4485*5113495bSYour Name#Flag to enable get hw capability
4486*5113495bSYour Nameccflags-$(CONFIG_QCACLD_FEATURE_HW_CAPABILITY) += -DFEATURE_HW_CAPABILITY
4487*5113495bSYour Name
4488*5113495bSYour Name#Flag to enable set btc chain mode feature
4489*5113495bSYour Nameccflags-$(CONFIG_QCACLD_FEATURE_BTC_CHAIN_MODE) += -DFEATURE_BTC_CHAIN_MODE
4490*5113495bSYour Name
4491*5113495bSYour Nameccflags-$(CONFIG_DATA_CE_SW_INDEX_NO_INLINE_UPDATE) += -DDATA_CE_SW_INDEX_NO_INLINE_UPDATE
4492*5113495bSYour Name
4493*5113495bSYour Name#Flag to enable Multi page memory allocation for RX descriptor pool
4494*5113495bSYour Nameccflags-$(CONFIG_QCACLD_RX_DESC_MULTI_PAGE_ALLOC) += -DRX_DESC_MULTI_PAGE_ALLOC
4495*5113495bSYour Name
4496*5113495bSYour Name#Flag to enable SAR Safety Feature
4497*5113495bSYour Nameccflags-$(CONFIG_SAR_SAFETY_FEATURE) += -DSAR_SAFETY_FEATURE
4498*5113495bSYour Name
4499*5113495bSYour Nameccflags-$(CONFIG_CONNECTION_ROAMING_CFG) += -DCONNECTION_ROAMING_CFG
4500*5113495bSYour Nameccflags-$(CONFIG_FEATURE_SET) += -DFEATURE_SET
4501*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_LL_LT_SAP) += -DWLAN_FEATURE_LL_LT_SAP
4502*5113495bSYour Name
4503*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_NEAR_FULL_IRQ) += -DWLAN_FEATURE_NEAR_FULL_IRQ
4504*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_DP_EVENT_HISTORY) += -DWLAN_FEATURE_DP_EVENT_HISTORY
4505*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_DP_RX_RING_HISTORY) += -DWLAN_FEATURE_DP_RX_RING_HISTORY
4506*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_DP_MON_STATUS_RING_HISTORY) += -DWLAN_FEATURE_DP_MON_STATUS_RING_HISTORY
4507*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_DP_TX_DESC_HISTORY) += -DWLAN_FEATURE_DP_TX_DESC_HISTORY
4508*5113495bSYour Nameccflags-$(CONFIG_REO_QDESC_HISTORY) += -DREO_QDESC_HISTORY
4509*5113495bSYour Nameccflags-$(CONFIG_DP_TX_HW_DESC_HISTORY) += -DDP_TX_HW_DESC_HISTORY
4510*5113495bSYour Nameifdef CONFIG_QDF_NBUF_HISTORY_SIZE
4511*5113495bSYour Nameccflags-y += -DQDF_NBUF_HISTORY_SIZE=$(CONFIG_QDF_NBUF_HISTORY_SIZE)
4512*5113495bSYour Nameendif
4513*5113495bSYour Nameccflags-$(CONFIG_WLAN_DP_PER_RING_TYPE_CONFIG) += -DWLAN_DP_PER_RING_TYPE_CONFIG
4514*5113495bSYour Nameccflags-$(CONFIG_WLAN_CE_INTERRUPT_THRESHOLD_CONFIG) += -DWLAN_CE_INTERRUPT_THRESHOLD_CONFIG
4515*5113495bSYour Nameccflags-$(CONFIG_SAP_DHCP_FW_IND) += -DSAP_DHCP_FW_IND
4516*5113495bSYour Nameccflags-$(CONFIG_WLAN_DP_PENDING_MEM_FLUSH) += -DWLAN_DP_PENDING_MEM_FLUSH
4517*5113495bSYour Nameccflags-$(CONFIG_WLAN_SUPPORT_DATA_STALL) += -DWLAN_SUPPORT_DATA_STALL
4518*5113495bSYour Nameccflags-$(CONFIG_WLAN_SUPPORT_TXRX_HL_BUNDLE) += -DWLAN_SUPPORT_TXRX_HL_BUNDLE
4519*5113495bSYour Nameccflags-$(CONFIG_QCN7605_PCIE_SHADOW_REG_SUPPORT) += -DQCN7605_PCIE_SHADOW_REG_SUPPORT
4520*5113495bSYour Nameccflags-$(CONFIG_QCN7605_PCIE_GOLBAL_RESET_SUPPORT) += -DQCN7605_PCIE_GOLBAL_RESET_SUPPORT
4521*5113495bSYour Nameccflags-$(CONFIG_MARK_ICMP_REQ_TO_FW) += -DWLAN_DP_FEATURE_MARK_ICMP_REQ_TO_FW
4522*5113495bSYour Nameccflags-$(CONFIG_EMULATION_2_0) += -DCONFIG_KIWI_EMULATION_2_0
4523*5113495bSYour Nameccflags-$(CONFIG_WORD_BASED_TLV) += -DCONFIG_WORD_BASED_TLV
4524*5113495bSYour Nameccflags-$(CONFIG_4_BYTES_TLV_TAG) += -DCONFIG_4_BYTES_TLV_TAG
4525*5113495bSYour Nameccflags-$(CONFIG_WLAN_SKIP_BAR_UPDATE) += -DWLAN_SKIP_BAR_UPDATE
4526*5113495bSYour Nameccflags-$(CONFIG_WLAN_TRACEPOINTS) += -DWLAN_TRACEPOINTS
4527*5113495bSYour Name
4528*5113495bSYour Nameccflags-$(CONFIG_QCACLD_FEATURE_SON) += -DFEATURE_PERPKT_INFO
4529*5113495bSYour Nameccflags-$(CONFIG_QCACLD_FEATURE_SON) += -DQCA_ENHANCED_STATS_SUPPORT
4530*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_CE_RX_BUFFER_REUSE) += -DWLAN_FEATURE_CE_RX_BUFFER_REUSE
4531*5113495bSYour Name
4532*5113495bSYour NameCONFIG_NUM_SOC_PERF_CLUSTER ?= 1
4533*5113495bSYour Nameccflags-y += -DNUM_SOC_PERF_CLUSTER=$(CONFIG_NUM_SOC_PERF_CLUSTER)
4534*5113495bSYour Name
4535*5113495bSYour Nameifeq ($(CONFIG_QMI_COMPONENT_ENABLE), y)
4536*5113495bSYour Nameccflags-y += -DQMI_COMPONENT_ENABLE
4537*5113495bSYour Nameifeq ($(CONFIG_QMI_WFDS), y)
4538*5113495bSYour Nameccflags-y += -DQMI_WFDS
4539*5113495bSYour Nameendif
4540*5113495bSYour Nameendif
4541*5113495bSYour Name
4542*5113495bSYour Nameifdef CONFIG_MAX_LOGS_PER_SEC
4543*5113495bSYour Nameccflags-y += -DWLAN_MAX_LOGS_PER_SEC=$(CONFIG_MAX_LOGS_PER_SEC)
4544*5113495bSYour Nameendif
4545*5113495bSYour Name
4546*5113495bSYour Nameifeq ($(CONFIG_NON_QC_PLATFORM), y)
4547*5113495bSYour Nameccflags-y += -DWLAN_DUMP_LOG_BUF_CNT=$(CONFIG_DUMP_LOG_BUF_CNT)
4548*5113495bSYour Nameendif
4549*5113495bSYour Name
4550*5113495bSYour Nameifdef CONFIG_SCHED_HISTORY_SIZE
4551*5113495bSYour Nameccflags-y += -DWLAN_SCHED_HISTORY_SIZE=$(CONFIG_SCHED_HISTORY_SIZE)
4552*5113495bSYour Nameendif
4553*5113495bSYour Name
4554*5113495bSYour Nameifdef CONFIG_QDF_TIMER_MULTIPLIER_FRAC
4555*5113495bSYour Nameccflags-y += -DQDF_TIMER_MULTIPLIER_FRAC=$(CONFIG_QDF_TIMER_MULTIPLIER_FRAC)
4556*5113495bSYour Nameendif
4557*5113495bSYour Name
4558*5113495bSYour Nameifdef CONFIG_DP_LEGACY_MODE_CSM_DEFAULT_DISABLE
4559*5113495bSYour Nameccflags-y += -DDP_LEGACY_MODE_CSM_DEFAULT_DISABLE=$(CONFIG_DP_LEGACY_MODE_CSM_DEFAULT_DISABLE)
4560*5113495bSYour Nameendif
4561*5113495bSYour Name
4562*5113495bSYour Nameifdef CONFIG_HANDLE_RX_REROUTE_ERR
4563*5113495bSYour Nameccflags-y += -DHANDLE_RX_REROUTE_ERR
4564*5113495bSYour Nameendif
4565*5113495bSYour Name
4566*5113495bSYour Name# configure log buffer size
4567*5113495bSYour Nameifdef CONFIG_CFG_NUM_DP_TRACE_RECORD
4568*5113495bSYour Nameccflags-y += -DMAX_QDF_DP_TRACE_RECORDS=$(CONFIG_CFG_NUM_DP_TRACE_RECORD)
4569*5113495bSYour Nameendif
4570*5113495bSYour Name
4571*5113495bSYour Nameifdef CONFIG_CFG_NUM_HTC_CREDIT_HISTORY
4572*5113495bSYour Nameccflags-y += -DHTC_CREDIT_HISTORY_MAX=$(CONFIG_CFG_NUM_HTC_CREDIT_HISTORY)
4573*5113495bSYour Nameendif
4574*5113495bSYour Name
4575*5113495bSYour Nameifdef CONFIG_CFG_NUM_WMI_EVENT_HISTORY
4576*5113495bSYour Nameccflags-y += -DWMI_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_EVENT_HISTORY)
4577*5113495bSYour Nameendif
4578*5113495bSYour Name
4579*5113495bSYour Nameifdef CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY
4580*5113495bSYour Nameccflags-y += -DWMI_MGMT_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY)
4581*5113495bSYour Nameendif
4582*5113495bSYour Name
4583*5113495bSYour Nameifdef CONFIG_CFG_NUM_TX_RX_HISTOGRAM
4584*5113495bSYour Nameccflags-y += -DNUM_TX_RX_HISTOGRAM=$(CONFIG_CFG_NUM_TX_RX_HISTOGRAM)
4585*5113495bSYour Nameendif
4586*5113495bSYour Name
4587*5113495bSYour Nameifdef CONFIG_CFG_NUM_RX_IND_RECORD
4588*5113495bSYour Nameccflags-y += -DOL_RX_INDICATION_MAX_RECORDS=$(CONFIG_CFG_NUM_RX_IND_RECORD)
4589*5113495bSYour Nameendif
4590*5113495bSYour Name
4591*5113495bSYour Nameifdef CONFIG_CFG_NUM_ROAM_DEBUG_RECORD
4592*5113495bSYour Nameccflags-y += -DWLAN_ROAM_DEBUG_MAX_REC=$(CONFIG_CFG_NUM_ROAM_DEBUG_RECORD)
4593*5113495bSYour Nameendif
4594*5113495bSYour Name
4595*5113495bSYour Nameifdef CONFIG_CFG_PMO_WOW_FILTERS_MAX
4596*5113495bSYour Nameccflags-y += -DPMO_WOW_FILTERS_MAX=$(CONFIG_CFG_PMO_WOW_FILTERS_MAX)
4597*5113495bSYour Nameendif
4598*5113495bSYour Name
4599*5113495bSYour Nameifdef CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV
4600*5113495bSYour Nameccflags-y += -DCFG_TGT_DEFAULT_GTK_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV)
4601*5113495bSYour Nameendif
4602*5113495bSYour Name
4603*5113495bSYour Nameifdef CONFIG_TGT_NUM_MSDU_DESC
4604*5113495bSYour Nameccflags-y += -DCFG_TGT_NUM_MSDU_DESC=$(CONFIG_TGT_NUM_MSDU_DESC)
4605*5113495bSYour Nameendif
4606*5113495bSYour Name
4607*5113495bSYour Nameifdef CONFIG_HTC_MAX_MSG_PER_BUNDLE_TX
4608*5113495bSYour Nameccflags-y += -DCFG_HTC_MAX_MSG_PER_BUNDLE_TX=$(CONFIG_HTC_MAX_MSG_PER_BUNDLE_TX)
4609*5113495bSYour Nameendif
4610*5113495bSYour Name
4611*5113495bSYour Nameifdef CONFIG_CFG_BMISS_OFFLOAD_MAX_VDEV
4612*5113495bSYour Nameccflags-y += -DCFG_TGT_DEFAULT_BMISS_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_BMISS_OFFLOAD_MAX_VDEV)
4613*5113495bSYour Nameendif
4614*5113495bSYour Name
4615*5113495bSYour Nameifdef CONFIG_WLAN_UMAC_MLO_MAX_DEV
4616*5113495bSYour Nameccflags-y += -DWLAN_UMAC_MLO_MAX_DEV=$(CONFIG_WLAN_UMAC_MLO_MAX_DEV)
4617*5113495bSYour Nameendif
4618*5113495bSYour Name
4619*5113495bSYour Nameifdef CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV
4620*5113495bSYour Nameccflags-y += -DCFG_TGT_DEFAULT_ROAM_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV)
4621*5113495bSYour Nameendif
4622*5113495bSYour Name
4623*5113495bSYour Nameifdef CONFIG_CFG_MAX_PERIODIC_TX_PTRNS
4624*5113495bSYour Nameccflags-y += -DMAXNUM_PERIODIC_TX_PTRNS=$(CONFIG_CFG_MAX_PERIODIC_TX_PTRNS)
4625*5113495bSYour Nameendif
4626*5113495bSYour Name
4627*5113495bSYour Nameifdef CONFIG_CFG_MAX_STA_VDEVS
4628*5113495bSYour Nameccflags-y += -DCFG_TGT_DEFAULT_MAX_STA_VDEVS=$(CONFIG_CFG_MAX_STA_VDEVS)
4629*5113495bSYour Nameendif
4630*5113495bSYour Name
4631*5113495bSYour Nameifdef CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS
4632*5113495bSYour Nameccflags-y += -DNUM_OF_ADDITIONAL_FW_PEERS=$(CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS)
4633*5113495bSYour Nameendif
4634*5113495bSYour Name
4635*5113495bSYour Nameifdef CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES
4636*5113495bSYour Nameccflags-y += -DCFG_TGT_NUM_TDLS_CONN_TABLE_ENTRIES=$(CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES)
4637*5113495bSYour Nameendif
4638*5113495bSYour Name
4639*5113495bSYour Nameifdef CONFIG_CFG_TGT_AST_SKID_LIMIT
4640*5113495bSYour Nameccflags-y += -DCFG_TGT_AST_SKID_LIMIT=$(CONFIG_CFG_TGT_AST_SKID_LIMIT)
4641*5113495bSYour Nameendif
4642*5113495bSYour Name
4643*5113495bSYour Nameifdef CONFIG_TX_RESOURCE_HIGH_TH_IN_PER
4644*5113495bSYour Nameccflags-y += -DTX_RESOURCE_HIGH_TH_IN_PER=$(CONFIG_TX_RESOURCE_HIGH_TH_IN_PER)
4645*5113495bSYour Nameendif
4646*5113495bSYour Name
4647*5113495bSYour Nameifdef CONFIG_TX_RESOURCE_LOW_TH_IN_PER
4648*5113495bSYour Nameccflags-y += -DTX_RESOURCE_LOW_TH_IN_PER=$(CONFIG_TX_RESOURCE_LOW_TH_IN_PER)
4649*5113495bSYour Nameendif
4650*5113495bSYour Name
4651*5113495bSYour NameCONFIG_WLAN_MAX_PSOCS ?= 1
4652*5113495bSYour Nameccflags-y += -DWLAN_MAX_PSOCS=$(CONFIG_WLAN_MAX_PSOCS)
4653*5113495bSYour Name
4654*5113495bSYour NameCONFIG_WLAN_MAX_PDEVS ?= 1
4655*5113495bSYour Nameccflags-y += -DWLAN_MAX_PDEVS=$(CONFIG_WLAN_MAX_PDEVS)
4656*5113495bSYour Name
4657*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_11BE_MLO), y)
4658*5113495bSYour NameCONFIG_WLAN_MAX_ML_VDEVS ?= 3
4659*5113495bSYour Nameelse
4660*5113495bSYour NameCONFIG_WLAN_MAX_ML_VDEVS ?= 0
4661*5113495bSYour Nameendif
4662*5113495bSYour Nameccflags-y += -DWLAN_MAX_ML_VDEVS=$(CONFIG_WLAN_MAX_ML_VDEVS)
4663*5113495bSYour Name
4664*5113495bSYour NameCONFIG_WLAN_MAX_VDEVS ?= 6
4665*5113495bSYour Nameccflags-y += -DWLAN_MAX_VDEVS=$(CONFIG_WLAN_MAX_VDEVS)
4666*5113495bSYour Name
4667*5113495bSYour Nameifdef CONFIG_WLAN_FEATURE_11BE_MLO
4668*5113495bSYour NameCONFIG_WLAN_MAX_MLD ?= 2
4669*5113495bSYour Nameelse
4670*5113495bSYour NameCONFIG_WLAN_MAX_MLD ?= 1
4671*5113495bSYour Nameendif
4672*5113495bSYour Nameccflags-y += -DWLAN_MAX_MLD=$(CONFIG_WLAN_MAX_MLD)
4673*5113495bSYour Name
4674*5113495bSYour Nameifdef CONFIG_WLAN_FEATURE_11BE_MLO
4675*5113495bSYour NameCONFIG_WLAN_MAX_ML_DEFAULT_LINK ?= 2
4676*5113495bSYour Nameelse
4677*5113495bSYour NameCONFIG_WLAN_MAX_ML_DEFAULT_LINK  ?= 1
4678*5113495bSYour Nameendif
4679*5113495bSYour Nameccflags-y += -DWLAN_MAX_ML_DEFAULT_LINK=$(CONFIG_WLAN_MAX_ML_DEFAULT_LINK)
4680*5113495bSYour Name
4681*5113495bSYour Nameifdef CONFIG_WLAN_FEATURE_11BE_MLO
4682*5113495bSYour Nameifndef CONFIG_WLAN_DEFAULT_REC_LINK_VALUE
4683*5113495bSYour NameCONFIG_WLAN_DEFAULT_REC_LINK_VALUE  ?= 2
4684*5113495bSYour Nameendif
4685*5113495bSYour Nameelse
4686*5113495bSYour Nameifndef CONFIG_WLAN_DEFAULT_REC_LINK_VALUE
4687*5113495bSYour NameCONFIG_WLAN_DEFAULT_REC_LINK_VALUE  ?= 2
4688*5113495bSYour Nameendif
4689*5113495bSYour Nameendif
4690*5113495bSYour Nameccflags-y += -DWLAN_DEFAULT_REC_LINK_VALUE=$(CONFIG_WLAN_DEFAULT_REC_LINK_VALUE)
4691*5113495bSYour Name
4692*5113495bSYour Nameifdef CONFIG_WLAN_FEATURE_11BE_MLO
4693*5113495bSYour NameCONFIG_WLAN_MAX_ML_BSS_LINKS ?= 3
4694*5113495bSYour Nameelse
4695*5113495bSYour NameCONFIG_WLAN_MAX_ML_BSS_LINKS ?= 1
4696*5113495bSYour Nameendif
4697*5113495bSYour Nameccflags-y += -DWLAN_MAX_ML_BSS_LINKS=$(CONFIG_WLAN_MAX_ML_BSS_LINKS)
4698*5113495bSYour Name
4699*5113495bSYour Name#Maximum pending commands for a vdev is calculated in vdev create handler
4700*5113495bSYour Name#by WLAN_SER_MAX_PENDING_CMDS/WLAN_SER_MAX_VDEVS. For SAP case, we will need
4701*5113495bSYour Name#to accommodate 32 Pending commands to handle multiple STA sending
4702*5113495bSYour Name#deauth/disassoc at the same time and for STA vdev,4 non scan pending commands
4703*5113495bSYour Name#are supported. So calculate WLAN_SER_MAX_PENDING_COMMANDS based on the SAP
4704*5113495bSYour Name#modes supported and no of STA vdev total non scan pending queue. Reserve
4705*5113495bSYour Name#additional 3 pending commands for WLAN_SER_MAX_PENDING_CMDS_AP to account for
4706*5113495bSYour Name#other commands like hardware mode change.
4707*5113495bSYour Name
4708*5113495bSYour Nameifdef CONFIG_SIR_SAP_MAX_NUM_PEERS
4709*5113495bSYour NameCONFIG_WLAN_SER_MAX_PENDING_CMDS_AP ?=$(CONFIG_SIR_SAP_MAX_NUM_PEERS)
4710*5113495bSYour Nameelse
4711*5113495bSYour NameCONFIG_WLAN_SER_MAX_PENDING_CMDS_AP ?=32
4712*5113495bSYour Nameendif
4713*5113495bSYour Nameccflags-y += -DWLAN_SER_MAX_PENDING_CMDS_AP=$(CONFIG_WLAN_SER_MAX_PENDING_CMDS_AP)+3
4714*5113495bSYour Name
4715*5113495bSYour NameCONFIG_WLAN_SER_MAX_PENDING_CMDS_STA ?= 4
4716*5113495bSYour Nameccflags-y += -DWLAN_SER_MAX_PENDING_CMDS_STA=$(CONFIG_WLAN_SER_MAX_PENDING_CMDS_STA)
4717*5113495bSYour Name
4718*5113495bSYour NameCONFIG_WLAN_MAX_PENDING_CMDS ?= $(CONFIG_WLAN_SER_MAX_PENDING_CMDS_AP)*3+$(CONFIG_WLAN_SER_MAX_PENDING_CMDS_STA)*2
4719*5113495bSYour Name
4720*5113495bSYour Nameccflags-y += -DWLAN_SER_MAX_PENDING_CMDS=$(CONFIG_WLAN_MAX_PENDING_CMDS)
4721*5113495bSYour Name
4722*5113495bSYour NameCONFIG_WLAN_PDEV_MAX_VDEVS ?= $(CONFIG_WLAN_MAX_VDEVS)
4723*5113495bSYour Nameccflags-y += -DWLAN_PDEV_MAX_VDEVS=$(CONFIG_WLAN_PDEV_MAX_VDEVS)
4724*5113495bSYour Name
4725*5113495bSYour NameCONFIG_WLAN_PSOC_MAX_VDEVS ?= $(CONFIG_WLAN_MAX_VDEVS)
4726*5113495bSYour Nameccflags-y += -DWLAN_PSOC_MAX_VDEVS=$(CONFIG_WLAN_PSOC_MAX_VDEVS)
4727*5113495bSYour Name
4728*5113495bSYour NameCONFIG_MAX_SCAN_CACHE_SIZE ?= 500
4729*5113495bSYour Nameccflags-y += -DMAX_SCAN_CACHE_SIZE=$(CONFIG_MAX_SCAN_CACHE_SIZE)
4730*5113495bSYour NameCONFIG_SCAN_MAX_REST_TIME ?= 0
4731*5113495bSYour Nameccflags-y += -DSCAN_MAX_REST_TIME=$(CONFIG_SCAN_MAX_REST_TIME)
4732*5113495bSYour NameCONFIG_SCAN_MIN_REST_TIME ?= 0
4733*5113495bSYour Nameccflags-y += -DSCAN_MIN_REST_TIME=$(CONFIG_SCAN_MIN_REST_TIME)
4734*5113495bSYour NameCONFIG_SCAN_BURST_DURATION ?= 0
4735*5113495bSYour Nameccflags-y += -DSCAN_BURST_DURATION=$(CONFIG_SCAN_BURST_DURATION)
4736*5113495bSYour NameCONFIG_SCAN_PROBE_SPACING_TIME ?= 0
4737*5113495bSYour Nameccflags-y += -DSCAN_PROBE_SPACING_TIME=$(CONFIG_SCAN_PROBE_SPACING_TIME)
4738*5113495bSYour NameCONFIG_SCAN_PROBE_DELAY ?= 0
4739*5113495bSYour Nameccflags-y += -DSCAN_PROBE_DELAY=$(CONFIG_SCAN_PROBE_DELAY)
4740*5113495bSYour NameCONFIG_SCAN_MAX_SCAN_TIME ?= 30000
4741*5113495bSYour Nameccflags-y += -DSCAN_MAX_SCAN_TIME=$(CONFIG_SCAN_MAX_SCAN_TIME)
4742*5113495bSYour NameCONFIG_SCAN_NETWORK_IDLE_TIMEOUT ?= 0
4743*5113495bSYour Nameccflags-y += -DSCAN_NETWORK_IDLE_TIMEOUT=$(CONFIG_SCAN_NETWORK_IDLE_TIMEOUT)
4744*5113495bSYour NameCONFIG_HIDDEN_SSID_TIME ?= 0xFFFFFFFF
4745*5113495bSYour Nameccflags-y += -DHIDDEN_SSID_TIME=$(CONFIG_HIDDEN_SSID_TIME)
4746*5113495bSYour NameCONFIG_SCAN_CHAN_STATS_EVENT_ENAB ?= false
4747*5113495bSYour Nameccflags-y += -DSCAN_CHAN_STATS_EVENT_ENAB=$(CONFIG_SCAN_CHAN_STATS_EVENT_ENAB)
4748*5113495bSYour NameCONFIG_MAX_BCN_PROBE_IN_SCAN_QUEUE ?= 150
4749*5113495bSYour Nameccflags-y += -DMAX_BCN_PROBE_IN_SCAN_QUEUE=$(CONFIG_MAX_BCN_PROBE_IN_SCAN_QUEUE)
4750*5113495bSYour Name
4751*5113495bSYour Name#CONFIG_RX_DIAG_WQ_MAX_SIZE maximum number FW diag events that can be queued in
4752*5113495bSYour Name#FW diag events work queue. Host driver will discard the all diag events after
4753*5113495bSYour Name#this limit is reached.
4754*5113495bSYour Name#
4755*5113495bSYour Name# Value 0 represents no limit and any non zero value represents the maximum
4756*5113495bSYour Name# size of the work queue.
4757*5113495bSYour NameCONFIG_RX_DIAG_WQ_MAX_SIZE ?= 1000
4758*5113495bSYour Nameccflags-y += -DRX_DIAG_WQ_MAX_SIZE=$(CONFIG_RX_DIAG_WQ_MAX_SIZE)
4759*5113495bSYour Name
4760*5113495bSYour NameCONFIG_MGMT_DESC_POOL_MAX ?= 64
4761*5113495bSYour Nameccflags-y += -DMGMT_DESC_POOL_MAX=$(CONFIG_MGMT_DESC_POOL_MAX)
4762*5113495bSYour Name
4763*5113495bSYour Nameifdef CONFIG_SIR_SAP_MAX_NUM_PEERS
4764*5113495bSYour Nameccflags-y += -DSIR_SAP_MAX_NUM_PEERS=$(CONFIG_SIR_SAP_MAX_NUM_PEERS)
4765*5113495bSYour Nameendif
4766*5113495bSYour Name
4767*5113495bSYour Nameifdef CONFIG_BEACON_TX_OFFLOAD_MAX_VDEV
4768*5113495bSYour Nameccflags-y += -DCFG_TGT_DEFAULT_BEACON_TX_OFFLOAD_MAX_VDEV=$(CONFIG_BEACON_TX_OFFLOAD_MAX_VDEV)
4769*5113495bSYour Nameendif
4770*5113495bSYour Name
4771*5113495bSYour Nameifdef CONFIG_LIMIT_IPA_TX_BUFFER
4772*5113495bSYour Nameccflags-y += -DLIMIT_IPA_TX_BUFFER=$(CONFIG_LIMIT_IPA_TX_BUFFER)
4773*5113495bSYour Nameendif
4774*5113495bSYour Name
4775*5113495bSYour Nameifdef CONFIG_LOCK_STATS_ON
4776*5113495bSYour Nameccflags-y += -DQDF_LOCK_STATS=1
4777*5113495bSYour Nameccflags-y += -DQDF_LOCK_STATS_DESTROY_PRINT=0
4778*5113495bSYour Nameifneq ($(CONFIG_ARCH_SDXPRAIRIE), y)
4779*5113495bSYour Nameccflags-y += -DQDF_LOCK_STATS_BUG_ON=1
4780*5113495bSYour Nameendif
4781*5113495bSYour Nameccflags-$(CONFIG_VCPU_TIMESTOLEN) += -DVCPU_TIMESTOLEN
4782*5113495bSYour Nameccflags-y += -DQDF_LOCK_STATS_LIST=1
4783*5113495bSYour Nameccflags-y += -DQDF_LOCK_STATS_LIST_SIZE=256
4784*5113495bSYour Nameendif
4785*5113495bSYour Name
4786*5113495bSYour Nameifdef CONFIG_FW_THERMAL_THROTTLE
4787*5113495bSYour Nameccflags-y += -DFW_THERMAL_THROTTLE_SUPPORT
4788*5113495bSYour Nameendif
4789*5113495bSYour Name
4790*5113495bSYour Nameccflags-$(CONFIG_FEATURE_RX_LINKSPEED_ROAM_TRIGGER) += -DFEATURE_RX_LINKSPEED_ROAM_TRIGGER
4791*5113495bSYour Name#DP_RATETABLE_SUPPORT is enabled when CONFIG_FEATURE_RX_LINKSPEED_ROAM_TRIGGER is enabled
4792*5113495bSYour Nameccflags-$(CONFIG_FEATURE_RX_LINKSPEED_ROAM_TRIGGER) += -DDP_RATETABLE_SUPPORT
4793*5113495bSYour Name
4794*5113495bSYour Nameccflags-$(CONFIG_BAND_6GHZ) += -DCONFIG_BAND_6GHZ
4795*5113495bSYour Nameccflags-$(CONFIG_6G_SCAN_CHAN_SORT_ALGO) += -DFEATURE_6G_SCAN_CHAN_SORT_ALGO
4796*5113495bSYour Nameccflags-$(CONFIG_AFC_SUPPORT) += -DCONFIG_AFC_SUPPORT
4797*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_AFC_DCS_SKIP_ACS_RANGE) += -DWLAN_FEATURE_AFC_DCS_SKIP_ACS_RANGE
4798*5113495bSYour Name
4799*5113495bSYour Nameccflags-$(CONFIG_RX_FISA) += -DWLAN_SUPPORT_RX_FISA
4800*5113495bSYour Nameccflags-$(CONFIG_RX_FISA_HISTORY) += -DWLAN_SUPPORT_RX_FISA_HIST
4801*5113495bSYour Name
4802*5113495bSYour Nameccflags-$(CONFIG_DP_SWLM) += -DWLAN_DP_FEATURE_SW_LATENCY_MGR
4803*5113495bSYour Name
4804*5113495bSYour Nameccflags-$(CONFIG_RX_DEFRAG_DO_NOT_REINJECT) += -DRX_DEFRAG_DO_NOT_REINJECT
4805*5113495bSYour Name
4806*5113495bSYour Nameccflags-$(CONFIG_HANDLE_BC_EAP_TX_FRM) += -DHANDLE_BROADCAST_EAPOL_TX_FRAME
4807*5113495bSYour Name
4808*5113495bSYour Nameccflags-$(CONFIG_MORE_TX_DESC) += -DTX_TO_NPEERS_INC_TX_DESCS
4809*5113495bSYour Name
4810*5113495bSYour Nameccflags-$(CONFIG_HASTINGS_BT_WAR) += -DHASTINGS_BT_WAR
4811*5113495bSYour Name
4812*5113495bSYour Nameccflags-$(CONFIG_HIF_DEBUG) += -DHIF_CONFIG_SLUB_DEBUG_ON
4813*5113495bSYour Nameccflags-$(CONFIG_HAL_DEBUG) += -DHAL_CONFIG_SLUB_DEBUG_ON
4814*5113495bSYour Name
4815*5113495bSYour Nameccflags-$(CONFIG_FOURTH_CONNECTION) += -DFEATURE_FOURTH_CONNECTION
4816*5113495bSYour Nameccflags-$(CONFIG_FOURTH_CONNECTION_AUTO) += -DFOURTH_CONNECTION_AUTO
4817*5113495bSYour Nameccflags-$(CONFIG_WMI_SEND_RECV_QMI) += -DWLAN_FEATURE_WMI_SEND_RECV_QMI
4818*5113495bSYour Name
4819*5113495bSYour Nameccflags-$(CONFIG_WDI3_STATS_UPDATE) += -DWDI3_STATS_UPDATE
4820*5113495bSYour Nameccflags-$(CONFIG_WDI3_STATS_BW_MONITOR) += -DWDI3_STATS_BW_MONITOR
4821*5113495bSYour Name
4822*5113495bSYour Nameccflags-$(CONFIG_IPA_P2P_SUPPORT) += -DIPA_P2P_SUPPORT
4823*5113495bSYour Name
4824*5113495bSYour Nameccflags-$(CONFIG_WLAN_CUSTOM_DSCP_UP_MAP) += -DWLAN_CUSTOM_DSCP_UP_MAP
4825*5113495bSYour Nameccflags-$(CONFIG_WLAN_SEND_DSCP_UP_MAP_TO_FW) += -DWLAN_SEND_DSCP_UP_MAP_TO_FW
4826*5113495bSYour Name
4827*5113495bSYour Nameccflags-$(CONFIG_SMMU_S1_UNMAP) += -DCONFIG_SMMU_S1_UNMAP
4828*5113495bSYour Nameccflags-$(CONFIG_HIF_CPU_PERF_AFFINE_MASK) += -DHIF_CPU_PERF_AFFINE_MASK
4829*5113495bSYour Nameccflags-$(CONFIG_HIF_CPU_CLEAR_AFFINITY) += -DHIF_CPU_CLEAR_AFFINITY
4830*5113495bSYour Name
4831*5113495bSYour Nameccflags-$(CONFIG_GENERIC_SHADOW_REGISTER_ACCESS_ENABLE) += -DGENERIC_SHADOW_REGISTER_ACCESS_ENABLE
4832*5113495bSYour Nameccflags-$(CONFIG_IPA_SET_RESET_TX_DB_PA) += -DIPA_SET_RESET_TX_DB_PA
4833*5113495bSYour Nameccflags-$(CONFIG_DEVICE_FORCE_WAKE_ENABLE) += -DDEVICE_FORCE_WAKE_ENABLE
4834*5113495bSYour Nameccflags-$(CONFIG_WINDOW_REG_PLD_LOCK_ENABLE) += -DWINDOW_REG_PLD_LOCK_ENABLE
4835*5113495bSYour Nameccflags-$(CONFIG_DUMP_REO_QUEUE_INFO_IN_DDR) += -DDUMP_REO_QUEUE_INFO_IN_DDR
4836*5113495bSYour Nameccflags-$(CONFIG_DP_RX_REFILL_CPU_PERF_AFFINE_MASK) += -DDP_RX_REFILL_CPU_PERF_AFFINE_MASK
4837*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_AFFINITY_MGR) += -DWLAN_FEATURE_AFFINITY_MGR
4838*5113495bSYour Nameccflags-$(CONFIG_FEATURE_ENABLE_CE_DP_IRQ_AFFINE) += -DFEATURE_ENABLE_CE_DP_IRQ_AFFINE
4839*5113495bSYour Namefound = $(shell if grep -qF "walt_get_cpus_taken" $(srctree)/kernel/sched/walt/walt.c; then echo "yes" ;else echo "no" ;fi;)
4840*5113495bSYour Nameifeq ($(findstring yes, $(found)), yes)
4841*5113495bSYour Nameccflags-y += -DWALT_GET_CPU_TAKEN_SUPPORT
4842*5113495bSYour Nameendif
4843*5113495bSYour Name
4844*5113495bSYour Nameifdef CONFIG_MAX_CLIENTS_ALLOWED
4845*5113495bSYour Nameccflags-y += -DWLAN_MAX_CLIENTS_ALLOWED=$(CONFIG_MAX_CLIENTS_ALLOWED)
4846*5113495bSYour Nameendif
4847*5113495bSYour Name
4848*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_RX_BUFFER_POOL), y)
4849*5113495bSYour Nameccflags-y += -DWLAN_FEATURE_RX_PREALLOC_BUFFER_POOL
4850*5113495bSYour Nameifdef CONFIG_DP_RX_BUFFER_POOL_SIZE
4851*5113495bSYour Nameccflags-y += -DDP_RX_BUFFER_POOL_SIZE=$(CONFIG_DP_RX_BUFFER_POOL_SIZE)
4852*5113495bSYour Nameendif
4853*5113495bSYour Nameifdef CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES
4854*5113495bSYour Nameccflags-y += -DDP_RX_BUFFER_POOL_ALLOC_THRES=$(CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES)
4855*5113495bSYour Nameendif
4856*5113495bSYour Nameifdef CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE
4857*5113495bSYour Nameccflags-y += -DDP_RX_REFILL_BUFF_POOL_SIZE=$(CONFIG_DP_RX_REFILL_BUFF_POOL_SIZE)
4858*5113495bSYour Nameendif
4859*5113495bSYour Nameifdef CONFIG_DP_RX_REFILL_THRD_THRESHOLD
4860*5113495bSYour Nameccflags-y += -DDP_RX_REFILL_THRD_THRESHOLD=$(CONFIG_DP_RX_REFILL_THRD_THRESHOLD)
4861*5113495bSYour Nameendif
4862*5113495bSYour Nameendif
4863*5113495bSYour Name
4864*5113495bSYour Nameccflags-$(CONFIG_DP_FT_LOCK_HISTORY) += -DDP_FT_LOCK_HISTORY
4865*5113495bSYour Name
4866*5113495bSYour Nameccflags-$(CONFIG_INTRA_BSS_FWD_OFFLOAD) += -DINTRA_BSS_FWD_OFFLOAD
4867*5113495bSYour Nameccflags-$(CONFIG_GET_DRIVER_MODE) += -DFEATURE_GET_DRIVER_MODE
4868*5113495bSYour Name
4869*5113495bSYour Nameifeq ($(CONFIG_FEATURE_IPA_PIPE_CHANGE_WDI1), y)
4870*5113495bSYour Nameccflags-y += -DFEATURE_IPA_PIPE_CHANGE_WDI1
4871*5113495bSYour Nameendif
4872*5113495bSYour Name
4873*5113495bSYour Nameccflags-$(CONFIG_WLAN_BOOTUP_MARKER) += -DWLAN_BOOTUP_MARKER
4874*5113495bSYour Nameifdef CONFIG_WLAN_PLACEMARKER_PREFIX
4875*5113495bSYour Nameccflags-y += -DWLAN_PLACEMARKER_PREFIX=\"$(CONFIG_WLAN_PLACEMARKER_PREFIX)\"
4876*5113495bSYour Nameendif
4877*5113495bSYour Name
4878*5113495bSYour Nameccflags-$(CONFIG_FEATURE_STA_MODE_VOTE_LINK) += -DFEATURE_STA_MODE_VOTE_LINK
4879*5113495bSYour Nameccflags-$(CONFIG_WLAN_ENABLE_GPIO_WAKEUP) += -DWLAN_ENABLE_GPIO_WAKEUP
4880*5113495bSYour Nameccflags-$(CONFIG_WLAN_MAC_ADDR_UPDATE_DISABLE) += -DWLAN_MAC_ADDR_UPDATE_DISABLE
4881*5113495bSYour Name
4882*5113495bSYour Nameifeq ($(CONFIG_SMP), y)
4883*5113495bSYour Nameifeq ($(CONFIG_HIF_DETECTION_LATENCY_ENABLE), y)
4884*5113495bSYour Nameccflags-y += -DHIF_DETECTION_LATENCY_ENABLE
4885*5113495bSYour Nameccflags-y += -DDETECTION_TIMER_TIMEOUT=4000
4886*5113495bSYour Nameccflags-y += -DDETECTION_LATENCY_THRESHOLD=3900
4887*5113495bSYour Nameendif
4888*5113495bSYour Nameendif
4889*5113495bSYour Name
4890*5113495bSYour Name#Flags to enable/disable WDS specific features
4891*5113495bSYour Nameccflags-$(CONFIG_FEATURE_WDS) += -DFEATURE_WDS
4892*5113495bSYour Nameccflags-$(CONFIG_FEATURE_MEC) += -DFEATURE_MEC
4893*5113495bSYour Nameccflags-$(CONFIG_FEATURE_MCL_REPEATER) += -DFEATURE_MCL_REPEATER
4894*5113495bSYour Nameccflags-$(CONFIG_WDS_CONV_TARGET_IF_OPS_ENABLE) += -DWDS_CONV_TARGET_IF_OPS_ENABLE
4895*5113495bSYour Nameccflags-$(CONFIG_BYPASS_WDS_OL_OPS) += -DBYPASS_OL_OPS
4896*5113495bSYour Name
4897*5113495bSYour Nameccflags-$(CONFIG_IPA_WDI3_TX_TWO_PIPES) += -DIPA_WDI3_TX_TWO_PIPES
4898*5113495bSYour Name
4899*5113495bSYour Nameccflags-$(CONFIG_DP_TX_TRACKING) += -DDP_TX_TRACKING
4900*5113495bSYour Name
4901*5113495bSYour Nameifdef CONFIG_CHIP_VERSION
4902*5113495bSYour Nameccflags-y += -DCHIP_VERSION=$(CONFIG_CHIP_VERSION)
4903*5113495bSYour Nameendif
4904*5113495bSYour Name
4905*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_MARK_FIRST_WAKEUP_PACKET) += -DWLAN_FEATURE_MARK_FIRST_WAKEUP_PACKET
4906*5113495bSYour Name
4907*5113495bSYour Nameccflags-$(CONFIG_SHUTDOWN_WLAN_IN_SYSTEM_SUSPEND) += -DSHUTDOWN_WLAN_IN_SYSTEM_SUSPEND
4908*5113495bSYour Name
4909*5113495bSYour Nameifeq ($(CONFIG_WLAN_FEATURE_MCC_QUOTA), y)
4910*5113495bSYour Nameccflags-y += -DWLAN_FEATURE_MCC_QUOTA
4911*5113495bSYour Nameifdef CONFIG_WLAN_MCC_MIN_CHANNEL_QUOTA
4912*5113495bSYour Nameccflags-y += -DWLAN_MCC_MIN_CHANNEL_QUOTA=$(CONFIG_WLAN_MCC_MIN_CHANNEL_QUOTA)
4913*5113495bSYour Nameendif
4914*5113495bSYour Nameendif
4915*5113495bSYour Name
4916*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_PEER_TXQ_FLUSH_CONF) += -DWLAN_FEATURE_PEER_TXQ_FLUSH_CONF
4917*5113495bSYour Name
4918*5113495bSYour Nameifeq ($(CONFIG_DP_HW_TX_DELAY_STATS_ENABLE), y)
4919*5113495bSYour Nameccflags-y += -DHW_TX_DELAY_STATS_ENABLE
4920*5113495bSYour Nameendif
4921*5113495bSYour Name
4922*5113495bSYour Name# Config MAX SAP interface number
4923*5113495bSYour Nameifdef CONFIG_QDF_MAX_NO_OF_SAP_MODE
4924*5113495bSYour Nameccflags-y += -DQDF_MAX_NO_OF_SAP_MODE=$(CONFIG_QDF_MAX_NO_OF_SAP_MODE)
4925*5113495bSYour Nameendif
4926*5113495bSYour Name
4927*5113495bSYour Name#Flags to enable/disable Dynamic WLAN interface control feature
4928*5113495bSYour Nameifeq ($(CONFIG_CNSS_HW_SECURE_DISABLE), y)
4929*5113495bSYour Nameccflags-y += -DFEATURE_CNSS_HW_SECURE_DISABLE
4930*5113495bSYour Nameendif
4931*5113495bSYour Name
4932*5113495bSYour Name#DBAM feature needs COEX feature to be enabled
4933*5113495bSYour Nameifeq ($(CONFIG_FEATURE_COEX), y)
4934*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_COEX_DBAM) += -DWLAN_FEATURE_DBAM_CONFIG
4935*5113495bSYour Nameendif
4936*5113495bSYour Name
4937*5113495bSYour Name# Flag to enable Constrained Application Protocol feature
4938*5113495bSYour Nameccflags-$(CONFIG_WLAN_FEATURE_COAP) += -DWLAN_FEATURE_COAP
4939*5113495bSYour Name
4940*5113495bSYour Name# SSR driver dump config
4941*5113495bSYour Nameccflags-$(CONFIG_CNSS2_SSR_DRIVER_DUMP) += -DWLAN_FEATURE_SSR_DRIVER_DUMP
4942*5113495bSYour Name
4943*5113495bSYour Name# Currently, for versions of gcc which support it, the kernel Makefile
4944*5113495bSYour Name# is disabling the maybe-uninitialized warning.  Re-enable it for the
4945*5113495bSYour Name# WLAN driver.  Note that we must use ccflags-y here so that it
4946*5113495bSYour Name# will override the kernel settings.
4947*5113495bSYour Nameifeq ($(call cc-option-yn, -Wmaybe-uninitialized), y)
4948*5113495bSYour Nameccflags-y += -Wmaybe-uninitialized
4949*5113495bSYour Nameifneq (y,$(CONFIG_ARCH_MSM))
4950*5113495bSYour Nameccflags-y += -Wframe-larger-than=4096
4951*5113495bSYour Nameendif
4952*5113495bSYour Nameendif
4953*5113495bSYour Nameccflags-y += -Wmissing-prototypes
4954*5113495bSYour Name
4955*5113495bSYour Nameifeq ($(call cc-option-yn, -Wheader-guard), y)
4956*5113495bSYour Nameccflags-y += -Wheader-guard
4957*5113495bSYour Nameendif
4958*5113495bSYour Name# If the module name is not "wlan", then the define MULTI_IF_NAME to be the
4959*5113495bSYour Name# same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to
4960*5113495bSYour Name# any string that must be unique for all instances of the driver on the system.
4961*5113495bSYour Name# This allows multiple instances of the driver with different module names.
4962*5113495bSYour Name# If the module name is wlan, leave MULTI_IF_NAME undefined and the code will
4963*5113495bSYour Name# treat the driver as the primary driver.
4964*5113495bSYour Name#
4965*5113495bSYour Name# If DYNAMIC_SINGLE_CHIP is defined and MULTI_IF_NAME is undefined, which means
4966*5113495bSYour Name# there are multiple possible drivers, but only 1 driver will be loaded at
4967*5113495bSYour Name# a time(WLAN dynamic detect), no matter what the module name is, then
4968*5113495bSYour Name# host driver will only append DYNAMIC_SINGLE_CHIP to the path of
4969*5113495bSYour Name# firmware/mac/ini file.
4970*5113495bSYour Name#
4971*5113495bSYour Name# If DYNAMIC_SINGLE_CHIP & MULTI_IF_NAME defined, which means there are
4972*5113495bSYour Name# multiple possible drivers, we also can load multiple drivers together.
4973*5113495bSYour Name# And we can use DYNAMIC_SINGLE_CHIP to distinguish the ko name, and use
4974*5113495bSYour Name# MULTI_IF_NAME to make cnss2 platform driver to figure out which wlanhost
4975*5113495bSYour Name# driver attached. Moreover, as the first priority, host driver will only
4976*5113495bSYour Name# append DYNAMIC_SINGLE_CHIP to the path of firmware/mac/ini file.
4977*5113495bSYour Name
4978*5113495bSYour Nameifneq ($(DYNAMIC_SINGLE_CHIP),)
4979*5113495bSYour Nameccflags-y += -DDYNAMIC_SINGLE_CHIP=\"$(DYNAMIC_SINGLE_CHIP)\"
4980*5113495bSYour Nameifneq ($(MULTI_IF_NAME),)
4981*5113495bSYour Nameccflags-y += -DMULTI_IF_NAME=\"$(MULTI_IF_NAME)\"
4982*5113495bSYour Nameendif
4983*5113495bSYour Name#
4984*5113495bSYour Nameelse
4985*5113495bSYour Name
4986*5113495bSYour Nameifneq ($(MODNAME), wlan)
4987*5113495bSYour NameCHIP_NAME ?= $(MODNAME)
4988*5113495bSYour Nameccflags-y += -DMULTI_IF_NAME=\"$(CHIP_NAME)\"
4989*5113495bSYour Nameendif
4990*5113495bSYour Name
4991*5113495bSYour Nameendif #DYNAMIC_SINGLE_CHIP
4992*5113495bSYour Name
4993*5113495bSYour Name# WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the
4994*5113495bSYour Name# system. If it is not defined, then the host driver will use the first 4
4995*5113495bSYour Name# characters (including NULL) of MULTI_IF_NAME to construct
4996*5113495bSYour Name# WLAN_HDD_ADAPTER_MAGIC.
4997*5113495bSYour Nameifdef WLAN_HDD_ADAPTER_MAGIC
4998*5113495bSYour Nameccflags-y += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC)
4999*5113495bSYour Nameendif
5000*5113495bSYour Name
5001*5113495bSYour Name# Determine if we are building against an arm architecture host
5002*5113495bSYour Nameifeq ($(findstring arm, $(ARCH)),)
5003*5113495bSYour Name	ccflags-y += -DWLAN_HOST_ARCH_ARM=0
5004*5113495bSYour Nameelse
5005*5113495bSYour Name	ccflags-y += -DWLAN_HOST_ARCH_ARM=1
5006*5113495bSYour Nameendif
5007*5113495bSYour Name
5008*5113495bSYour Name# Android wifi state control interface
5009*5113495bSYour Nameifneq ($(WLAN_CTRL_NAME),)
5010*5113495bSYour Nameccflags-y += -DWLAN_CTRL_NAME=\"$(WLAN_CTRL_NAME)\"
5011*5113495bSYour Nameendif
5012*5113495bSYour Name
5013*5113495bSYour Name# inject some build related information
5014*5113495bSYour Nameifeq ($(CONFIG_BUILD_TAG), y)
5015*5113495bSYour NameCLD_CHECKOUT = $(shell cd "$(WLAN_ROOT)" && \
5016*5113495bSYour Name	git reflog | grep -vm1 "}: cherry-pick: " | grep -oE ^[0-f]+)
5017*5113495bSYour NameCLD_IDS = $(shell cd "$(WLAN_ROOT)" && \
5018*5113495bSYour Name	git log -50 $(CLD_CHECKOUT)~..HEAD | \
5019*5113495bSYour Name		sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
5020*5113495bSYour Name		paste -sd "," -)
5021*5113495bSYour Name
5022*5113495bSYour NameCMN_CHECKOUT = $(shell cd "$(WLAN_COMMON_INC)" && \
5023*5113495bSYour Name	git reflog | grep -vm1 "}: cherry-pick: " | grep -oE ^[0-f]+)
5024*5113495bSYour NameCMN_IDS = $(shell cd "$(WLAN_COMMON_INC)" && \
5025*5113495bSYour Name	git log -50 $(CMN_CHECKOUT)~..HEAD | \
5026*5113495bSYour Name		sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
5027*5113495bSYour Name		paste -sd "," -)
5028*5113495bSYour NameBUILD_TAG = "cld:$(CLD_IDS); cmn:$(CMN_IDS); dev:$(DEVNAME)"
5029*5113495bSYour Nameccflags-y += -DBUILD_TAG=\"$(BUILD_TAG)\"
5030*5113495bSYour Nameendif
5031*5113495bSYour Name
5032*5113495bSYour Nameifeq ($(CONFIG_ARCH_PINEAPPLE), y)
5033*5113495bSYour Nameccflags-y += -gdwarf-4
5034*5113495bSYour Nameendif
5035*5113495bSYour Name
5036*5113495bSYour Name# Module information used by KBuild framework
5037*5113495bSYour Nameobj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
5038*5113495bSYour Nameifeq ($(CONFIG_WLAN_RESIDENT_DRIVER), y)
5039*5113495bSYour Name$(MODNAME)-y := $(HDD_SRC_DIR)/wlan_hdd_main_module.o
5040*5113495bSYour Nameobj-$(CONFIG_QCA_CLD_WLAN) += wlan_resident.o
5041*5113495bSYour Namewlan_resident-y := $(OBJS)
5042*5113495bSYour Nameelse
5043*5113495bSYour Name$(MODNAME)-y := $(OBJS)
5044*5113495bSYour Nameendif
5045*5113495bSYour NameOBJS_DIRS += $(dir $(OBJS)) \
5046*5113495bSYour Name	     $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ \
5047*5113495bSYour Name	     $(QDF_OBJ_DIR)/ \
5048*5113495bSYour Name	     $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/ \
5049*5113495bSYour Name	     $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/ \
5050*5113495bSYour Name	     $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/
5051*5113495bSYour NameCLEAN_DIRS := $(addsuffix *.o,$(sort $(OBJS_DIRS))) \
5052*5113495bSYour Name	      $(addsuffix .*.o.cmd,$(sort $(OBJS_DIRS)))
5053*5113495bSYour Nameclean-files := $(CLEAN_DIRS)
5054