blob: e0cbc71e757829c2014e06f789379973a15b1ce2 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001# We can build either as part of a standalone Kernel build or as
2# an external module. Determine which mechanism is being used
3ifeq ($(MODNAME),)
Jeff Johnsoneadeb932018-04-07 15:32:36 -07004 KERNEL_BUILD := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005else
Jeff Johnsoneadeb932018-04-07 15:32:36 -07006 KERNEL_BUILD := n
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007endif
8
Jeff Johnsoneadeb932018-04-07 15:32:36 -07009ifeq ($(KERNEL_BUILD), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010 # These are provided in external module based builds
11 # Need to explicitly define for Kernel-based builds
12 MODNAME := wlan
13 WLAN_ROOT := drivers/staging/qcacld-3.0
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -070014 WLAN_COMMON_ROOT := ../qca-wifi-host-cmn
15 WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
Yu Wang6c4599c2018-10-09 10:18:14 +080016 WLAN_FW_API := $(WLAN_ROOT)/../fw-api/
17 WLAN_PROFILE := default
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080018endif
Qiwei Caidcb73b02018-09-17 19:58:29 +080019
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -070020WLAN_COMMON_ROOT ?= ../qca-wifi-host-cmn
21WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
Yu Wang6c4599c2018-10-09 10:18:14 +080022WLAN_FW_API ?= $(WLAN_ROOT)/../fw-api/
23WLAN_PROFILE ?= default
24CONFIG_QCA_CLD_WLAN_PROFILE ?= $(WLAN_PROFILE)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -080025
Yuanyuan Liu49948f12018-10-16 12:42:28 -070026ifeq ($(KERNEL_BUILD), n)
27ifneq ($(ANDROID_BUILD_TOP),)
28 override WLAN_ROOT := $(ANDROID_BUILD_TOP)/$(WLAN_ROOT)
29 override WLAN_COMMON_INC := $(ANDROID_BUILD_TOP)/$(WLAN_COMMON_INC)
Yu Wang6c4599c2018-10-09 10:18:14 +080030 override WLAN_FW_API := $(ANDROID_BUILD_TOP)/$(WLAN_FW_API)
Yuanyuan Liu49948f12018-10-16 12:42:28 -070031endif
32endif
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -070033
Nirav Shahd2aa9632018-05-27 22:02:53 +053034include $(WLAN_ROOT)/configs/$(CONFIG_QCA_CLD_WLAN_PROFILE)_defconfig
Jeff Johnson181cca72019-02-09 19:18:54 -080035
Yu Wangbaff8002019-08-08 19:48:16 +080036# add configurations in WLAN_CFG_OVERRIDE
37ifneq ($(WLAN_CFG_OVERRIDE),)
38WLAN_CFG_OVERRIDE_FILE := $(WLAN_ROOT)/.wlan_cfg_override
39$(shell echo > $(WLAN_CFG_OVERRIDE_FILE))
40
41$(foreach cfg, $(WLAN_CFG_OVERRIDE), \
42 $(shell echo $(cfg) >> $(WLAN_CFG_OVERRIDE_FILE)))
43
44include $(WLAN_CFG_OVERRIDE_FILE)
45$(warning "Overriding WLAN config with: $(shell cat $(WLAN_CFG_OVERRIDE_FILE))")
46endif
47
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080048############ UAPI ############
49UAPI_DIR := uapi
50UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux
51
52############ COMMON ############
53COMMON_DIR := core/common
54COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR)
55
56############ HDD ############
57HDD_DIR := core/hdd
58HDD_INC_DIR := $(HDD_DIR)/inc
59HDD_SRC_DIR := $(HDD_DIR)/src
60
61HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
62 -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
63
64HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
65 $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070066 $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
Poddar, Siddarth34872782017-08-10 14:08:51 +053067 $(HDD_SRC_DIR)/wlan_hdd_data_stall_detection.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080068 $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \
69 $(HDD_SRC_DIR)/wlan_hdd_ftm.o \
70 $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
71 $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \
72 $(HDD_SRC_DIR)/wlan_hdd_main.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070073 $(HDD_SRC_DIR)/wlan_hdd_object_manager.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080074 $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070075 $(HDD_SRC_DIR)/wlan_hdd_p2p.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080076 $(HDD_SRC_DIR)/wlan_hdd_power.o \
Amar Singhale4f28ee2015-10-21 14:36:56 -070077 $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080078 $(HDD_SRC_DIR)/wlan_hdd_scan.o \
79 $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070080 $(HDD_SRC_DIR)/wlan_hdd_stats.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080081 $(HDD_SRC_DIR)/wlan_hdd_trace.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070082 $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080083 $(HDD_SRC_DIR)/wlan_hdd_wmm.o \
SaidiReddy Yenuga744073f2017-03-09 17:31:25 +053084 $(HDD_SRC_DIR)/wlan_hdd_wowl.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080085
Rachit Kankane0dc3e852018-05-07 17:33:42 +053086ifeq ($(CONFIG_WLAN_WEXT_SUPPORT_ENABLE), y)
87HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_wext.o \
88 $(HDD_SRC_DIR)/wlan_hdd_hostapd_wext.o
89endif
90
Ashish Kumar Dhanotiya9cc2a862019-07-08 14:52:51 +053091ifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y)
92HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o
93endif
94
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -070095ifeq ($(CONFIG_WLAN_DEBUGFS), y)
96HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs.o
Qiwei Cai3719efe2018-06-11 21:09:29 +080097ifeq ($(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS), y)
Krishna Kumaar Natarajanc7e2bb72017-03-10 10:38:46 -080098HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_llstat.o
Nirav Shah179b9862018-09-11 13:46:38 +053099endif
Rajeev Kumar Sirasanagandla197d4172018-02-15 19:03:29 +0530100HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_csr.o
Rajeev Kumar Sirasanagandla4c8edc02018-03-12 08:44:51 +0530101HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_connect.o
Rajeev Kumar Sirasanagandla85f8b022018-03-12 12:52:59 +0530102HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_offload.o
Rajeev Kumar Sirasanagandla4f20b672018-03-12 13:52:50 +0530103HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_roam.o
Arun Kumar Khandavallideda5a82019-03-11 15:32:19 +0530104ifeq ($(CONFIG_WLAN_MWS_INFO_DEBUGFS), y)
105HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_coex.o
106endif
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700107endif
108
Sandeep Puligilla8e89d572018-04-02 18:07:45 -0700109ifeq ($(CONFIG_WLAN_CONV_SPECTRAL_ENABLE),y)
110HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_spectralscan.o
111endif
112
Agrawal Ashishb141b092016-09-02 19:59:26 +0530113ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
114HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_ocb.o
115endif
Amar Singhale4f28ee2015-10-21 14:36:56 -0700116
Wen Gong3f003382018-05-14 14:26:37 +0800117ifeq ($(CONFIG_FEATURE_MEMDUMP_ENABLE), y)
Wen Gongaa6d55d2018-04-26 16:33:21 +0800118HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_memdump.o
119endif
120
Jeff Johnson6fa1e012017-04-05 06:40:53 -0700121ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
122HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_fips.o
123endif
124
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700125ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y)
Jeff Johnson8bb61112018-03-31 13:33:54 -0700126HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_green_ap.o
127endif
128
Nachiket Kukaded0dd62e2018-05-21 18:39:22 +0530129ifeq ($(CONFIG_QCACLD_FEATURE_APF), y)
130HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_apf.o
131endif
132
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700133ifeq ($(CONFIG_WLAN_FEATURE_LPSS), y)
Jeff Johnson2b0a7b82016-05-18 15:08:02 -0700134HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lpass.o
135endif
136
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800137ifeq ($(CONFIG_WLAN_LRO), y)
138HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o
139endif
140
141ifeq ($(CONFIG_WLAN_NAPI), y)
142HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o
143endif
144
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700145ifeq ($(CONFIG_IPA_OFFLOAD), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800146HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o
147endif
148
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700149ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800150HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o
Nachiket Kukade2fb1fdb2019-01-08 15:35:27 +0530151HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800152endif
153
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700154ifeq ($(CONFIG_QCOM_TDLS), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800155HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
156endif
157
Yu Wang000dc2f2017-05-26 17:38:48 +0800158ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
159CONFIG_WLAN_SYNC_TSF := y
160endif
161
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700162ifeq ($(CONFIG_WLAN_SYNC_TSF), y)
Manikandan Mohandcc21ba2016-03-15 14:31:56 -0700163HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o
164endif
165
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700166ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800167HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o
168endif
169
Nachiket Kukade98f562a2017-12-15 12:18:07 +0530170ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +0530171HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o
172endif
173
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800174ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
175HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o
176endif
177
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700178ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
Krishna Kumaar Natarajaned1efd92016-09-24 18:05:47 -0700179HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_he.o
180endif
181
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -0700182ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
183HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_twt.o
184endif
185
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -0700186ifeq ($(CONFIG_LITHIUM), y)
Ravi Joshi1c2cfb62017-01-18 14:40:08 -0800187HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rx_monitor.o
188endif
189
Mohit Khanna70322002018-05-15 19:21:32 -0700190ifeq ($(CONFIG_LITHIUM), y)
191CONFIG_WLAN_FEATURE_DP_RX_THREADS := y
Mohit Khannad02e9b82019-03-22 16:36:15 -0700192CONFIG_WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT := y
Mohit Khanna70322002018-05-15 19:21:32 -0700193endif
194
Alok Kumareaac9a62019-09-16 12:00:32 +0530195ifeq ($(CONFIG_HELIUMPLUS), y)
Alok Kumar68946922019-09-11 17:44:57 +0530196CONFIG_WLAN_RECORD_RX_PADDR := y
197endif
198
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700199ifeq ($(CONFIG_WLAN_NUD_TRACKING), y)
Alok Kumarb64650c2018-03-23 17:05:11 +0530200HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nud_tracking.o
201endif
202
Qiwei Cai4505fc62018-05-17 18:35:19 +0800203ifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y)
204HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_packet_filter.o
205endif
206
Qiwei Caie689a262018-07-26 15:50:22 +0800207ifeq ($(CONFIG_FEATURE_RSSI_MONITOR), y)
208HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rssi_monitor.o
209endif
210
211ifeq ($(CONFIG_FEATURE_BSS_TRANSITION), y)
212HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_bss_transition.o
213endif
214
215ifeq ($(CONFIG_FEATURE_STATION_INFO), y)
216HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_station_info.o
217endif
218
219ifeq ($(CONFIG_FEATURE_TX_POWER), y)
220HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tx_power.o
221endif
222
223ifeq ($(CONFIG_FEATURE_OTA_TEST), y)
224HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ota_test.o
225endif
226
227ifeq ($(CONFIG_FEATURE_ACTIVE_TOS), y)
228HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_active_tos.o
229endif
230
231ifeq ($(CONFIG_FEATURE_SAR_LIMITS), y)
232HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sar_limits.o
233endif
234
235ifeq ($(CONFIG_FEATURE_CONCURRENCY_MATRIX), y)
236HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_concurrency_matrix.o
237endif
238
239ifeq ($(CONFIG_FEATURE_SAP_COND_CHAN_SWITCH), y)
240HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sap_cond_chan_switch.o
241endif
242
243ifeq ($(CONFIG_FEATURE_P2P_LISTEN_OFFLOAD), y)
244HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_p2p_listen_offload.o
245endif
246
Kai Liuaa88d2f2018-08-13 11:30:11 +0800247ifeq ($(CONFIG_WLAN_SYSFS), y)
248HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs.o
249endif
Dustin Browna17cace2019-02-01 14:53:47 -0800250
Qun Zhangef655622019-02-25 10:48:10 +0800251ifeq ($(CONFIG_QCACLD_FEATURE_FW_STATE), y)
252HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_fw_state.o
253endif
254
Jiani Liua5f17222019-03-04 16:22:33 +0800255ifeq ($(CONFIG_QCACLD_FEATURE_COEX_CONFIG), y)
256HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_coex_config.o
257endif
258
stonez2d686482019-03-12 14:54:26 +0800259ifeq ($(CONFIG_QCACLD_FEATURE_MPTA_HELPER), y)
260HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_mpta_helper.o
261endif
262
Abhinav Kumardbbfd2c2019-05-07 12:22:06 +0530263ifeq ($(CONFIG_WLAN_BCN_RECV_FEATURE), y)
264HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_bcn_recv.o
265endif
266
guangde4853c402019-05-06 15:54:04 +0800267ifeq ($(CONFIG_QCACLD_FEATURE_HW_CAPABILITY), y)
268HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_hw_capability.o
269endif
270
Dustin Browna17cace2019-02-01 14:53:47 -0800271###### OSIF_SYNC ########
272SYNC_DIR := os_if/sync
273SYNC_INC_DIR := $(SYNC_DIR)/inc
274SYNC_SRC_DIR := $(SYNC_DIR)/src
275
276SYNC_INC := \
277 -I$(WLAN_ROOT)/$(SYNC_INC_DIR) \
278 -I$(WLAN_ROOT)/$(SYNC_SRC_DIR) \
279
280SYNC_OBJS := \
281 $(SYNC_SRC_DIR)/osif_sync.o \
282 $(SYNC_SRC_DIR)/osif_driver_sync.o \
283 $(SYNC_SRC_DIR)/osif_psoc_sync.o \
284 $(SYNC_SRC_DIR)/osif_vdev_sync.o \
285
Dustin Brown6099ddc2018-07-06 14:32:53 -0700286########### Driver Synchronization Core (DSC) ###########
287DSC_DIR := components/dsc
288DSC_INC_DIR := $(DSC_DIR)/inc
289DSC_SRC_DIR := $(DSC_DIR)/src
290DSC_TEST_DIR := $(DSC_DIR)/test
291
292DSC_INC := \
293 -I$(WLAN_ROOT)/$(DSC_INC_DIR) \
294 -I$(WLAN_ROOT)/$(DSC_SRC_DIR) \
295 -I$(WLAN_ROOT)/$(DSC_TEST_DIR)
296
297DSC_OBJS := \
298 $(DSC_SRC_DIR)/__wlan_dsc.o \
299 $(DSC_SRC_DIR)/wlan_dsc_driver.o \
300 $(DSC_SRC_DIR)/wlan_dsc_psoc.o \
301 $(DSC_SRC_DIR)/wlan_dsc_vdev.o
302
303ifeq ($(CONFIG_DSC_TEST), y)
304 DSC_OBJS += $(DSC_TEST_DIR)/wlan_dsc_test.o
305endif
306
307cppflags-$(CONFIG_DSC_DEBUG) += -DWLAN_DSC_DEBUG
308cppflags-$(CONFIG_DSC_TEST) += -DWLAN_DSC_TEST
309
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800310########### HOST DIAG LOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800311HOST_DIAG_LOG_DIR := $(WLAN_COMMON_ROOT)/utils/host_diag_log
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800312
313HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc
314HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src
315
316HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
317 -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
318
319HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
320
321############ EPPING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800322EPPING_DIR := $(WLAN_COMMON_ROOT)/utils/epping
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800323EPPING_INC_DIR := $(EPPING_DIR)/inc
324EPPING_SRC_DIR := $(EPPING_DIR)/src
325
326EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR)
327
328EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \
329 $(EPPING_SRC_DIR)/epping_txrx.o \
330 $(EPPING_SRC_DIR)/epping_tx.o \
331 $(EPPING_SRC_DIR)/epping_rx.o \
Dustin Brown6099ddc2018-07-06 14:32:53 -0700332 $(EPPING_SRC_DIR)/epping_helper.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800333
334############ MAC ############
335MAC_DIR := core/mac
336MAC_INC_DIR := $(MAC_DIR)/inc
337MAC_SRC_DIR := $(MAC_DIR)/src
338
339MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
340 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
341 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
342 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
Ravi Joshia063dd92016-05-25 16:43:13 -0700343 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \
344 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800345
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800346MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o
347
348MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
349 $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \
350 $(MAC_SRC_DIR)/pe/lim/lim_api.o \
351 $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800352 $(MAC_SRC_DIR)/pe/lim/lim_ft.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800353 $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800354 $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \
355 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \
356 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \
357 $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \
358 $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \
359 $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \
360 $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \
361 $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \
362 $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \
363 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \
364 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \
365 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \
366 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \
367 $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \
368 $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \
369 $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \
370 $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \
371 $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \
372 $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \
373 $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800374 $(MAC_SRC_DIR)/pe/lim/lim_session.o \
375 $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \
376 $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800377 $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \
378 $(MAC_SRC_DIR)/pe/lim/lim_trace.o \
379 $(MAC_SRC_DIR)/pe/lim/lim_utils.o
380
Abhishek Ambure995ab5a2019-09-27 19:06:02 +0530381ifeq ($(CONFIG_QCA_IBSS_SUPPORT), y)
382MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o
383endif
384
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700385ifeq ($(CONFIG_QCOM_TDLS), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800386MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o
387endif
388
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700389ifeq ($(CONFIG_WLAN_FEATURE_FILS), y)
Sridhar Selvaraj8c6f5e82017-08-21 14:53:46 +0530390MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_fils.o
391endif
392
Nachiket Kukade2fb1fdb2019-01-08 15:35:27 +0530393ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Ravi Joshia063dd92016-05-25 16:43:13 -0700394MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o
395endif
396
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700397ifeq ($(CONFIG_QCACLD_WLAN_LFR2), y)
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800398 MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \
399 $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \
400 $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \
401 $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \
402 $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o
403endif
404
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800405MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \
406 $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \
407 $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800408 $(MAC_SRC_DIR)/pe/sch/sch_message.o
409
410MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o
411
412MAC_OBJS := $(MAC_CFG_OBJS) \
413 $(MAC_DPH_OBJS) \
414 $(MAC_LIM_OBJS) \
415 $(MAC_SCH_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700416 $(MAC_RRM_OBJS) \
417 $(MAC_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800418
419############ SAP ############
420SAP_DIR := core/sap
421SAP_INC_DIR := $(SAP_DIR)/inc
422SAP_SRC_DIR := $(SAP_DIR)/src
423
424SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
425 -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
426
427SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \
428 $(SAP_SRC_DIR)/sap_ch_select.o \
429 $(SAP_SRC_DIR)/sap_fsm.o \
430 $(SAP_SRC_DIR)/sap_module.o
431
Dustin Brown84f46ea2018-02-15 11:57:36 -0800432############ CFG ############
433CFG_REL_DIR := $(WLAN_COMMON_ROOT)/cfg
434CFG_DIR := $(WLAN_ROOT)/$(CFG_REL_DIR)
435CFG_INC := \
436 -I$(CFG_DIR)/inc \
437 -I$(CFG_DIR)/dispatcher/inc \
438 -I$(WLAN_ROOT)/components/cfg
439CFG_OBJS := \
440 $(CFG_REL_DIR)/src/cfg.o
441
Jeff Johnsonb4e2d822018-04-12 15:53:24 -0700442############ DFS ############
Arif Hussain757b45f2017-02-11 16:47:06 -0800443DFS_DIR := $(WLAN_COMMON_ROOT)/umac/dfs
444DFS_CORE_INC_DIR := $(DFS_DIR)/core/inc
445DFS_CORE_SRC_DIR := $(DFS_DIR)/core/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800446
Arif Hussain757b45f2017-02-11 16:47:06 -0800447DFS_DISP_INC_DIR := $(DFS_DIR)/dispatcher/inc
448DFS_DISP_SRC_DIR := $(DFS_DIR)/dispatcher/src
449DFS_TARGET_INC_DIR := $(WLAN_COMMON_ROOT)/target_if/dfs/inc
450DFS_CMN_SERVICES_INC_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/dfs/inc
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800451
Arif Hussain757b45f2017-02-11 16:47:06 -0800452DFS_INC := -I$(WLAN_ROOT)/$(DFS_DISP_INC_DIR) \
453 -I$(WLAN_ROOT)/$(DFS_TARGET_INC_DIR) \
454 -I$(WLAN_ROOT)/$(DFS_CMN_SERVICES_INC_DIR)
455
Arif Hussain02c2b632018-03-08 23:09:21 -0800456DFS_OBJS := $(DFS_CORE_SRC_DIR)/misc/dfs.o \
457 $(DFS_CORE_SRC_DIR)/misc/dfs_cac.o \
458 $(DFS_CORE_SRC_DIR)/misc/dfs_nol.o \
459 $(DFS_CORE_SRC_DIR)/misc/dfs_random_chan_sel.o \
460 $(DFS_CORE_SRC_DIR)/misc/dfs_process_radar_found_ind.o \
461 $(DFS_DISP_SRC_DIR)/wlan_dfs_init_deinit_api.o \
462 $(DFS_DISP_SRC_DIR)/wlan_dfs_lmac_api.o \
463 $(DFS_DISP_SRC_DIR)/wlan_dfs_mlme_api.o \
464 $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o \
465 $(DFS_DISP_SRC_DIR)/wlan_dfs_ucfg_api.o \
466 $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o \
467 $(DFS_DISP_SRC_DIR)/wlan_dfs_utils_api.o \
Arif Hussain757b45f2017-02-11 16:47:06 -0800468 $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800469
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700470ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y)
Arif Hussain02c2b632018-03-08 23:09:21 -0800471DFS_OBJS += $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_full_offload.o \
472 $(DFS_CORE_SRC_DIR)/misc/dfs_full_offload.o
473else
474DFS_OBJS += $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_partial_offload.o \
475 $(DFS_CORE_SRC_DIR)/filtering/dfs_fcc_bin5.o \
476 $(DFS_CORE_SRC_DIR)/filtering/dfs_bindetects.o \
477 $(DFS_CORE_SRC_DIR)/filtering/dfs_debug.o \
478 $(DFS_CORE_SRC_DIR)/filtering/dfs_init.o \
479 $(DFS_CORE_SRC_DIR)/filtering/dfs_misc.o \
480 $(DFS_CORE_SRC_DIR)/filtering/dfs_phyerr_tlv.o \
481 $(DFS_CORE_SRC_DIR)/filtering/dfs_process_phyerr.o \
482 $(DFS_CORE_SRC_DIR)/filtering/dfs_process_radarevent.o \
483 $(DFS_CORE_SRC_DIR)/filtering/dfs_staggered.o \
484 $(DFS_CORE_SRC_DIR)/filtering/dfs_radar.o \
Arif Hussain02c2b632018-03-08 23:09:21 -0800485 $(DFS_CORE_SRC_DIR)/filtering/dfs_partial_offload_radar.o \
Arif Hussain6e4d14a2018-11-01 13:35:31 -0700486 $(DFS_CORE_SRC_DIR)/misc/dfs_filter_init.o
Arif Hussain02c2b632018-03-08 23:09:21 -0800487endif
488
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800489############ SME ############
490SME_DIR := core/sme
491SME_INC_DIR := $(SME_DIR)/inc
492SME_SRC_DIR := $(SME_DIR)/src
493
494SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
495 -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
496
497SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \
498 $(SME_SRC_DIR)/csr/csr_api_scan.o \
499 $(SME_SRC_DIR)/csr/csr_cmd_process.o \
500 $(SME_SRC_DIR)/csr/csr_link_list.o \
501 $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800502 $(SME_SRC_DIR)/csr/csr_util.o \
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800503
504
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700505ifeq ($(CONFIG_QCACLD_WLAN_LFR2), y)
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800506SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800507 $(SME_SRC_DIR)/csr/csr_host_scan_roam.o
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800508endif
509
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800510SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
511
512SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
513 $(SME_SRC_DIR)/common/sme_ft_api.o \
514 $(SME_SRC_DIR)/common/sme_power_save.o \
515 $(SME_SRC_DIR)/common/sme_trace.o
516
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800517SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
518
Nachiket Kukade2fb1fdb2019-01-08 15:35:27 +0530519ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Ravi Joshia063dd92016-05-25 16:43:13 -0700520SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o
521endif
522
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800523SME_OBJS := $(SME_CMN_OBJS) \
524 $(SME_CSR_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800525 $(SME_QOS_OBJS) \
526 $(SME_RRM_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700527 $(SME_NAN_OBJS) \
528 $(SME_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800529
530############ NLINK ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800531NLINK_DIR := $(WLAN_COMMON_ROOT)/utils/nlink
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800532NLINK_INC_DIR := $(NLINK_DIR)/inc
533NLINK_SRC_DIR := $(NLINK_DIR)/src
534
535NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR)
536NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
537
538############ PTT ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800539PTT_DIR := $(WLAN_COMMON_ROOT)/utils/ptt
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800540PTT_INC_DIR := $(PTT_DIR)/inc
541PTT_SRC_DIR := $(PTT_DIR)/src
542
543PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR)
544PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
545
546############ WLAN_LOGGING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800547WLAN_LOGGING_DIR := $(WLAN_COMMON_ROOT)/utils/logging
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800548WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc
549WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src
550
551WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR)
Deepak Dhamdhere5d7ea2f2017-10-19 15:08:45 -0700552WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o \
553 $(WLAN_LOGGING_SRC_DIR)/wlan_roam_debug.o
Jeff Johnson8fba4d72018-04-08 08:46:04 -0700554
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800555############ SYS ############
556SYS_DIR := core/mac/src/sys
557
558SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
559 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
560 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
561 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
562
563SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
564SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
565SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
566 $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \
567 $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \
568 $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \
569 $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800570 $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \
571 $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800572 $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o
573
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800574############ Qca-wifi-host-cmn ############
575QDF_OS_DIR := qdf
576QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700577QDF_OS_SRC_DIR := $(QDF_OS_DIR)/src
578QDF_OS_LINUX_SRC_DIR := $(QDF_OS_DIR)/linux/src
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800579QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR)
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700580QDF_LINUX_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_LINUX_SRC_DIR)
Dustin Brownebb16d12018-11-29 17:52:07 -0800581QDF_TEST_DIR := $(QDF_OS_DIR)/test
582QDF_TEST_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_TEST_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800583
Dustin Brownebb16d12018-11-29 17:52:07 -0800584QDF_INC := \
585 -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \
586 -I$(WLAN_COMMON_INC)/$(QDF_OS_LINUX_SRC_DIR) \
587 -I$(WLAN_COMMON_INC)/$(QDF_TEST_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800588
Dustin Brownebb16d12018-11-29 17:52:07 -0800589QDF_OBJS := \
590 $(QDF_LINUX_OBJ_DIR)/qdf_crypto.o \
591 $(QDF_LINUX_OBJ_DIR)/qdf_defer.o \
Dustin Brown05a0658f2019-03-05 11:27:38 -0800592 $(QDF_LINUX_OBJ_DIR)/qdf_delayed_work.o \
Dustin Brownebb16d12018-11-29 17:52:07 -0800593 $(QDF_LINUX_OBJ_DIR)/qdf_event.o \
594 $(QDF_LINUX_OBJ_DIR)/qdf_file.o \
595 $(QDF_LINUX_OBJ_DIR)/qdf_idr.o \
596 $(QDF_LINUX_OBJ_DIR)/qdf_list.o \
597 $(QDF_LINUX_OBJ_DIR)/qdf_lock.o \
598 $(QDF_LINUX_OBJ_DIR)/qdf_mc_timer.o \
599 $(QDF_LINUX_OBJ_DIR)/qdf_mem.o \
600 $(QDF_LINUX_OBJ_DIR)/qdf_nbuf.o \
Dustin Brown9c49a332019-03-05 11:27:38 -0800601 $(QDF_LINUX_OBJ_DIR)/qdf_periodic_work.o \
Dustin Browndc789022019-02-05 12:51:49 -0800602 $(QDF_LINUX_OBJ_DIR)/qdf_status.o \
Dustin Brownebb16d12018-11-29 17:52:07 -0800603 $(QDF_LINUX_OBJ_DIR)/qdf_threads.o \
604 $(QDF_LINUX_OBJ_DIR)/qdf_trace.o \
Dustin Brownebb16d12018-11-29 17:52:07 -0800605 $(QDF_OBJ_DIR)/qdf_flex_mem.o \
606 $(QDF_OBJ_DIR)/qdf_parse.o \
607 $(QDF_OBJ_DIR)/qdf_platform.o \
608 $(QDF_OBJ_DIR)/qdf_str.o \
Dustin Brownd315c452018-11-27 11:28:48 -0800609 $(QDF_OBJ_DIR)/qdf_talloc.o \
Dustin Brownebb16d12018-11-29 17:52:07 -0800610 $(QDF_OBJ_DIR)/qdf_types.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800611
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700612ifeq ($(CONFIG_WLAN_DEBUGFS), y)
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700613QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_debugfs.o
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700614endif
615
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700616ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairamb9484f32018-02-22 17:16:14 +0530617QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_ipa.o
618endif
619
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700620# enable CPU hotplug support if SMP is enabled
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700621ifeq ($(CONFIG_SMP), y)
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700622 QDF_OBJS += $(QDF_OBJ_DIR)/qdf_cpuhp.o
623 QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_cpuhp.o
624endif
Wu Gao64b31482017-03-10 15:16:10 +0800625
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700626ifeq ($(CONFIG_LEAK_DETECTION), y)
Dustin Brown21a761d2017-11-15 16:37:00 -0800627 QDF_OBJS += $(QDF_OBJ_DIR)/qdf_debug_domain.o
Dustin Brownee733ba2019-03-12 13:31:11 -0700628 QDF_OBJS += $(QDF_OBJ_DIR)/qdf_tracker.o
Dustin Brown21a761d2017-11-15 16:37:00 -0800629endif
630
Dustin Brownebb16d12018-11-29 17:52:07 -0800631ifeq ($(CONFIG_QDF_TEST), y)
Dustin Brown05a0658f2019-03-05 11:27:38 -0800632 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_delayed_work_test.o
Dustin Brown6fb7a752018-11-30 11:33:57 -0800633 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_hashtable_test.o
Dustin Brown9c49a332019-03-05 11:27:38 -0800634 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_periodic_work_test.o
Dustin Brown92acafe2019-02-15 17:17:10 -0800635 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_ptr_hash_test.o
Dustin Brown128e2d02019-02-15 12:59:07 -0800636 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_slist_test.o
Dustin Brownd315c452018-11-27 11:28:48 -0800637 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_talloc_test.o
Dustin Brownee733ba2019-03-12 13:31:11 -0700638 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_tracker_test.o
Dustin Brownebb16d12018-11-29 17:52:07 -0800639 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_types_test.o
640endif
641
Dustin Brownd315c452018-11-27 11:28:48 -0800642cppflags-$(CONFIG_TALLOC_DEBUG) += -DWLAN_TALLOC_DEBUG
Dustin Brown05a0658f2019-03-05 11:27:38 -0800643cppflags-$(CONFIG_QDF_TEST) += -DWLAN_DELAYED_WORK_TEST
Dustin Brown6fb7a752018-11-30 11:33:57 -0800644cppflags-$(CONFIG_QDF_TEST) += -DWLAN_HASHTABLE_TEST
Dustin Brown9c49a332019-03-05 11:27:38 -0800645cppflags-$(CONFIG_QDF_TEST) += -DWLAN_PERIODIC_WORK_TEST
Dustin Brown92acafe2019-02-15 17:17:10 -0800646cppflags-$(CONFIG_QDF_TEST) += -DWLAN_PTR_HASH_TEST
Dustin Brown128e2d02019-02-15 12:59:07 -0800647cppflags-$(CONFIG_QDF_TEST) += -DWLAN_SLIST_TEST
Dustin Brownd315c452018-11-27 11:28:48 -0800648cppflags-$(CONFIG_QDF_TEST) += -DWLAN_TALLOC_TEST
Dustin Brownee733ba2019-03-12 13:31:11 -0700649cppflags-$(CONFIG_QDF_TEST) += -DWLAN_TRACKER_TEST
Dustin Brownebb16d12018-11-29 17:52:07 -0800650cppflags-$(CONFIG_QDF_TEST) += -DWLAN_TYPES_TEST
651
Rakshith Suresh Patkard9f4e612018-09-12 12:10:38 +0530652############ WBUFF ############
653WBUFF_OS_DIR := wbuff
654WBUFF_OS_INC_DIR := $(WBUFF_OS_DIR)/inc
655WBUFF_OS_SRC_DIR := $(WBUFF_OS_DIR)/src
656WBUFF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WBUFF_OS_SRC_DIR)
657
658WBUFF_INC := -I$(WLAN_COMMON_INC)/$(WBUFF_OS_INC_DIR) \
659
660ifeq ($(CONFIG_WLAN_WBUFF), y)
661WBUFF_OBJS += $(WBUFF_OBJ_DIR)/wbuff.o
662endif
663
Ashish Kumar Dhanotiya9c331b92018-08-09 20:25:02 +0530664##########QAL #######
665QAL_OS_DIR := qal
666QAL_OS_INC_DIR := $(QAL_OS_DIR)/inc
667QAL_OS_LINUX_SRC_DIR := $(QAL_OS_DIR)/linux/src
Ashish Kumar Dhanotiya9c331b92018-08-09 20:25:02 +0530668
669QAL_INC := -I$(WLAN_COMMON_INC)/$(QAL_OS_INC_DIR) \
670 -I$(WLAN_COMMON_INC)/$(QAL_OS_LINUX_SRC_DIR)
671
Ashish Kumar Dhanotiya9c331b92018-08-09 20:25:02 +0530672
Wu Gao64b31482017-03-10 15:16:10 +0800673##########OS_IF #######
674OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if
675
Wu Gao637d58a2018-12-08 10:37:34 +0800676OS_IF_INC += -I$(WLAN_COMMON_INC)/os_if/linux \
Wu Gao64b31482017-03-10 15:16:10 +0800677 -I$(WLAN_COMMON_INC)/os_if/linux/scan/inc \
Sandeep Puligilla342d2a62017-12-12 15:40:00 -0800678 -I$(WLAN_COMMON_INC)/os_if/linux/spectral/inc \
Harprit Chhabada6c641ba2018-06-28 14:45:10 -0700679 -I$(WLAN_COMMON_INC)/os_if/linux/crypto/inc
Wu Gao64b31482017-03-10 15:16:10 +0800680
Wu Gao637d58a2018-12-08 10:37:34 +0800681OS_IF_OBJ += $(OS_IF_DIR)/linux/wlan_osif_request_manager.o \
Harprit Chhabada6c641ba2018-06-28 14:45:10 -0700682 $(OS_IF_DIR)/linux/crypto/src/wlan_nl_to_crypto_params.o
Sandeep Puligillafdd201e2017-02-02 18:43:46 -0800683
Frank Liu65b17d92016-11-23 15:58:44 +0800684############ UMAC_DISP ############
685UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if
686UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc
687UMAC_DISP_SRC_DIR := $(UMAC_DISP_DIR)/src
688UMAC_DISP_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_DISP_SRC_DIR)
689
690UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR)
691
692UMAC_DISP_OBJS := $(UMAC_DISP_OBJ_DIR)/wlan_lmac_if.o
693
Abhishek Singh9be07e22017-02-21 10:59:57 +0530694############# UMAC_SCAN ############
695UMAC_SCAN_DIR := umac/scan
696UMAC_SCAN_DISP_INC_DIR := $(UMAC_SCAN_DIR)/dispatcher/inc
697UMAC_SCAN_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/core/src
698UMAC_SCAN_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/dispatcher/src
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530699UMAC_TARGET_SCAN_INC := -I$(WLAN_COMMON_INC)/target_if/scan/inc
Abhishek Singh9be07e22017-02-21 10:59:57 +0530700
701UMAC_SCAN_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SCAN_DISP_INC_DIR)
702UMAC_SCAN_OBJS := $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db.o \
Paul Zhanga05a0252018-01-22 11:08:21 +0800703 $(UMAC_SCAN_CORE_DIR)/wlan_scan_11d.o \
Abhishek Singh82571c82017-11-24 12:12:19 +0530704 $(UMAC_SCAN_CORE_DIR)/wlan_scan_bss_score.o \
705 $(UMAC_SCAN_CORE_DIR)/wlan_scan_filter.o \
Abhishek Singh9be07e22017-02-21 10:59:57 +0530706 $(UMAC_SCAN_CORE_DIR)/wlan_scan_main.o \
707 $(UMAC_SCAN_CORE_DIR)/wlan_scan_manager.o \
708 $(UMAC_SCAN_DISP_DIR)/wlan_scan_tgt_api.o \
709 $(UMAC_SCAN_DISP_DIR)/wlan_scan_ucfg_api.o \
Harprit Chhabada4691a472018-12-07 11:22:48 -0800710 $(UMAC_SCAN_DISP_DIR)/wlan_scan_api.o \
Abhishek Singh310503c2017-03-07 11:19:10 +0530711 $(UMAC_SCAN_DISP_DIR)/wlan_scan_utils_api.o \
712 $(WLAN_COMMON_ROOT)/os_if/linux/scan/src/wlan_cfg80211_scan.o \
713 $(WLAN_COMMON_ROOT)/os_if/linux/wlan_cfg80211.o \
714 $(WLAN_COMMON_ROOT)/target_if/scan/src/target_if_scan.o
Abhishek Singh9be07e22017-02-21 10:59:57 +0530715
Harprit Chhabadae8155d32018-08-22 16:19:34 -0700716ifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y)
717UMAC_SCAN_OBJS += $(UMAC_SCAN_DISP_DIR)/wlan_extscan_api.o
718endif
719
Sandeep Puligilla342d2a62017-12-12 15:40:00 -0800720############# UMAC_SPECTRAL_SCAN ############
721UMAC_SPECTRAL_DIR := spectral
722UMAC_SPECTRAL_DISP_INC_DIR := $(UMAC_SPECTRAL_DIR)/dispatcher/inc
723UMAC_SPECTRAL_CORE_INC_DIR := $(UMAC_SPECTRAL_DIR)/core
724UMAC_SPECTRAL_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/core
725UMAC_SPECTRAL_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/dispatcher/src
726UMAC_TARGET_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/target_if/spectral
727
Sandeep Puligilla019a1bd2018-02-04 22:57:44 -0800728UMAC_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_DISP_INC_DIR) \
729 -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_CORE_INC_DIR) \
730 -I$(WLAN_COMMON_INC)/target_if/direct_buf_rx/inc
Sandeep Puligilla8e89d572018-04-02 18:07:45 -0700731ifeq ($(CONFIG_WLAN_CONV_SPECTRAL_ENABLE),y)
Sandeep Puligilla342d2a62017-12-12 15:40:00 -0800732UMAC_SPECTRAL_OBJS := $(UMAC_SPECTRAL_CORE_DIR)/spectral_offload.o \
733 $(UMAC_SPECTRAL_CORE_DIR)/spectral_common.o \
734 $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_ucfg_api.o \
735 $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_utils_api.o \
736 $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_tgt_api.o \
737 $(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/wlan_cfg80211_spectral.o \
Sandeep Puligilla019a1bd2018-02-04 22:57:44 -0800738 $(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/os_if_spectral_netlink.o \
Sandeep Puligilla342d2a62017-12-12 15:40:00 -0800739 $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_netlink.o \
740 $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_phyerr.o \
741 $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral.o \
742 $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_sim.o
Sandeep Puligilla8e89d572018-04-02 18:07:45 -0700743endif
Himanshu Agarwalb229a142017-12-21 10:16:45 +0530744############# UMAC_GREEN_AP ############
745UMAC_GREEN_AP_DIR := umac/green_ap
746UMAC_GREEN_AP_DISP_INC_DIR := $(UMAC_GREEN_AP_DIR)/dispatcher/inc
747UMAC_GREEN_AP_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/core/src
748UMAC_GREEN_AP_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/dispatcher/src
749UMAC_TARGET_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/target_if/green_ap/inc
750
751UMAC_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_GREEN_AP_DISP_INC_DIR)
752UMAC_GREEN_AP_OBJS := $(UMAC_GREEN_AP_CORE_DIR)/wlan_green_ap_main.o \
753 $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_api.o \
754 $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_ucfg_api.o \
755 $(WLAN_COMMON_ROOT)/target_if/green_ap/src/target_if_green_ap.o
Jeff Johnson8fba4d72018-04-08 08:46:04 -0700756
Varun Reddy Yeturu29044cd2018-06-28 14:03:10 -0700757############# WLAN_CONV_CRYPTO_SUPPORTED ############
758UMAC_CRYPTO_DIR := umac/cmn_services/crypto
759UMAC_CRYPTO_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_CRYPTO_DIR)/src
760UMAC_CRYPTO_INC := -I$(WLAN_COMMON_INC)/$(UMAC_CRYPTO_DIR)/inc \
761 -I$(WLAN_COMMON_INC)/$(UMAC_CRYPTO_DIR)/src
762UMAC_CRYPTO_OBJS := $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_global_api.o \
763 $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_main.o \
764 $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_obj_mgr.o \
765 $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_param_handling.o
766
Ryan Hsuc8b27a42018-01-02 13:57:56 -0800767############# FTM CORE ############
768FTM_CORE_DIR := ftm
769TARGET_IF_FTM_DIR := target_if/ftm
770OS_IF_LINUX_FTM_DIR := os_if/linux/ftm
771
772FTM_CORE_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/core/src
773FTM_DISP_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/dispatcher/src
774TARGET_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(TARGET_IF_FTM_DIR)/src
775OS_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(OS_IF_LINUX_FTM_DIR)/src
776
777FTM_CORE_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/core/src
778FTM_DISP_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/dispatcher/inc
779TARGET_IF_FTM_INC := $(WLAN_COMMON_INC)/$(TARGET_IF_FTM_DIR)/inc
780OS_IF_FTM_INC := $(WLAN_COMMON_INC)/$(OS_IF_LINUX_FTM_DIR)/inc
781
782FTM_INC := -I$(FTM_DISP_INC) \
783 -I$(FTM_CORE_INC) \
784 -I$(OS_IF_FTM_INC) \
785 -I$(TARGET_IF_FTM_INC)
786
Ryan Hsu6e9db0b2018-06-01 10:45:51 -0700787ifeq ($(CONFIG_QCA_WIFI_FTM), y)
Ryan Hsuc8b27a42018-01-02 13:57:56 -0800788FTM_OBJS := $(FTM_DISP_SRC)/wlan_ftm_init_deinit.o \
789 $(FTM_DISP_SRC)/wlan_ftm_ucfg_api.o \
790 $(FTM_CORE_SRC)/wlan_ftm_svc.o \
Ryan Hsuc8b27a42018-01-02 13:57:56 -0800791 $(TARGET_IF_FTM_SRC)/target_if_ftm.o
792
Ryan Hsu6e9db0b2018-06-01 10:45:51 -0700793ifeq ($(QCA_WIFI_FTM_NL80211), y)
794FTM_OBJS += $(OS_IF_FTM_SRC)/wlan_cfg80211_ftm.o
795endif
796
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700797ifeq ($(CONFIG_LINUX_QCMBR), y)
Ryan Hsuc8b27a42018-01-02 13:57:56 -0800798FTM_OBJS += $(OS_IF_FTM_SRC)/wlan_ioctl_ftm.o
799endif
Himanshu Agarwalb229a142017-12-21 10:16:45 +0530800
Ryan Hsu6e9db0b2018-06-01 10:45:51 -0700801endif
802
Abhishek Singh9be07e22017-02-21 10:59:57 +0530803############# UMAC_CMN_SERVICES ############
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530804UMAC_COMMON_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/cmn_defs/inc \
805 -I$(WLAN_COMMON_INC)/umac/cmn_services/utils/inc
806UMAC_COMMON_OBJS := $(WLAN_COMMON_ROOT)/umac/cmn_services/utils/src/wlan_utility.o
Abhishek Singh9be07e22017-02-21 10:59:57 +0530807
Dhanashri Atre170855e2016-12-15 13:26:54 -0800808ifeq ($(CONFIG_WLAN_LRO), y)
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700809QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_lro.o
Dhanashri Atre170855e2016-12-15 13:26:54 -0800810endif
811
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800812############ CDS (Connectivity driver services) ############
813CDS_DIR := core/cds
814CDS_INC_DIR := $(CDS_DIR)/inc
815CDS_SRC_DIR := $(CDS_DIR)/src
816
817CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \
818 -I$(WLAN_ROOT)/$(CDS_SRC_DIR)
819
820CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800821 $(CDS_SRC_DIR)/cds_reg_service.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800822 $(CDS_SRC_DIR)/cds_packet.o \
823 $(CDS_SRC_DIR)/cds_regdomain.o \
824 $(CDS_SRC_DIR)/cds_sched.o \
Krunal Sonid32c6bc2016-10-18 18:00:21 -0700825 $(CDS_SRC_DIR)/cds_utils.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800826
827
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +0530828###### UMAC OBJMGR ########
829UMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr
830
831UMAC_OBJMGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/inc \
832 -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/src \
833 -I$(WLAN_COMMON_INC)/umac/cmn_services/inc \
834 -I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc
835
836UMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \
837 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_pdev_obj.o \
838 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_peer_obj.o \
839 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \
840 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o
841
Vignesh Viswanathan45fc4b02018-02-06 11:30:48 +0530842ifeq ($(CONFIG_WLAN_OBJMGR_DEBUG), y)
843UMAC_OBJMGR_OBJS += $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_debug.o
844endif
845
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530846########### UMAC MGMT TXRX ##########
847UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx
848
Himanshu Agarwal795b7f72017-01-17 21:19:43 +0530849UMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530850
851UMAC_MGMT_TXRX_OBJS := $(UMAC_MGMT_TXRX_DIR)/core/src/wlan_mgmt_txrx_main.o \
852 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_utils_api.o \
853 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_tgt_api.o
854
Mukul Sharmac5de6772017-01-05 14:32:36 +0530855########## POWER MANAGEMENT OFFLOADS (PMO) ##########
Rajeev Kumarf46083e2017-07-17 17:48:16 -0700856PMO_DIR := components/pmo
Mukul Sharmad75a6672017-06-22 15:40:53 +0530857PMO_INC := -I$(WLAN_ROOT)/$(PMO_DIR)/core/inc \
858 -I$(WLAN_ROOT)/$(PMO_DIR)/core/src \
859 -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/inc \
860 -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/src \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530861
Rajeev Kumar6bdee8e2018-04-18 17:36:05 -0700862ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
Mukul Sharmac5de6772017-01-05 14:32:36 +0530863PMO_OBJS := $(PMO_DIR)/core/src/wlan_pmo_main.o \
Dustin Brownf1d27802018-03-01 17:28:07 -0800864 $(PMO_DIR)/core/src/wlan_pmo_apf.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530865 $(PMO_DIR)/core/src/wlan_pmo_arp.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530866 $(PMO_DIR)/core/src/wlan_pmo_gtk.o \
867 $(PMO_DIR)/core/src/wlan_pmo_mc_addr_filtering.o \
868 $(PMO_DIR)/core/src/wlan_pmo_static_config.o \
869 $(PMO_DIR)/core/src/wlan_pmo_wow.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530870 $(PMO_DIR)/core/src/wlan_pmo_lphb.o \
871 $(PMO_DIR)/core/src/wlan_pmo_suspend_resume.o \
Dustin Brown1224e212017-05-12 14:02:12 -0700872 $(PMO_DIR)/core/src/wlan_pmo_hw_filter.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530873 $(PMO_DIR)/dispatcher/src/wlan_pmo_obj_mgmt_api.o \
874 $(PMO_DIR)/dispatcher/src/wlan_pmo_ucfg_api.o \
875 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_arp.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530876 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_gtk.o \
877 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_wow.o \
878 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_static_config.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530879 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_mc_addr_filtering.o \
880 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_lphb.o \
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +0530881 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_suspend_resume.o \
Dustin Brown1224e212017-05-12 14:02:12 -0700882 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_hw_filter.o \
Rachit Kankane0cf4d4f2018-08-01 14:27:44 +0530883
884ifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y)
885PMO_OBJS += $(PMO_DIR)/core/src/wlan_pmo_pkt_filter.o \
Ravi Kumar Bokka0b9ead32017-05-11 17:01:43 +0530886 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_pkt_filter.o
Rajeev Kumar6bdee8e2018-04-18 17:36:05 -0700887endif
Rachit Kankane0cf4d4f2018-08-01 14:27:44 +0530888endif
Mukul Sharmac5de6772017-01-05 14:32:36 +0530889
Qiwei Cai1083f5b2018-07-02 19:10:11 +0800890ifeq ($(CONFIG_WLAN_NS_OFFLOAD), y)
891PMO_OBJS += $(PMO_DIR)/core/src/wlan_pmo_ns.o \
892 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_ns.o
893endif
894
Nachiket Kukade98f562a2017-12-15 12:18:07 +0530895########## DISA (ENCRYPTION TEST) ##########
896
897DISA_DIR := components/disa
898DISA_INC := -I$(WLAN_ROOT)/$(DISA_DIR)/core/inc \
899 -I$(WLAN_ROOT)/$(DISA_DIR)/dispatcher/inc
900
901ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
902DISA_OBJS := $(DISA_DIR)/core/src/wlan_disa_main.o \
903 $(DISA_DIR)/dispatcher/src/wlan_disa_obj_mgmt_api.o \
904 $(DISA_DIR)/dispatcher/src/wlan_disa_tgt_api.o \
905 $(DISA_DIR)/dispatcher/src/wlan_disa_ucfg_api.o
906endif
907
Zhang Qian47e22ce2018-01-04 15:38:38 +0800908######## OCB ##############
909OCB_DIR := components/ocb
910OCB_INC := -I$(WLAN_ROOT)/$(OCB_DIR)/core/inc \
911 -I$(WLAN_ROOT)/$(OCB_DIR)/dispatcher/inc
912
913ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
914OCB_OBJS := $(OCB_DIR)/dispatcher/src/wlan_ocb_ucfg_api.o \
915 $(OCB_DIR)/dispatcher/src/wlan_ocb_tgt_api.o \
916 $(OCB_DIR)/core/src/wlan_ocb_main.o
917endif
918
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +0530919######## IPA ##############
920IPA_DIR := components/ipa
921IPA_INC := -I$(WLAN_ROOT)/$(IPA_DIR)/core/inc \
922 -I$(WLAN_ROOT)/$(IPA_DIR)/dispatcher/inc
923
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700924ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +0530925IPA_OBJS := $(IPA_DIR)/dispatcher/src/wlan_ipa_ucfg_api.o \
926 $(IPA_DIR)/dispatcher/src/wlan_ipa_obj_mgmt_api.o \
927 $(IPA_DIR)/dispatcher/src/wlan_ipa_tgt_api.o \
Sravan Kumar Kairamd01b4452018-03-07 17:37:09 +0530928 $(IPA_DIR)/core/src/wlan_ipa_main.o \
Sravan Kumar Kairam2e7aae92018-03-06 19:32:49 +0530929 $(IPA_DIR)/core/src/wlan_ipa_core.o \
Sravan Kumar Kairam271fab22018-03-07 18:57:41 +0530930 $(IPA_DIR)/core/src/wlan_ipa_stats.o \
Sravan Kumar Kairam2e7aae92018-03-06 19:32:49 +0530931 $(IPA_DIR)/core/src/wlan_ipa_rm.o
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +0530932endif
933
Sourav Mohapatra113685f2018-08-29 14:21:55 +0530934######## FWOL ##########
Paul Zhangc9dbaee2019-06-23 22:07:31 +0800935FWOL_CORE_INC := components/fw_offload/core/inc
936FWOL_CORE_SRC := components/fw_offload/core/src
937FWOL_DISPATCHER_INC := components/fw_offload/dispatcher/inc
938FWOL_DISPATCHER_SRC := components/fw_offload/dispatcher/src
939FWOL_TARGET_IF_INC := components/target_if/fw_offload/inc
940FWOL_TARGET_IF_SRC := components/target_if/fw_offload/src
941FWOL_OS_IF_INC := os_if/fw_offload/inc
942FWOL_OS_IF_SRC := os_if/fw_offload/src
Sourav Mohapatra113685f2018-08-29 14:21:55 +0530943
Paul Zhangc9dbaee2019-06-23 22:07:31 +0800944FWOL_INC := -I$(WLAN_ROOT)/$(FWOL_CORE_INC) \
945 -I$(WLAN_ROOT)/$(FWOL_DISPATCHER_INC) \
946 -I$(WLAN_ROOT)/$(FWOL_TARGET_IF_INC) \
947 -I$(WLAN_ROOT)/$(FWOL_OS_IF_INC)
948
949FWOL_OBJS := $(FWOL_CORE_SRC)/wlan_fw_offload_main.o \
950 $(FWOL_DISPATCHER_SRC)/wlan_fwol_ucfg_api.o \
951 $(FWOL_DISPATCHER_SRC)/wlan_fwol_tgt_api.o \
952 $(FWOL_TARGET_IF_SRC)/target_if_fwol.o \
953 $(FWOL_OS_IF_SRC)/os_if_fwol.o
Sourav Mohapatra113685f2018-08-29 14:21:55 +0530954
Abhishek Singhed197482018-09-05 13:22:02 +0530955######## SM FRAMEWORK ##############
956UMAC_SM_DIR := umac/cmn_services/sm_engine
957UMAC_SM_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SM_DIR)/inc
958
959UMAC_SM_OBJS := $(WLAN_COMMON_ROOT)/$(UMAC_SM_DIR)/src/wlan_sm_engine.o
960
961ifeq ($(CONFIG_SM_ENG_HIST), y)
962UMAC_SM_OBJS += $(WLAN_COMMON_ROOT)/$(UMAC_SM_DIR)/src/wlan_sm_engine_dbg.o
963endif
964
965######## COMMON MLME ##############
966UMAC_MLME_INC := -I$(WLAN_COMMON_INC)/umac/mlme \
967 -I$(WLAN_COMMON_INC)/umac/mlme/mlme_objmgr/dispatcher/inc \
Abhishek Singhd5cf22d2019-01-08 19:51:09 +0530968 -I$(WLAN_COMMON_INC)/umac/mlme/vdev_mgr/dispatcher/inc \
969 -I$(WLAN_COMMON_INC)/umac/mlme/pdev_mgr/dispatcher/inc
Abhishek Singhed197482018-09-05 13:22:02 +0530970
Abhishek Singhed197482018-09-05 13:22:02 +0530971UMAC_MLME_OBJS := $(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_vdev_mlme_main.o \
972 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/core/src/vdev_mlme_sm.o \
Abhishek Singhd5cf22d2019-01-08 19:51:09 +0530973 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mlme_api.o \
Abhishek Ambure2ac5dec2019-05-27 14:56:56 +0530974 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/core/src/vdev_mgr_ops.o \
975 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mgr_tgt_if_rx_api.o \
976 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mgr_tgt_if_tx_api.o \
977 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mgr_ucfg_api.o \
978 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mgr_utils_api.o \
Abhishek Singhd5cf22d2019-01-08 19:51:09 +0530979 $(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_cmn_mlme_main.o \
980 $(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_pdev_mlme_main.o \
981 $(WLAN_COMMON_ROOT)/umac/mlme/pdev_mgr/dispatcher/src/wlan_pdev_mlme_api.o
Sandeep Puligillac5609d52018-05-17 19:23:41 -0700982
983######## MLME ##############
984MLME_DIR := components/mlme
985MLME_INC := -I$(WLAN_ROOT)/$(MLME_DIR)/core/inc \
986 -I$(WLAN_ROOT)/$(MLME_DIR)/dispatcher/inc
987
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +0530988MLME_OBJS := $(MLME_DIR)/core/src/wlan_mlme_main.o \
Vignesh Viswanathana0921c42018-09-04 19:03:35 +0530989 $(MLME_DIR)/dispatcher/src/wlan_mlme_api.o \
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +0530990 $(MLME_DIR)/dispatcher/src/wlan_mlme_ucfg_api.o
Sandeep Puligillac5609d52018-05-17 19:23:41 -0700991
Sandeep Puligillab7beb472018-08-13 22:54:20 -0700992MLME_OBJS += $(MLME_DIR)/core/src/wlan_mlme_vdev_mgr_interface.o
Sandeep Puligillab7beb472018-08-13 22:54:20 -0700993
gaurank kathpalia3ebc17b2019-05-29 10:25:09 +0530994
995####### BLACKLIST_MGR ########
996
997BLM_DIR := components/blacklist_mgr
998BLM_INC := -I$(WLAN_ROOT)/$(BLM_DIR)/core/inc \
999 -I$(WLAN_ROOT)/$(BLM_DIR)/dispatcher/inc
1000ifeq ($(CONFIG_FEATURE_BLACKLIST_MGR), y)
1001BLM_OBJS := $(BLM_DIR)/core/src/wlan_blm_main.o \
1002 $(BLM_DIR)/core/src/wlan_blm_core.o \
1003 $(BLM_DIR)/dispatcher/src/wlan_blm_ucfg_api.o \
1004 $(BLM_DIR)/dispatcher/src/wlan_blm_tgt_api.o
1005endif
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05301006########## ACTION OUI ##########
1007
1008ACTION_OUI_DIR := components/action_oui
1009ACTION_OUI_INC := -I$(WLAN_ROOT)/$(ACTION_OUI_DIR)/core/inc \
1010 -I$(WLAN_ROOT)/$(ACTION_OUI_DIR)/dispatcher/inc
1011
1012ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
1013ACTION_OUI_OBJS := $(ACTION_OUI_DIR)/core/src/wlan_action_oui_main.o \
1014 $(ACTION_OUI_DIR)/core/src/wlan_action_oui_parse.o \
1015 $(ACTION_OUI_DIR)/dispatcher/src/wlan_action_oui_tgt_api.o \
1016 $(ACTION_OUI_DIR)/dispatcher/src/wlan_action_oui_ucfg_api.o
1017endif
1018
Mukul Sharmad75a6672017-06-22 15:40:53 +05301019########## CLD TARGET_IF #######
Rajeev Kumarf46083e2017-07-17 17:48:16 -07001020CLD_TARGET_IF_DIR := components/target_if
Mukul Sharmad75a6672017-06-22 15:40:53 +05301021
1022CLD_TARGET_IF_INC := -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/inc \
Zhang Qian47e22ce2018-01-04 15:38:38 +08001023 -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/src
Mukul Sharmad75a6672017-06-22 15:40:53 +05301024
Wu Gaoa9d336b2018-05-30 14:48:04 +08001025ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
Mukul Sharmad75a6672017-06-22 15:40:53 +05301026CLD_TARGET_IF_OBJ := $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \
1027 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \
1028 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_hw_filter.o \
1029 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \
1030 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \
1031 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \
Mukul Sharmad75a6672017-06-22 15:40:53 +05301032 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \
1033 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \
Zhang Qian47e22ce2018-01-04 15:38:38 +08001034 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o
Qiwei Cai1083f5b2018-07-02 19:10:11 +08001035ifeq ($(CONFIG_WLAN_NS_OFFLOAD), y)
1036CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o
1037endif
Rachit Kankane0cf4d4f2018-08-01 14:27:44 +05301038ifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y)
1039CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_pkt_filter.o
1040endif
Wu Gaoa9d336b2018-05-30 14:48:04 +08001041endif
Zhang Qian47e22ce2018-01-04 15:38:38 +08001042
1043ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1044CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ocb/inc
1045CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ocb/src/target_if_ocb.o
1046endif
Mukul Sharmad75a6672017-06-22 15:40:53 +05301047
Nachiket Kukade98f562a2017-12-15 12:18:07 +05301048ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
1049CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/disa/inc
1050CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/disa/src/target_if_disa.o
1051endif
1052
gaurank kathpalia3ebc17b2019-05-29 10:25:09 +05301053ifeq ($(CONFIG_FEATURE_BLACKLIST_MGR), y)
1054CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/blacklist_mgr/inc
1055CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/blacklist_mgr/src/target_if_blm.o
1056endif
1057
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001058ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05301059CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ipa/inc
1060CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ipa/src/target_if_ipa.o
1061endif
1062
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05301063ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
1064CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/action_oui/inc
1065CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/action_oui/src/target_if_action_oui.o
1066endif
1067
Wu Gao64b31482017-03-10 15:16:10 +08001068############## UMAC P2P ###########
Wu Gao637d58a2018-12-08 10:37:34 +08001069P2P_DIR := components/p2p
1070P2P_CORE_OBJ_DIR := $(P2P_DIR)/core/src
Wu Gao64b31482017-03-10 15:16:10 +08001071P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher
1072P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc
Wu Gao637d58a2018-12-08 10:37:34 +08001073P2P_DISPATCHER_OBJ_DIR := $(P2P_DISPATCHER_DIR)/src
1074P2P_OS_IF_INC := os_if/p2p/inc
1075P2P_OS_IF_SRC := os_if/p2p/src
1076P2P_TARGET_IF_INC := components/target_if/p2p/inc
1077P2P_TARGET_IF_SRC := components/target_if/p2p/src
1078P2P_INC := -I$(WLAN_ROOT)/$(P2P_DISPATCHER_INC_DIR) \
1079 -I$(WLAN_ROOT)/$(P2P_OS_IF_INC) \
1080 -I$(WLAN_ROOT)/$(P2P_TARGET_IF_INC)
1081P2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \
1082 $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \
1083 $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_cfg.o \
Pragaspathi Thilagarajb3472f02019-06-04 14:10:44 +05301084 $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_api.o \
Wu Gao637d58a2018-12-08 10:37:34 +08001085 $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \
1086 $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \
1087 $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o \
1088 $(P2P_OS_IF_SRC)/wlan_cfg80211_p2p.o \
1089 $(P2P_TARGET_IF_SRC)/target_if_p2p.o
Wu Gao64b31482017-03-10 15:16:10 +08001090
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001091###### UMAC POLICY MGR ########
Wu Gaod6b5e402018-12-03 22:09:24 +08001092POLICY_MGR_DIR := components/cmn_services/policy_mgr
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001093
Wu Gaod6b5e402018-12-03 22:09:24 +08001094POLICY_MGR_INC := -I$(WLAN_ROOT)/$(POLICY_MGR_DIR)/inc \
1095 -I$(WLAN_ROOT)/$(POLICY_MGR_DIR)/src
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001096
Wu Gaod6b5e402018-12-03 22:09:24 +08001097POLICY_MGR_OBJS := $(POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \
1098 $(POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \
1099 $(POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \
1100 $(POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \
1101 $(POLICY_MGR_DIR)/src/wlan_policy_mgr_ucfg.o \
1102 $(POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o \
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001103
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001104###### UMAC TDLS ########
Wu Gao5f793402018-12-08 11:04:00 +08001105TDLS_DIR := components/tdls
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001106
Wu Gao5f793402018-12-08 11:04:00 +08001107TDLS_OS_IF_INC := os_if/tdls/inc
1108TDLS_OS_IF_SRC := os_if/tdls/src
1109TDLS_TARGET_IF_INC := components/target_if/tdls/inc
1110TDLS_TARGET_IF_SRC := components/target_if/tdls/src
1111TDLS_INC := -I$(WLAN_ROOT)/$(TDLS_DIR)/dispatcher/inc \
1112 -I$(WLAN_ROOT)/$(TDLS_OS_IF_INC) \
1113 -I$(WLAN_ROOT)/$(TDLS_TARGET_IF_INC)
Jeff Johnson74c6bb22019-02-15 10:15:07 -08001114
Jeff Johnson2de58792019-02-08 07:49:17 -08001115ifeq ($(CONFIG_QCOM_TDLS), y)
Wu Gao5f793402018-12-08 11:04:00 +08001116TDLS_OBJS := $(TDLS_DIR)/core/src/wlan_tdls_main.o \
1117 $(TDLS_DIR)/core/src/wlan_tdls_cmds_process.o \
1118 $(TDLS_DIR)/core/src/wlan_tdls_peer.o \
1119 $(TDLS_DIR)/core/src/wlan_tdls_mgmt.o \
1120 $(TDLS_DIR)/core/src/wlan_tdls_ct.o \
1121 $(TDLS_DIR)/dispatcher/src/wlan_tdls_tgt_api.o \
1122 $(TDLS_DIR)/dispatcher/src/wlan_tdls_ucfg_api.o \
1123 $(TDLS_DIR)/dispatcher/src/wlan_tdls_utils_api.o \
1124 $(TDLS_DIR)/dispatcher/src/wlan_tdls_cfg.o \
1125 $(TDLS_OS_IF_SRC)/wlan_cfg80211_tdls.o \
1126 $(TDLS_TARGET_IF_SRC)/target_if_tdls.o
Jeff Johnson74c6bb22019-02-15 10:15:07 -08001127endif
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001128
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001129########### BMI ###########
1130BMI_DIR := core/bmi
1131
1132BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
1133
Qiwei Caia01a9622018-07-11 10:02:03 +08001134ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001135BMI_OBJS := $(BMI_DIR)/src/bmi.o \
Qiwei Caia01a9622018-07-11 10:02:03 +08001136 $(BMI_DIR)/src/bmi_1.o \
Poddar, Siddarthef1f3022016-05-10 20:10:43 +05301137 $(BMI_DIR)/src/ol_fw.o \
1138 $(BMI_DIR)/src/ol_fw_common.o
Qiwei Caia01a9622018-07-11 10:02:03 +08001139endif
Govind Singh0fea23a2016-03-18 12:59:27 +05301140
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301141########## TARGET_IF #######
1142TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if
1143
1144TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \
Rajeev Kumarda2444c2017-01-10 22:42:07 -08001145 -I$(WLAN_COMMON_INC)/target_if/core/src \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +05301146 -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001147 -I$(WLAN_COMMON_INC)/target_if/regulatory/inc \
hqu2aeaa672019-07-11 17:37:03 +08001148 -I$(WLAN_COMMON_INC)/target_if/mlme/vdev_mgr/inc \
1149 -I$(WLAN_COMMON_INC)/target_if/dispatcher/inc
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301150
Rajeev Kumarda2444c2017-01-10 22:42:07 -08001151TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001152 $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o \
Ashish Kumar Dhanotiyaaa9fdbb2018-12-14 15:29:14 +05301153 $(TARGET_IF_DIR)/regulatory/src/target_if_reg_lte.o \
1154 $(TARGET_IF_DIR)/regulatory/src/target_if_reg_11d.o \
Arunk Khandavallia6305a32018-01-25 11:19:18 +05301155 $(TARGET_IF_DIR)/init_deinit/src/init_cmd_api.o \
Sourav Mohapatracf632572018-04-02 11:01:35 +05301156 $(TARGET_IF_DIR)/init_deinit/src/init_deinit_lmac.o \
Arunk Khandavallia6305a32018-01-25 11:19:18 +05301157 $(TARGET_IF_DIR)/init_deinit/src/init_event_handler.o \
1158 $(TARGET_IF_DIR)/init_deinit/src/service_ready_util.o \
Abhishek Ambure2ac5dec2019-05-27 14:56:56 +05301159 $(TARGET_IF_DIR)/mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.o \
1160 $(TARGET_IF_DIR)/mlme/vdev_mgr/src/target_if_vdev_mgr_rx_ops.o
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301161
sandeep puligilla4afcb112019-04-23 13:42:51 -07001162ifeq ($(CONFIG_FEATURE_VDEV_RSP_WAKELOCK), y)
1163TARGET_IF_OBJ += $(TARGET_IF_DIR)/mlme/vdev_mgr/src/target_if_vdev_mgr_wake_lock.o
1164endif
1165
Mukul Sharmadad267e2017-02-04 13:25:34 +05301166########### GLOBAL_LMAC_IF ##########
1167GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if
1168
1169GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \
1170 -I$(WLAN_COMMON_INC)/global_lmac_if/src
1171
1172GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o
1173
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001174########### WMI ###########
Govind Singh0fea23a2016-03-18 12:59:27 +05301175WMI_ROOT_DIR := wmi
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001176
Govind Singh0fea23a2016-03-18 12:59:27 +05301177WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
1178WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
1179WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001180
Govind Singh0fea23a2016-03-18 12:59:27 +05301181WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
1182
1183WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
1184 $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
1185 $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
1186 $(WMI_OBJ_DIR)/wmi_unified_api.o \
Abhishek Ambure2ac5dec2019-05-27 14:56:56 +05301187 $(WMI_OBJ_DIR)/wmi_unified_reg_api.o \
Abhishek Amburee8528972019-09-09 16:49:09 +05301188 $(WMI_OBJ_DIR)/wmi_unified_vdev_api.o \
1189 $(WMI_OBJ_DIR)/wmi_unified_vdev_tlv.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001190
Wu Gaoa9d336b2018-05-30 14:48:04 +08001191ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
1192WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o
Qiwei Caidcb73b02018-09-17 19:58:29 +08001193WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_pmo_tlv.o
Wu Gaoa9d336b2018-05-30 14:48:04 +08001194endif
1195
Nachiket Kukaded0dd62e2018-05-21 18:39:22 +05301196ifeq ($(CONFIG_QCACLD_FEATURE_APF), y)
1197WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_apf_tlv.o
1198endif
1199
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05301200ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
1201WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_action_oui_tlv.o
1202endif
1203
Zhang Qian47e22ce2018-01-04 15:38:38 +08001204ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1205ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
1206WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_ut.o
1207endif
1208endif
1209
Wen Gong01a2c632018-04-11 18:34:55 +08001210ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y)
1211WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_dfs_api.o
1212endif
1213
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -07001214ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
1215WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_api.o
1216WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_tlv.o
1217endif
1218
Qiwei Caidcb73b02018-09-17 19:58:29 +08001219ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1220WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_api.o
1221WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_tlv.o
1222endif
1223
Wen Gongbd949fc2018-05-21 18:35:13 +08001224ifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y)
1225WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_api.o
1226WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_tlv.o
1227endif
1228
Paul Zhang37185672019-05-14 11:20:14 +08001229ifeq ($(CONFIG_FEATURE_INTEROP_ISSUES_AP), y)
1230WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_interop_issues_ap_api.o
1231WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_interop_issues_ap_tlv.o
1232endif
1233
Nachiket Kukade2fb1fdb2019-01-08 15:35:27 +05301234ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Qiwei Caidcb73b02018-09-17 19:58:29 +08001235WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_nan_api.o
1236WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_nan_tlv.o
1237endif
1238
1239ifeq ($(CONFIG_CONVERGED_P2P_ENABLE), y)
1240WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_p2p_api.o
1241WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_p2p_tlv.o
1242endif
1243
1244ifeq ($(CONFIG_WMI_ROAM_SUPPORT), y)
1245WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_roam_api.o
1246WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_roam_tlv.o
1247endif
1248
1249ifeq ($(CONFIG_WMI_CONCURRENCY_SUPPORT), y)
1250WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_concurrency_api.o
1251WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_concurrency_tlv.o
1252endif
1253
1254ifeq ($(CONFIG_WMI_STA_SUPPORT), y)
1255WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_sta_api.o
1256WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_sta_tlv.o
1257endif
1258
Harprit Chhabada253e36a2018-12-11 15:29:55 -08001259ifeq ($(CONFIG_WMI_BCN_OFFLOAD), y)
1260WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_bcn_api.o
Liangwei Dong03e080c2019-07-02 17:06:39 +08001261WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_bcn_tlv.o
Harprit Chhabada253e36a2018-12-11 15:29:55 -08001262endif
1263
Paul Zhangc9dbaee2019-06-23 22:07:31 +08001264ifeq ($(CONFIG_WLAN_FW_OFFLOAD), y)
1265WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_fwol_api.o
1266WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_fwol_tlv.o
1267endif
1268
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001269########### FWLOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -08001270FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001271
1272FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
1273
1274FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
1275
1276############ TXRX ############
1277TXRX_DIR := core/dp/txrx
1278TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
1279
Saket Jha99531502019-08-21 15:00:49 -07001280ifneq ($(CONFIG_LITHIUM), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001281TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \
Saket Jha99531502019-08-21 15:00:49 -07001282 $(TXRX_DIR)/ol_cfg.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001283 $(TXRX_DIR)/ol_rx.o \
1284 $(TXRX_DIR)/ol_rx_fwd.o \
1285 $(TXRX_DIR)/ol_txrx.o \
1286 $(TXRX_DIR)/ol_rx_defrag.o \
1287 $(TXRX_DIR)/ol_tx_desc.o \
1288 $(TXRX_DIR)/ol_tx.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001289 $(TXRX_DIR)/ol_rx_pn.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001290 $(TXRX_DIR)/ol_txrx_peer_find.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001291 $(TXRX_DIR)/ol_txrx_encap.o \
Nirav Shah52d85aa2018-04-26 14:03:00 +05301292 $(TXRX_DIR)/ol_tx_send.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001293
Nirav Shah5db193f2019-08-05 15:55:16 +05301294ifeq ($(CONFIG_HL_DP_SUPPORT), y)
1295TXRX_OBJS += $(TXRX_DIR)/ol_rx_reorder_timeout.o
1296TXRX_OBJS += $(TXRX_DIR)/ol_rx_reorder.o
1297endif
1298
Nirav Shahbb8e47c2018-05-17 16:56:41 +05301299ifeq ($(CONFIG_WDI_EVENT_ENABLE), y)
Saket Jha99531502019-08-21 15:00:49 -07001300TXRX_OBJS += $(TXRX_DIR)/ol_txrx_event.o
Nirav Shahbb8e47c2018-05-17 16:56:41 +05301301endif
1302
Nirav Shah52d85aa2018-04-26 14:03:00 +05301303ifeq ($(CONFIG_LL_DP_SUPPORT), y)
1304
1305TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll.o
1306
1307ifeq ($(CONFIG_WLAN_FASTPATH), y)
1308TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_fastpath.o
1309else
1310TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_legacy.o
1311endif
1312
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001313ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1314TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
1315endif
1316
Nirav Shah52d85aa2018-04-26 14:03:00 +05301317endif #CONFIG_LL_DP_SUPPORT
1318
1319ifeq ($(CONFIG_HL_DP_SUPPORT), y)
1320TXRX_OBJS += $(TXRX_DIR)/ol_tx_hl.o
1321TXRX_OBJS += $(TXRX_DIR)/ol_tx_classify.o
1322TXRX_OBJS += $(TXRX_DIR)/ol_tx_sched.o
1323TXRX_OBJS += $(TXRX_DIR)/ol_tx_queue.o
1324endif #CONFIG_HL_DP_SUPPORT
1325
Nirav Shahc4aa1ab2018-04-21 12:38:44 +05301326ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY), y)
1327TXRX_OBJS += $(TXRX_DIR)/ol_txrx_legacy_flow_control.o
1328endif
1329
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001330ifeq ($(CONFIG_IPA_OFFLOAD), y)
Yun Parkb4f591d2017-03-29 15:51:01 -07001331TXRX_OBJS += $(TXRX_DIR)/ol_txrx_ipa.o
1332endif
1333
Nirav Shah46fc6302018-04-21 12:49:28 +05301334ifeq ($(CONFIG_QCA_SUPPORT_TX_THROTTLE), y)
1335TXRX_OBJS += $(TXRX_DIR)/ol_tx_throttle.o
1336endif
Saket Jha99531502019-08-21 15:00:49 -07001337endif #LITHIUM
Nirav Shah46fc6302018-04-21 12:49:28 +05301338
Mohit Khanna70322002018-05-15 19:21:32 -07001339############ TXRX 3.0 ############
1340TXRX3.0_DIR := core/dp/txrx3.0
1341TXRX3.0_INC := -I$(WLAN_ROOT)/$(TXRX3.0_DIR)
1342TXRX3.0_OBJS := $(TXRX3.0_DIR)/dp_txrx.o \
1343 $(TXRX3.0_DIR)/dp_rx_thread.o
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001344ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001345############ DP 3.0 ############
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001346DP_INC := -I$(WLAN_COMMON_INC)/dp/inc \
1347 -I$(WLAN_COMMON_INC)/dp/wifi3.0 \
1348 -I$(WLAN_COMMON_INC)/target_if/dp/inc
Leo Chang5f7a1e02016-11-04 14:04:26 -07001349
1350DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0
1351DP_OBJS := $(DP_SRC)/dp_main.o \
1352 $(DP_SRC)/dp_tx.o \
1353 $(DP_SRC)/dp_tx_desc.o \
1354 $(DP_SRC)/dp_rx.o \
1355 $(DP_SRC)/dp_rx_err.o \
1356 $(DP_SRC)/dp_htt.o \
1357 $(DP_SRC)/dp_peer.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001358 $(DP_SRC)/dp_rx_desc.o \
Ravi Joshi12665a02017-03-08 16:35:04 -08001359 $(DP_SRC)/dp_reo.o \
1360 $(DP_SRC)/dp_rx_mon_dest.o \
Ravi Joshic4a41082017-01-09 22:27:58 -08001361 $(DP_SRC)/dp_rx_mon_status.o \
Venkata Sharath Chandra Manchalabcdfdb12017-03-29 19:25:45 -07001362 $(DP_SRC)/dp_rx_defrag.o \
Sravan Kumar Kairamb8bdf522018-05-30 22:14:50 +05301363 $(DP_SRC)/dp_stats.o \
1364 $(WLAN_COMMON_ROOT)/target_if/dp/src/target_if_dp.o
Manjunathappa Prakash6c547362017-03-30 20:11:47 -07001365ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1366DP_OBJS += $(DP_SRC)/dp_tx_flow_control.o
1367endif
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001368endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001369
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001370ifeq ($(CONFIG_IPA_OFFLOAD), y)
Yun Parkb4f591d2017-03-29 15:51:01 -07001371DP_OBJS += $(DP_SRC)/dp_ipa.o
1372endif
1373
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001374ifeq ($(CONFIG_WDI_EVENT_ENABLE), y)
Venkata Sharath Chandra Manchala1240fc72017-10-26 17:32:29 -07001375DP_OBJS += $(DP_SRC)/dp_wdi_event.o
1376endif
1377
Leo Chang5f7a1e02016-11-04 14:04:26 -07001378############ CFG ############
Ravi Joshid55b18a2017-02-17 10:48:14 -08001379WCFG_DIR := wlan_cfg
1380WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR)
1381WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR)
Nirav Shah9272dbb2018-07-18 12:01:39 +05301382
1383ifeq ($(CONFIG_LITHIUM), y)
Ravi Joshid55b18a2017-02-17 10:48:14 -08001384WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o
Nirav Shah9272dbb2018-07-18 12:01:39 +05301385endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001386
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001387############ OL ############
1388OL_DIR := core/dp/ol
1389OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
1390
Dhanashri Atre12a08392016-02-17 13:10:34 -08001391############ CDP ############
1392CDP_ROOT_DIR := dp
1393CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
1394CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
1395
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001396############ PKTLOG ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -08001397PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001398PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
1399
1400PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
1401 $(PKTLOG_DIR)/pktlog_internal.o \
1402 $(PKTLOG_DIR)/linux_ac.o
1403
1404############ HTT ############
1405HTT_DIR := core/dp/htt
1406HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
1407
1408HTT_OBJS := $(HTT_DIR)/htt_tx.o \
1409 $(HTT_DIR)/htt.o \
1410 $(HTT_DIR)/htt_t2h.o \
1411 $(HTT_DIR)/htt_h2t.o \
1412 $(HTT_DIR)/htt_fw_stats.o \
1413 $(HTT_DIR)/htt_rx.o
1414
Nirav Shah73713f72018-05-17 14:50:41 +05301415ifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y)
1416HTT_OBJS += $(HTT_DIR)/htt_monitor_rx.o
1417endif
Rajeev Kumar97767a02016-11-30 11:20:40 -08001418
Nirav Shah6ebfe242018-05-09 15:56:12 +05301419ifeq ($(CONFIG_LL_DP_SUPPORT), y)
1420HTT_OBJS += $(HTT_DIR)/htt_rx_ll.o
1421endif
1422
1423ifeq ($(CONFIG_HL_DP_SUPPORT), y)
1424HTT_OBJS += $(HTT_DIR)/htt_rx_hl.o
1425endif
1426
Rajeev Kumar97767a02016-11-30 11:20:40 -08001427############## INIT-DEINIT ###########
1428INIT_DEINIT_DIR := init_deinit/dispatcher
1429INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc
1430INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src
1431INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR)
1432INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR)
1433INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o
1434
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001435############## REGULATORY ###########
1436REGULATORY_DIR := umac/regulatory
1437REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc
1438REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src
1439REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc
1440REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src
1441REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR)
1442REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR)
1443REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR)
1444REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR)
Ashish Kumar Dhanotiyaaa9fdbb2018-12-14 15:29:14 +05301445REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_build_chan_list.o \
1446 $(REG_CORE_OBJ_DIR)/reg_callbacks.o \
1447 $(REG_CORE_OBJ_DIR)/reg_db.o \
1448 $(REG_CORE_OBJ_DIR)/reg_db_parser.o \
Ashish Kumar Dhanotiyaddeb4d72019-01-08 21:25:30 +05301449 $(REG_CORE_OBJ_DIR)/reg_utils.o \
Ashish Kumar Dhanotiyaaa9fdbb2018-12-14 15:29:14 +05301450 $(REG_CORE_OBJ_DIR)/reg_lte.o \
Ashish Kumar Dhanotiyaddeb4d72019-01-08 21:25:30 +05301451 $(REG_CORE_OBJ_DIR)/reg_offload_11d_scan.o \
Ashish Kumar Dhanotiyaaa9fdbb2018-12-14 15:29:14 +05301452 $(REG_CORE_OBJ_DIR)/reg_opclass.o \
1453 $(REG_CORE_OBJ_DIR)/reg_priv_objs.o \
1454 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \
1455 $(REG_CORE_OBJ_DIR)/reg_services_common.o \
1456 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \
1457 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o
Liangwei Dong2fce7162018-08-24 01:07:22 -04001458ifeq ($(CONFIG_HOST_11D_SCAN), y)
1459REGULATORY_OBJS += $(REG_CORE_OBJ_DIR)/reg_host_11d.o
1460endif
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001461
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001462############## Control path common scheduler ##########
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001463SCHEDULER_DIR := scheduler
1464SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc
1465SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src
1466SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR)
1467SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR)
1468SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \
1469 $(SCHEDULER_OBJ_DIR)/scheduler_core.o
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001470
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001471###### UMAC SERIALIZATION ########
1472UMAC_SER_DIR := umac/cmn_services/serialization
1473UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc
1474UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src
1475UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR)
Rajeev Kumar97767a02016-11-30 11:20:40 -08001476
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001477UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR)
Jianmin Zhuc2eae9c2018-08-24 16:59:09 +08001478UMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001479 $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \
1480 $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \
Varun Reddy Yeturu35c07f92017-02-28 10:35:00 -08001481 $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \
Jianmin Zhuc2eae9c2018-08-24 16:59:09 +08001482 $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o \
1483 $(UMAC_SER_OBJ_DIR)/wlan_serialization_internal.o \
1484 $(UMAC_SER_OBJ_DIR)/wlan_serialization_non_scan.o \
1485 $(UMAC_SER_OBJ_DIR)/wlan_serialization_queue.o \
1486 $(UMAC_SER_OBJ_DIR)/wlan_serialization_scan.o
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001487
1488###### WIFI POS ########
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001489WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src
1490WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc
1491WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src
1492WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc
1493WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src
1494WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc
1495
1496
1497ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
1498WIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \
1499 $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \
1500 $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \
1501 $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \
1502 $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \
1503 $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o
1504endif
1505
Naveen Rawat73e1ca92018-01-12 15:26:14 -08001506###### CP STATS ########
Naveen Rawat96a77d32018-01-12 15:26:14 -08001507CP_STATS_OS_IF_SRC := $(WLAN_COMMON_ROOT)/os_if/linux/cp_stats/src
1508CP_STATS_TGT_SRC := $(WLAN_COMMON_ROOT)/target_if/cp_stats/src
1509CP_STATS_CORE_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/core/src
1510CP_STATS_DISPATCHER_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/dispatcher/src
1511
Naveen Rawat73e1ca92018-01-12 15:26:14 -08001512CP_STATS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/cp_stats/inc
1513CP_STATS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/cp_stats/inc
1514CP_STATS_DISPATCHER_INC := -I$(WLAN_COMMON_INC)/umac/cp_stats/dispatcher/inc
1515
Naveen Rawat96a77d32018-01-12 15:26:14 -08001516ifeq ($(CONFIG_CP_STATS), y)
1517CP_STATS_OBJS := $(CP_STATS_TGT_SRC)/target_if_mc_cp_stats.o \
1518 $(CP_STATS_CORE_SRC)/wlan_cp_stats_comp_handler.o \
1519 $(CP_STATS_CORE_SRC)/wlan_cp_stats_obj_mgr_handler.o \
Naveen Rawat96a77d32018-01-12 15:26:14 -08001520 $(CP_STATS_CORE_SRC)/wlan_cp_stats_ol_api.o \
1521 $(CP_STATS_OS_IF_SRC)/wlan_cfg80211_mc_cp_stats.o \
1522 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_utils_api.o \
1523 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_tgt_api.o \
1524 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_ucfg_api.o
1525endif
1526
hquff302a92019-07-18 00:06:11 +08001527###### COMPONENT CP STATS ########
1528COMP_CP_STATS_DISPATCHER_INC := -I$(WLAN_ROOT)/components/cp_stats/dispatcher/inc
1529
Paul Zhang37185672019-05-14 11:20:14 +08001530###### INTEROP ISSUES AP ########
1531INTEROP_ISSUES_AP_OS_IF_SRC := os_if/interop_issues_ap/src
1532INTEROP_ISSUES_AP_TGT_SRC := components/target_if/interop_issues_ap/src
1533INTEROP_ISSUES_AP_CORE_SRC := components/interop_issues_ap/core/src
1534INTEROP_ISSUES_AP_DISPATCHER_SRC := components/interop_issues_ap/dispatcher/src
1535
1536INTEROP_ISSUES_AP_OS_IF_INC := -I$(WLAN_ROOT)/os_if/interop_issues_ap/inc
1537INTEROP_ISSUES_AP_TGT_INC := -I$(WLAN_ROOT)/components/target_if/interop_issues_ap/inc
1538INTEROP_ISSUES_AP_DISPATCHER_INC := -I$(WLAN_ROOT)/components/interop_issues_ap/dispatcher/inc
1539INTEROP_ISSUES_AP_CORE_INC := -I$(WLAN_ROOT)/components/interop_issues_ap/core/inc
1540
1541ifeq ($(CONFIG_FEATURE_INTEROP_ISSUES_AP), y)
1542INTEROP_ISSUES_AP_OBJS := $(INTEROP_ISSUES_AP_TGT_SRC)/target_if_interop_issues_ap.o \
1543 $(INTEROP_ISSUES_AP_CORE_SRC)/wlan_interop_issues_ap_api.o \
1544 $(INTEROP_ISSUES_AP_OS_IF_SRC)/wlan_cfg80211_interop_issues_ap.o \
1545 $(INTEROP_ISSUES_AP_DISPATCHER_SRC)/wlan_interop_issues_ap_tgt_api.o \
1546 $(INTEROP_ISSUES_AP_DISPATCHER_SRC)/wlan_interop_issues_ap_ucfg_api.o
1547endif
1548
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001549######################### NAN #########################
Nachiket Kukade63bb63d2018-11-21 14:42:14 +05301550NAN_CORE_DIR := components/nan/core/src
1551NAN_CORE_INC := -I$(WLAN_ROOT)/components/nan/core/inc
1552NAN_UCFG_DIR := components/nan/dispatcher/src
1553NAN_UCFG_INC := -I$(WLAN_ROOT)/components/nan/dispatcher/inc
1554NAN_TGT_DIR := components/target_if/nan/src
1555NAN_TGT_INC := -I$(WLAN_ROOT)/components/target_if/nan/inc
1556
1557NAN_OS_IF_DIR := os_if/nan/src
1558NAN_OS_IF_INC := -I$(WLAN_ROOT)/os_if/nan/inc
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001559
Nachiket Kukade2fb1fdb2019-01-08 15:35:27 +05301560ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001561WLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \
1562 $(NAN_CORE_DIR)/nan_api.o \
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001563 $(NAN_UCFG_DIR)/nan_ucfg_api.o \
Manikandan Mohandcd0fdf2018-08-02 18:13:37 -07001564 $(NAN_UCFG_DIR)/cfg_nan.o \
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001565 $(NAN_TGT_DIR)/target_if_nan.o \
1566 $(NAN_OS_IF_DIR)/os_if_nan.o
1567endif
1568#######################################################
1569
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001570############## HTC ##########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001571HTC_DIR := htc
1572HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001573
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001574HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
1575 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
1576 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
1577 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001578
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001579ifeq ($(CONFIG_FEATURE_HTC_CREDIT_HISTORY), y)
Rachit Kankaneb1035622018-01-24 18:41:35 +05301580HTC_OBJS += $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_credit_history.o
1581endif
1582
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001583########### HIF ###########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001584HIF_DIR := hif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001585HIF_CE_DIR := $(HIF_DIR)/src/ce
Houston Hoffman1edffd32016-01-27 16:30:34 -08001586
1587HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
1588
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001589HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001590HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
Mohit Khannada4f4432016-05-17 15:02:09 -07001591HIF_USB_DIR := $(HIF_DIR)/src/usb
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301592HIF_SDIO_DIR := $(HIF_DIR)/src/sdio
1593
1594HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio
1595HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include
1596HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001597
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001598HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
tfyu350d9f72017-08-10 15:13:06 +08001599 -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src
Houston Hoffman1edffd32016-01-27 16:30:34 -08001600
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001601ifeq ($(CONFIG_HIF_PCI), y)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001602HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001603HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
tfyu350d9f72017-08-10 15:13:06 +08001604HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001605endif
1606
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001607ifeq ($(CONFIG_HIF_SNOC), y)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001608HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001609HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
tfyu350d9f72017-08-10 15:13:06 +08001610HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001611endif
1612
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001613ifeq ($(CONFIG_HIF_USB), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001614HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1615HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR)
Guisen Yang260fd082019-09-24 16:55:54 +08001616HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Mohit Khannada4f4432016-05-17 15:02:09 -07001617endif
1618
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001619ifeq ($(CONFIG_HIF_SDIO), y)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301620HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1621HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR)
1622HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR)
Guisen Yang260fd082019-09-24 16:55:54 +08001623HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301624endif
1625
1626HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
Guisen Yang260fd082019-09-24 16:55:54 +08001627 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
1628 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_exec.o
Nirav Shaheb017be2018-02-15 11:20:58 +05301629
Nirav Shah3422e032018-10-12 14:48:31 +05301630ifneq ($(CONFIG_LITHIUM), y)
1631HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main_legacy.o
1632endif
1633
Nirav Shaheb017be2018-02-15 11:20:58 +05301634ifeq ($(CONFIG_WLAN_NAPI), y)
Nirav Shaheb017be2018-02-15 11:20:58 +05301635HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_irq_affinity.o
1636endif
1637
Qiwei Caia01a9622018-07-11 10:02:03 +08001638HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301639 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
1640 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
1641 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
Nirav Shahef7edb92018-07-18 11:54:13 +05301642 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001643 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301644
Qiwei Caia01a9622018-07-11 10:02:03 +08001645ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
1646HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o
1647endif
1648
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001649ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001650ifeq ($(CONFIG_CNSS_QCA6290), y)
1651HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o
Houston Hoffmana0f93492016-11-18 13:42:12 -08001652endif
1653
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001654ifeq ($(CONFIG_CNSS_QCA6390), y)
1655HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6390def.o
1656endif
1657
1658HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
Nirav Shahaf1260f2018-09-13 23:28:13 +05301659else
1660HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_legacy.o
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001661endif
Houston Hoffmanb4d45672017-04-24 11:56:50 -07001662
Mohit Khannada4f4432016-05-17 15:02:09 -07001663HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \
1664 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \
1665 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \
1666 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o
1667
Qiwei Caia01a9622018-07-11 10:02:03 +08001668HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301669 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \
1670 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301671 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o \
1672 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/transfer.o
Qiwei Caia01a9622018-07-11 10:02:03 +08001673
1674ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
1675HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o
1676endif
1677
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301678ifeq ($(CONFIG_SDIO_TRANSFER), adma)
1679HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/adma.o
1680else
1681HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/mailbox.o
1682endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301683
1684HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301685 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o \
1686 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/dev_quirks.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001687
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001688ifeq ($(CONFIG_WLAN_NAPI), y)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001689HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001690endif
1691
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001692ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), y)
Dustin Brown0f8dc3d2017-06-01 14:37:26 -07001693 HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_unit_test_suspend.o
1694endif
1695
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001696HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001697HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301698HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001699
Houston Hoffman1edffd32016-01-27 16:30:34 -08001700HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
Houston Hoffmanb61b9b12016-03-03 20:04:16 -08001701HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
Srinivas Girigowdac7a1b0a2017-12-08 12:00:00 -08001702HIF_OBJS += $(HIF_COMMON_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001703
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001704ifeq ($(CONFIG_HIF_PCI), y)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001705HIF_OBJS += $(HIF_PCIE_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301706HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001707HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
1708endif
1709
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001710ifeq ($(CONFIG_HIF_SNOC), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001711HIF_OBJS += $(HIF_SNOC_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301712HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001713HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001714endif
1715
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001716ifeq ($(CONFIG_HIF_SDIO), y)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301717HIF_OBJS += $(HIF_SDIO_OBJS)
1718HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301719HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o
1720endif
1721
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001722ifeq ($(CONFIG_HIF_USB), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001723HIF_OBJS += $(HIF_USB_OBJS)
Mohit Khannada4f4432016-05-17 15:02:09 -07001724HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o
1725endif
1726
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001727ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001728############ HAL ############
1729HAL_DIR := hal
1730HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \
1731 -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0
1732
1733HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001734 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001735
1736ifeq ($(CONFIG_CNSS_QCA6290), y)
1737HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6290
Venkata Sharath Chandra Manchalac06175d2018-08-23 15:29:56 -07001738HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6290/hal_6290.o
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001739else ifeq ($(CONFIG_CNSS_QCA6390), y)
1740HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6390
Venkata Sharath Chandra Manchalac06175d2018-08-23 15:29:56 -07001741HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6390/hal_6390.o
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001742else
1743#error "Not 11ax"
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001744endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001745
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001746endif #####CONFIG_LITHIUM####
1747
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001748############ WMA ############
1749WMA_DIR := core/wma
1750
1751WMA_INC_DIR := $(WMA_DIR)/inc
1752WMA_SRC_DIR := $(WMA_DIR)/src
1753
1754WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
1755 -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
1756
Nachiket Kukade2fb1fdb2019-01-08 15:35:27 +05301757ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Ravi Joshia063dd92016-05-25 16:43:13 -07001758WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
1759endif
1760
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001761WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \
1762 $(WMA_SRC_DIR)/wma_scan_roam.o \
1763 $(WMA_SRC_DIR)/wma_dev_if.o \
1764 $(WMA_SRC_DIR)/wma_mgmt.o \
1765 $(WMA_SRC_DIR)/wma_power.o \
1766 $(WMA_SRC_DIR)/wma_data.o \
1767 $(WMA_SRC_DIR)/wma_utils.o \
1768 $(WMA_SRC_DIR)/wma_features.o \
Ravi Joshia063dd92016-05-25 16:43:13 -07001769 $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
1770 $(WMA_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001771
Wu Gao10300f92019-05-28 19:08:06 +08001772#######DIRECT_BUFFER_RX#########
1773ifeq ($(CONFIG_DIRECT_BUF_RX_ENABLE), y)
1774DBR_DIR = $(WLAN_COMMON_ROOT)/target_if/direct_buf_rx
1775UMAC_DBR_INC := -I$(WLAN_COMMON_INC)/target_if/direct_buf_tx/inc
1776UMAC_DBR_OBJS := $(DBR_DIR)/src/target_if_direct_buf_rx_api.o \
1777 $(DBR_DIR)/src/target_if_direct_buf_rx_main.o \
1778 $(WLAN_COMMON_ROOT)/wmi/src/wmi_unified_dbr_api.o \
1779 $(WLAN_COMMON_ROOT)/wmi/src/wmi_unified_dbr_tlv.o
1780endif
1781
Agrawal Ashishb141b092016-09-02 19:59:26 +05301782ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
Jeff Johnsonb90ab572017-01-31 15:57:35 -08001783WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o
Agrawal Ashishb141b092016-09-02 19:59:26 +05301784endif
Jeff Johnson6136fb92017-03-30 15:21:49 -07001785ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
1786WMA_OBJS+= $(WMA_SRC_DIR)/wma_fips_api.o
1787endif
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001788ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001789WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
1790endif
Krishna Kumaar Natarajand0bbb3c2017-03-13 17:04:58 -07001791ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
1792WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o
1793endif
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -07001794ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
1795WMA_OBJS += $(WMA_SRC_DIR)/wma_twt.o
1796endif
Qun Zhangef655622019-02-25 10:48:10 +08001797ifeq ($(CONFIG_QCACLD_FEATURE_FW_STATE), y)
1798WMA_OBJS += $(WMA_SRC_DIR)/wma_fw_state.o
1799endif
Arun Kumar Khandavallideda5a82019-03-11 15:32:19 +05301800ifeq ($(CONFIG_WLAN_MWS_INFO_DEBUGFS), y)
1801WMA_OBJS += $(WMA_SRC_DIR)/wma_coex.o
1802endif
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001803############## PLD ##########
1804PLD_DIR := core/pld
1805PLD_INC_DIR := $(PLD_DIR)/inc
1806PLD_SRC_DIR := $(PLD_DIR)/src
1807
1808PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
1809 -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
1810
1811PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
1812
Nirav Shah2f3281d2018-04-20 13:37:56 +05301813ifeq ($(CONFIG_HIF_PCI), y)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001814PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
1815endif
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001816ifeq ($(CONFIG_ICNSS), y)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001817PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
1818endif
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001819ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301820PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o
1821endif
Ajit Pal Singh6c6e81c2018-06-13 15:26:37 +05301822ifeq ($(CONFIG_HIF_USB), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001823PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o
1824endif
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001825
Yu Wang6c4599c2018-10-09 10:18:14 +08001826TARGET_INC := -I$(WLAN_FW_API)/fw
Venkata Sharath Chandra Manchala36199cb2018-07-18 12:27:54 -07001827
1828ifeq ($(CONFIG_CNSS_QCA6290), y)
psimha0b6bb892017-10-10 14:28:34 -07001829ifeq ($(CONFIG_QCA6290_11AX), y)
Yu Wang6c4599c2018-10-09 10:18:14 +08001830TARGET_INC += -I$(WLAN_FW_API)/hw/qca6290/11ax/v2
psimha0b6bb892017-10-10 14:28:34 -07001831else
Yu Wang6c4599c2018-10-09 10:18:14 +08001832TARGET_INC += -I$(WLAN_FW_API)/hw/qca6290/v2
Venkata Sharath Chandra Manchala36199cb2018-07-18 12:27:54 -07001833endif
1834endif
1835
1836ifeq ($(CONFIG_CNSS_QCA6390), y)
Yu Wang6c4599c2018-10-09 10:18:14 +08001837TARGET_INC += -I$(WLAN_FW_API)/hw/qca6390/v1
psimha0b6bb892017-10-10 14:28:34 -07001838endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001839
Dustin Brown0bec9a92017-08-17 15:44:34 -07001840LINUX_INC := -Iinclude
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001841
1842INCS := $(HDD_INC) \
Dustin Browna17cace2019-02-01 14:53:47 -08001843 $(SYNC_INC) \
Dustin Brown6099ddc2018-07-06 14:32:53 -07001844 $(DSC_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001845 $(EPPING_INC) \
1846 $(LINUX_INC) \
1847 $(MAC_INC) \
1848 $(SAP_INC) \
1849 $(SME_INC) \
1850 $(SYS_INC) \
Ashish Kumar Dhanotiya9c331b92018-08-09 20:25:02 +05301851 $(QAL_INC) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001852 $(QDF_INC) \
Rakshith Suresh Patkard9f4e612018-09-12 12:10:38 +05301853 $(WBUFF_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001854 $(CDS_INC) \
Dustin Brown84f46ea2018-02-15 11:57:36 -08001855 $(CFG_INC) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301856 $(DFS_INC) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301857 $(TARGET_IF_INC) \
Mukul Sharmad75a6672017-06-22 15:40:53 +05301858 $(CLD_TARGET_IF_INC) \
Sandeep Puligillafdd201e2017-02-02 18:43:46 -08001859 $(OS_IF_INC) \
Ryan Hsuc8b27a42018-01-02 13:57:56 -08001860 $(GLOBAL_LMAC_IF_INC) \
1861 $(FTM_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001862
1863INCS += $(WMA_INC) \
1864 $(UAPI_INC) \
1865 $(COMMON_INC) \
1866 $(WMI_INC) \
1867 $(FWLOG_INC) \
1868 $(TXRX_INC) \
1869 $(OL_INC) \
Dhanashri Atre12a08392016-02-17 13:10:34 -08001870 $(CDP_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001871 $(PKTLOG_INC) \
1872 $(HTT_INC) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001873 $(INIT_DEINIT_INC) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001874 $(SCHEDULER_INC) \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001875 $(REGULATORY_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001876 $(HTC_INC) \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001877 $(DFS_INC) \
Mohit Khanna70322002018-05-15 19:21:32 -07001878 $(WCFG_INC) \
1879 $(TXRX3.0_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001880
1881INCS += $(HIF_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001882 $(BMI_INC)
1883
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001884ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001885INCS += $(HAL_INC) \
1886 $(DP_INC)
1887endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001888
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001889################ WIFI POS ################
1890INCS += $(WIFI_POS_API_INC)
1891INCS += $(WIFI_POS_TGT_INC)
1892INCS += $(WIFI_POS_OS_IF_INC)
Naveen Rawat73e1ca92018-01-12 15:26:14 -08001893################ CP STATS ################
1894INCS += $(CP_STATS_OS_IF_INC)
1895INCS += $(CP_STATS_TGT_INC)
1896INCS += $(CP_STATS_DISPATCHER_INC)
hquff302a92019-07-18 00:06:11 +08001897INCS += $(COMP_CP_STATS_DISPATCHER_INC)
Paul Zhang37185672019-05-14 11:20:14 +08001898################ INTEROP ISSUES AP ################
1899INCS += $(INTEROP_ISSUES_AP_OS_IF_INC)
1900INCS += $(INTEROP_ISSUES_AP_TGT_INC)
1901INCS += $(INTEROP_ISSUES_AP_DISPATCHER_INC)
1902INCS += $(INTEROP_ISSUES_AP_CORE_INC)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001903################ NAN POS ################
1904INCS += $(NAN_CORE_INC)
1905INCS += $(NAN_UCFG_INC)
1906INCS += $(NAN_TGT_INC)
1907INCS += $(NAN_OS_IF_INC)
1908##########################################
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301909INCS += $(UMAC_OBJMGR_INC)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301910INCS += $(UMAC_MGMT_TXRX_INC)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301911INCS += $(PMO_INC)
Wu Gao637d58a2018-12-08 10:37:34 +08001912INCS += $(P2P_INC)
Wu Gaod6b5e402018-12-03 22:09:24 +08001913INCS += $(POLICY_MGR_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001914INCS += $(TARGET_INC)
Wu Gao5f793402018-12-08 11:04:00 +08001915INCS += $(TDLS_INC)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001916INCS += $(UMAC_SER_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001917INCS += $(NLINK_INC) \
1918 $(PTT_INC) \
1919 $(WLAN_LOGGING_INC)
1920
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001921INCS += $(PLD_INC)
Zhang Qian47e22ce2018-01-04 15:38:38 +08001922INCS += $(OCB_INC)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001923
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05301924INCS += $(IPA_INC)
Abhishek Singhed197482018-09-05 13:22:02 +05301925INCS += $(UMAC_SM_INC)
1926INCS += $(UMAC_MLME_INC)
Sandeep Puligillac5609d52018-05-17 19:23:41 -07001927INCS += $(MLME_INC)
Sourav Mohapatra113685f2018-08-29 14:21:55 +05301928INCS += $(FWOL_INC)
gaurank kathpalia3ebc17b2019-05-29 10:25:09 +05301929INCS += $(BLM_INC)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05301930
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001931ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001932INCS += $(PKTLOG_INC)
1933endif
1934
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001935INCS += $(HOST_DIAG_LOG_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001936
Nachiket Kukade98f562a2017-12-15 12:18:07 +05301937INCS += $(DISA_INC)
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05301938INCS += $(ACTION_OUI_INC)
Nachiket Kukade98f562a2017-12-15 12:18:07 +05301939
Frank Liu65b17d92016-11-23 15:58:44 +08001940INCS += $(UMAC_DISP_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301941INCS += $(UMAC_SCAN_INC)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301942INCS += $(UMAC_TARGET_SCAN_INC)
Himanshu Agarwalb229a142017-12-21 10:16:45 +05301943INCS += $(UMAC_GREEN_AP_INC)
1944INCS += $(UMAC_TARGET_GREEN_AP_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301945INCS += $(UMAC_COMMON_INC)
Sandeep Puligilla342d2a62017-12-12 15:40:00 -08001946INCS += $(UMAC_SPECTRAL_INC)
1947INCS += $(UMAC_TARGET_SPECTRAL_INC)
Wu Gao10300f92019-05-28 19:08:06 +08001948INCS += $(UMAC_DBR_INC)
Varun Reddy Yeturu29044cd2018-06-28 14:03:10 -07001949INCS += $(UMAC_CRYPTO_INC)
Frank Liu65b17d92016-11-23 15:58:44 +08001950
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001951OBJS := $(HDD_OBJS) \
Dustin Browna17cace2019-02-01 14:53:47 -08001952 $(SYNC_OBJS) \
Dustin Brown6099ddc2018-07-06 14:32:53 -07001953 $(DSC_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001954 $(MAC_OBJS) \
1955 $(SAP_OBJS) \
1956 $(SME_OBJS) \
1957 $(SYS_OBJS) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001958 $(QDF_OBJS) \
Rakshith Suresh Patkard9f4e612018-09-12 12:10:38 +05301959 $(WBUFF_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001960 $(CDS_OBJS) \
Dustin Brown84f46ea2018-02-15 11:57:36 -08001961 $(CFG_OBJS) \
Ryan Hsuc8b27a42018-01-02 13:57:56 -08001962 $(FTM_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001963
1964OBJS += $(WMA_OBJS) \
1965 $(TXRX_OBJS) \
1966 $(WMI_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001967 $(HTC_OBJS) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001968 $(INIT_DEINIT_OBJS) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001969 $(SCHEDULER_OBJS) \
Wen Gong01a2c632018-04-11 18:34:55 +08001970 $(REGULATORY_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001971
1972OBJS += $(HIF_OBJS) \
1973 $(BMI_OBJS) \
Wu Gao64b31482017-03-10 15:16:10 +08001974 $(OS_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301975 $(TARGET_IF_OBJ) \
Mukul Sharmad75a6672017-06-22 15:40:53 +05301976 $(CLD_TARGET_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301977 $(GLOBAL_LMAC_IF_OBJ)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001978
Saket Jha99531502019-08-21 15:00:49 -07001979ifneq ($(CONFIG_LITHIUM), y)
1980OBJS += $(HTT_OBJS)
1981endif
1982
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001983ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001984OBJS += $(HAL_OBJS)
Saket Jha99531502019-08-21 15:00:49 -07001985OBJS += $(TXRX_DIR)/ol_txrx_event.o
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001986endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001987
Wen Gong99768902018-04-25 12:07:49 +08001988ifeq ($(CONFIG_FEATURE_FW_LOG_PARSING), y)
1989OBJS += $(FWLOG_OBJS)
1990endif
1991
Nirav Shah459bebf2018-01-17 16:59:14 +05301992ifeq ($(CONFIG_FEATURE_EPPING), y)
1993OBJS += $(EPPING_OBJS)
1994endif
1995
Wen Gong01a2c632018-04-11 18:34:55 +08001996ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y)
1997OBJS += $(DFS_OBJS)
1998endif
Nirav Shah459bebf2018-01-17 16:59:14 +05301999
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05302000OBJS += $(UMAC_OBJMGR_OBJS)
Naveen Rawat4e2c2562017-03-06 10:47:02 -08002001OBJS += $(WIFI_POS_OBJS)
Naveen Rawat96a77d32018-01-12 15:26:14 -08002002OBJS += $(CP_STATS_OBJS)
Paul Zhang37185672019-05-14 11:20:14 +08002003OBJS += $(INTEROP_ISSUES_AP_OBJS)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07002004OBJS += $(WLAN_NAN_OBJS)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05302005OBJS += $(UMAC_MGMT_TXRX_OBJS)
Wu Gao5f793402018-12-08 11:04:00 +08002006OBJS += $(TDLS_OBJS)
Mukul Sharmac5de6772017-01-05 14:32:36 +05302007OBJS += $(PMO_OBJS)
Wu Gao637d58a2018-12-08 10:37:34 +08002008OBJS += $(P2P_OBJS)
Wu Gaod6b5e402018-12-03 22:09:24 +08002009OBJS += $(POLICY_MGR_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002010OBJS += $(WLAN_LOGGING_OBJS)
2011OBJS += $(NLINK_OBJS)
2012OBJS += $(PTT_OBJS)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08002013OBJS += $(UMAC_SER_OBJS)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08002014OBJS += $(PLD_OBJS)
Abhishek Singhed197482018-09-05 13:22:02 +05302015OBJS += $(UMAC_SM_OBJS)
2016OBJS += $(UMAC_MLME_OBJS)
Sandeep Puligillac5609d52018-05-17 19:23:41 -07002017OBJS += $(MLME_OBJS)
Paul Zhangc9dbaee2019-06-23 22:07:31 +08002018ifeq ($(CONFIG_WLAN_FW_OFFLOAD), y)
Sourav Mohapatra113685f2018-08-29 14:21:55 +05302019OBJS += $(FWOL_OBJS)
Paul Zhangc9dbaee2019-06-23 22:07:31 +08002020endif
gaurank kathpalia3ebc17b2019-05-29 10:25:09 +05302021OBJS += $(BLM_OBJS)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08002022
Zhang Qian47e22ce2018-01-04 15:38:38 +08002023ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
2024OBJS += $(OCB_OBJS)
2025endif
2026
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002027ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05302028OBJS += $(IPA_OBJS)
2029endif
2030
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002031ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002032OBJS += $(PKTLOG_OBJS)
2033endif
2034
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002035ifeq ($(BUILD_DIAG_VERSION), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002036OBJS += $(HOST_DIAG_LOG_OBJS)
2037endif
2038
Nachiket Kukade98f562a2017-12-15 12:18:07 +05302039ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
2040OBJS += $(DISA_OBJS)
2041endif
2042
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05302043ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
2044OBJS += $(ACTION_OUI_OBJS)
2045endif
2046
Frank Liu65b17d92016-11-23 15:58:44 +08002047OBJS += $(UMAC_DISP_OBJS)
Abhishek Singh9be07e22017-02-21 10:59:57 +05302048OBJS += $(UMAC_SCAN_OBJS)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05302049OBJS += $(UMAC_COMMON_OBJS)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08002050OBJS += $(WCFG_OBJS)
Sandeep Puligilla8e89d572018-04-02 18:07:45 -07002051
Sandeep Puligilla342d2a62017-12-12 15:40:00 -08002052OBJS += $(UMAC_SPECTRAL_OBJS)
Wu Gao10300f92019-05-28 19:08:06 +08002053OBJS += $(UMAC_DBR_OBJS)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08002054
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002055ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y)
Himanshu Agarwalb229a142017-12-21 10:16:45 +05302056OBJS += $(UMAC_GREEN_AP_OBJS)
2057endif
2058
Varun Reddy Yeturu29044cd2018-06-28 14:03:10 -07002059ifeq ($(CONFIG_CRYPTO_COMPONENT), y)
2060OBJS += $(UMAC_CRYPTO_OBJS)
2061endif
2062
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07002063ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08002064OBJS += $(DP_OBJS)
2065endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002066
Mohit Khanna70322002018-05-15 19:21:32 -07002067ifeq ($(CONFIG_WLAN_FEATURE_DP_RX_THREADS), y)
2068OBJS += $(TXRX3.0_OBJS)
2069endif
2070
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002071ccflags-y += $(INCS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002072
Jeff Johnsonee869842018-04-17 11:14:03 -07002073cppflags-y += -DANI_OS_TYPE_ANDROID=6 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002074 -Wall\
2075 -Werror\
Jeff Johnsona63a9b62018-04-12 15:30:45 -07002076 -D__linux__
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002077
Jeff Johnsonee869842018-04-17 11:14:03 -07002078cppflags-$(CONFIG_PTT_SOCK_SVC_ENABLE) += -DPTT_SOCK_SVC_ENABLE
2079cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DFEATURE_WLAN_WAPI
2080cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DATH_SUPPORT_WAPI
2081cppflags-$(CONFIG_AGEIE_ON_SCAN_RESULTS) += -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS
2082cppflags-$(CONFIG_SOFTAP_CHANNEL_RANGE) += -DSOFTAP_CHANNEL_RANGE
2083cppflags-$(CONFIG_FEATURE_WLAN_SCAN_PNO) += -DFEATURE_WLAN_SCAN_PNO
2084cppflags-$(CONFIG_WLAN_FEATURE_PACKET_FILTERING) += -DWLAN_FEATURE_PACKET_FILTERING
Jeff Johnsone77641e2019-02-15 09:00:41 -08002085cppflags-$(CONFIG_DHCP_SERVER_OFFLOAD) += -DDHCP_SERVER_OFFLOAD
Jeff Johnsonee869842018-04-17 11:14:03 -07002086cppflags-$(CONFIG_WLAN_NS_OFFLOAD) += -DWLAN_NS_OFFLOAD
2087cppflags-$(CONFIG_FEATURE_WLAN_RA_FILTERING) += -DFEATURE_WLAN_RA_FILTERING
2088cppflags-$(CONFIG_FEATURE_WLAN_LPHB) += -DFEATURE_WLAN_LPHB
2089cppflags-$(CONFIG_QCA_SUPPORT_TX_THROTTLE) += -DQCA_SUPPORT_TX_THROTTLE
2090cppflags-$(CONFIG_WMI_INTERFACE_EVENT_LOGGING) += -DWMI_INTERFACE_EVENT_LOGGING
2091cppflags-$(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS) += -DWLAN_FEATURE_LINK_LAYER_STATS
2092cppflags-$(CONFIG_FEATURE_WLAN_EXTSCAN) += -DFEATURE_WLAN_EXTSCAN
2093cppflags-$(CONFIG_160MHZ_SUPPORT) += -DCONFIG_160MHZ_SUPPORT
2094cppflags-$(CONFIG_MCL) += -DCONFIG_MCL
bings2f0f9f02019-03-08 10:59:15 +08002095cppflags-$(CONFIG_REG_CLIENT) += -DCONFIG_REG_CLIENT
Jeff Johnsonee869842018-04-17 11:14:03 -07002096cppflags-$(CONFIG_WLAN_PMO_ENABLE) += -DWLAN_PMO_ENABLE
2097cppflags-$(CONFIG_CONVERGED_P2P_ENABLE) += -DCONVERGED_P2P_ENABLE
2098cppflags-$(CONFIG_WLAN_POLICY_MGR_ENABLE) += -DWLAN_POLICY_MGR_ENABLE
gaurank kathpalia3ebc17b2019-05-29 10:25:09 +05302099cppflags-$(CONFIG_FEATURE_BLACKLIST_MGR) += -DFEATURE_BLACKLIST_MGR
Jeff Johnsonee869842018-04-17 11:14:03 -07002100cppflags-$(CONFIG_SUPPORT_11AX) += -DSUPPORT_11AX
2101cppflags-$(CONFIG_HDD_INIT_WITH_RTNL_LOCK) += -DCONFIG_HDD_INIT_WITH_RTNL_LOCK
Jeff Johnsonee869842018-04-17 11:14:03 -07002102cppflags-$(CONFIG_WLAN_CONV_SPECTRAL_ENABLE) += -DWLAN_CONV_SPECTRAL_ENABLE
Wu Gao10300f92019-05-28 19:08:06 +08002103cppflags-$(CONFIG_DIRECT_BUF_RX_ENABLE) += -DDIRECT_BUF_RX_ENABLE
2104cppflags-$(CONFIG_WMI_DBR_SUPPORT) += -DWMI_DBR_SUPPORT
2105cppflags-$(CONFIG_DIRECT_BUF_RX_ENABLE) += -DDBR_MULTI_SRNG_ENABLE
Jeff Johnsonee869842018-04-17 11:14:03 -07002106cppflags-$(CONFIG_WMI_CMD_STRINGS) += -DWMI_CMD_STRINGS
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -07002107cppflags-$(CONFIG_WLAN_FEATURE_TWT) += -DWLAN_SUPPORT_TWT
Jeff Johnson8daf7682018-04-11 07:42:56 -07002108
Jeff Johnsonee869842018-04-17 11:14:03 -07002109cppflags-$(CONFIG_WLAN_DISABLE_EXPORT_SYMBOL) += -DWLAN_DISABLE_EXPORT_SYMBOL
2110cppflags-$(CONFIG_WIFI_POS_CONVERGED) += -DWIFI_POS_CONVERGED
2111cppflags-$(CONFIG_WIFI_POS_LEGACY) += -DFEATURE_OEM_DATA_SUPPORT
2112cppflags-$(CONFIG_FEATURE_HTC_CREDIT_HISTORY) += -DFEATURE_HTC_CREDIT_HISTORY
2113cppflags-$(CONFIG_WLAN_FEATURE_P2P_DEBUG) += -DWLAN_FEATURE_P2P_DEBUG
Rachit Kankane0dc3e852018-05-07 17:33:42 +05302114cppflags-$(CONFIG_WLAN_WEXT_SUPPORT_ENABLE) += -DWLAN_WEXT_SUPPORT_ENABLE
Jeff Johnsonee869842018-04-17 11:14:03 -07002115cppflags-$(CONFIG_WLAN_LOGGING_SOCK_SVC) += -DWLAN_LOGGING_SOCK_SVC_ENABLE
Rachit Kankane0868f8f2018-06-22 18:52:03 +05302116cppflags-$(CONFIG_WLAN_LOGGING_BUFFERS_DYNAMICALLY) += -DWLAN_LOGGING_BUFFERS_DYNAMICALLY
Jeff Johnsonee869842018-04-17 11:14:03 -07002117cppflags-$(CONFIG_WLAN_FEATURE_FILS) += -DWLAN_FEATURE_FILS_SK
Naveen Rawat96a77d32018-01-12 15:26:14 -08002118cppflags-$(CONFIG_CP_STATS) += -DQCA_SUPPORT_CP_STATS
Paul Zhang37185672019-05-14 11:20:14 +08002119cppflags-$(CONFIG_FEATURE_INTEROP_ISSUES_AP) += -DWLAN_FEATURE_INTEROP_ISSUES_AP
Wen Gong3f003382018-05-14 14:26:37 +08002120cppflags-$(CONFIG_FEATURE_MEMDUMP_ENABLE) += -DWLAN_FEATURE_MEMDUMP_ENABLE
Wen Gong99768902018-04-25 12:07:49 +08002121cppflags-$(CONFIG_FEATURE_FW_LOG_PARSING) += -DFEATURE_FW_LOG_PARSING
Paul Zhangda2970b2019-06-23 18:16:38 +08002122cppflags-$(CONFIG_FEATURE_OEM_DATA) += -DFEATURE_OEM_DATA
Visweswara Tanuku322348d2019-08-05 12:24:58 +05302123cppflags-$(CONFIG_FEATURE_MOTION_DETECTION) += -DWLAN_FEATURE_MOTION_DETECTION
Paul Zhangc9dbaee2019-06-23 22:07:31 +08002124cppflags-$(CONFIG_WLAN_FW_OFFLOAD) += -DWLAN_FW_OFFLOAD
2125cppflags-$(CONFIG_WLAN_FEATURE_ELNA) += -DWLAN_FEATURE_ELNA
Sridhar Selvaraj8c6f5e82017-08-21 14:53:46 +05302126
Nirav Shah1575dd72018-06-24 13:46:39 +05302127cppflags-$(CONFIG_PLD_SDIO_CNSS_FLAG) += -DCONFIG_PLD_SDIO_CNSS
2128cppflags-$(CONFIG_PLD_PCIE_CNSS_FLAG) += -DCONFIG_PLD_PCIE_CNSS
2129cppflags-$(CONFIG_PLD_PCIE_INIT_FLAG) += -DCONFIG_PLD_PCIE_INIT
Mohit Khanna70322002018-05-15 19:21:32 -07002130cppflags-$(CONFIG_WLAN_FEATURE_DP_RX_THREADS) += -DFEATURE_WLAN_DP_RX_THREADS
Mohit Khannad02e9b82019-03-22 16:36:15 -07002131cppflags-$(CONFIG_WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT) += -DWLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT
Ajit Pal Singh6f5f5892018-07-19 14:08:20 +05302132cppflags-$(CONFIG_PLD_USB_CNSS) += -DCONFIG_PLD_USB_CNSS
Sriram Madhvapathiecb0bcd2018-07-04 14:48:41 +05302133cppflags-$(CONFIG_PLD_SDIO_CNSS2) += -DCONFIG_PLD_SDIO_CNSS2
Alok Kumar68946922019-09-11 17:44:57 +05302134cppflags-$(CONFIG_WLAN_RECORD_RX_PADDR) += -DHIF_RECORD_RX_PADDR
Yue Mae6a7a322016-08-31 11:09:23 -07002135
Lin Baide6c5532019-03-19 11:03:59 +08002136#For both legacy and lithium chip's monitor mode config
2137ifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y)
2138cppflags-y += -DFEATURE_MONITOR_MODE_SUPPORT
2139else
2140cppflags-y += -DDISABLE_MON_CONFIG
2141endif
2142
Lin Bai59b79762017-09-01 16:18:55 +08002143#Enable NL80211 test mode
Jeff Johnsonee869842018-04-17 11:14:03 -07002144cppflags-$(CONFIG_NL80211_TESTMODE) += -DWLAN_NL80211_TESTMODE
Lin Bai59b79762017-09-01 16:18:55 +08002145
Yue Ma2b091312017-02-15 15:56:47 -08002146# Flag to enable bus auto suspend
Jeff Johnsonfe6f0b02018-04-11 09:27:04 -07002147ifeq ($(CONFIG_HIF_PCI), y)
Yue Ma2b091312017-02-15 15:56:47 -08002148ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002149cppflags-y += -DFEATURE_RUNTIME_PM
Yue Ma2b091312017-02-15 15:56:47 -08002150endif
2151endif
2152
Jeff Johnsonee869842018-04-17 11:14:03 -07002153cppflags-$(CONFIG_ICNSS) += -DCONFIG_PLD_SNOC_ICNSS
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07002154
Jeff Johnsonee869842018-04-17 11:14:03 -07002155cppflags-$(CONFIG_WIFI_3_0_ADRASTEA) += -DQCA_WIFI_3_0_ADRASTEA
Nirav Shah93b32352018-09-05 13:21:18 +05302156cppflags-$(CONFIG_WIFI_3_0_ADRASTEA) += -DQCA_WIFI_3_0
Jeff Johnsonee869842018-04-17 11:14:03 -07002157cppflags-$(CONFIG_ADRASTEA_SHADOW_REGISTERS) += -DADRASTEA_SHADOW_REGISTERS
2158cppflags-$(CONFIG_ADRASTEA_RRI_ON_DDR) += -DADRASTEA_RRI_ON_DDR
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002159
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002160ifeq ($(CONFIG_QMI_SUPPORT), n)
Jeff Johnsonee869842018-04-17 11:14:03 -07002161cppflags-y += -DCONFIG_BYPASS_QMI
Yuanyuan Liuf45ab3d2017-12-14 11:00:09 -08002162endif
2163
Jeff Johnsonee869842018-04-17 11:14:03 -07002164cppflags-$(CONFIG_WLAN_FASTPATH) += -DWLAN_FEATURE_FASTPATH
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002165
Jeff Johnsonee869842018-04-17 11:14:03 -07002166cppflags-$(CONFIG_FEATURE_PKTLOG) += -DFEATURE_PKTLOG
Poddar, Siddartheefe3482016-09-21 18:12:59 +05302167
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002168ifeq ($(CONFIG_WLAN_NAPI), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002169cppflags-y += -DFEATURE_NAPI
2170cppflags-y += -DHIF_IRQ_AFFINITY
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002171ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002172cppflags-y += -DFEATURE_NAPI_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002173endif
2174endif
2175
Yue Madf224b82016-04-21 12:46:04 -07002176ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
Jeff Johnsonee869842018-04-17 11:14:03 -07002177cppflags-y += -DMSM_PLATFORM
Yuanyuan Liu5af44362016-04-01 21:57:06 -07002178endif
2179
Tiger Yu8b119e92019-04-09 13:55:07 +08002180cppflags-$(CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH) += -DWLAN_FEATURE_DP_BUS_BANDWIDTH
2181
Jeff Johnsonee869842018-04-17 11:14:03 -07002182cppflags-y += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002183
Jeff Johnsonee869842018-04-17 11:14:03 -07002184cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_CONTROL_V2
2185cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
2186cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY) += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
hangtianb9c91362019-06-07 10:39:38 +08002187cppflags-$(CONFIG_WLAN_PDEV_TX_FLOW_CONTROL) += -DQCA_LL_PDEV_TX_FLOW_CONTROL
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002188
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002189ifeq ($(BUILD_DEBUG_VERSION), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002190cppflags-y += -DWLAN_DEBUG
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002191ifeq ($(CONFIG_TRACE_RECORD_FEATURE), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002192cppflags-y += -DTRACE_RECORD \
Rachit Kankane0baf6e72018-01-19 15:01:50 +05302193 -DLIM_TRACE_RECORD \
2194 -DSME_TRACE_RECORD \
2195 -DHDD_TRACE_RECORD
2196endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002197endif
Dustin Brown0ea8d3b2018-07-06 13:58:49 -07002198cppflags-$(CONFIG_UNIT_TEST) += -DWLAN_UNIT_TEST
Jeff Johnsonee869842018-04-17 11:14:03 -07002199cppflags-$(CONFIG_WLAN_DEBUG_CRASH_INJECT) += -DCONFIG_WLAN_DEBUG_CRASH_INJECT
2200cppflags-$(CONFIG_FEATURE_UNIT_TEST_SUSPEND) += -DWLAN_SUSPEND_RESUME_TEST
Krunal Sonif9ba53d2019-01-03 21:44:41 -08002201cppflags-$(CONFIG_FEATURE_WLM_STATS) += -DFEATURE_WLM_STATS
Dustin Brown0f8dc3d2017-06-01 14:37:26 -07002202
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002203ifeq ($(CONFIG_LEAK_DETECTION), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002204cppflags-y += \
Dustin Brown63ef3182018-04-02 10:57:18 -07002205 -DCONFIG_HALT_KMEMLEAK \
2206 -DCONFIG_LEAK_DETECTION \
2207 -DMEMORY_DEBUG \
2208 -DNBUF_MEMORY_DEBUG \
Dustin Brownf39413a2018-07-05 14:01:23 -07002209 -DNBUF_MAP_UNMAP_DEBUG \
Dustin Brownc2796312019-03-13 16:43:36 -07002210 -DTIMER_MANAGER \
Dustin Brown4a93bb52019-03-13 11:46:34 -07002211 -DWLAN_DELAYED_WORK_DEBUG \
2212 -DWLAN_PERIODIC_WORK_DEBUG
Dustin Brown21a761d2017-11-15 16:37:00 -08002213endif
2214
Jeff Johnsonee869842018-04-17 11:14:03 -07002215cppflags-y += -DWLAN_FEATURE_P2P
2216cppflags-y += -DWLAN_FEATURE_WFD
Wu Gao10300f92019-05-28 19:08:06 +08002217
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002218ifeq ($(CONFIG_QCOM_VOWIFI_11R), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002219cppflags-y += -DKERNEL_SUPPORT_11R_CFG80211
2220cppflags-y += -DUSE_80211_WMMTSPEC_FOR_RIC
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002221endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002222
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002223ifeq ($(CONFIG_QCOM_ESE), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002224cppflags-y += -DFEATURE_WLAN_ESE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002225endif
2226
2227#normally, TDLS negative behavior is not needed
Jeff Johnsonee869842018-04-17 11:14:03 -07002228cppflags-$(CONFIG_QCOM_TDLS) += -DFEATURE_WLAN_TDLS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002229
Jeff Johnsonee869842018-04-17 11:14:03 -07002230cppflags-$(CONFIG_QCACLD_WLAN_LFR3) += -DWLAN_FEATURE_ROAM_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002231
Sandeep Puligilla19522172019-01-10 19:53:45 -08002232cppflags-$(CONFIG_WLAN_FEATURE_MBSSID) += -DWLAN_FEATURE_MBSSID
2233
Jeff Johnsonee869842018-04-17 11:14:03 -07002234cppflags-$(CONFIG_CNSS_GENL) += -DCNSS_GENL
Selvaraj, Sridhar046d77d2017-03-07 14:53:13 +05302235
Jeff Johnsonee869842018-04-17 11:14:03 -07002236cppflags-$(CONFIG_QCACLD_WLAN_LFR2) += -DWLAN_FEATURE_HOST_ROAM
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -08002237
Qiwei Caid96c0212018-06-15 11:12:49 +08002238cppflags-$(CONFIG_FEATURE_ROAM_DEBUG) += -DFEATURE_ROAM_DEBUG
2239
Jeff Johnsonee869842018-04-17 11:14:03 -07002240cppflags-$(CONFIG_WLAN_POWER_DEBUGFS) += -DWLAN_POWER_DEBUGFS
Sridhar Selvarajdc400d22016-10-18 17:18:03 +05302241
Arun Kumar Khandavallideda5a82019-03-11 15:32:19 +05302242cppflags-$(CONFIG_WLAN_MWS_INFO_DEBUGFS) += -DWLAN_MWS_INFO_DEBUGFS
2243
Rajeev Kumar69d7d492017-02-13 21:48:16 -08002244# Enable object manager reference count debug infrastructure
Jeff Johnsonee869842018-04-17 11:14:03 -07002245cppflags-$(CONFIG_WLAN_OBJMGR_DEBUG) += -DWLAN_OBJMGR_DEBUG
Pragaspathi Thilagarajab5cc6e2018-08-15 21:53:49 +05302246cppflags-$(CONFIG_WLAN_OBJMGR_DEBUG) += -DWLAN_OBJMGR_REF_ID_DEBUG
Rajeev Kumar69d7d492017-02-13 21:48:16 -08002247
Jeff Johnsonee869842018-04-17 11:14:03 -07002248cppflags-$(CONFIG_WLAN_FEATURE_SAE) += -DWLAN_FEATURE_SAE
Padma, Santhosh Kumar07eb80b2017-07-05 16:10:06 +05302249
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002250ifeq ($(BUILD_DIAG_VERSION), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002251cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT
2252cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
2253cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002254ifeq ($(CONFIG_HIF_PCI), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002255cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002256endif
2257endif
2258
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002259ifeq ($(CONFIG_HIF_USB), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002260cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
2261cppflags-y += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
2262cppflags-y += -DCONFIG_ATH_PCIE_MAX_PERF=0 -DCONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD=0 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002263endif
2264
Tiger Yue40e7832019-04-25 10:46:53 +08002265cppflags-$(CONFIG_QCA_SUPPORT_TXRX_DRIVER_TCP_DEL_ACK) += -DQCA_SUPPORT_TXRX_DRIVER_TCP_DEL_ACK
2266
Jeff Johnsonee869842018-04-17 11:14:03 -07002267cppflags-$(CONFIG_WLAN_FEATURE_11W) += -DWLAN_FEATURE_11W
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002268
Jeff Johnsonee869842018-04-17 11:14:03 -07002269cppflags-$(CONFIG_QCA_TXDESC_SANITY_CHECKS) += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS
gbiane55c9562016-11-01 14:47:47 +08002270
Jeff Johnsonee869842018-04-17 11:14:03 -07002271cppflags-$(CONFIG_QCOM_LTE_COEX) += -DFEATURE_WLAN_CH_AVOID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002272
Jeff Johnsonee869842018-04-17 11:14:03 -07002273cppflags-$(CONFIG_WLAN_FEATURE_LPSS) += -DWLAN_FEATURE_LPSS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002274
Nirav Shaha72db1d2018-06-06 17:11:07 +05302275cppflags-$(CONFIG_DESC_DUP_DETECT_DEBUG) += -DDESC_DUP_DETECT_DEBUG
2276cppflags-$(CONFIG_DEBUG_RX_RING_BUFFER) += -DDEBUG_RX_RING_BUFFER
Nirav Shah76291962016-04-25 10:50:37 +05302277
Rakshith Suresh Patkar384a28a2018-11-02 16:43:43 +05302278cppflags-$(CONFIG_DESC_TIMESTAMP_DEBUG_INFO) += -DDESC_TIMESTAMP_DEBUG_INFO
2279
Jeff Johnsonee869842018-04-17 11:14:03 -07002280cppflags-$(PANIC_ON_BUG) += -DPANIC_ON_BUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002281
Jeff Johnsonee869842018-04-17 11:14:03 -07002282cppflags-$(WLAN_WARN_ON_ASSERT) += -DWLAN_WARN_ON_ASSERT
Dustin Brown0634ba32018-03-22 13:00:44 -07002283
Rajeev Kumar6bdee8e2018-04-18 17:36:05 -07002284ccflags-$(CONFIG_POWER_MANAGEMENT_OFFLOAD) += -DWLAN_POWER_MANAGEMENT_OFFLOAD
2285
Jeff Johnsonee869842018-04-17 11:14:03 -07002286cppflags-$(CONFIG_WLAN_LOG_FATAL) += -DWLAN_LOG_FATAL
2287cppflags-$(CONFIG_WLAN_LOG_ERROR) += -DWLAN_LOG_ERROR
2288cppflags-$(CONFIG_WLAN_LOG_WARN) += -DWLAN_LOG_WARN
2289cppflags-$(CONFIG_WLAN_LOG_INFO) += -DWLAN_LOG_INFO
2290cppflags-$(CONFIG_WLAN_LOG_DEBUG) += -DWLAN_LOG_DEBUG
Nirav Shahd6fa0f82018-07-06 15:52:25 +05302291cppflags-$(CONFIG_WLAN_LOG_ENTER) += -DWLAN_LOG_ENTER
2292cppflags-$(CONFIG_WLAN_LOG_EXIT) += -DWLAN_LOG_EXIT
Jeff Johnsonee869842018-04-17 11:14:03 -07002293cppflags-$(WLAN_OPEN_SOURCE) += -DWLAN_OPEN_SOURCE
Jeff Johnsonee869842018-04-17 11:14:03 -07002294cppflags-$(CONFIG_FEATURE_STATS_EXT) += -DWLAN_FEATURE_STATS_EXT
Jeff Johnsonee869842018-04-17 11:14:03 -07002295cppflags-$(CONFIG_QCACLD_FEATURE_NAN) += -DWLAN_FEATURE_NAN
Wu Gao18596ae2019-08-13 17:33:14 +08002296cppflags-$(CONFIG_NDP_SAP_CONCURRENCY_ENABLE) += -DNDP_SAP_CONCURRENCY_ENABLE
Abhishek Ambure995ab5a2019-09-27 19:06:02 +05302297
2298ifeq ($(CONFIG_QCA_IBSS_SUPPORT), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002299cppflags-$(CONFIG_QCA_IBSS_SUPPORT) += -DQCA_IBSS_SUPPORT
Abhishek Ambure995ab5a2019-09-27 19:06:02 +05302300endif
2301
Kai Liuaa88d2f2018-08-13 11:30:11 +08002302cppflags-$(CONFIG_WLAN_SYSFS) += -DWLAN_SYSFS
Rachit Kankaneee1735c2018-08-02 13:19:34 +05302303cppflags-$(CONFIG_FEATURE_WLAN_RMC) += -DFEATURE_WLAN_RMC
Arunk Khandavallica56d4b2018-11-29 15:46:00 +05302304cppflags-$(CONFIG_FEATURE_BECN_STATS) += -DWLAN_FEATURE_BEACON_RECEPTION_STATS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002305
hangtian2b9856f2019-01-25 11:50:39 +08002306#Set RX_PERFORMANCE
2307cppflags-$(CONFIG_RX_PERFORMANCE) += -DRX_PERFORMANCE
hangtiancd2b2862019-01-16 12:43:05 +08002308
Hangtian Zhuc7642602019-09-11 17:47:43 +08002309#Set MULTI_IF_LOG
2310cppflags-$(CONFIG_MULTI_IF_LOG) += -DMULTI_IF_LOG
2311
Hangtian Zhu39e2e212019-09-02 13:34:57 +08002312#Set SLUB_MEM_OPTIMIZE
2313cppflags-$(CONFIG_SLUB_MEM_OPTIMIZE) += -DSLUB_MEM_OPTIMIZE
hangtian1c37fb92019-04-10 11:15:20 +08002314
Hangtian Zhu9a28ed02019-09-24 12:18:20 +08002315#Set DFS_PRI_MULTIPLIER
2316cppflags-$(CONFIG_DFS_PRI_MULTIPLIER) += -DDFS_PRI_MULTIPLIER
2317
2318#Set DFS_OVERRIDE_RF_THRESHOLD
2319cppflags-$(CONFIG_DFS_OVERRIDE_RF_THRESHOLD) += -DDFS_OVERRIDE_RF_THRESHOLD
2320
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002321#Enable OL debug and wmi unified functions
Jeff Johnsonee869842018-04-17 11:14:03 -07002322cppflags-$(CONFIG_ATH_PERF_PWR_OFFLOAD) += -DATH_PERF_PWR_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002323
2324#Disable packet log
Jeff Johnsonee869842018-04-17 11:14:03 -07002325cppflags-$(CONFIG_REMOVE_PKT_LOG) += -DREMOVE_PKT_LOG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002326
2327#Enable 11AC TX
Jeff Johnsonee869842018-04-17 11:14:03 -07002328cppflags-$(CONFIG_ATH_11AC_TXCOMPACT) += -DATH_11AC_TXCOMPACT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002329
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002330#Enable PCI specific APIS (dma, etc)
Jeff Johnsonee869842018-04-17 11:14:03 -07002331cppflags-$(CONFIG_HIF_PCI) += -DHIF_PCI
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002332
Jeff Johnsonee869842018-04-17 11:14:03 -07002333cppflags-$(CONFIG_HIF_SNOC) += -DHIF_SNOC
Houston Hoffman1edffd32016-01-27 16:30:34 -08002334
Nirav Shah52d85aa2018-04-26 14:03:00 +05302335cppflags-$(CONFIG_HL_DP_SUPPORT) += -DCONFIG_HL_SUPPORT
Nirav Shah6ebfe242018-05-09 15:56:12 +05302336cppflags-$(CONFIG_HL_DP_SUPPORT) += -DWLAN_PARTIAL_REORDER_OFFLOAD
Qiwei Cai36bd9de2018-09-03 10:45:47 +08002337cppflags-$(CONFIG_HL_DP_SUPPORT) += -DQCA_COMPUTE_TX_DELAY
2338cppflags-$(CONFIG_HL_DP_SUPPORT) += -DQCA_COMPUTE_TX_DELAY_PER_TID
Nirav Shah52d85aa2018-04-26 14:03:00 +05302339cppflags-$(CONFIG_LL_DP_SUPPORT) += -DCONFIG_LL_DP_SUPPORT
Nirav Shah6ebfe242018-05-09 15:56:12 +05302340cppflags-$(CONFIG_LL_DP_SUPPORT) += -DWLAN_FULL_REORDER_OFFLOAD
Nirav Shah52d85aa2018-04-26 14:03:00 +05302341
Ajit Pal Singh9c098852019-08-19 17:48:19 +05302342# For OOB testing
2343cppflags-$(CONFIG_WLAN_FEATURE_WOW_PULSE) += -DWLAN_FEATURE_WOW_PULSE
2344
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05302345#Enable High Latency related Flags
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002346ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
Nirav Shah52d85aa2018-04-26 14:03:00 +05302347cppflags-y += -DCONFIG_AR6320_SUPPORT \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05302348 -DSDIO_3_0 \
2349 -DHIF_SDIO \
2350 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \
2351 -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05302352 -DHIF_MBOX_SLEEP_WAR \
2353 -DDEBUG_HL_LOGGING \
2354 -DQCA_BAD_PEER_TX_FLOW_CL \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05302355 -DCONFIG_SDIO \
2356 -DFEATURE_WLAN_FORCE_SAP_SCC
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05302357
2358ifeq ($(CONFIG_SDIO_TRANSFER), adma)
2359cppflags-y += -DCONFIG_SDIO_TRANSFER_ADMA
2360else
2361cppflags-y += -DCONFIG_SDIO_TRANSFER_MAILBOX
2362endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05302363endif
2364
Agrawal Ashishb141b092016-09-02 19:59:26 +05302365ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002366cppflags-y += -DWLAN_FEATURE_DSRC
Zhang Qian47e22ce2018-01-04 15:38:38 +08002367
2368ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002369cppflags-y += -DWLAN_OCB_UT
Zhang Qian47e22ce2018-01-04 15:38:38 +08002370endif
2371
Agrawal Ashishb141b092016-09-02 19:59:26 +05302372endif
2373
Jeff Johnsonee869842018-04-17 11:14:03 -07002374cppflags-$(CONFIG_FEATURE_SKB_PRE_ALLOC) += -DFEATURE_SKB_PRE_ALLOC
bings7762da12017-03-06 07:21:04 +08002375
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002376#Enable USB specific APIS
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002377ifeq ($(CONFIG_HIF_USB), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002378cppflags-y += -DHIF_USB \
Nirav Shah52d85aa2018-04-26 14:03:00 +05302379 -DDEBUG_HL_LOGGING
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002380endif
2381
Ajit Pal Singh0bd748a2018-06-19 11:48:02 +05302382#Enable Genoa specific features.
2383cppflags-$(CONFIG_QCA_HL_NETDEV_FLOW_CONTROL) += -DQCA_HL_NETDEV_FLOW_CONTROL
2384cppflags-$(CONFIG_FEATURE_HL_GROUP_CREDIT_FLOW_CONTROL) += -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL
2385cppflags-$(CONFIG_FEATURE_HL_DBS_GROUP_CREDIT_SHARING) += -DFEATURE_HL_DBS_GROUP_CREDIT_SHARING
2386cppflags-$(CONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE) += -DCONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE
Ajit Pal Singh17634e12019-04-12 11:17:36 +05302387cppflags-$(CONFIG_RX_PN_CHECK_OFFLOAD) += -DCONFIG_RX_PN_CHECK_OFFLOAD
Ajit Pal Singh0bd748a2018-06-19 11:48:02 +05302388
Subrat Dash5f36fbe2019-02-12 16:28:14 +05302389cppflags-$(CONFIG_WLAN_SYNC_TSF_PTP) += -DWLAN_FEATURE_TSF_PTP
2390cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS_EXT_GPIO_IRQ) += -DWLAN_FEATURE_TSF_PLUS_EXT_GPIO_IRQ
Subrat Dashb1e61b22019-07-22 14:09:34 +05302391cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS_EXT_GPIO_SYNC) += -DWLAN_FEATURE_TSF_PLUS_EXT_GPIO_SYNC
Ajit Pal Singhcf33f962018-07-19 17:50:47 +05302392cppflags-$(CONFIG_TX_DESC_HI_PRIO_RESERVE) += -DCONFIG_TX_DESC_HI_PRIO_RESERVE
Ajit Pal Singhcf33f962018-07-19 17:50:47 +05302393
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002394#Enable FW logs through ini
Jeff Johnsonee869842018-04-17 11:14:03 -07002395cppflags-y += -DCONFIG_FW_LOGS_BASED_ON_INI
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002396
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002397#Enable power management suspend/resume functionality
Jeff Johnsonee869842018-04-17 11:14:03 -07002398cppflags-$(CONFIG_ATH_BUS_PM) += -DATH_BUS_PM
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002399
2400#Enable FLOWMAC module support
Jeff Johnsonee869842018-04-17 11:14:03 -07002401cppflags-$(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE) += -DATH_SUPPORT_FLOWMAC_MODULE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002402
2403#Enable spectral support
Jeff Johnsonee869842018-04-17 11:14:03 -07002404cppflags-$(CONFIG_ATH_SUPPORT_SPECTRAL) += -DATH_SUPPORT_SPECTRAL
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002405
Tiger Yube6e7752019-09-09 13:14:20 +08002406#Enable legacy pktlog
2407cppflags-$(CONFIG_PKTLOG_LEGACY) += -DPKTLOG_LEGACY
2408
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002409#Enable WDI Event support
Jeff Johnsonee869842018-04-17 11:14:03 -07002410cppflags-$(CONFIG_WDI_EVENT_ENABLE) += -DWDI_EVENT_ENABLE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002411
Tiger Yubf14ba82019-09-09 12:46:22 +08002412#Enable the type_specific_data in the struct ath_pktlog_arg
2413cppflags-$(CONFIG_PKTLOG_HAS_SPECIFIC_DATA) += -DPKTLOG_HAS_SPECIFIC_DATA
2414
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002415#Endianness selection
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002416ifeq ($(CONFIG_LITTLE_ENDIAN), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002417cppflags-y += -DANI_LITTLE_BYTE_ENDIAN
2418cppflags-y += -DANI_LITTLE_BIT_ENDIAN
2419cppflags-y += -DDOT11F_LITTLE_ENDIAN_HOST
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002420else
Jeff Johnsonee869842018-04-17 11:14:03 -07002421cppflags-y += -DANI_BIG_BYTE_ENDIAN
2422cppflags-y += -DBIG_ENDIAN_HOST
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002423endif
2424
Dundi Ravitejaeab3b8d2018-07-17 18:10:41 +05302425#Enable MWS COEX support for 4G quick TDM and 5G NR pwr limit
2426cppflags-y += -DMWS_COEX
2427
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002428#Enable TX reclaim support
Jeff Johnsonee869842018-04-17 11:14:03 -07002429cppflags-$(CONFIG_TX_CREDIT_RECLAIM_SUPPORT) += -DTX_CREDIT_RECLAIM_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002430
2431#Enable FTM support
Jeff Johnsonee869842018-04-17 11:14:03 -07002432cppflags-$(CONFIG_QCA_WIFI_FTM) += -DQCA_WIFI_FTM
Ryan Hsu6e9db0b2018-06-01 10:45:51 -07002433cppflags-$(CONFIG_NL80211_TESTMODE) += -DQCA_WIFI_FTM_NL80211
2434cppflags-$(CONFIG_LINUX_QCMBR) += -DLINUX_QCMBR -DQCA_WIFI_FTM_IOCTL
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002435
2436#Enable Checksum Offload support
Jeff Johnsonee869842018-04-17 11:14:03 -07002437cppflags-$(CONFIG_CHECKSUM_OFFLOAD) += -DCHECKSUM_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002438
Sravan Kumar Kairam7efc0132019-03-25 16:13:46 +05302439#Enable IPA Offload support
Jeff Johnsonee869842018-04-17 11:14:03 -07002440cppflags-$(CONFIG_IPA_OFFLOAD) += -DIPA_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002441
Sravan Kumar Kairam7efc0132019-03-25 16:13:46 +05302442cppflags-$(CONFIG_WDI3_IPA_OVER_GSI) += -DIPA_WDI3_GSI
2443
anisha agarwal188d2542017-03-21 13:15:58 -07002444ifeq ($(CONFIG_ARCH_SDX20), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002445cppflags-y += -DSYNC_IPA_READY
bings7762da12017-03-06 07:21:04 +08002446endif
2447
Tiger Yu24ca3362018-11-05 16:49:11 +08002448ifeq ($(CONFIG_ARCH_SDXPOORWILLS), y)
Tiger Yu287056c2018-11-13 16:34:43 +08002449CONFIG_FEATURE_SG := y
2450endif
2451
2452ifeq ($(CONFIG_ARCH_MSM8996), y)
2453CONFIG_FEATURE_SG := y
Tiger Yu13cdcc42018-11-29 18:11:22 +08002454CONFIG_RX_THREAD_PRIORITY := y
Tiger Yu287056c2018-11-13 16:34:43 +08002455endif
2456
2457ifeq ($(CONFIG_FEATURE_SG), y)
Tiger Yu24ca3362018-11-05 16:49:11 +08002458cppflags-y += -DFEATURE_SG
2459endif
2460
Tiger Yu13cdcc42018-11-29 18:11:22 +08002461ifeq ($(CONFIG_RX_THREAD_PRIORITY), y)
2462cppflags-y += -DRX_THREAD_PRIORITY
2463endif
2464
Wu Gao0bdcbed2018-12-27 12:12:08 +08002465ifeq ($(CONFIG_SUPPORT_P2P_BY_ONE_INTF_WLAN), y)
2466#sta support to tx P2P action frames
2467cppflags-y += -DSUPPORT_P2P_BY_ONE_INTF_WLAN
2468else
2469#Open P2P device interface only for non-Mobile router use cases
2470cppflags-$(CONFIG_WLAN_OPEN_P2P_INTERFACE) += -DWLAN_OPEN_P2P_INTERFACE
2471endif
Tiger Yu13cdcc42018-11-29 18:11:22 +08002472
Liangwei Dong03e080c2019-07-02 17:06:39 +08002473cppflags-$(CONFIG_WMI_BCN_OFFLOAD) += -DWLAN_WMI_BCN
2474
Rakshith Suresh Patkard9f4e612018-09-12 12:10:38 +05302475#Enable wbuff
2476cppflags-$(CONFIG_WLAN_WBUFF) += -DWLAN_FEATURE_WBUFF
2477
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002478#Enable GTK Offload
Jeff Johnsonee869842018-04-17 11:14:03 -07002479cppflags-$(CONFIG_GTK_OFFLOAD) += -DWLAN_FEATURE_GTK_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002480
Jeff Johnsonb8b39762018-04-06 20:08:10 -07002481#Enable External WoW
Jeff Johnsonee869842018-04-17 11:14:03 -07002482cppflags-$(CONFIG_EXT_WOW) += -DWLAN_FEATURE_EXTWOW_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002483
2484#Mark it as SMP Kernel
Jeff Johnsonee869842018-04-17 11:14:03 -07002485cppflags-$(CONFIG_SMP) += -DQCA_CONFIG_SMP
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002486
Jeff Johnsonee869842018-04-17 11:14:03 -07002487cppflags-$(CONFIG_CHNL_MATRIX_RESTRICTION) += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002488
Zhu Jianmin04392c42017-05-12 16:34:53 +08002489#Enable ICMP packet disable powersave feature
Jeff Johnsonee869842018-04-17 11:14:03 -07002490cppflags-$(CONFIG_ICMP_DISABLE_PS) += -DWLAN_ICMP_DISABLE_PS
Zhu Jianmin04392c42017-05-12 16:34:53 +08002491
Sandeep Puligilla0e64b612016-08-26 13:20:58 -07002492#Enable OBSS feature
Jeff Johnsonee869842018-04-17 11:14:03 -07002493cppflags-y += -DQCA_HT_2040_COEX
Sandeep Puligilla0e64b612016-08-26 13:20:58 -07002494
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002495#enable MCC TO SCC switch
Jeff Johnsonee869842018-04-17 11:14:03 -07002496cppflags-$(CONFIG_FEATURE_WLAN_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002497
2498#enable wlan auto shutdown feature
Jeff Johnsonee869842018-04-17 11:14:03 -07002499cppflags-$(CONFIG_FEATURE_WLAN_AUTO_SHUTDOWN) += -DFEATURE_WLAN_AUTO_SHUTDOWN
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002500
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002501#enable AP-AP ACS Optimization
Jeff Johnsonee869842018-04-17 11:14:03 -07002502cppflags-$(CONFIG_FEATURE_WLAN_AP_AP_ACS_OPTIMIZE) += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002503
2504#Enable 4address scheme
Jeff Johnsonee869842018-04-17 11:14:03 -07002505cppflags-$(CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME) += -DFEATURE_WLAN_STA_4ADDR_SCHEME
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002506
Zhu Jianmin35fcd0d2017-08-30 10:47:31 +08002507#enable MDM/SDX special config
Jeff Johnsonee869842018-04-17 11:14:03 -07002508cppflags-$(CONFIG_MDM_PLATFORM) += -DMDM_PLATFORM
Zhu Jianmin35fcd0d2017-08-30 10:47:31 +08002509
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002510#Disable STA-AP Mode DFS support
Jeff Johnsonee869842018-04-17 11:14:03 -07002511cppflags-$(CONFIG_FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE) += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002512
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002513#Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
Jeff Johnsonee869842018-04-17 11:14:03 -07002514cppflags-$(CONFIG_WLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY) += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002515
2516#Green AP feature
Jeff Johnsonee869842018-04-17 11:14:03 -07002517cppflags-$(CONFIG_QCACLD_FEATURE_GREEN_AP) += -DWLAN_SUPPORT_GREEN_AP
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002518
Nachiket Kukaded0dd62e2018-05-21 18:39:22 +05302519cppflags-$(CONFIG_QCACLD_FEATURE_APF) += -DFEATURE_WLAN_APF
Jeff Johnsonfcc29d42018-07-17 20:36:45 -07002520
2521cppflags-$(CONFIG_WLAN_FEATURE_SARV1_TO_SARV2) += -DWLAN_FEATURE_SARV1_TO_SARV2
Varun Reddy Yeturu29044cd2018-06-28 14:03:10 -07002522#CRYPTO Coverged Component
2523cppflags-$(CONFIG_CRYPTO_COMPONENT) += -DWLAN_CONV_CRYPTO_SUPPORTED \
2524 -DWLAN_CRYPTO_WEP_OS_DERIVATIVE \
2525 -DWLAN_CRYPTO_TKIP_OS_DERIVATIVE \
2526 -DWLAN_CRYPTO_CCMP_OS_DERIVATIVE \
2527 -DWLAN_CRYPTO_GCMP_OS_DERIVATIVE \
2528 -DWLAN_CRYPTO_WAPI_OS_DERIVATIVE \
2529 -DWLAN_CRYPTO_GCM_OS_DERIVATIVE \
2530 -DWLAN_CRYPTO_FILS_OS_DERIVATIVE \
2531 -DWLAN_CRYPTO_OMAC1_OS_DERIVATIVE
Nachiket Kukaded0dd62e2018-05-21 18:39:22 +05302532
Rachit Kankane2a3fd392018-12-06 14:03:57 +05302533cppflags-$(CONFIG_FEATURE_WLAN_FT_IEEE8021X) += -DFEATURE_WLAN_FT_IEEE8021X
2534cppflags-$(CONFIG_FEATURE_WLAN_FT_PSK) += -DFEATURE_WLAN_FT_PSK
2535
Liangwei Dong2fce7162018-08-24 01:07:22 -04002536#Enable host 11d scan
2537cppflags-$(CONFIG_HOST_11D_SCAN) += -DHOST_11D_SCAN
2538
Yun Park637d6482016-10-05 10:51:33 -07002539#Stats & Quota Metering feature
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002540ifeq ($(CONFIG_IPA_OFFLOAD), y)
2541ifeq ($(CONFIG_QCACLD_FEATURE_METERING), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002542cppflags-y += -DFEATURE_METERING
Yun Park637d6482016-10-05 10:51:33 -07002543endif
Yun Parkb4f591d2017-03-29 15:51:01 -07002544endif
Yun Park637d6482016-10-05 10:51:33 -07002545
Chaoli Zhoub11e18a2019-07-08 15:14:20 +08002546#Define Max IPA interface
2547ifeq ($(CONFIG_IPA_OFFLOAD), y)
2548ifdef CONFIG_NUM_IPA_IFACE
2549cppflags-y += -DMAX_IPA_IFACE=$(CONFIG_NUM_IPA_IFACE)
2550else
2551NUM_IPA_IFACE ?= 3
2552cppflags-y += -DMAX_IPA_IFACE=$(NUM_IPA_IFACE)
2553endif
2554endif
2555
Jeff Johnsonee869842018-04-17 11:14:03 -07002556cppflags-$(CONFIG_TUFELLO_DUAL_FW_SUPPORT) += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT
2557cppflags-$(CONFIG_CHANNEL_HOPPING_ALL_BANDS) += -DCHANNEL_HOPPING_ALL_BANDS
gaolez76d2a162017-03-21 19:23:58 +08002558
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002559#Enable Signed firmware support for split binary format
Jeff Johnsonee869842018-04-17 11:14:03 -07002560cppflags-$(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT) += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002561
2562#Enable single firmware binary format
Jeff Johnsonee869842018-04-17 11:14:03 -07002563cppflags-$(CONFIG_QCA_SINGLE_BINARY_SUPPORT) += -DQCA_SINGLE_BINARY_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002564
2565#Enable collecting target RAM dump after kernel panic
Jeff Johnsonee869842018-04-17 11:14:03 -07002566cppflags-$(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC) += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002567
2568#Enable/disable secure firmware feature
Jeff Johnsonee869842018-04-17 11:14:03 -07002569cppflags-$(CONFIG_FEATURE_SECURE_FIRMWARE) += -DFEATURE_SECURE_FIRMWARE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002570
Jeff Johnsonee869842018-04-17 11:14:03 -07002571cppflags-$(CONFIG_ATH_PCIE_ACCESS_DEBUG) += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002572
Jeff Johnson69ba6d02018-04-12 16:05:32 -07002573# Enable feature support for Linux version QCMBR
Jeff Johnsonee869842018-04-17 11:14:03 -07002574cppflags-$(CONFIG_LINUX_QCMBR) += -DLINUX_QCMBR
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002575
yuanl2746f072018-09-21 19:19:16 +08002576# Enable feature sync tsf between multi devices
Jeff Johnsonee869842018-04-17 11:14:03 -07002577cppflags-$(CONFIG_WLAN_SYNC_TSF) += -DWLAN_FEATURE_TSF
2578cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS) += -DWLAN_FEATURE_TSF_PLUS
yuanl2746f072018-09-21 19:19:16 +08002579# Enable feature sync tsf for chips based on Adrastea arch
2580cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS_NOIRQ) += -DWLAN_FEATURE_TSF_PLUS_NOIRQ
Yu Wang000dc2f2017-05-26 17:38:48 +08002581
Jeff Johnsonee869842018-04-17 11:14:03 -07002582cppflags-$(CONFIG_ATH_PROCFS_DIAG_SUPPORT) += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
Nirav Shahe8ac3402017-12-31 15:36:32 +05302583
Jeff Johnsonee869842018-04-17 11:14:03 -07002584cppflags-$(CONFIG_HELIUMPLUS) += -DHELIUMPLUS
Manjunathappa Prakash7b0ad462018-04-15 00:37:16 -07002585cppflags-$(CONFIG_RX_OL) += -DRECEIVE_OFFLOAD
chenguo0f3636b2018-05-10 14:24:49 +08002586cppflags-$(CONFIG_TX_TID_OVERRIDE) += -DATH_TX_PRI_OVERRIDE
Jeff Johnsonee869842018-04-17 11:14:03 -07002587cppflags-$(CONFIG_AR900B) += -DAR900B
2588cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64
2589cppflags-$(CONFIG_OL_RX_INDICATION_RECORD) += -DOL_RX_INDICATION_RECORD
2590cppflags-$(CONFIG_TSOSEG_DEBUG) += -DTSOSEG_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002591
Jeff Johnsonee869842018-04-17 11:14:03 -07002592cppflags-$(CONFIG_ENABLE_DEBUG_ADDRESS_MARKING) += -DENABLE_DEBUG_ADDRESS_MARKING
2593cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO
2594cppflags-$(CONFIG_FEATURE_TSO_DEBUG) += -DFEATURE_TSO_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002595
Jeff Johnsonee869842018-04-17 11:14:03 -07002596cppflags-$(CONFIG_WLAN_LRO) += -DFEATURE_LRO
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002597
Jeff Johnsonee869842018-04-17 11:14:03 -07002598cppflags-$(CONFIG_FEATURE_AP_MCC_CH_AVOIDANCE) += -DFEATURE_AP_MCC_CH_AVOIDANCE
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07002599
Jeff Johnsonee869842018-04-17 11:14:03 -07002600cppflags-$(CONFIG_MPC_UT_FRAMEWORK) += -DMPC_UT_FRAMEWORK
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002601
Jeff Johnsonee869842018-04-17 11:14:03 -07002602cppflags-$(CONFIG_FEATURE_EPPING) += -DWLAN_FEATURE_EPPING
Nirav Shah459bebf2018-01-17 16:59:14 +05302603
Jeff Johnsonee869842018-04-17 11:14:03 -07002604cppflags-$(CONFIG_WLAN_OFFLOAD_PACKETS) += -DWLAN_FEATURE_OFFLOAD_PACKETS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002605
Jeff Johnsonee869842018-04-17 11:14:03 -07002606cppflags-$(CONFIG_WLAN_FEATURE_DISA) += -DWLAN_FEATURE_DISA
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +05302607
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05302608cppflags-$(CONFIG_WLAN_FEATURE_ACTION_OUI) += -DWLAN_FEATURE_ACTION_OUI
2609
Jeff Johnsonee869842018-04-17 11:14:03 -07002610cppflags-$(CONFIG_WLAN_FEATURE_FIPS) += -DWLAN_FEATURE_FIPS
Jeff Johnson7869aad2017-05-15 15:46:36 -07002611
Jeff Johnsonee869842018-04-17 11:14:03 -07002612cppflags-$(CONFIG_LFR_SUBNET_DETECTION) += -DFEATURE_LFR_SUBNET_DETECTION
Ravi Joshi61c3c7a2015-11-09 18:41:20 -08002613
Jeff Johnsonee869842018-04-17 11:14:03 -07002614cppflags-$(CONFIG_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +05302615
Jeff Johnsonee869842018-04-17 11:14:03 -07002616cppflags-$(CONFIG_FEATURE_WLAN_D0WOW) += -DFEATURE_WLAN_D0WOW
Will Huang3cd2b7c2017-11-17 13:16:56 +08002617
Yue Ma91e1c002018-05-24 11:18:36 -07002618cppflags-$(CONFIG_QCA_WIFI_NAPIER_EMULATION) += -DQCA_WIFI_NAPIER_EMULATION
Jeff Johnsonee869842018-04-17 11:14:03 -07002619cppflags-$(CONFIG_SHADOW_V2) += -DCONFIG_SHADOW_V2
2620cppflags-$(CONFIG_QCA6290_HEADERS_DEF) += -DQCA6290_HEADERS_DEF
2621cppflags-$(CONFIG_QCA_WIFI_QCA6290) += -DQCA_WIFI_QCA6290
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07002622cppflags-$(CONFIG_QCA6390_HEADERS_DEF) += -DQCA6390_HEADERS_DEF
2623cppflags-$(CONFIG_QCA_WIFI_QCA6390) += -DQCA_WIFI_QCA6390
Jeff Johnsonee869842018-04-17 11:14:03 -07002624cppflags-$(CONFIG_QCA_WIFI_QCA8074) += -DQCA_WIFI_QCA8074
Venkata Sharath Chandra Manchala1619b732018-10-04 10:52:58 -07002625cppflags-$(CONFIG_SCALE_INCLUDES) += -DSCALE_INCLUDES
Jeff Johnsonee869842018-04-17 11:14:03 -07002626cppflags-$(CONFIG_QCA_WIFI_QCA8074_VP) += -DQCA_WIFI_QCA8074_VP
2627cppflags-$(CONFIG_DP_INTR_POLL_BASED) += -DDP_INTR_POLL_BASED
2628cppflags-$(CONFIG_TX_PER_PDEV_DESC_POOL) += -DTX_PER_PDEV_DESC_POOL
2629cppflags-$(CONFIG_DP_TRACE) += -DCONFIG_DP_TRACE
2630cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO
2631cppflags-$(CONFIG_TSO_DEBUG_LOG_ENABLE) += -DTSO_DEBUG_LOG_ENABLE
2632cppflags-$(CONFIG_DP_LFR) += -DDP_LFR
Saket Jha8d70a682019-07-10 19:57:27 -07002633cppflags-$(CONFIG_DUP_RX_DESC_WAR) += -DDUP_RX_DESC_WAR
Saket Jha99531502019-08-21 15:00:49 -07002634cppflags-$(CONFIG_DP_TXRX_SOC_ATTACH) += -DDP_TXRX_SOC_ATTACH
Jeff Johnsonee869842018-04-17 11:14:03 -07002635cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64
Qiwei Caia01a9622018-07-11 10:02:03 +08002636cppflags-$(CONFIG_WLAN_FEATURE_BMI) += -DWLAN_FEATURE_BMI
Visweswara Tanuku2e839e52019-06-11 10:16:30 +05302637cppflags-$(CONFIG_QCA_TX_PADDING_CREDIT_SUPPORT) += -DQCA_TX_PADDING_CREDIT_SUPPORT
Ajit Pal Singh25caf992018-10-15 15:10:18 +05302638cppflags-$(CONFIG_QCN7605_SUPPORT) += -DQCN7605_SUPPORT -DPLATFORM_GENOA
Nirav Shahb34413a2018-07-31 14:26:35 +05302639cppflags-$(CONFIG_HIF_REG_WINDOW_SUPPORT) += -DHIF_REG_WINDOW_SUPPORT
Qiwei Cai50a21082018-08-07 14:30:09 +08002640cppflags-$(CONFIG_WLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY) += -DWLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY
Venkata Sharath Chandra Manchalaeb2d2582019-05-01 13:57:11 -07002641cppflags-$(CONFIG_HIF_CE_DEBUG_DATA_BUF) += -DHIF_CE_DEBUG_DATA_BUF
Nirav Shahc8047a82018-06-22 16:39:01 +05302642ccflags-$(CONFIG_QCA_LL_TX_FLOW_CONTROL_RESIZE) += -DQCA_LL_TX_FLOW_CONTROL_RESIZE
Nirav Shahaf1260f2018-09-13 23:28:13 +05302643ccflags-$(CONFIG_HIF_PCI) += -DCE_SVC_CMN_INIT
2644ccflags-$(CONFIG_HIF_SNOC) += -DCE_SVC_CMN_INIT
Nirav Shahc8047a82018-06-22 16:39:01 +05302645
psimha0b6bb892017-10-10 14:28:34 -07002646ifeq ($(CONFIG_QCA6290_11AX), y)
Vevek Venkatesanaa66a192019-06-19 15:15:15 +05302647cppflags-y += -DQCA_WIFI_QCA6290_11AX -DQCA_WIFI_QCA6290_11AX_MU_UL
chenguoac840e52018-12-21 13:47:53 +08002648endif
2649
2650ifeq ($(CONFIG_LITHIUM), y)
chenguo5958e5a2018-09-27 19:19:57 +08002651cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_AC_BASED_FLOW_CONTROL
psimha0b6bb892017-10-10 14:28:34 -07002652endif
2653
Manjunathappa Prakasheb1ec862019-07-28 00:01:18 -07002654cppflags-$(CONFIG_WLAN_CLD_PM_QOS) += -DCLD_PM_QOS
Jeff Johnsonee869842018-04-17 11:14:03 -07002655cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX
2656cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX_BSS_COLOR
Kiran Kumar Lokere1f96b4a2018-08-22 14:47:11 -07002657cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DSUPPORT_11AX_D3
Krishna Kumaar Natarajan639c6ff2017-02-13 14:01:04 -08002658
Sravan Kumar Kairam7bca07e2018-07-05 18:32:22 +05302659cppflags-$(CONFIG_LITHIUM) += -DFEATURE_AST
Sravan Kumar Kairam87cd08e2018-09-05 19:29:12 +05302660cppflags-$(CONFIG_LITHIUM) += -DPEER_PROTECTED_ACCESS
Sravan Kumar Kairam782f9c12019-03-25 23:03:20 +05302661cppflags-$(CONFIG_LITHIUM) += -DSERIALIZE_QUEUE_SETUP
Jinwei Chendeb99362019-07-17 16:04:05 +08002662cppflags-$(CONFIG_LITHIUM) += -DDP_RX_PKT_NO_PEER_DELIVER
Krunal Soni888d4012019-02-25 16:47:21 -08002663cppflags-$(CONFIG_VERBOSE_DEBUG) += -DENABLE_VERBOSE_DEBUG
Mohit Khannacf139fe2019-01-28 12:22:14 -08002664cppflags-$(CONFIG_RX_DESC_DEBUG_CHECK) += -DRX_DESC_DEBUG_CHECK
Abhishek Singhed197482018-09-05 13:22:02 +05302665#Enable STATE MACHINE HISTORY
2666cppflags-$(CONFIG_SM_ENG_HIST) += -DSM_ENG_HIST_ENABLE
sandeep puligilla4afcb112019-04-23 13:42:51 -07002667cppflags-$(CONFIG_FEATURE_VDEV_RSP_WAKELOCK) += -DFEATURE_VDEV_RSP_WAKELOCK
Abhishek Singhed197482018-09-05 13:22:02 +05302668
Qiwei Caie689a262018-07-26 15:50:22 +08002669# Vendor Commands
2670cppflags-$(CONFIG_FEATURE_RSSI_MONITOR) += -DFEATURE_RSSI_MONITOR
2671cppflags-$(CONFIG_FEATURE_BSS_TRANSITION) += -DFEATURE_BSS_TRANSITION
2672cppflags-$(CONFIG_FEATURE_STATION_INFO) += -DFEATURE_STATION_INFO
2673cppflags-$(CONFIG_FEATURE_TX_POWER) += -DFEATURE_TX_POWER
2674cppflags-$(CONFIG_FEATURE_OTA_TEST) += -DFEATURE_OTA_TEST
2675cppflags-$(CONFIG_FEATURE_ACTIVE_TOS) += -DFEATURE_ACTIVE_TOS
2676cppflags-$(CONFIG_FEATURE_SAR_LIMITS) += -DFEATURE_SAR_LIMITS
2677cppflags-$(CONFIG_FEATURE_CONCURRENCY_MATRIX) += -DFEATURE_CONCURRENCY_MATRIX
2678cppflags-$(CONFIG_FEATURE_SAP_COND_CHAN_SWITCH) += -DFEATURE_SAP_COND_CHAN_SWITCH
Rachit Kankane026e77a2018-07-31 16:21:09 +05302679
2680#if converged p2p is enabled
2681ifeq ($(CONFIG_CONVERGED_P2P_ENABLE), y)
Qiwei Caie689a262018-07-26 15:50:22 +08002682cppflags-$(CONFIG_FEATURE_P2P_LISTEN_OFFLOAD) += -DFEATURE_P2P_LISTEN_OFFLOAD
Rachit Kankane026e77a2018-07-31 16:21:09 +05302683endif
Qiwei Caie689a262018-07-26 15:50:22 +08002684
Qiwei Caidcb73b02018-09-17 19:58:29 +08002685#Flags to enable/disable WMI APIs
2686cppflags-$(CONFIG_WMI_ROAM_SUPPORT) += -DWMI_ROAM_SUPPORT
2687cppflags-$(CONFIG_WMI_CONCURRENCY_SUPPORT) += -DWMI_CONCURRENCY_SUPPORT
2688cppflags-$(CONFIG_WMI_STA_SUPPORT) += -DWMI_STA_SUPPORT
2689
Vevek Venkatesan6230c332019-06-28 18:27:05 +05302690cppflags-y += -DWMI_MULTI_MAC_SVC
2691
Leo Chang5f7a1e02016-11-04 14:04:26 -07002692# Dummy flag for WIN/MCL converged data path compilation
Jeff Johnsonee869842018-04-17 11:14:03 -07002693cppflags-y += -DDP_PRINT_ENABLE=0
2694cppflags-y += -DATH_SUPPORT_WRAP=0
2695cppflags-y += -DQCA_HOST2FW_RXBUF_RING
Vevek Venkatesandba9bc02019-06-18 18:16:22 +05302696cppflags-y += -DDP_FLOW_CTL
2697cppflags-y += -DDP_PEER_EXTENDED_API
2698cppflags-y += -DDP_POWER_SAVE
2699cppflags-y += -DDP_CON_MON
2700cppflags-y += -DDP_MOB_DEFS
2701cppflags-y += -DDP_PRINT_NO_CONSOLE
2702cppflags-y += -DDP_INTR_POLL_BOTH
2703cppflags-y += -DDP_INVALID_PEER_ASSERT
Leo Chang5f7a1e02016-11-04 14:04:26 -07002704#endof dummy flags
2705
Nirav Shah8ba94a52018-06-07 09:06:25 +05302706ccflags-$(CONFIG_ENABLE_SIZE_OPTIMIZE) += -Os
2707
Arif Hussain757b45f2017-02-11 16:47:06 -08002708# DFS component
Rachit Kankaneb57ea612018-09-10 12:36:20 +05302709cppflags-$(CONFIG_WLAN_DFS_STATIC_MEM_ALLOC) += -DWLAN_DFS_STATIC_MEM_ALLOC
Wen Gong01a2c632018-04-11 18:34:55 +08002710cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_MCL_DFS_SUPPORT
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002711ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y)
Wen Gong01a2c632018-04-11 18:34:55 +08002712cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_FULL_OFFLOAD
Arif Hussain02c2b632018-03-08 23:09:21 -08002713else
Wen Gong01a2c632018-04-11 18:34:55 +08002714cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_PARTIAL_OFFLOAD
Arif Hussain02c2b632018-03-08 23:09:21 -08002715endif
Wen Gong01a2c632018-04-11 18:34:55 +08002716cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DDFS_COMPONENT_ENABLE
2717cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_USE_POLICY_MANAGER
2718cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_NOL_PLATFORM_DRV_SUPPORT
Arif Hussain757b45f2017-02-11 16:47:06 -08002719
Jeff Johnsonee869842018-04-17 11:14:03 -07002720cppflags-$(CONFIG_WLAN_DEBUGFS) += -DWLAN_DEBUGFS
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -07002721
Jeff Johnsonee869842018-04-17 11:14:03 -07002722cppflags-$(CONFIG_DYNAMIC_DEBUG) += -DFEATURE_MULTICAST_HOST_FW_MSGS
Zhu Jianmin35fcd0d2017-08-30 10:47:31 +08002723
Jeff Johnsonee869842018-04-17 11:14:03 -07002724cppflags-$(CONFIG_ENABLE_SMMU_S1_TRANSLATION) += -DENABLE_SMMU_S1_TRANSLATION
Himanshu Agarwaledf30dc2017-06-05 15:54:27 +05302725
Ashish Kumar Dhanotiya2af7f562018-07-24 15:52:46 +05302726#Flag to enable/disable MTRACE feature
2727cppflags-$(CONFIG_ENABLE_MTRACE_LOG) += -DENABLE_MTRACE_LOG
2728
Pragaspathi Thilagaraj1f3f99f2019-04-24 23:48:47 +05302729#Flag to enable/disable Adaptive 11r feature
2730cppflags-$(CONFIG_ADAPTIVE_11R) += -DWLAN_ADAPTIVE_11R
2731
Alok Kumarb64650c2018-03-23 17:05:11 +05302732#Flag to enable NUD tracking
Jeff Johnsonee869842018-04-17 11:14:03 -07002733cppflags-$(CONFIG_WLAN_NUD_TRACKING) += -DWLAN_NUD_TRACKING
2734
Ashish Kumar Dhanotiya3f78e682018-03-14 11:19:27 +05302735#Flag to enable set and get disable channel list feature
2736cppflags-$(CONFIG_DISABLE_CHANNEL_LIST) += -DDISABLE_CHANNEL_LIST
2737
Abhinav Kumardbbfd2c2019-05-07 12:22:06 +05302738#Flag to enable/disable WIPS feature
2739cppflags-$(CONFIG_WLAN_BCN_RECV_FEATURE) += -DWLAN_BCN_RECV_FEATURE
2740
Ashish Kumar Dhanotiyaaa9fdbb2018-12-14 15:29:14 +05302741#Flag to enable/disable LTE COEX support
Ashish Kumar Dhanotiyaddeb4d72019-01-08 21:25:30 +05302742cppflags-$(CONFIG_LTE_COEX) += -DLTE_COEX
Ashish Kumar Dhanotiyaaa9fdbb2018-12-14 15:29:14 +05302743
2744#Flag to enable/disable HOST_OPCLASS
2745cppflags-$(CONFIG_HOST_OPCLASS) += -DHOST_OPCLASS
2746
Ashish Kumar Dhanotiyaddeb4d72019-01-08 21:25:30 +05302747#Flag to enable/disable TARGET_11D_SCAN
2748cppflags-$(CONFIG_TARGET_11D_SCAN) += -DTARGET_11D_SCAN
2749
Ashish Kumar Dhanotiya2168aad2019-06-12 20:51:36 +05302750#Flag to enable/disable avoid acs frequency list feature
2751cppflags-$(CONFIG_SAP_AVOID_ACS_FREQ_LIST) += -DSAP_AVOID_ACS_FREQ_LIST
2752
Rachit Kankanef6834c42018-08-02 18:47:50 +05302753#Flag to enable Dynamic Voltage WDCVS (Config Voltage Mode)
2754cppflags-$(CONFIG_WLAN_DYNAMIC_CVM) += -DFEATURE_WLAN_DYNAMIC_CVM
2755
Qun Zhangef655622019-02-25 10:48:10 +08002756#Flag to enable get firmware state feature
2757cppflags-$(CONFIG_QCACLD_FEATURE_FW_STATE) += -DFEATURE_FW_STATE
2758
Jiani Liua5f17222019-03-04 16:22:33 +08002759#Flag to enable set coex configuration feature
2760cppflags-$(CONFIG_QCACLD_FEATURE_COEX_CONFIG) += -DFEATURE_COEX_CONFIG
2761
stonez2d686482019-03-12 14:54:26 +08002762#Flag to enable MPTA helper feature
2763cppflags-$(CONFIG_QCACLD_FEATURE_MPTA_HELPER) += -DFEATURE_MPTA_HELPER
2764
guangde4853c402019-05-06 15:54:04 +08002765#Flag to enable get hw capability
2766cppflags-$(CONFIG_QCACLD_FEATURE_HW_CAPABILITY) += -DFEATURE_HW_CAPABILITY
2767
Nirav Shah6f261332019-03-04 12:29:52 +05302768cppflags-$(CONFIG_DATA_CE_SW_INDEX_NO_INLINE_UPDATE) += -DDATA_CE_SW_INDEX_NO_INLINE_UPDATE
2769
Varun Reddy Yeturucbaa0042019-05-16 14:10:02 -07002770#Flag to enable Multi page memory allocation for RX descriptor pool
2771cppflags-$(CONFIG_QCACLD_RX_DESC_MULTI_PAGE_ALLOC) += -DRX_DESC_MULTI_PAGE_ALLOC
2772
Rakesh Pillaif41fe0c2019-06-05 01:10:05 +05302773cppflags-$(CONFIG_WLAN_FEATURE_DP_EVENT_HISTORY) += -DWLAN_FEATURE_DP_EVENT_HISTORY
Venkata Sharath Chandra Manchalaaf9e44a2019-06-18 18:10:16 -07002774cppflags-$(CONFIG_WLAN_DP_PER_RING_TYPE_CONFIG) += -DWLAN_DP_PER_RING_TYPE_CONFIG
Nirav Shaha43f6dc2019-07-24 14:32:25 +05302775cppflags-$(CONFIG_SAP_DHCP_FW_IND) += -DSAP_DHCP_FW_IND
Rakesh Pillaif41fe0c2019-06-05 01:10:05 +05302776
Dustin Brown93abc2c2018-10-22 13:56:01 -07002777ifdef CONFIG_MAX_LOGS_PER_SEC
2778ccflags-y += -DWLAN_MAX_LOGS_PER_SEC=$(CONFIG_MAX_LOGS_PER_SEC)
2779endif
2780
Dustin Brown099048b2018-08-30 15:04:29 -07002781ifdef CONFIG_SCHED_HISTORY_SIZE
2782ccflags-y += -DWLAN_SCHED_HISTORY_SIZE=$(CONFIG_SCHED_HISTORY_SIZE)
2783endif
2784
Nirav Shah997e0832018-06-06 17:49:12 +05302785# configure log buffer size
2786ifdef CONFIG_CFG_NUM_DP_TRACE_RECORD
2787ccflags-y += -DMAX_QDF_DP_TRACE_RECORDS=$(CONFIG_CFG_NUM_DP_TRACE_RECORD)
2788endif
2789
2790ifdef CONFIG_CFG_NUM_HTC_CREDIT_HISTORY
2791ccflags-y += -DHTC_CREDIT_HISTORY_MAX=$(CONFIG_CFG_NUM_HTC_CREDIT_HISTORY)
2792endif
2793
2794ifdef CONFIG_CFG_NUM_WMI_EVENT_HISTORY
2795ccflags-y += -DWMI_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_EVENT_HISTORY)
2796endif
2797
2798ifdef CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY
2799ccflags-y += -DWMI_MGMT_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY)
2800endif
2801
2802ifdef CONFIG_CFG_NUM_TX_RX_HISTOGRAM
2803ccflags-y += -DNUM_TX_RX_HISTOGRAM=$(CONFIG_CFG_NUM_TX_RX_HISTOGRAM)
2804endif
2805
2806ifdef CONFIG_CFG_NUM_RX_IND_RECORD
2807ccflags-y += -DOL_RX_INDICATION_MAX_RECORDS=$(CONFIG_CFG_NUM_RX_IND_RECORD)
2808endif
2809
Qiwei Caiad9b01c2018-07-09 17:21:31 +08002810ifdef CONFIG_CFG_NUM_ROAM_DEBUG_RECORD
2811ccflags-y += -DWLAN_ROAM_DEBUG_MAX_REC=$(CONFIG_CFG_NUM_ROAM_DEBUG_RECORD)
2812endif
2813
Rachit Kankane8863cba2018-06-05 17:31:48 +05302814ifdef CONFIG_CFG_PMO_WOW_FILTERS_MAX
2815ccflags-y += -DPMO_WOW_FILTERS_MAX=$(CONFIG_CFG_PMO_WOW_FILTERS_MAX)
2816endif
Nirav Shah997e0832018-06-06 17:49:12 +05302817
jsreekumac44b922018-06-12 20:18:39 +05302818ifdef CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV
2819ccflags-y += -DCFG_TGT_DEFAULT_GTK_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV)
2820endif
2821
Ajit Pal Singha70e3152019-01-03 17:13:41 +05302822ifdef CONFIG_TGT_NUM_MSDU_DESC
2823ccflags-y += -DCFG_TGT_NUM_MSDU_DESC=$(CONFIG_TGT_NUM_MSDU_DESC)
2824endif
2825
jsreekumac44b922018-06-12 20:18:39 +05302826ifdef CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV
2827ccflags-y += -DCFG_TGT_DEFAULT_ROAM_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV)
2828endif
2829
2830ifdef CONFIG_CFG_MAX_PERIODIC_TX_PTRNS
2831ccflags-y += -DWMA_MAXNUM_PERIODIC_TX_PTRNS=$(CONFIG_CFG_MAX_PERIODIC_TX_PTRNS)
2832endif
2833
2834ifdef CONFIG_CFG_MAX_STA_VDEVS
2835ccflags-y += -DCFG_TGT_DEFAULT_MAX_STA_VDEVS=$(CONFIG_CFG_MAX_STA_VDEVS)
2836endif
2837
Rachit Kankane0106e382018-05-16 18:59:28 +05302838ifdef CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS
2839ccflags-y += -DNUM_OF_ADDITIONAL_FW_PEERS=$(CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS)
2840endif
2841
jsreekumac44b922018-06-12 20:18:39 +05302842ifdef CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES
2843ccflags-y += -DCFG_TGT_NUM_TDLS_CONN_TABLE_ENTRIES=$(CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES)
2844endif
2845
Dustin Browna19834b2019-02-04 14:40:26 -08002846CONFIG_WLAN_MAX_PSOCS ?= 1
2847ccflags-y += -DWLAN_MAX_PSOCS=$(CONFIG_WLAN_MAX_PSOCS)
2848
2849CONFIG_WLAN_MAX_PDEVS ?= 1
2850ccflags-y += -DWLAN_MAX_PDEVS=$(CONFIG_WLAN_MAX_PDEVS)
2851
2852CONFIG_WLAN_MAX_VDEVS ?= 5
2853ccflags-y += -DWLAN_MAX_VDEVS=$(CONFIG_WLAN_MAX_VDEVS)
2854
Pragaspathi Thilagaraj6c88d402019-07-02 18:41:34 +05302855#Maximum pending commands for a vdev is calculated in vdev create handler
2856#by WLAN_SER_MAX_PENDING_CMDS/WLAN_SER_MAX_VDEVS. For SAP case, we will need
2857#to accommodate 32 Pending commands to handle multiple STA sending
2858#deauth/disassoc at the same time and for STA vdev,4 non scan pending commands
2859#are supported. So calculate WLAN_SER_MAX_PENDING_COMMANDS based on the SAP
2860#modes supported and no of STA vdev total non scan pending queue. Reserve
2861#additional 3 pending commands for WLAN_SER_MAX_PENDING_CMDS_AP to account for
2862#other commands like hardware mode change.
2863
2864ifdef CONFIG_SIR_SAP_MAX_NUM_PEERS
2865CONFIG_WLAN_SER_MAX_PENDING_CMDS_AP ?=$(CONFIG_SIR_SAP_MAX_NUM_PEERS)
2866else
2867CONFIG_WLAN_SER_MAX_PENDING_CMDS_AP ?=32
2868endif
2869ccflags-y += -DWLAN_SER_MAX_PENDING_CMDS_AP=$(CONFIG_WLAN_SER_MAX_PENDING_CMDS_AP)+3
2870
2871CONFIG_WLAN_SER_MAX_PENDING_CMDS_STA ?= 4
2872ccflags-y += -DWLAN_SER_MAX_PENDING_CMDS_STA=$(CONFIG_WLAN_SER_MAX_PENDING_CMDS_STA)
2873
2874CONFIG_WLAN_MAX_PENDING_CMDS ?= $(CONFIG_WLAN_SER_MAX_PENDING_CMDS_AP)*3+$(CONFIG_WLAN_SER_MAX_PENDING_CMDS_STA)*2
2875
2876ccflags-y += -DWLAN_SER_MAX_PENDING_CMDS=$(CONFIG_WLAN_MAX_PENDING_CMDS)
2877
Dustin Browna19834b2019-02-04 14:40:26 -08002878CONFIG_WLAN_PDEV_MAX_VDEVS ?= $(CONFIG_WLAN_MAX_VDEVS)
2879ccflags-y += -DWLAN_PDEV_MAX_VDEVS=$(CONFIG_WLAN_PDEV_MAX_VDEVS)
2880
2881CONFIG_WLAN_PSOC_MAX_VDEVS ?= $(CONFIG_WLAN_MAX_VDEVS)
2882ccflags-y += -DWLAN_PSOC_MAX_VDEVS=$(CONFIG_WLAN_PSOC_MAX_VDEVS)
Rachit Kankane154559c2018-07-12 14:02:30 +05302883
Harprit Chhabada3946d612019-03-07 16:49:18 -08002884CONFIG_MAX_SCAN_CACHE_SIZE ?= 300
2885ccflags-y += -DMAX_SCAN_CACHE_SIZE=$(CONFIG_MAX_SCAN_CACHE_SIZE)
2886CONFIG_SCAN_MAX_REST_TIME ?= 0
2887ccflags-y += -DSCAN_MAX_REST_TIME=$(CONFIG_SCAN_MAX_REST_TIME)
2888CONFIG_SCAN_MIN_REST_TIME ?= 0
2889ccflags-y += -DSCAN_MIN_REST_TIME=$(CONFIG_SCAN_MIN_REST_TIME)
2890CONFIG_SCAN_BURST_DURATION ?= 0
2891ccflags-y += -DSCAN_BURST_DURATION=$(CONFIG_SCAN_BURST_DURATION)
2892CONFIG_SCAN_PROBE_SPACING_TIME ?= 0
2893ccflags-y += -DSCAN_PROBE_SPACING_TIME=$(CONFIG_SCAN_PROBE_SPACING_TIME)
2894CONFIG_SCAN_PROBE_DELAY ?= 0
2895ccflags-y += -DSCAN_PROBE_DELAY=$(CONFIG_SCAN_PROBE_DELAY)
2896CONFIG_SCAN_MAX_SCAN_TIME ?= 30000
2897ccflags-y += -DSCAN_MAX_SCAN_TIME=$(CONFIG_SCAN_MAX_SCAN_TIME)
2898CONFIG_SCAN_NETWORK_IDLE_TIMEOUT ?= 0
2899ccflags-y += -DSCAN_NETWORK_IDLE_TIMEOUT=$(CONFIG_SCAN_NETWORK_IDLE_TIMEOUT)
Jianmin Zhu0332a6c2019-04-16 16:43:36 +08002900CONFIG_HIDDEN_SSID_TIME ?= 0xFFFFFFFF
Harprit Chhabada3946d612019-03-07 16:49:18 -08002901ccflags-y += -DHIDDEN_SSID_TIME=$(CONFIG_HIDDEN_SSID_TIME)
2902CONFIG_SCAN_CHAN_STATS_EVENT_ENAB ?= false
2903ccflags-y += -DSCAN_CHAN_STATS_EVENT_ENAB=$(CONFIG_SCAN_CHAN_STATS_EVENT_ENAB)
Tushnim Bhattacharyya72d81202019-07-23 15:15:58 -07002904CONFIG_MAX_BCN_PROBE_IN_SCAN_QUEUE ?= 150
2905ccflags-y += -DMAX_BCN_PROBE_IN_SCAN_QUEUE=$(CONFIG_MAX_BCN_PROBE_IN_SCAN_QUEUE)
Harprit Chhabada3946d612019-03-07 16:49:18 -08002906
2907
Tushnim Bhattacharyyac55e9a72019-07-23 14:23:33 -07002908CONFIG_MGMT_DESC_POOL_MAX ?= 64
2909ccflags-y += -DMGMT_DESC_POOL_MAX=$(CONFIG_MGMT_DESC_POOL_MAX)
2910
Rachit Kankane154559c2018-07-12 14:02:30 +05302911ifdef CONFIG_SIR_SAP_MAX_NUM_PEERS
2912ccflags-y += -DSIR_SAP_MAX_NUM_PEERS=$(CONFIG_SIR_SAP_MAX_NUM_PEERS)
2913endif
2914
Ajit Pal Singh72100442018-12-04 17:04:36 +05302915ifdef CONFIG_BEACON_TX_OFFLOAD_MAX_VDEV
2916ccflags-y += -DCFG_TGT_DEFAULT_BEACON_TX_OFFLOAD_MAX_VDEV=$(CONFIG_BEACON_TX_OFFLOAD_MAX_VDEV)
2917endif
2918
Rajeev Kumar4a8d2642018-09-07 17:29:28 -07002919ifdef CONFIG_LOCK_STATS_ON
2920ccflags-y += -DQDF_LOCK_STATS=1
2921ccflags-y += -DQDF_LOCK_STATS_DESTROY_PRINT=0
Lihua Liue98a1352019-06-18 18:38:08 +08002922ifneq ($(CONFIG_ARCH_SDXPRAIRIE), y)
Rajeev Kumar4a8d2642018-09-07 17:29:28 -07002923ccflags-y += -DQDF_LOCK_STATS_BUG_ON=1
Lihua Liue98a1352019-06-18 18:38:08 +08002924endif
Rajeev Kumar4a8d2642018-09-07 17:29:28 -07002925ccflags-y += -DQDF_LOCK_STATS_LIST=1
2926ccflags-y += -DQDF_LOCK_STATS_LIST_SIZE=256
2927endif
2928
Visweswara Tanuku0b2e5e82019-03-18 14:39:54 +05302929ifdef CONFIG_FW_THERMAL_THROTTLE
2930ccflags-y += -DFW_THERMAL_THROTTLE_SUPPORT
2931endif
2932
Sravan Kumar Kairamd68f27c2019-03-22 18:25:50 +05302933cppflags-y += -DFEATURE_NBUFF_REPLENISH_TIMER
Sravan Kumar Kairam0c3f7322019-04-26 16:22:28 +05302934cppflags-y += -DPEER_CACHE_RX_PKTS
Sravan Kumar Kairam42cedde2019-07-10 12:57:17 +05302935cppflags-y += -DPCIE_REG_WINDOW_LOCAL_NO_CACHE
Sravan Kumar Kairamd68f27c2019-03-22 18:25:50 +05302936
Abhishek Ambure93bb9612019-08-12 15:11:59 +05302937cppflags-y += -DSERIALIZE_VDEV_RESP_TIMER
Abhishek Ambure2ac5dec2019-05-27 14:56:56 +05302938cppflags-y += -DTGT_IF_VDEV_MGR_CONV
Abhishek Ambure2ac5dec2019-05-27 14:56:56 +05302939
Amar Singhal40dd5192019-08-21 12:19:25 -07002940cppflags-y += -DCONFIG_CHAN_NUM_API
2941cppflags-y += -DCONFIG_CHAN_FREQ_API
2942
2943cppflags-$(CONFIG_BAND_6GHZ) += -DCONFIG_BAND_6GHZ
2944
Jeff Johnson0187c622019-01-04 06:39:44 -08002945ccflags-$(CONFIG_HASTINGS_BT_WAR) += -DHASTINGS_BT_WAR
2946
Vevek Venkatesan8b579f42019-06-28 18:08:52 +05302947cppflags-$(CONFIG_SLUB_DEBUG_ON) += -DHIF_CONFIG_SLUB_DEBUG_ON
2948
Jianmin Zhufa587a82019-07-11 16:43:04 +08002949ccflags-$(CONFIG_FOURTH_CONNECTION) += -DFEATURE_FOURTH_CONNECTION
Manikandan Mohan1baadae2019-08-23 08:32:56 -07002950ccflags-$(CONFIG_WMI_SEND_RECV_QMI) += -DWLAN_FEATURE_WMI_SEND_RECV_QMI
Jianmin Zhufa587a82019-07-11 16:43:04 +08002951
Jeff Johnsonee869842018-04-17 11:14:03 -07002952KBUILD_CPPFLAGS += $(cppflags-y)
Alok Kumarb64650c2018-03-23 17:05:11 +05302953
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002954# Currently, for versions of gcc which support it, the kernel Makefile
2955# is disabling the maybe-uninitialized warning. Re-enable it for the
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002956# WLAN driver. Note that we must use ccflags-y here so that it
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002957# will override the kernel settings.
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002958ifeq ($(call cc-option-yn, -Wmaybe-uninitialized), y)
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002959ccflags-y += -Wmaybe-uninitialized
Leo Chang5f7a1e02016-11-04 14:04:26 -07002960ifneq (y,$(CONFIG_ARCH_MSM))
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002961ccflags-y += -Wframe-larger-than=4096
Leo Chang5f7a1e02016-11-04 14:04:26 -07002962endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002963endif
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002964ccflags-y += -Wmissing-prototypes
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002965
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002966ifeq ($(call cc-option-yn, -Wheader-guard), y)
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002967ccflags-y += -Wheader-guard
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002968endif
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302969# If the module name is not "wlan", then the define MULTI_IF_NAME to be the
Yu Wang66e4ff22017-02-15 19:09:24 +08002970# same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302971# any string that must be unique for all instances of the driver on the system.
2972# This allows multiple instances of the driver with different module names.
2973# If the module name is wlan, leave MULTI_IF_NAME undefined and the code will
2974# treat the driver as the primary driver.
Yu Wang7d866f62019-03-13 17:55:44 +08002975#
2976# If DYNAMIC_SINGLE_CHIP is defined, which means there are multiple possible
2977# drivers, but only 1 driver will be loaded at a time(WLAN dynamic detect),
2978# leave MULTI_IF_NAME undefined, no matter what the module name is, then
2979# host driver will only append DYNAMIC_SINGLE_CHIP to the path of
2980# firmware/mac/ini file.
2981ifneq ($(DYNAMIC_SINGLE_CHIP),)
2982ccflags-y += -DDYNAMIC_SINGLE_CHIP=\"$(DYNAMIC_SINGLE_CHIP)\"
2983else
2984
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302985ifneq ($(MODNAME), wlan)
Yu Wang66e4ff22017-02-15 19:09:24 +08002986CHIP_NAME ?= $(MODNAME)
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07002987ccflags-y += -DMULTI_IF_NAME=\"$(CHIP_NAME)\"
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302988endif
2989
Yu Wang7d866f62019-03-13 17:55:44 +08002990endif #DYNAMIC_SINGLE_CHIP
2991
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302992# WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the
2993# system. If it is not defined, then the host driver will use the first 4
2994# characters (including NULL) of MULTI_IF_NAME to construct
2995# WLAN_HDD_ADAPTER_MAGIC.
2996ifdef WLAN_HDD_ADAPTER_MAGIC
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07002997ccflags-y += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC)
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302998endif
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002999
sheenam monga70823872019-05-22 18:37:03 +05303000# Max no of Serialization msg queue depth for MCL. If it is not
3001# defined, then SCHEDULER_CORE_MAX_MESSAGES will be 4000 for
3002# WIN.
3003
3004ccflags-y += -DSCHEDULER_CORE_MAX_MESSAGES=1000
3005
sheenam mongafa3cb432019-05-24 13:55:05 +05303006# Defining Reduction Limit 0 for MCL. If it is not defined,
3007#then WLAN_SCHED_REDUCTION_LIMIT will be 32 for
3008# WIN.
3009ccflags-y += -DWLAN_SCHED_REDUCTION_LIMIT=0
3010
Dustin Brown9b217c02018-03-29 11:17:53 -07003011# Determine if we are building against an arm architecture host
3012ifeq ($(findstring arm, $(ARCH)),)
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07003013 ccflags-y += -DWLAN_HOST_ARCH_ARM=0
Dustin Brown9b217c02018-03-29 11:17:53 -07003014else
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07003015 ccflags-y += -DWLAN_HOST_ARCH_ARM=1
Dustin Brown9b217c02018-03-29 11:17:53 -07003016endif
3017
Naveen Rawat93836252017-06-20 16:30:59 -07003018# inject some build related information
Dustin Brown96cd9632017-11-13 12:45:04 -08003019ifeq ($(CONFIG_BUILD_TAG), y)
Dustin Brown0e769d02017-11-14 12:52:32 -08003020CLD_CHECKOUT = $(shell cd "$(WLAN_ROOT)" && \
Dustin Brownb0c53a82018-09-10 13:59:38 -07003021 git reflog | grep -vm1 "}: cherry-pick: " | grep -oE ^[0-f]+)
Dustin Brown0e769d02017-11-14 12:52:32 -08003022CLD_IDS = $(shell cd "$(WLAN_ROOT)" && \
Dustin Brownb0c53a82018-09-10 13:59:38 -07003023 git log -50 $(CLD_CHECKOUT)~..HEAD | \
Dustin Brown0e769d02017-11-14 12:52:32 -08003024 sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
3025 paste -sd "," -)
3026
3027CMN_CHECKOUT = $(shell cd "$(WLAN_COMMON_INC)" && \
Dustin Brownb0c53a82018-09-10 13:59:38 -07003028 git reflog | grep -vm1 "}: cherry-pick: " | grep -oE ^[0-f]+)
Dustin Brown0e769d02017-11-14 12:52:32 -08003029CMN_IDS = $(shell cd "$(WLAN_COMMON_INC)" && \
Dustin Brownb0c53a82018-09-10 13:59:38 -07003030 git log -50 $(CMN_CHECKOUT)~..HEAD | \
Dustin Brown0e769d02017-11-14 12:52:32 -08003031 sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
3032 paste -sd "," -)
3033
Dustin Brown96cd9632017-11-13 12:45:04 -08003034TIMESTAMP = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
Dustin Brown0e769d02017-11-14 12:52:32 -08003035BUILD_TAG = "$(TIMESTAMP); cld:$(CLD_IDS); cmn:$(CMN_IDS);"
Mahesh Kumar Kalikot Veetil48af32b2018-02-23 11:50:19 -08003036# It's assumed that BUILD_TAG is used only in wlan_hdd_main.c
3037CFLAGS_wlan_hdd_main.o += -DBUILD_TAG=\"$(BUILD_TAG)\"
Naveen Rawat93836252017-06-20 16:30:59 -07003038endif
3039
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003040# Module information used by KBuild framework
3041obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
3042$(MODNAME)-y := $(OBJS)
Srinivas Girigowdac7a1b0a2017-12-08 12:00:00 -08003043OBJS_DIRS := $(dir $(OBJS)) \
3044 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ \
3045 $(QDF_OBJ_DIR)/ \
3046 $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/ \
3047 $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/ \
3048 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/
3049CLEAN_DIRS := $(addsuffix *.o,$(sort $(OBJS_DIRS))) \
3050 $(addsuffix .*.o.cmd,$(sort $(OBJS_DIRS)))
3051clean-files := $(CLEAN_DIRS)