blob: d469de950530eaaf3bbc92c6a7b98e016c41a2b1 [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),)
4 KERNEL_BUILD := 1
5else
6 KERNEL_BUILD := 0
7endif
8
Leo Chang395cbb52016-11-11 14:35:03 -08009ifeq ($(CONFIG_CNSS_QCA6290), y)
10 CONFIG_LITHIUM := y
Krishna Kumaar Natarajan639c6ff2017-02-13 14:01:04 -080011 CONFIG_WLAN_FEATURE_11AX := y
Leo Chang395cbb52016-11-11 14:35:03 -080012endif
Leo Chang5f7a1e02016-11-04 14:04:26 -070013
Poddar, Siddarth29296fb2016-05-16 18:06:30 +053014ifeq ($(CONFIG_CLD_HL_SDIO_CORE), y)
15 CONFIG_QCA_WIFI_SDIO := 1
16endif
17
18ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
19 CONFIG_ROME_IF = sdio
20endif
21
Houston Hoffman57d10c22016-03-08 13:04:20 -080022ifdef CONFIG_ICNSS
23 CONFIG_ROME_IF = snoc
24endif
25
Yue Mae6a7a322016-08-31 11:09:23 -070026ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080027ifndef CONFIG_ROME_IF
28 #use pci as default interface
29 CONFIG_ROME_IF = pci
30endif
31endif
32
33ifeq ($(KERNEL_BUILD),1)
34 # These are provided in external module based builds
35 # Need to explicitly define for Kernel-based builds
36 MODNAME := wlan
37 WLAN_ROOT := drivers/staging/qcacld-3.0
Houston Hoffman52ec6692016-04-21 16:36:45 -070038 WLAN_COMMON_ROOT := ../qca-wifi-host-cmn
39 WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080040endif
41
42# Make WLAN as open-source driver by default
43WLAN_OPEN_SOURCE := 1
44
45ifeq ($(KERNEL_BUILD), 0)
46 # These are configurable via Kconfig for kernel-based builds
47 # Need to explicitly configure for Android-based builds
48
49 ifeq ($(CONFIG_ARCH_MDM9630), y)
50 CONFIG_MOBILE_ROUTER := y
51 endif
52
53 ifeq ($(CONFIG_ARCH_MDM9640), y)
54 CONFIG_MOBILE_ROUTER := y
55 endif
56
bings7762da12017-03-06 07:21:04 +080057 ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y)
58 CONFIG_MOBILE_ROUTER := y
59 endif
60
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +053061 # As per target team, build is done as follows:
62 # Defconfig : build with default flags
63 # Slub : defconfig + CONFIG_SLUB_DEBUG=y +
64 # CONFIG_SLUB_DEBUG_ON=y + CONFIG_PAGE_POISONING=y
65 # Perf : Using appropriate msmXXXX-perf_defconfig
66 #
67 # Shipment builds (user variants) should not have any debug feature
68 # enabled. This is identified using 'TARGET_BUILD_VARIANT'. Slub builds
69 # are identified using the CONFIG_SLUB_DEBUG_ON configuration. Since
70 # there is no other way to identify defconfig builds, QCOMs internal
71 # representation of perf builds (identified using the string 'perf'),
72 # is used to identify if the build is a slub or defconfig one. This
73 # way no critical debug feature will be enabled for perf and shipment
74 # builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT
75 # config.
76 ifneq ($(TARGET_BUILD_VARIANT),user)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -080077 ifeq ($(CONFIG_LITHIUM), y)
Ravi Joshifc2ed782016-11-22 17:36:50 -080078 CONFIG_FEATURE_PKTLOG := n
79 else
80 CONFIG_FEATURE_PKTLOG := y
81 endif
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +053082 endif
83
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -080084 #Flag to enable Legacy Fast Roaming2(LFR2)
85 CONFIG_QCACLD_WLAN_LFR2 := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080086 #Flag to enable Legacy Fast Roaming3(LFR3)
87 CONFIG_QCACLD_WLAN_LFR3 := y
88
Sridhar Selvarajdc400d22016-10-18 17:18:03 +053089 #Enable Power debugfs feature only if debug_fs is enabled
90 ifeq ($(CONFIG_DEBUG_FS), y)
91 CONFIG_WLAN_POWER_DEBUGFS := y
92 endif
93
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080094 # JB kernel has CPU enablement patches, so enable
95 ifeq ($(CONFIG_ROME_IF),pci)
96 CONFIG_PRIMA_WLAN_11AC_HIGH_TP := y
97 endif
98 ifeq ($(CONFIG_ROME_IF),usb)
99 CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n
100 endif
101 ifeq ($(CONFIG_ROME_IF),sdio)
102 CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n
103 endif
104
105 ifneq ($(CONFIG_MOBILE_ROUTER), y)
106 #Flag to enable TDLS feature
107 CONFIG_QCOM_TDLS := y
108 endif
109
110 ifeq ($(CONFIG_MOBILE_ROUTER), y)
111 CONFIG_QCACLD_FEATURE_GREEN_AP := y
112 endif
Ashwini Muduganti79649822016-11-16 11:29:50 -0800113 ifeq ($(CONFIG_ARCH_MSM8998), y)
Jeff Johnsona6300252016-09-28 15:58:55 -0700114 CONFIG_QCACLD_FEATURE_GREEN_AP := y
Yun Park637d6482016-10-05 10:51:33 -0700115 CONFIG_QCACLD_FEATURE_METERING := y
Jeff Johnsona6300252016-09-28 15:58:55 -0700116 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800117
Poddar, Siddarth1bec7ae2017-01-24 18:02:31 +0530118 ifeq ($(CONFIG_ARCH_SDM660), y)
Ashish Kumar Dhanotiya5e6cfc02017-03-16 16:51:01 +0530119 CONFIG_QCACLD_FEATURE_GREEN_AP := y
Poddar, Siddarth1bec7ae2017-01-24 18:02:31 +0530120 CONFIG_QCACLD_FEATURE_METERING := y
121 endif
122
123 ifeq ($(CONFIG_ARCH_SDM630), y)
124 CONFIG_QCACLD_FEATURE_METERING := y
125 endif
126
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800127 #Flag to enable Fast Transition (11r) feature
128 CONFIG_QCOM_VOWIFI_11R := y
129
130 ifneq ($(CONFIG_QCA_CLD_WLAN),)
Yue Mae6a7a322016-08-31 11:09:23 -0700131 ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2) $(CONFIG_ICNSS)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800132 #Flag to enable Protected Managment Frames (11w) feature
133 CONFIG_WLAN_FEATURE_11W := y
134 #Flag to enable LTE CoEx feature
135 CONFIG_QCOM_LTE_COEX := y
136 ifneq ($(CONFIG_MOBILE_ROUTER), y)
137 #Flag to enable LPSS feature
138 CONFIG_WLAN_FEATURE_LPSS := y
139 endif
140 endif
141 endif
142
Ravi Joshia063dd92016-05-25 16:43:13 -0700143 #Flag to enable Protected Managment Frames (11w) feature
144 ifeq ($(CONFIG_ROME_IF),usb)
145 CONFIG_WLAN_FEATURE_11W := y
146 endif
147 ifeq ($(CONFIG_ROME_IF),sdio)
148 CONFIG_WLAN_FEATURE_11W := y
149 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800150
gbiane55c9562016-11-01 14:47:47 +0800151 #Flag to enable the tx desc sanity check
152 ifeq ($(CONFIG_ROME_IF),usb)
153 CONFIG_QCA_TXDESC_SANITY_CHECKS := y
154 endif
155
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800156 ifneq ($(CONFIG_MOBILE_ROUTER), y)
157 #Flag to enable NAN
158 CONFIG_QCACLD_FEATURE_NAN := y
159 endif
160
Ravi Joshia063dd92016-05-25 16:43:13 -0700161 ifneq ($(CONFIG_MOBILE_ROUTER), y)
162 #Flag to enable NAN Data path
163 CONFIG_WLAN_FEATURE_NAN_DATAPATH := y
Naveen Rawat3cb59812017-03-28 16:59:08 -0700164 CONFIG_NAN_CONVERGENCE := y
Ravi Joshia063dd92016-05-25 16:43:13 -0700165 endif
166
167 #Flag to enable Linux QCMBR feature as default feature
168 ifeq ($(CONFIG_ROME_IF),usb)
169 CONFIG_LINUX_QCMBR :=y
170 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800171
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800172 CONFIG_MPC_UT_FRAMEWORK := y
173
174 #Flag to enable offload packets feature
175 CONFIG_WLAN_OFFLOAD_PACKETS := y
176
Manikandan Mohan5356c2b2016-04-03 15:51:35 -0700177 #enable TSF get feature
178 CONFIG_WLAN_SYNC_TSF := y
Agrawal Ashishb141b092016-09-02 19:59:26 +0530179 #Enable DSRC feature
180
181 ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
182 CONFIG_WLAN_FEATURE_DSRC := y
183 endif
Manikandan Mohan5356c2b2016-04-03 15:51:35 -0700184
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530185ifneq ($(CONFIG_ROME_IF),sdio)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800186 #Flag to enable memdump feature
Krishna Kumaar Natarajane42bb172016-06-09 18:24:04 -0700187 CONFIG_WLAN_FEATURE_MEMDUMP := n
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800188
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +0530189 #Flag to enable DISA
190 CONFIG_WLAN_FEATURE_DISA := y
191
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800192 #Flag to enable Fast Path feature
193 CONFIG_WLAN_FASTPATH := y
194
195 # Flag to enable NAPI
Leo Chang395cbb52016-11-11 14:35:03 -0800196ifeq (y,$(CONFIG_LITHIUM))
Leo Chang5f7a1e02016-11-04 14:04:26 -0700197 CONFIG_WLAN_NAPI := n
198 CONFIG_WLAN_NAPI_DEBUG := n
199else
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800200 CONFIG_WLAN_NAPI := y
201 CONFIG_WLAN_NAPI_DEBUG := n
Leo Chang5f7a1e02016-11-04 14:04:26 -0700202endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800203 # Flag to enable FW based TX Flow control
Nirav Shah9d7f2e82015-09-28 11:09:09 -0700204 ifeq ($(CONFIG_CNSS_EOS),y)
205 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
206 else
207 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := n
208 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800209
210 # Flag to enable LRO (Large Receive Offload)
Manjunathappa Prakashbeeacb12016-06-17 18:18:32 -0700211 ifeq ($(CONFIG_INET_LRO), y)
Manjunathappa Prakash4282a012017-05-23 19:06:46 -0700212 CONFIG_WLAN_LRO := y
213 else
214 CONFIG_WLAN_LRO := n
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800215 endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530216endif
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800217
Manjunathappa Prakashfa345992016-04-21 16:45:40 -0700218ifeq ($(CONFIG_ROME_IF), snoc)
219 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
220endif
221
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800222 # Flag to enable LFR Subnet Detection
223 CONFIG_LFR_SUBNET_DETECTION := y
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +0530224
225 # Flag to enable MCC to SCC switch feature
226 CONFIG_MCC_TO_SCC_SWITCH := y
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700227
228ifeq ($(CONFIG_DEBUG_FS), y)
229 # Flag to enable debugfs. Depends on CONFIG_DEBUG_FS in kernel
230 # configuration.
231 CONFIG_WLAN_DEBUGFS := y
232endif
233
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800234endif
235
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800236# If not set, assume, Common driver is with in the build tree
Yu Wangc8a6c492017-02-13 14:20:15 +0800237WLAN_COMMON_ROOT ?= ../qca-wifi-host-cmn
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800238WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
239
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800240ifneq ($(CONFIG_MOBILE_ROUTER), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800241CONFIG_QCOM_ESE := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800242endif
243
244# Feature flags which are not (currently) configurable via Kconfig
245
246#Whether to build debug version
247BUILD_DEBUG_VERSION := 1
248
249#Enable this flag to build driver in diag version
250BUILD_DIAG_VERSION := 1
251
252#Do we panic on bug? default is to warn
253PANIC_ON_BUG := 1
254
255#Enable OL debug and wmi unified functions
256CONFIG_ATH_PERF_PWR_OFFLOAD := 1
257
258#Disable packet log
259CONFIG_REMOVE_PKT_LOG := 0
260
261#Enable 11AC TX
262ifeq ($(CONFIG_ROME_IF),pci)
263 CONFIG_ATH_11AC_TXCOMPACT := 1
264endif
265ifeq ($(CONFIG_ROME_IF),usb)
266 CONFIG_ATH_11AC_TXCOMPACT := 0
267endif
268
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800269#Enable OS specific IRQ abstraction
270CONFIG_ATH_SUPPORT_SHARED_IRQ := 1
271
272#Enable message based HIF instead of RAW access in BMI
273ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
274CONFIG_HIF_MESSAGE_BASED := 0
275else
276CONFIG_HIF_MESSAGE_BASED := 1
277endif
278
279#Enable PCI specific APIS (dma, etc)
280ifeq ($(CONFIG_ROME_IF),pci)
281 CONFIG_HIF_PCI := 1
282endif
283
Mohit Khannada4f4432016-05-17 15:02:09 -0700284#Enable USB specific APIS
285ifeq ($(CONFIG_ROME_IF),usb)
286 CONFIG_HIF_USB := 1
Mohit Khannae7a43572016-10-10 17:34:21 -0700287 CONFIG_PLD_USB_CNSS := y
Mohit Khannada4f4432016-05-17 15:02:09 -0700288endif
289
Yu Wang58e1cad2017-02-10 17:43:15 +0800290#Enable SDIO specific APIS
291ifeq ($(CONFIG_ROME_IF),sdio)
292 CONFIG_HIF_SDIO := 1
293endif
294
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800295#Enable pci read/write config functions
296ifeq ($(CONFIG_ROME_IF),pci)
297 CONFIG_ATH_PCI := 1
298endif
Houston Hoffman52ec6692016-04-21 16:36:45 -0700299
300ifeq ($(CONFIG_ROME_IF),snoc)
301 CONFIG_HIF_SNOC:= 1
302endif
303
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800304ifneq ($(CONFIG_MOBILE_ROUTER), y)
305#Enable IBSS support on CLD
306CONFIG_QCA_IBSS_SUPPORT := 1
307endif
308
309#Enable power management suspend/resume functionality to PCI
310CONFIG_ATH_BUS_PM := 1
311
312#Enable FLOWMAC module support
313CONFIG_ATH_SUPPORT_FLOWMAC_MODULE := 0
314
315#Enable spectral support
316CONFIG_ATH_SUPPORT_SPECTRAL := 0
317
318#Enable HOST statistics support
319CONFIG_SUPPORT_HOST_STATISTICS := 0
320
321#Enable WDI Event support
322CONFIG_WDI_EVENT_ENABLE := 1
323
324#Endianess selection
325CONFIG_LITTLE_ENDIAN := 1
326
327#Enable TX reclaim support
328CONFIG_TX_CREDIT_RECLAIM_SUPPORT := 0
329
330#Enable FTM support
331CONFIG_QCA_WIFI_FTM := 1
332
333#Enable Checksum Offload
334CONFIG_CHECKSUM_OFFLOAD := 1
335
336#Enable GTK offload
337CONFIG_GTK_OFFLOAD := 1
338
339#Enable EXT WOW
340ifeq ($(CONFIG_ROME_IF),pci)
341 CONFIG_EXT_WOW := 1
342endif
343
344#Set this to 1 to catch erroneous Target accesses during debug.
345CONFIG_ATH_PCIE_ACCESS_DEBUG := 0
346
347#Enable IPA offload
348ifeq ($(CONFIG_IPA), y)
349CONFIG_IPA_OFFLOAD := 1
350endif
351
352#Enable Signed firmware support for split binary format
353CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := 0
354
355#Enable single firmware binary format
356CONFIG_QCA_SINGLE_BINARY_SUPPORT := 0
357
358#Enable collecting target RAM dump after kernel panic
359CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := 1
360
361#Flag to enable/disable secure firmware feature
362CONFIG_FEATURE_SECURE_FIRMWARE := 0
363
364#Flag to enable Stats Ext implementation
365CONFIG_FEATURE_STATS_EXT := 1
366
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800367ifeq ($(CONFIG_CFG80211),y)
368HAVE_CFG80211 := 1
369else
370ifeq ($(CONFIG_CFG80211),m)
371HAVE_CFG80211 := 1
372else
373HAVE_CFG80211 := 0
374endif
375endif
376
377############ UAPI ############
378UAPI_DIR := uapi
379UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux
380
381############ COMMON ############
382COMMON_DIR := core/common
383COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR)
384
385############ HDD ############
386HDD_DIR := core/hdd
387HDD_INC_DIR := $(HDD_DIR)/inc
388HDD_SRC_DIR := $(HDD_DIR)/src
389
390HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
391 -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
392
393HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
394 $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800395 $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \
396 $(HDD_SRC_DIR)/wlan_hdd_ftm.o \
397 $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
398 $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \
399 $(HDD_SRC_DIR)/wlan_hdd_main.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800400 $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
401 $(HDD_SRC_DIR)/wlan_hdd_power.o \
Amar Singhale4f28ee2015-10-21 14:36:56 -0700402 $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \
Jeff Johnsona2d9bb32017-01-18 13:23:24 -0800403 $(HDD_SRC_DIR)/wlan_hdd_request_manager.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800404 $(HDD_SRC_DIR)/wlan_hdd_scan.o \
405 $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
406 $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
407 $(HDD_SRC_DIR)/wlan_hdd_trace.o \
408 $(HDD_SRC_DIR)/wlan_hdd_wext.o \
409 $(HDD_SRC_DIR)/wlan_hdd_wmm.o \
Rajeev Kumar699debf2017-01-06 14:17:00 -0800410 $(HDD_SRC_DIR)/wlan_hdd_wowl.o \
411 $(HDD_SRC_DIR)/wlan_hdd_object_manager.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800412
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700413ifeq ($(CONFIG_WLAN_DEBUGFS), y)
414HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs.o
415endif
416
Agrawal Ashishb141b092016-09-02 19:59:26 +0530417ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
418HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_ocb.o
419endif
Amar Singhale4f28ee2015-10-21 14:36:56 -0700420
Jeff Johnson2b0a7b82016-05-18 15:08:02 -0700421ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
422HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lpass.o
423endif
424
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800425ifeq ($(CONFIG_WLAN_LRO), y)
426HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o
427endif
428
429ifeq ($(CONFIG_WLAN_NAPI), y)
430HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o
431endif
432
433ifeq ($(CONFIG_IPA_OFFLOAD), 1)
434HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o
435endif
436
437ifeq ($(HAVE_CFG80211),1)
438HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
439 $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o \
440 $(HDD_SRC_DIR)/wlan_hdd_stats.o \
441 $(HDD_SRC_DIR)/wlan_hdd_p2p.o
442endif
443
444ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
445HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_green_ap.o
446endif
447
448ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
449HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o
450endif
451
452ifeq ($(CONFIG_QCOM_TDLS),y)
453HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
454endif
455
Manikandan Mohandcc21ba2016-03-15 14:31:56 -0700456ifeq ($(CONFIG_WLAN_SYNC_TSF),y)
457HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o
458endif
459
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800460ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
461HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o
462endif
463
464ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
465HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_memdump.o
466endif
467
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +0530468ifeq ($(CONFIG_WLAN_FEATURE_DISA),y)
469HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o
470endif
471
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800472ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
473HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o
474endif
475
Ravi Joshia063dd92016-05-25 16:43:13 -0700476ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
477HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o
478endif
479
Krishna Kumaar Natarajaned1efd92016-09-24 18:05:47 -0700480ifeq ($(CONFIG_WLAN_FEATURE_11AX),y)
481HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_he.o
482endif
483
Ravi Joshi1c2cfb62017-01-18 14:40:08 -0800484ifeq ($(CONFIG_LITHIUM), y)
485HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rx_monitor.o
486endif
487
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800488########### HOST DIAG LOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800489HOST_DIAG_LOG_DIR := $(WLAN_COMMON_ROOT)/utils/host_diag_log
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800490
491HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc
492HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src
493
494HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
495 -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
496
497HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
498
499############ EPPING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800500EPPING_DIR := $(WLAN_COMMON_ROOT)/utils/epping
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800501EPPING_INC_DIR := $(EPPING_DIR)/inc
502EPPING_SRC_DIR := $(EPPING_DIR)/src
503
504EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR)
505
506EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \
507 $(EPPING_SRC_DIR)/epping_txrx.o \
508 $(EPPING_SRC_DIR)/epping_tx.o \
509 $(EPPING_SRC_DIR)/epping_rx.o \
510 $(EPPING_SRC_DIR)/epping_helper.o \
511
512
513############ MAC ############
514MAC_DIR := core/mac
515MAC_INC_DIR := $(MAC_DIR)/inc
516MAC_SRC_DIR := $(MAC_DIR)/src
517
518MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
519 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
520 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
521 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
Ravi Joshia063dd92016-05-25 16:43:13 -0700522 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \
523 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800524
525MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfg_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800526 $(MAC_SRC_DIR)/cfg/cfg_param_name.o \
527 $(MAC_SRC_DIR)/cfg/cfg_proc_msg.o \
528 $(MAC_SRC_DIR)/cfg/cfg_send_msg.o
529
530MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o
531
532MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
533 $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \
534 $(MAC_SRC_DIR)/pe/lim/lim_api.o \
535 $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800536 $(MAC_SRC_DIR)/pe/lim/lim_ft.o \
537 $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o \
538 $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \
539 $(MAC_SRC_DIR)/pe/lim/lim_p2p.o \
540 $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \
541 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \
542 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \
543 $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \
544 $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \
545 $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \
546 $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \
547 $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \
548 $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \
549 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \
550 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \
551 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \
552 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \
553 $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \
554 $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \
555 $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \
556 $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \
557 $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \
558 $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \
559 $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \
560 $(MAC_SRC_DIR)/pe/lim/lim_ser_des_utils.o \
561 $(MAC_SRC_DIR)/pe/lim/lim_session.o \
562 $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \
563 $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \
564 $(MAC_SRC_DIR)/pe/lim/lim_sta_hash_api.o \
565 $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \
566 $(MAC_SRC_DIR)/pe/lim/lim_trace.o \
567 $(MAC_SRC_DIR)/pe/lim/lim_utils.o
568
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800569ifeq ($(CONFIG_QCOM_TDLS),y)
570MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o
571endif
572
Ravi Joshia063dd92016-05-25 16:43:13 -0700573ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
574MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o
575endif
576
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800577ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
578 MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \
579 $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \
580 $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \
581 $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \
582 $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o
583endif
584
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800585MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \
586 $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \
587 $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800588 $(MAC_SRC_DIR)/pe/sch/sch_message.o
589
590MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o
591
592MAC_OBJS := $(MAC_CFG_OBJS) \
593 $(MAC_DPH_OBJS) \
594 $(MAC_LIM_OBJS) \
595 $(MAC_SCH_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700596 $(MAC_RRM_OBJS) \
597 $(MAC_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800598
599############ SAP ############
600SAP_DIR := core/sap
601SAP_INC_DIR := $(SAP_DIR)/inc
602SAP_SRC_DIR := $(SAP_DIR)/src
603
604SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
605 -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
606
607SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \
608 $(SAP_SRC_DIR)/sap_ch_select.o \
609 $(SAP_SRC_DIR)/sap_fsm.o \
610 $(SAP_SRC_DIR)/sap_module.o
611
612############ DFS ############ 350
Arif Hussain757b45f2017-02-11 16:47:06 -0800613DFS_DIR := $(WLAN_COMMON_ROOT)/umac/dfs
614DFS_CORE_INC_DIR := $(DFS_DIR)/core/inc
615DFS_CORE_SRC_DIR := $(DFS_DIR)/core/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800616
Arif Hussain757b45f2017-02-11 16:47:06 -0800617DFS_DISP_INC_DIR := $(DFS_DIR)/dispatcher/inc
618DFS_DISP_SRC_DIR := $(DFS_DIR)/dispatcher/src
619DFS_TARGET_INC_DIR := $(WLAN_COMMON_ROOT)/target_if/dfs/inc
620DFS_CMN_SERVICES_INC_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/dfs/inc
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800621
Arif Hussain757b45f2017-02-11 16:47:06 -0800622DFS_INC := -I$(WLAN_ROOT)/$(DFS_DISP_INC_DIR) \
623 -I$(WLAN_ROOT)/$(DFS_TARGET_INC_DIR) \
624 -I$(WLAN_ROOT)/$(DFS_CMN_SERVICES_INC_DIR)
625
626DFS_OBJS := $(DFS_CORE_SRC_DIR)/filtering/dfs_bindetects.o \
627 $(DFS_CORE_SRC_DIR)/filtering/dfs_debug.o\
628 $(DFS_CORE_SRC_DIR)/filtering/dfs_fcc_bin5.o\
629 $(DFS_CORE_SRC_DIR)/filtering/dfs_init.o\
630 $(DFS_CORE_SRC_DIR)/filtering/dfs_misc.o\
631 $(DFS_CORE_SRC_DIR)/filtering/dfs_radar.o\
632 $(DFS_CORE_SRC_DIR)/filtering/dfs_ar.o\
633 $(DFS_CORE_SRC_DIR)/filtering/ar5416_radar.o\
634 $(DFS_CORE_SRC_DIR)/filtering/ar9300_radar.o\
635 $(DFS_CORE_SRC_DIR)/filtering/ar5212_radar.o\
636 $(DFS_CORE_SRC_DIR)/filtering/dfs_phyerr_tlv.o\
637 $(DFS_CORE_SRC_DIR)/filtering/dfs_process_phyerr.o\
638 $(DFS_CORE_SRC_DIR)/filtering/dfs_process_radarevent.o\
639 $(DFS_CORE_SRC_DIR)/filtering/dfs_staggered.o \
640 $(DFS_CORE_SRC_DIR)/misc/dfs.o \
641 $(DFS_CORE_SRC_DIR)/misc/dfs_cac.o\
642 $(DFS_CORE_SRC_DIR)/misc/dfs_nol.o\
643 $(DFS_CORE_SRC_DIR)/misc/dfs_nol.o\
644 $(DFS_CORE_SRC_DIR)/misc/dfs_zero_cac.o\
645 $(DFS_CORE_SRC_DIR)/misc/dfs_random_chan_sel.o\
646 $(DFS_CORE_SRC_DIR)/misc/dfs_process_radar_found_ind.o\
647 $(DFS_DISP_SRC_DIR)/wlan_dfs_init_deinit_api.o\
648 $(DFS_DISP_SRC_DIR)/wlan_dfs_lmac_api.o\
649 $(DFS_DISP_SRC_DIR)/wlan_dfs_mlme_api.o\
650 $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o\
651 $(DFS_DISP_SRC_DIR)/wlan_dfs_ucfg_api.o\
652 $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o\
653 $(DFS_DISP_SRC_DIR)/wlan_dfs_utils_api.o\
654 $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800655
656############ SME ############
657SME_DIR := core/sme
658SME_INC_DIR := $(SME_DIR)/inc
659SME_SRC_DIR := $(SME_DIR)/src
660
661SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
662 -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
663
664SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \
665 $(SME_SRC_DIR)/csr/csr_api_scan.o \
666 $(SME_SRC_DIR)/csr/csr_cmd_process.o \
667 $(SME_SRC_DIR)/csr/csr_link_list.o \
668 $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800669 $(SME_SRC_DIR)/csr/csr_util.o \
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800670
671
672ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
673SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800674 $(SME_SRC_DIR)/csr/csr_host_scan_roam.o
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800675endif
676
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800677
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800678ifeq ($(CONFIG_QCOM_TDLS),y)
679SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_tdls_process.o
680endif
681
682SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
683
684SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
685 $(SME_SRC_DIR)/common/sme_ft_api.o \
686 $(SME_SRC_DIR)/common/sme_power_save.o \
687 $(SME_SRC_DIR)/common/sme_trace.o
688
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800689SME_P2P_OBJS = $(SME_SRC_DIR)/p2p/p2p_api.o
690
691SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
692
693ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
694SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_api.o
695endif
696
Ravi Joshia063dd92016-05-25 16:43:13 -0700697ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
698SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o
699endif
700
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800701SME_OBJS := $(SME_CMN_OBJS) \
702 $(SME_CSR_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800703 $(SME_P2P_OBJS) \
704 $(SME_QOS_OBJS) \
705 $(SME_RRM_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700706 $(SME_NAN_OBJS) \
707 $(SME_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800708
709############ NLINK ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800710NLINK_DIR := $(WLAN_COMMON_ROOT)/utils/nlink
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800711NLINK_INC_DIR := $(NLINK_DIR)/inc
712NLINK_SRC_DIR := $(NLINK_DIR)/src
713
714NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR)
715NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
716
717############ PTT ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800718PTT_DIR := $(WLAN_COMMON_ROOT)/utils/ptt
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800719PTT_INC_DIR := $(PTT_DIR)/inc
720PTT_SRC_DIR := $(PTT_DIR)/src
721
722PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR)
723PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
724
725############ WLAN_LOGGING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800726WLAN_LOGGING_DIR := $(WLAN_COMMON_ROOT)/utils/logging
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800727WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc
728WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src
729
730WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR)
731WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o
732
733############ SYS ############
734SYS_DIR := core/mac/src/sys
735
736SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
737 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
738 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
739 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
740
741SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
742SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
743SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
744 $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \
745 $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \
746 $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \
747 $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800748 $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \
749 $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800750 $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o
751
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800752############ Qca-wifi-host-cmn ############
753QDF_OS_DIR := qdf
754QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc
755QDF_OS_SRC_DIR := $(QDF_OS_DIR)/linux/src
756QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800757
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800758QDF_INC := -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \
759 -I$(WLAN_COMMON_INC)/$(QDF_OS_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800760
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800761QDF_OBJS := $(QDF_OBJ_DIR)/qdf_defer.o \
762 $(QDF_OBJ_DIR)/qdf_event.o \
763 $(QDF_OBJ_DIR)/qdf_list.o \
764 $(QDF_OBJ_DIR)/qdf_lock.o \
765 $(QDF_OBJ_DIR)/qdf_mc_timer.o \
766 $(QDF_OBJ_DIR)/qdf_mem.o \
767 $(QDF_OBJ_DIR)/qdf_nbuf.o \
768 $(QDF_OBJ_DIR)/qdf_threads.o \
769 $(QDF_OBJ_DIR)/qdf_trace.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800770
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700771ifeq ($(CONFIG_WLAN_DEBUGFS), y)
772QDF_OBJS += $(QDF_OBJ_DIR)/qdf_debugfs.o
773endif
774
Wu Gao64b31482017-03-10 15:16:10 +0800775
776##########OS_IF #######
777OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if
778
779OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux \
780 -I$(WLAN_COMMON_INC)/os_if/linux/scan/inc \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700781 -I$(WLAN_COMMON_INC)/os_if/linux/p2p/inc \
782 -I$(WLAN_COMMON_INC)/os_if/linux/tdls/inc
Wu Gao64b31482017-03-10 15:16:10 +0800783
784OS_IF_OBJ := $(OS_IF_DIR)/linux/p2p/src/wlan_cfg80211_p2p.o
Sandeep Puligillafdd201e2017-02-02 18:43:46 -0800785
Frank Liu65b17d92016-11-23 15:58:44 +0800786############ UMAC_DISP ############
787UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if
788UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc
789UMAC_DISP_SRC_DIR := $(UMAC_DISP_DIR)/src
790UMAC_DISP_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_DISP_SRC_DIR)
791
792UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR)
793
794UMAC_DISP_OBJS := $(UMAC_DISP_OBJ_DIR)/wlan_lmac_if.o
795
Abhishek Singh9be07e22017-02-21 10:59:57 +0530796############# UMAC_SCAN ############
797UMAC_SCAN_DIR := umac/scan
798UMAC_SCAN_DISP_INC_DIR := $(UMAC_SCAN_DIR)/dispatcher/inc
799UMAC_SCAN_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/core/src
800UMAC_SCAN_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/dispatcher/src
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530801UMAC_TARGET_SCAN_INC := -I$(WLAN_COMMON_INC)/target_if/scan/inc
Abhishek Singh9be07e22017-02-21 10:59:57 +0530802
803UMAC_SCAN_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SCAN_DISP_INC_DIR)
804UMAC_SCAN_OBJS := $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db.o \
805 $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db_ops.o \
806 $(UMAC_SCAN_CORE_DIR)/wlan_scan_main.o \
807 $(UMAC_SCAN_CORE_DIR)/wlan_scan_manager.o \
808 $(UMAC_SCAN_DISP_DIR)/wlan_scan_tgt_api.o \
809 $(UMAC_SCAN_DISP_DIR)/wlan_scan_ucfg_api.o \
Abhishek Singh310503c2017-03-07 11:19:10 +0530810 $(UMAC_SCAN_DISP_DIR)/wlan_scan_utils_api.o \
811 $(WLAN_COMMON_ROOT)/os_if/linux/scan/src/wlan_cfg80211_scan.o \
812 $(WLAN_COMMON_ROOT)/os_if/linux/wlan_cfg80211.o \
813 $(WLAN_COMMON_ROOT)/target_if/scan/src/target_if_scan.o
Abhishek Singh9be07e22017-02-21 10:59:57 +0530814
815############# UMAC_CMN_SERVICES ############
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530816UMAC_COMMON_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/cmn_defs/inc \
817 -I$(WLAN_COMMON_INC)/umac/cmn_services/utils/inc
818UMAC_COMMON_OBJS := $(WLAN_COMMON_ROOT)/umac/cmn_services/utils/src/wlan_utility.o
Abhishek Singh9be07e22017-02-21 10:59:57 +0530819
Dhanashri Atre170855e2016-12-15 13:26:54 -0800820ifeq ($(CONFIG_WLAN_LRO), y)
821QDF_OBJS += $(QDF_OBJ_DIR)/qdf_lro.o
822endif
823
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800824############ CDS (Connectivity driver services) ############
825CDS_DIR := core/cds
826CDS_INC_DIR := $(CDS_DIR)/inc
827CDS_SRC_DIR := $(CDS_DIR)/src
828
829CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \
830 -I$(WLAN_ROOT)/$(CDS_SRC_DIR)
831
832CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800833 $(CDS_SRC_DIR)/cds_reg_service.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800834 $(CDS_SRC_DIR)/cds_packet.o \
835 $(CDS_SRC_DIR)/cds_regdomain.o \
836 $(CDS_SRC_DIR)/cds_sched.o \
Krunal Sonid32c6bc2016-10-18 18:00:21 -0700837 $(CDS_SRC_DIR)/cds_utils.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800838
839
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +0530840###### UMAC OBJMGR ########
841UMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr
842
843UMAC_OBJMGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/inc \
844 -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/src \
845 -I$(WLAN_COMMON_INC)/umac/cmn_services/inc \
846 -I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc
847
848UMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \
849 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_pdev_obj.o \
850 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_peer_obj.o \
851 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \
Rajeev Kumarb32b8a92017-02-01 14:35:54 -0800852 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_service_ready_api.o \
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +0530853 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o
854
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530855########### UMAC MGMT TXRX ##########
856UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx
857
Himanshu Agarwal795b7f72017-01-17 21:19:43 +0530858UMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530859
860UMAC_MGMT_TXRX_OBJS := $(UMAC_MGMT_TXRX_DIR)/core/src/wlan_mgmt_txrx_main.o \
861 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_utils_api.o \
862 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_tgt_api.o
863
Mukul Sharmac5de6772017-01-05 14:32:36 +0530864########## POWER MANAGEMENT OFFLOADS (PMO) ##########
Rajeev Kumar07c77692017-05-10 12:58:20 -0700865PMO_DIR := $(WLAN_COMMON_ROOT)/pmo
866PMO_INC := -I$(WLAN_COMMON_INC)/pmo/core/inc \
867 -I$(WLAN_COMMON_INC)/pmo/dispatcher/inc \
868 -I$(WLAN_COMMON_INC)/pmo/core/src \
869 -I$(WLAN_COMMON_INC)/pmo/dispatcher/src
Mukul Sharmac5de6772017-01-05 14:32:36 +0530870
871PMO_OBJS := $(PMO_DIR)/core/src/wlan_pmo_main.o \
872 $(PMO_DIR)/core/src/wlan_pmo_arp.o \
873 $(PMO_DIR)/core/src/wlan_pmo_ns.o \
874 $(PMO_DIR)/core/src/wlan_pmo_gtk.o \
875 $(PMO_DIR)/core/src/wlan_pmo_mc_addr_filtering.o \
876 $(PMO_DIR)/core/src/wlan_pmo_static_config.o \
877 $(PMO_DIR)/core/src/wlan_pmo_wow.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530878 $(PMO_DIR)/core/src/wlan_pmo_lphb.o \
879 $(PMO_DIR)/core/src/wlan_pmo_suspend_resume.o \
Dustin Brown1224e212017-05-12 14:02:12 -0700880 $(PMO_DIR)/core/src/wlan_pmo_hw_filter.o \
Ravi Kumar Bokka0b9ead32017-05-11 17:01:43 +0530881 $(PMO_DIR)/core/src/wlan_pmo_pkt_filter.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530882 $(PMO_DIR)/dispatcher/src/wlan_pmo_obj_mgmt_api.o \
883 $(PMO_DIR)/dispatcher/src/wlan_pmo_ucfg_api.o \
884 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_arp.o \
885 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_ns.o \
886 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_gtk.o \
887 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_wow.o \
888 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_static_config.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530889 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_mc_addr_filtering.o \
890 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_lphb.o \
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +0530891 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_suspend_resume.o \
Dustin Brown1224e212017-05-12 14:02:12 -0700892 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_hw_filter.o \
Ravi Kumar Bokka0b9ead32017-05-11 17:01:43 +0530893 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_pkt_filter.o
Mukul Sharmac5de6772017-01-05 14:32:36 +0530894
Wu Gao64b31482017-03-10 15:16:10 +0800895############## UMAC P2P ###########
896P2P_DIR := umac/p2p
897P2P_CORE_DIR := $(P2P_DIR)/core
898P2P_CORE_SRC_DIR := $(P2P_CORE_DIR)/src
899P2P_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_CORE_SRC_DIR)
900P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher
901P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc
902P2P_DISPATCHER_SRC_DIR := $(P2P_DISPATCHER_DIR)/src
903P2P_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_DISPATCHER_SRC_DIR)
904UMAC_P2P_INC := -I$(WLAN_COMMON_INC)/$(P2P_DISPATCHER_INC_DIR) \
905 -I$(WLAN_COMMON_INC)/umac/scan/dispatcher/inc
906UMAC_P2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \
907 $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \
908 $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \
909 $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \
910 $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o
911
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -0800912###### UMAC POLICY MGR ########
913UMAC_POLICY_MGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/policy_mgr
914
915UMAC_POLICY_MGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/inc \
916 -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/src
917
918UMAC_POLICY_MGR_OBJS := $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \
919 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \
920 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \
921 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \
922 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o \
923
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700924###### UMAC TDLS ########
925UMAC_TDLS_DIR := $(WLAN_COMMON_ROOT)/umac/tdls
926
927UMAC_TDLS_INC := -I$(WLAN_COMMON_INC)/umac/tdls/dispatcher/inc
928
929UMAC_TDLS_OBJS := $(UMAC_TDLS_DIR)/core/src/wlan_tdls_main.o \
930 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_cmds_process.o \
931 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_peer.o \
932 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_mgmt.o \
933 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_ct.o \
934 $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_tgt_api.o \
935 $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_ucfg_api.o \
936 $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_utils_api.o \
937 $(WLAN_COMMON_ROOT)/os_if/linux/tdls/src/wlan_cfg80211_tdls.o
938
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800939########### BMI ###########
940BMI_DIR := core/bmi
941
942BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
943
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800944BMI_OBJS := $(BMI_DIR)/src/bmi.o \
Poddar, Siddarthef1f3022016-05-10 20:10:43 +0530945 $(BMI_DIR)/src/ol_fw.o \
946 $(BMI_DIR)/src/ol_fw_common.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800947BMI_OBJS += $(BMI_DIR)/src/bmi_1.o
Govind Singh0fea23a2016-03-18 12:59:27 +0530948
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530949########## TARGET_IF #######
950TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if
951
952TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \
Rajeev Kumarda2444c2017-01-10 22:42:07 -0800953 -I$(WLAN_COMMON_INC)/target_if/core/src \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +0530954 -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \
955 -I$(WLAN_COMMON_INC)/target_if/pmo/inc \
Wu Gao64b31482017-03-10 15:16:10 +0800956 -I$(WLAN_COMMON_INC)/target_if/pmo/src \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -0800957 -I$(WLAN_COMMON_INC)/target_if/p2p/inc \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700958 -I$(WLAN_COMMON_INC)/target_if/regulatory/inc \
959 -I$(WLAN_COMMON_INC)/target_if/tdls/inc
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530960
Rajeev Kumarda2444c2017-01-10 22:42:07 -0800961TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +0530962 $(TARGET_IF_DIR)/init_deinit/src/service_ready_event_handler.o \
963 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \
964 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \
965 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o \
966 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \
967 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o \
Dustin Brown1224e212017-05-12 14:02:12 -0700968 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_hw_filter.o \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +0530969 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530970 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \
971 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \
Wu Gao64b31482017-03-10 15:16:10 +0800972 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \
Ravi Kumar Bokka0b9ead32017-05-11 17:01:43 +0530973 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_pkt_filter.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -0800974 $(TARGET_IF_DIR)/p2p/src/target_if_p2p.o \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700975 $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o \
976 $(TARGET_IF_DIR)/tdls/src/target_if_tdls.o
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530977
Mukul Sharmadad267e2017-02-04 13:25:34 +0530978########### GLOBAL_LMAC_IF ##########
979GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if
980
981GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \
982 -I$(WLAN_COMMON_INC)/global_lmac_if/src
983
984GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o
985
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800986########### WMI ###########
Govind Singh0fea23a2016-03-18 12:59:27 +0530987WMI_ROOT_DIR := wmi
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800988
Govind Singh0fea23a2016-03-18 12:59:27 +0530989WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
990WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
991WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800992
Govind Singh0fea23a2016-03-18 12:59:27 +0530993WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
994
995WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
996 $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
997 $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
998 $(WMI_OBJ_DIR)/wmi_unified_api.o \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +0530999 $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001000 $(WMI_OBJ_DIR)/wmi_unified_reg_api.o \
Arif Hussain757b45f2017-02-11 16:47:06 -08001001 $(WMI_OBJ_DIR)/wmi_unified_dfs_api.o \
Govind Singh0fea23a2016-03-18 12:59:27 +05301002 $(WMI_OBJ_DIR)/wmi_unified_non_tlv.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001003
1004########### FWLOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -08001005FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001006
1007FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
1008
1009FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
1010
1011############ TXRX ############
1012TXRX_DIR := core/dp/txrx
1013TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
1014
1015TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \
1016 $(TXRX_DIR)/ol_cfg.o \
1017 $(TXRX_DIR)/ol_rx.o \
1018 $(TXRX_DIR)/ol_rx_fwd.o \
1019 $(TXRX_DIR)/ol_txrx.o \
1020 $(TXRX_DIR)/ol_rx_defrag.o \
1021 $(TXRX_DIR)/ol_tx_desc.o \
1022 $(TXRX_DIR)/ol_tx.o \
1023 $(TXRX_DIR)/ol_rx_reorder_timeout.o \
1024 $(TXRX_DIR)/ol_rx_reorder.o \
1025 $(TXRX_DIR)/ol_rx_pn.o \
1026 $(TXRX_DIR)/ol_tx_queue.o \
1027 $(TXRX_DIR)/ol_txrx_peer_find.o \
1028 $(TXRX_DIR)/ol_txrx_event.o \
1029 $(TXRX_DIR)/ol_txrx_encap.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301030 $(TXRX_DIR)/ol_tx_send.o \
1031 $(TXRX_DIR)/ol_tx_sched.o \
1032 $(TXRX_DIR)/ol_tx_classify.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001033
1034ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1035TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
1036endif
1037
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001038ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001039############ DP 3.0 ############
1040DP_INC := -I$(WLAN_COMMON_ROOT)/dp/inc \
1041 -I$(WLAN_COMMON_ROOT)/dp/wifi3.0
1042
1043DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0
1044DP_OBJS := $(DP_SRC)/dp_main.o \
1045 $(DP_SRC)/dp_tx.o \
1046 $(DP_SRC)/dp_tx_desc.o \
1047 $(DP_SRC)/dp_rx.o \
1048 $(DP_SRC)/dp_rx_err.o \
1049 $(DP_SRC)/dp_htt.o \
1050 $(DP_SRC)/dp_peer.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001051 $(DP_SRC)/dp_rx_desc.o \
Ravi Joshi12665a02017-03-08 16:35:04 -08001052 $(DP_SRC)/dp_reo.o \
1053 $(DP_SRC)/dp_rx_mon_dest.o \
Ravi Joshic4a41082017-01-09 22:27:58 -08001054 $(DP_SRC)/dp_rx_mon_status.o \
Venkata Sharath Chandra Manchalabcdfdb12017-03-29 19:25:45 -07001055 $(DP_SRC)/dp_rx_defrag.o \
1056 $(DP_SRC)/dp_stats.o
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001057endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001058
1059############ CFG ############
Ravi Joshid55b18a2017-02-17 10:48:14 -08001060WCFG_DIR := wlan_cfg
1061WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR)
1062WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR)
1063WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o
Leo Chang5f7a1e02016-11-04 14:04:26 -07001064
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001065############ OL ############
1066OL_DIR := core/dp/ol
1067OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
1068
Dhanashri Atre12a08392016-02-17 13:10:34 -08001069############ CDP ############
1070CDP_ROOT_DIR := dp
1071CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
1072CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
1073
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001074############ PKTLOG ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -08001075PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001076PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
1077
1078PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
1079 $(PKTLOG_DIR)/pktlog_internal.o \
1080 $(PKTLOG_DIR)/linux_ac.o
1081
1082############ HTT ############
1083HTT_DIR := core/dp/htt
1084HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
1085
1086HTT_OBJS := $(HTT_DIR)/htt_tx.o \
1087 $(HTT_DIR)/htt.o \
1088 $(HTT_DIR)/htt_t2h.o \
1089 $(HTT_DIR)/htt_h2t.o \
1090 $(HTT_DIR)/htt_fw_stats.o \
1091 $(HTT_DIR)/htt_rx.o
1092
Rajeev Kumar97767a02016-11-30 11:20:40 -08001093
1094############## INIT-DEINIT ###########
1095INIT_DEINIT_DIR := init_deinit/dispatcher
1096INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc
1097INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src
1098INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR)
1099INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR)
1100INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o
1101
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001102############## REGULATORY ###########
1103REGULATORY_DIR := umac/regulatory
1104REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc
1105REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src
1106REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc
1107REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src
1108REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR)
1109REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR)
1110REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR)
1111REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR)
1112REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_db.o \
1113 $(REG_CORE_OBJ_DIR)/reg_services.o \
Amar Singhaleac64132017-05-05 13:02:37 -07001114 $(REG_CORE_OBJ_DIR)/reg_db_parser.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001115 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \
1116 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \
1117 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o
1118
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001119############## Control path common scheduler ##########
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001120SCHEDULER_DIR := scheduler
1121SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc
1122SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src
1123SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR)
1124SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR)
1125SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \
1126 $(SCHEDULER_OBJ_DIR)/scheduler_core.o
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001127
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001128###### UMAC SERIALIZATION ########
1129UMAC_SER_DIR := umac/cmn_services/serialization
1130UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc
1131UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src
1132UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR)
Rajeev Kumar97767a02016-11-30 11:20:40 -08001133
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001134UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR)
1135UMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_dequeue.o \
1136 $(UMAC_SER_OBJ_DIR)/wlan_serialization_enqueue.o \
1137 $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \
1138 $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \
1139 $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \
Varun Reddy Yeturu35c07f92017-02-28 10:35:00 -08001140 $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001141 $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001142
1143###### WIFI POS ########
Naveen Rawat91a27b72017-03-20 18:49:57 -07001144CONFIG_WIFI_POS_CONVERGED := y
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001145
1146WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src
1147WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc
1148WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src
1149WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc
1150WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src
1151WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc
1152
1153
1154ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
1155WIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \
1156 $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \
1157 $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \
1158 $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \
1159 $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \
1160 $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o
1161endif
1162
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001163######################### NAN #########################
1164NAN_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/nan/core/src
1165NAN_CORE_INC := -I$(WLAN_COMMON_INC)/umac/nan/core/inc
1166NAN_UCFG_DIR := $(WLAN_COMMON_ROOT)/umac/nan/dispatcher/src
1167NAN_UCFG_INC := -I$(WLAN_COMMON_INC)/umac/nan/dispatcher/inc
1168NAN_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/nan/src
1169NAN_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/nan/inc
1170NAN_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/nan/src
1171NAN_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/nan/inc
1172
1173ifeq ($(CONFIG_NAN_CONVERGENCE), y)
1174WLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \
1175 $(NAN_CORE_DIR)/nan_api.o \
1176 $(NAN_CORE_DIR)/nan_utils.o \
1177 $(NAN_UCFG_DIR)/nan_ucfg_api.o \
1178 $(NAN_TGT_DIR)/target_if_nan.o \
1179 $(NAN_OS_IF_DIR)/os_if_nan.o
1180endif
1181#######################################################
1182
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001183############## HTC ##########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001184HTC_DIR := htc
1185HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001186
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001187HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
1188 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
1189 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
1190 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001191
1192########### HIF ###########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001193HIF_DIR := hif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001194HIF_CE_DIR := $(HIF_DIR)/src/ce
Houston Hoffman1edffd32016-01-27 16:30:34 -08001195
1196HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
1197
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001198HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001199HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
Mohit Khannada4f4432016-05-17 15:02:09 -07001200HIF_USB_DIR := $(HIF_DIR)/src/usb
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301201HIF_SDIO_DIR := $(HIF_DIR)/src/sdio
1202
1203HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio
1204HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include
1205HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001206
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001207HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
1208 -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src \
Yuanyuan Liu91353612016-05-04 12:02:00 -07001209 -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001210
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001211ifeq ($(CONFIG_HIF_PCI), 1)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001212HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001213HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001214endif
1215
1216ifeq ($(CONFIG_HIF_SNOC), 1)
1217HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001218HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001219endif
1220
Mohit Khannada4f4432016-05-17 15:02:09 -07001221ifeq ($(CONFIG_HIF_USB), 1)
1222HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1223HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR)
1224endif
1225
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301226ifeq ($(CONFIG_HIF_SDIO), 1)
1227HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1228HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR)
1229HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR)
1230endif
1231
1232HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
1233 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
1234 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o
1235
1236HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o \
1237 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
1238 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
1239 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
1240 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001241 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301242
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001243ifeq ($(CONFIG_LITHIUM), y)
1244HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o \
1245 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
Houston Hoffmana0f93492016-11-18 13:42:12 -08001246endif
1247
Mohit Khannada4f4432016-05-17 15:02:09 -07001248HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \
1249 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \
1250 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \
1251 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o
1252
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301253HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_send.o \
1254 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o \
1255 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \
1256 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \
1257 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \
1258 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_recv.o \
1259 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o
1260
1261HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \
1262 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001263
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001264ifeq ($(CONFIG_WLAN_NAPI), y)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001265HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001266endif
1267
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001268HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001269HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301270HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001271
Houston Hoffman1edffd32016-01-27 16:30:34 -08001272HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
Houston Hoffmanb61b9b12016-03-03 20:04:16 -08001273HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
Houston Hoffman1edffd32016-01-27 16:30:34 -08001274
1275ifeq ($(CONFIG_HIF_PCI), 1)
1276HIF_OBJS += $(HIF_PCIE_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301277HIF_OBJS += $(HIF_COMMON_OBJS)
1278HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001279HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
1280endif
1281
1282ifeq ($(CONFIG_HIF_SNOC), 1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001283HIF_OBJS += $(HIF_SNOC_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301284HIF_OBJS += $(HIF_COMMON_OBJS)
1285HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001286HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001287endif
1288
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301289ifeq ($(CONFIG_HIF_SDIO), 1)
1290HIF_OBJS += $(HIF_SDIO_OBJS)
1291HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS)
1292HIF_OBJS += $(HIF_COMMON_OBJS)
1293HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o
1294endif
1295
Mohit Khannada4f4432016-05-17 15:02:09 -07001296ifeq ($(CONFIG_HIF_USB), 1)
1297HIF_OBJS += $(HIF_USB_OBJS)
1298HIF_OBJS += $(HIF_COMMON_OBJS)
1299HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o
1300endif
1301
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001302ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001303############ HAL ############
1304HAL_DIR := hal
1305HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \
1306 -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0
1307
1308HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \
1309 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_rx.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001310 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_wbm.o \
1311 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001312endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001313
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001314############ WMA ############
1315WMA_DIR := core/wma
1316
1317WMA_INC_DIR := $(WMA_DIR)/inc
1318WMA_SRC_DIR := $(WMA_DIR)/src
1319
1320WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
1321 -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
1322
Ravi Joshia063dd92016-05-25 16:43:13 -07001323ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
1324WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
1325endif
1326
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001327WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \
1328 $(WMA_SRC_DIR)/wma_scan_roam.o \
1329 $(WMA_SRC_DIR)/wma_dev_if.o \
1330 $(WMA_SRC_DIR)/wma_mgmt.o \
1331 $(WMA_SRC_DIR)/wma_power.o \
1332 $(WMA_SRC_DIR)/wma_data.o \
1333 $(WMA_SRC_DIR)/wma_utils.o \
1334 $(WMA_SRC_DIR)/wma_features.o \
Ravi Joshia063dd92016-05-25 16:43:13 -07001335 $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
1336 $(WMA_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001337
Agrawal Ashishb141b092016-09-02 19:59:26 +05301338ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
Jeff Johnsonb90ab572017-01-31 15:57:35 -08001339WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o
Agrawal Ashishb141b092016-09-02 19:59:26 +05301340endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001341ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
1342WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
1343endif
Krishna Kumaar Natarajand0bbb3c2017-03-13 17:04:58 -07001344ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
1345WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o
1346endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001347
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001348############## PLD ##########
1349PLD_DIR := core/pld
1350PLD_INC_DIR := $(PLD_DIR)/inc
1351PLD_SRC_DIR := $(PLD_DIR)/src
1352
1353PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
1354 -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
1355
1356PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
1357
1358ifeq ($(CONFIG_PCI), y)
1359PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
1360endif
1361ifeq ($(CONFIG_ICNSS),y)
1362PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
1363endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301364ifeq ($(CONFIG_CNSS_SDIO),y)
1365PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o
1366endif
Mohit Khannae7a43572016-10-10 17:34:21 -07001367ifeq ($(CONFIG_PLD_USB_CNSS), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001368PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o
1369endif
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001370
Dhanashri Atref067b582017-04-14 16:56:24 -07001371TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/v2 \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001372 -I$(WLAN_ROOT)/../fw-api/fw
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001373
1374LINUX_INC := -Iinclude/linux
1375
1376INCS := $(HDD_INC) \
1377 $(EPPING_INC) \
1378 $(LINUX_INC) \
1379 $(MAC_INC) \
1380 $(SAP_INC) \
1381 $(SME_INC) \
1382 $(SYS_INC) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001383 $(QDF_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001384 $(CDS_INC) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301385 $(DFS_INC) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301386 $(TARGET_IF_INC) \
Sandeep Puligillafdd201e2017-02-02 18:43:46 -08001387 $(OS_IF_INC) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301388 $(GLOBAL_LMAC_IF_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001389
1390INCS += $(WMA_INC) \
1391 $(UAPI_INC) \
1392 $(COMMON_INC) \
1393 $(WMI_INC) \
1394 $(FWLOG_INC) \
1395 $(TXRX_INC) \
1396 $(OL_INC) \
Dhanashri Atre12a08392016-02-17 13:10:34 -08001397 $(CDP_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001398 $(PKTLOG_INC) \
1399 $(HTT_INC) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001400 $(INIT_DEINIT_INC) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001401 $(SCHEDULER_INC) \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001402 $(REGULATORY_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001403 $(HTC_INC) \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001404 $(DFS_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001405 $(WCFG_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001406
1407INCS += $(HIF_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001408 $(BMI_INC)
1409
1410ifeq ($(CONFIG_LITHIUM), y)
1411INCS += $(HAL_INC) \
1412 $(DP_INC)
1413endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001414
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001415################ WIFI POS ################
1416INCS += $(WIFI_POS_API_INC)
1417INCS += $(WIFI_POS_TGT_INC)
1418INCS += $(WIFI_POS_OS_IF_INC)
1419##########################################
1420
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001421################ NAN POS ################
1422INCS += $(NAN_CORE_INC)
1423INCS += $(NAN_UCFG_INC)
1424INCS += $(NAN_TGT_INC)
1425INCS += $(NAN_OS_IF_INC)
1426##########################################
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301427INCS += $(UMAC_OBJMGR_INC)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301428INCS += $(UMAC_MGMT_TXRX_INC)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301429INCS += $(PMO_INC)
Wu Gao64b31482017-03-10 15:16:10 +08001430INCS += $(UMAC_P2P_INC)
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001431INCS += $(UMAC_POLICY_MGR_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001432INCS += $(TARGET_INC)
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001433INCS += $(UMAC_TDLS_INC)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001434INCS += $(UMAC_SER_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001435INCS += $(NLINK_INC) \
1436 $(PTT_INC) \
1437 $(WLAN_LOGGING_INC)
1438
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001439INCS += $(PLD_INC)
1440
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001441ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
1442INCS += $(PKTLOG_INC)
1443endif
1444
1445ifeq ($(BUILD_DIAG_VERSION), 1)
1446INCS += $(HOST_DIAG_LOG_INC)
1447endif
1448
Frank Liu65b17d92016-11-23 15:58:44 +08001449INCS += $(UMAC_DISP_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301450INCS += $(UMAC_SCAN_INC)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301451INCS += $(UMAC_TARGET_SCAN_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301452INCS += $(UMAC_COMMON_INC)
Frank Liu65b17d92016-11-23 15:58:44 +08001453
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001454OBJS := $(HDD_OBJS) \
1455 $(EPPING_OBJS) \
1456 $(MAC_OBJS) \
1457 $(SAP_OBJS) \
1458 $(SME_OBJS) \
1459 $(SYS_OBJS) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001460 $(QDF_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001461 $(CDS_OBJS) \
1462 $(DFS_OBJS)
1463
1464OBJS += $(WMA_OBJS) \
1465 $(TXRX_OBJS) \
1466 $(WMI_OBJS) \
1467 $(FWLOG_OBJS) \
1468 $(HTC_OBJS) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001469 $(INIT_DEINIT_OBJS) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001470 $(SCHEDULER_OBJS) \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001471 $(REGULATORY_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001472 $(DFS_OBJS)
1473
1474OBJS += $(HIF_OBJS) \
1475 $(BMI_OBJS) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301476 $(HTT_OBJS) \
Wu Gao64b31482017-03-10 15:16:10 +08001477 $(OS_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301478 $(TARGET_IF_OBJ) \
1479 $(GLOBAL_LMAC_IF_OBJ)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001480
1481ifeq ($(CONFIG_LITHIUM), y)
1482OBJS += $(HAL_OBJS)
1483endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001484
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301485OBJS += $(UMAC_OBJMGR_OBJS)
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001486OBJS += $(WIFI_POS_OBJS)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001487OBJS += $(WLAN_NAN_OBJS)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301488OBJS += $(UMAC_MGMT_TXRX_OBJS)
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001489OBJS += $(UMAC_TDLS_OBJS)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301490OBJS += $(PMO_OBJS)
Wu Gao64b31482017-03-10 15:16:10 +08001491OBJS += $(UMAC_P2P_OBJS)
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001492OBJS += $(UMAC_POLICY_MGR_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001493OBJS += $(WLAN_LOGGING_OBJS)
1494OBJS += $(NLINK_OBJS)
1495OBJS += $(PTT_OBJS)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001496OBJS += $(UMAC_SER_OBJS)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001497OBJS += $(PLD_OBJS)
1498
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001499ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
1500OBJS += $(PKTLOG_OBJS)
1501endif
1502
1503ifeq ($(BUILD_DIAG_VERSION), 1)
1504OBJS += $(HOST_DIAG_LOG_OBJS)
1505endif
1506
Frank Liu65b17d92016-11-23 15:58:44 +08001507OBJS += $(UMAC_DISP_OBJS)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301508OBJS += $(UMAC_SCAN_OBJS)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301509OBJS += $(UMAC_COMMON_OBJS)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001510OBJS += $(WCFG_OBJS)
1511
1512ifeq ($(CONFIG_LITHIUM), y)
1513OBJS += $(DP_OBJS)
1514endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001515
1516EXTRA_CFLAGS += $(INCS)
1517
1518CDEFINES := -DANI_LITTLE_BYTE_ENDIAN \
1519 -DANI_LITTLE_BIT_ENDIAN \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001520 -DDOT11F_LITTLE_ENDIAN_HOST \
1521 -DANI_COMPILER_TYPE_GCC \
1522 -DANI_OS_TYPE_ANDROID=6 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001523 -DPTT_SOCK_SVC_ENABLE \
1524 -Wall\
1525 -Werror\
1526 -D__linux__ \
1527 -DHAL_SELF_STA_PER_BSS=1 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001528 -DFEATURE_WLAN_WAPI \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001529 -DSOFTAP_CHANNEL_RANGE \
1530 -DWLAN_AP_STA_CONCURRENCY \
1531 -DFEATURE_WLAN_SCAN_PNO \
1532 -DWLAN_FEATURE_PACKET_FILTERING \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001533 -DWLAN_FEATURE_P2P_DEBUG \
1534 -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \
1535 -DWLANTL_DEBUG\
1536 -DWLAN_NS_OFFLOAD \
1537 -DWLAN_SOFTAP_VSTA_FEATURE \
1538 -DWLAN_FEATURE_GTK_OFFLOAD \
1539 -DWLAN_WAKEUP_EVENTS \
1540 -DFEATURE_WLAN_RA_FILTERING\
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001541 -DWLAN_NL80211_TESTMODE \
1542 -DFEATURE_WLAN_LPHB \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001543 -DQCA_SUPPORT_TX_THROTTLE \
1544 -DWMI_INTERFACE_EVENT_LOGGING \
1545 -DATH_SUPPORT_WAPI \
1546 -DWLAN_FEATURE_LINK_LAYER_STATS \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001547 -DFEATURE_WLAN_EXTSCAN \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001548 -DWLAN_FEATURE_MBSSID \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001549 -DCONFIG_160MHZ_SUPPORT \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +05301550 -DCONFIG_MCL \
Sandeep Puligilla1fcdb772017-02-22 21:14:59 -08001551 -DNAPIER_SCAN \
Wu Gao64b31482017-03-10 15:16:10 +08001552 -DWLAN_PMO_ENABLE \
Wu Gao5491e522017-03-20 20:32:32 +08001553 -DCONVERGED_P2P_ENABLE \
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -08001554 -DWLAN_POLICY_MGR_ENABLE \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001555 -DSUPPORT_11AX \
1556 -DCONVERGED_TDLS_ENABLE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001557
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001558
1559############ WIFI POS ##############
1560ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
1561CDEFINES += -DWIFI_POS_CONVERGED
1562else
1563CDEFINES += -DFEATURE_OEM_DATA_SUPPORT
1564endif
1565####################################
1566
Mohit Khannada4f4432016-05-17 15:02:09 -07001567ifneq ($(CONFIG_HIF_USB), 1)
1568CDEFINES += -DWLAN_LOGGING_SOCK_SVC_ENABLE
1569endif
1570
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07001571ifeq ($(CONFIG_CNSS), y)
1572ifeq ($(CONFIG_CNSS_SDIO), y)
1573CDEFINES += -DCONFIG_PLD_SDIO_CNSS
1574else
1575CDEFINES += -DCONFIG_PLD_PCIE_CNSS
1576endif
1577endif
1578
Yue Mae6a7a322016-08-31 11:09:23 -07001579ifeq ($(CONFIG_CNSS2), y)
1580CDEFINES += -DCONFIG_PLD_PCIE_CNSS
Houston Hoffman435cd442016-11-23 14:20:42 -08001581CDEFINES += -DCONFIG_PLD_PCIE_INIT
Yue Mae6a7a322016-08-31 11:09:23 -07001582endif
1583
Yue Ma2b091312017-02-15 15:56:47 -08001584# Flag to enable bus auto suspend
1585ifeq ($(CONFIG_ROME_IF),pci)
1586ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
1587CDEFINES += -DFEATURE_RUNTIME_PM
1588endif
1589endif
1590
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07001591ifeq ($(CONFIG_ICNSS), y)
1592CDEFINES += -DCONFIG_PLD_SNOC_ICNSS
1593endif
1594
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001595ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
1596CDEFINES += -DQCA_WIFI_3_0
1597CDEFINES += -DQCA_WIFI_3_0_EMU
1598endif
1599
1600ifeq (y,$(filter y,$(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
1601CDEFINES += -DQCA_WIFI_3_0_ADRASTEA
1602CDEFINES += -DADRASTEA_SHADOW_REGISTERS
Sanjay Devnanicdab59e2015-11-12 14:43:58 -08001603CDEFINES += -DADRASTEA_RRI_ON_DDR
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001604endif
1605
1606ifeq ($(CONFIG_WLAN_FASTPATH), y)
1607CDEFINES += -DWLAN_FEATURE_FASTPATH
1608endif
1609
Poddar, Siddartheefe3482016-09-21 18:12:59 +05301610ifeq ($(CONFIG_FEATURE_PKTLOG), y)
1611CDEFINES += -DFEATURE_PKTLOG
1612endif
1613
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05301614CDEFINES += -DFEATURE_DP_TRACE
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05301615
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001616ifeq ($(CONFIG_WLAN_NAPI), y)
1617CDEFINES += -DFEATURE_NAPI
1618ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
1619CDEFINES += -DFEATURE_NAPI_DEBUG
1620endif
1621endif
1622
Yue Madf224b82016-04-21 12:46:04 -07001623ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
Yuanyuan Liu5af44362016-04-01 21:57:06 -07001624CDEFINES += -DMSM_PLATFORM
1625endif
1626
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001627CDEFINES += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
1628
1629ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1630CDEFINES += -DQCA_LL_TX_FLOW_CONTROL_V2
1631CDEFINES += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
1632else
1633ifeq ($(CONFIG_ROME_IF),pci)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001634ifneq ($(CONFIG_LITHIUM),y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001635CDEFINES += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
1636endif
1637endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001638endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001639
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001640ifneq ($(CONFIG_QCA_CLD_WLAN),)
1641CDEFINES += -DWCN_PRONTO
1642CDEFINES += -DWCN_PRONTO_V1
1643endif
1644
1645ifeq ($(BUILD_DEBUG_VERSION),1)
1646CDEFINES += -DWLAN_DEBUG \
1647 -DTRACE_RECORD \
1648 -DLIM_TRACE_RECORD \
1649 -DSME_TRACE_RECORD \
1650 -DHDD_TRACE_RECORD \
1651 -DPE_DEBUG_LOGW \
Srinivas Girigowda6147c582016-10-18 12:26:15 -07001652 -DPE_DEBUG_LOGE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001653endif
1654
1655ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
1656CDEFINES += -DTIMER_MANAGER
1657CDEFINES += -DMEMORY_DEBUG
Rajeev Kumar04223052017-04-07 20:44:15 -07001658CDEFINES += -DCONFIG_HALT_KMEMLEAK
Dustin Brown8b28e082016-12-06 15:37:34 -08001659CDEFINES += -DWLAN_SUSPEND_RESUME_TEST
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001660endif
1661
1662ifeq ($(HAVE_CFG80211),1)
1663CDEFINES += -DWLAN_FEATURE_P2P
1664CDEFINES += -DWLAN_FEATURE_WFD
1665ifeq ($(CONFIG_QCOM_VOWIFI_11R),y)
1666CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211
1667CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC
1668endif
1669endif
1670
1671ifeq ($(CONFIG_QCOM_ESE),y)
1672CDEFINES += -DFEATURE_WLAN_ESE
1673CDEFINES += -DQCA_COMPUTE_TX_DELAY
1674CDEFINES += -DQCA_COMPUTE_TX_DELAY_PER_TID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001675endif
1676
1677#normally, TDLS negative behavior is not needed
1678ifeq ($(CONFIG_QCOM_TDLS),y)
1679CDEFINES += -DFEATURE_WLAN_TDLS
1680endif
1681
1682ifeq ($(CONFIG_QCACLD_WLAN_LFR3),y)
1683CDEFINES += -DWLAN_FEATURE_ROAM_OFFLOAD
1684endif
1685
Selvaraj, Sridhar046d77d2017-03-07 14:53:13 +05301686ifeq ($(CONFIG_CNSS_GENL), y)
1687CDEFINES += -DCNSS_GENL
1688endif
1689
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -08001690ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
1691CDEFINES += -DWLAN_FEATURE_HOST_ROAM
1692endif
1693
Sridhar Selvarajdc400d22016-10-18 17:18:03 +05301694ifeq ($(CONFIG_WLAN_POWER_DEBUGFS), y)
1695CDEFINES += -DWLAN_POWER_DEBUGFS
1696endif
1697
Rajeev Kumar69d7d492017-02-13 21:48:16 -08001698# Enable object manager reference count debug infrastructure
1699CDEFINES += -DWLAN_OBJMGR_DEBUG
1700
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001701ifeq ($(BUILD_DIAG_VERSION),1)
1702CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT
1703CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
1704CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
1705ifeq ($(CONFIG_HIF_PCI), 1)
1706CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1707endif
1708endif
1709
1710ifeq ($(CONFIG_HIF_USB), 1)
1711CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1712CDEFINES += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
1713CDEFINES += -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 -08001714endif
1715
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001716ifeq ($(CONFIG_WLAN_FEATURE_11W),y)
1717CDEFINES += -DWLAN_FEATURE_11W
1718endif
1719
gbiane55c9562016-11-01 14:47:47 +08001720ifeq ($(CONFIG_QCA_TXDESC_SANITY_CHECKS), 1)
1721CDEFINES += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS
1722endif
1723
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001724ifeq ($(CONFIG_QCOM_LTE_COEX),y)
1725CDEFINES += -DFEATURE_WLAN_CH_AVOID
1726endif
1727
1728ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
1729CDEFINES += -DWLAN_FEATURE_LPSS
1730endif
1731
Nirav Shah76291962016-04-25 10:50:37 +05301732ifneq ($(TARGET_BUILD_VARIANT),user)
1733CDEFINES += -DDESC_DUP_DETECT_DEBUG
Manjunathappa Prakashc8e75642016-06-03 19:32:27 -07001734CDEFINES += -DDEBUG_RX_RING_BUFFER
Nirav Shah76291962016-04-25 10:50:37 +05301735endif
1736
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001737ifeq ($(PANIC_ON_BUG),1)
1738CDEFINES += -DPANIC_ON_BUG
1739endif
1740
1741ifeq ($(WLAN_OPEN_SOURCE), 1)
1742CDEFINES += -DWLAN_OPEN_SOURCE
1743endif
1744
1745ifeq ($(CONFIG_FEATURE_STATS_EXT), 1)
1746CDEFINES += -DWLAN_FEATURE_STATS_EXT
1747endif
1748
1749ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
1750CDEFINES += -DWLAN_FEATURE_NAN
1751endif
1752
1753ifeq ($(CONFIG_QCA_IBSS_SUPPORT), 1)
1754CDEFINES += -DQCA_IBSS_SUPPORT
1755endif
1756
1757#Enable OL debug and wmi unified functions
1758ifeq ($(CONFIG_ATH_PERF_PWR_OFFLOAD), 1)
1759CDEFINES += -DATH_PERF_PWR_OFFLOAD
1760endif
1761
1762#Disable packet log
1763ifeq ($(CONFIG_REMOVE_PKT_LOG), 1)
1764CDEFINES += -DREMOVE_PKT_LOG
1765endif
1766
1767#Enable 11AC TX
1768ifeq ($(CONFIG_ATH_11AC_TXCOMPACT), 1)
1769CDEFINES += -DATH_11AC_TXCOMPACT
1770endif
1771
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001772#Enable OS specific IRQ abstraction
1773ifeq ($(CONFIG_ATH_SUPPORT_SHARED_IRQ), 1)
1774CDEFINES += -DATH_SUPPORT_SHARED_IRQ
1775endif
1776
1777#Enable message based HIF instead of RAW access in BMI
1778ifeq ($(CONFIG_HIF_MESSAGE_BASED), 1)
1779CDEFINES += -DHIF_MESSAGE_BASED
1780endif
1781
1782#Enable PCI specific APIS (dma, etc)
1783ifeq ($(CONFIG_HIF_PCI), 1)
1784CDEFINES += -DHIF_PCI
1785endif
1786
Houston Hoffman1edffd32016-01-27 16:30:34 -08001787ifeq ($(CONFIG_HIF_SNOC), 1)
1788CDEFINES += -DHIF_SNOC
1789endif
1790
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301791#Enable High Latency related Flags
1792ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
1793CDEFINES += -DCONFIG_HL_SUPPORT \
1794 -DCONFIG_AR6320_SUPPORT \
1795 -DSDIO_3_0 \
1796 -DHIF_SDIO \
1797 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \
1798 -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \
1799 -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL \
1800 -DHIF_MBOX_SLEEP_WAR \
1801 -DDEBUG_HL_LOGGING \
1802 -DQCA_BAD_PEER_TX_FLOW_CL \
1803 -DCONFIG_TX_DESC_HI_PRIO_RESERVE \
1804 -DCONFIG_PER_VDEV_TX_DESC_POOL \
1805 -DCONFIG_SDIO \
1806 -DFEATURE_WLAN_FORCE_SAP_SCC
1807endif
1808
Agrawal Ashishb141b092016-09-02 19:59:26 +05301809ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1810CDEFINES += -DWLAN_FEATURE_DSRC
1811endif
1812
bings7762da12017-03-06 07:21:04 +08001813ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y)
1814ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
1815ifeq ($(CONFIG_WCNSS_SKB_PRE_ALLOC), y)
1816CDEFINES += -DFEATURE_SKB_PRE_ALLOC
1817endif
1818endif
1819endif
1820
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001821#Enable USB specific APIS
1822ifeq ($(CONFIG_HIF_USB), 1)
Mohit Khannada4f4432016-05-17 15:02:09 -07001823CDEFINES += -DHIF_USB \
Mohit Khannae7a43572016-10-10 17:34:21 -07001824 -DCONFIG_PLD_USB_CNSS \
1825 -DCONFIG_HL_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001826endif
1827
1828#Enable FW logs through ini
1829CDEFINES += -DCONFIG_FW_LOGS_BASED_ON_INI
1830
1831#Enable pci read/write config functions
1832ifeq ($(CONFIG_ATH_PCI), 1)
1833CDEFINES += -DATH_PCI
1834endif
1835
1836#Enable power management suspend/resume functionality
1837ifeq ($(CONFIG_ATH_BUS_PM), 1)
1838CDEFINES += -DATH_BUS_PM
1839endif
1840
1841#Enable FLOWMAC module support
1842ifeq ($(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE), 1)
1843CDEFINES += -DATH_SUPPORT_FLOWMAC_MODULE
1844endif
1845
1846#Enable spectral support
1847ifeq ($(CONFIG_ATH_SUPPORT_SPECTRAL), 1)
1848CDEFINES += -DATH_SUPPORT_SPECTRAL
1849endif
1850
1851#Enable WDI Event support
1852ifeq ($(CONFIG_WDI_EVENT_ENABLE), 1)
1853CDEFINES += -DWDI_EVENT_ENABLE
1854endif
1855
1856#Endianess selection
1857ifeq ($(CONFIG_LITTLE_ENDIAN), 1)
1858AH_LITTLE_ENDIAN=1234
1859CDEFINES += -DAH_BYTE_ORDER=$(AH_LITTLE_ENDIAN)
1860else
1861AH_BIG_ENDIAN=4321
1862CDEFINES += -DAH_BYTE_ORDER=$(AH_BIG_ENDIAN)
1863CDEFINES += -DBIG_ENDIAN_HOST
1864endif
1865
1866#Enable TX reclaim support
1867ifeq ($(CONFIG_TX_CREDIT_RECLAIM_SUPPORT), 1)
1868CDEFINES += -DTX_CREDIT_RECLAIM_SUPPORT
1869endif
1870
1871#Enable FTM support
1872ifeq ($(CONFIG_QCA_WIFI_FTM), 1)
1873CDEFINES += -DQCA_WIFI_FTM
1874endif
1875
1876#Enable Checksum Offload support
1877ifeq ($(CONFIG_CHECKSUM_OFFLOAD), 1)
1878CDEFINES += -DCHECKSUM_OFFLOAD
1879endif
1880
1881#Enable Checksum Offload support
1882ifeq ($(CONFIG_IPA_OFFLOAD), 1)
1883CDEFINES += -DIPA_OFFLOAD
1884endif
1885
bings7762da12017-03-06 07:21:04 +08001886ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y)
1887CDEFINES += -DSYNC_IPA_READY
1888endif
1889
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001890#Enable GTK Offload
1891ifeq ($(CONFIG_GTK_OFFLOAD), 1)
1892CDEFINES += -DWLAN_FEATURE_GTK_OFFLOAD
1893CDEFINES += -DIGTK_OFFLOAD
1894endif
1895
1896#Enable GTK Offload
1897ifeq ($(CONFIG_EXT_WOW), 1)
1898CDEFINES += -DWLAN_FEATURE_EXTWOW_SUPPORT
1899endif
1900
1901#Mark it as SMP Kernel
1902ifeq ($(CONFIG_SMP),y)
1903CDEFINES += -DQCA_CONFIG_SMP
1904endif
1905
Sandeep Puligilla2111d3c2016-02-03 01:46:15 -08001906#Enable Channel Matrix restriction for all Rome only targets
1907ifneq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001908CDEFINES += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
Sandeep Puligilla2111d3c2016-02-03 01:46:15 -08001909endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001910
Sandeep Puligilla0e64b612016-08-26 13:20:58 -07001911#Enable OBSS feature
1912CDEFINES += -DQCA_HT_2040_COEX
1913
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001914#features specific to mobile router use case
1915ifeq ($(CONFIG_MOBILE_ROUTER), y)
1916
1917#enable MCC TO SCC switch
1918CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
1919
1920#enable wlan auto shutdown feature
1921CDEFINES += -DFEATURE_WLAN_AUTO_SHUTDOWN
1922
1923#enable for MBSSID
1924CDEFINES += -DWLAN_FEATURE_MBSSID
1925
1926#enable AP-AP ACS Optimization
1927CDEFINES += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
1928
1929#Enable 4address scheme
1930CDEFINES += -DFEATURE_WLAN_STA_4ADDR_SCHEME
1931
1932#Disable STA-AP Mode DFS support
1933CDEFINES += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
1934
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001935else #CONFIG_MOBILE_ROUTER
1936
1937#Open P2P device interface only for non-Mobile router use cases
1938CDEFINES += -DWLAN_OPEN_P2P_INTERFACE
1939
1940#Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
1941CDEFINES += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
1942
1943endif #CONFIG_MOBILE_ROUTER
1944
1945#Green AP feature
1946ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
1947CDEFINES += -DFEATURE_GREEN_AP
1948endif
1949
Yun Park637d6482016-10-05 10:51:33 -07001950#Stats & Quota Metering feature
1951ifeq ($(CONFIG_QCACLD_FEATURE_METERING),y)
1952CDEFINES += -DFEATURE_METERING
1953endif
1954
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001955#Enable RX Full re-order OL feature only "LL and NON-MDM9630 platform"
1956ifneq ($(CONFIG_ARCH_MDM9630), y)
1957ifeq ($(CONFIG_HIF_PCI), 1)
1958CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
1959endif
1960endif
1961
Yu Wang66e4ff22017-02-15 19:09:24 +08001962ifeq ($(CONFIG_ARCH_MDM9607), y)
1963CDEFINES += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT
1964endif
1965
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001966#Enable Signed firmware support for split binary format
1967ifeq ($(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT), 1)
1968CDEFINES += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
1969endif
1970
1971#Enable single firmware binary format
1972ifeq ($(CONFIG_QCA_SINGLE_BINARY_SUPPORT), 1)
1973CDEFINES += -DQCA_SINGLE_BINARY_SUPPORT
1974endif
1975
1976#Enable collecting target RAM dump after kernel panic
1977ifeq ($(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC), 1)
1978CDEFINES += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
1979endif
1980
1981#Enable/disable secure firmware feature
1982ifeq ($(CONFIG_FEATURE_SECURE_FIRMWARE), 1)
1983CDEFINES += -DFEATURE_SECURE_FIRMWARE
1984endif
1985
1986ifeq ($(CONFIG_ATH_PCIE_ACCESS_DEBUG), 1)
1987CDEFINES += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
1988endif
1989
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001990# Enable feature support fo Linux version QCMBR
1991ifeq ($(CONFIG_LINUX_QCMBR),y)
1992CDEFINES += -DLINUX_QCMBR
1993endif
1994
Manikandan Mohandcc21ba2016-03-15 14:31:56 -07001995# Enable featue sync tsf between multi devices
1996ifeq ($(CONFIG_WLAN_SYNC_TSF), y)
1997CDEFINES += -DWLAN_FEATURE_TSF
1998endif
Rajeev Kumare0fd9dd2015-11-16 13:33:07 -08001999
2000# Enable full rx re-order offload for adrastea
2001ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
2002CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
2003endif
2004
Rajeev Kumar321a19a2015-12-08 12:54:46 -08002005# Enable athdiag procfs debug support for adrastea
2006ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
2007CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
2008endif
2009
Rajeev Kumar9c4809e2016-01-13 18:32:40 -08002010# Enable 11AC TX compact feature for adrastea
2011ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
2012CDEFINES += -DATH_11AC_TXCOMPACT
2013endif
2014
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002015# NOTE: CONFIG_64BIT_PADDR requires CONFIG_HELIUMPLUS
2016ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
2017CONFIG_HELIUMPLUS := y
2018CONFIG_64BIT_PADDR := y
2019CONFIG_FEATURE_TSO := y
2020CONFIG_FEATURE_TSO_DEBUG := y
Mohit Khanna3c4262d2017-05-24 17:32:22 -07002021ifneq ($(CONFIG_FORCE_ALLOC_FROM_DMA_ZONE), y)
Poddar, Siddarthd63954e2017-02-24 15:37:49 +05302022CONFIG_ENABLE_DEBUG_ADDRESS_MARKING := y
2023endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002024ifeq ($(CONFIG_HELIUMPLUS),y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002025CDEFINES += -DHELIUMPLUS
Dhanashri Atre48c2ae62015-12-15 18:07:10 -08002026CDEFINES += -DAR900B
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002027ifeq ($(CONFIG_64BIT_PADDR),y)
2028CDEFINES += -DHTT_PADDR64
2029endif
Himanshu Agarwal8e89ce72017-03-06 17:09:25 +05302030
2031ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
2032CDEFINES += -DOL_RX_INDICATION_RECORD
2033endif
2034
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002035endif
2036endif
2037
Poddar, Siddarthd63954e2017-02-24 15:37:49 +05302038ifeq ($(CONFIG_ENABLE_DEBUG_ADDRESS_MARKING),y)
2039CDEFINES += -DENABLE_DEBUG_ADDRESS_MARKING
2040endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002041ifeq ($(CONFIG_FEATURE_TSO),y)
2042CDEFINES += -DFEATURE_TSO
2043endif
2044ifeq ($(CONFIG_FEATURE_TSO_DEBUG),y)
2045CDEFINES += -DFEATURE_TSO_DEBUG
2046endif
2047
2048ifeq ($(CONFIG_WLAN_LRO), y)
2049CDEFINES += -DFEATURE_LRO
2050endif
2051
2052ifeq ($(CONFIG_MOBILE_ROUTER), y)
2053CDEFINES += -DFEATURE_AP_MCC_CH_AVOIDANCE
2054endif
2055
2056ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
2057CDEFINES += -DMPC_UT_FRAMEWORK
2058endif
2059
2060ifeq ($(CONFIG_WLAN_OFFLOAD_PACKETS),y)
2061CDEFINES += -DWLAN_FEATURE_OFFLOAD_PACKETS
2062endif
2063
2064ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
2065CDEFINES += -DWLAN_FEATURE_MEMDUMP
2066endif
2067
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +05302068ifeq ($(CONFIG_WLAN_FEATURE_DISA),y)
2069CDEFINES += -DWLAN_FEATURE_DISA
2070endif
2071
Ravi Joshi61c3c7a2015-11-09 18:41:20 -08002072ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
2073CDEFINES += -DFEATURE_LFR_SUBNET_DETECTION
2074endif
2075
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +05302076ifeq ($(CONFIG_MCC_TO_SCC_SWITCH), y)
2077CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
2078endif
2079
Ravi Joshia063dd92016-05-25 16:43:13 -07002080ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
2081CDEFINES += -DWLAN_FEATURE_NAN_DATAPATH
2082endif
2083
Naveen Rawat6d2bf182017-03-22 10:18:00 -07002084ifeq ($(CONFIG_NAN_CONVERGENCE), y)
2085CDEFINES += -DWLAN_FEATURE_NAN_CONVERGENCE
2086endif
2087
Leo Chang5f7a1e02016-11-04 14:04:26 -07002088ifeq ($(CONFIG_LITHIUM),y)
Houston Hoffman06fd5662017-02-08 21:41:20 -08002089CDEFINES += -DCONFIG_SHADOW_V2
Aravind Narasimhan4ed314d2016-11-14 16:56:42 -08002090CDEFINES += -DQCA6290_HEADERS_DEF
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08002091CDEFINES += -DQCA_WIFI_QCA6290
Leo Chang5f7a1e02016-11-04 14:04:26 -07002092CDEFINES += -DQCA_WIFI_QCA8074
Leo Chang395cbb52016-11-11 14:35:03 -08002093CDEFINES += -DQCA_WIFI_NAPIER_EMULATION
Leo Chang5f7a1e02016-11-04 14:04:26 -07002094CDEFINES += -DQCA_WIFI_QCA8074_VP
Ravi Joshifc2ed782016-11-22 17:36:50 -08002095CDEFINES += -DDP_INTR_POLL_BASED
Ravi Joshifa5536f2017-02-14 12:25:09 -08002096CDEFINES += -DTX_PER_PDEV_DESC_POOL
Dhanashri Atre2f507a72017-03-28 13:52:29 -07002097CDEFINES += -DWLAN_RX_HASH
Pramod Simha707a3562017-03-22 13:15:37 -07002098CDEFINES += -DDP_LFR
Leo Chang5f7a1e02016-11-04 14:04:26 -07002099endif
2100
Krishna Kumaar Natarajan639c6ff2017-02-13 14:01:04 -08002101ifeq ($(CONFIG_WLAN_FEATURE_11AX),y)
2102CDEFINES += -DWLAN_FEATURE_11AX
2103endif
2104
Leo Chang5f7a1e02016-11-04 14:04:26 -07002105# Dummy flag for WIN/MCL converged data path compilation
2106CDEFINES += -DDP_PRINT_ENABLE=0
2107CDEFINES += -DATH_SUPPORT_WRAP=0
Dhanashri Atre33e147e2017-01-20 14:52:18 -08002108CDEFINES += -DQCA_HOST2FW_RXBUF_RING
Leo Chang5f7a1e02016-11-04 14:04:26 -07002109#endof dummy flags
2110
Arif Hussain757b45f2017-02-11 16:47:06 -08002111# DFS component
2112CDEFINES += -DQCA_MCL_DFS_SUPPORT
2113CDEFINES += -DDFS_COMPONENT_ENABLE
2114CDEFINES += -DQCA_DFS_USE_POLICY_MANAGER
2115CDEFINES += -DQCA_DFS_NOL_PLATFORM_DRV_SUPPORT
2116
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -07002117ifeq ($(CONFIG_WLAN_DEBUGFS), y)
2118CDEFINES += -DWLAN_DEBUGFS
2119endif
2120
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002121KBUILD_CPPFLAGS += $(CDEFINES)
2122
2123# Currently, for versions of gcc which support it, the kernel Makefile
2124# is disabling the maybe-uninitialized warning. Re-enable it for the
2125# WLAN driver. Note that we must use EXTRA_CFLAGS here so that it
2126# will override the kernel settings.
2127ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y)
2128EXTRA_CFLAGS += -Wmaybe-uninitialized
Leo Chang5f7a1e02016-11-04 14:04:26 -07002129ifneq (y,$(CONFIG_ARCH_MSM))
2130EXTRA_CFLAGS += -Wframe-larger-than=4096
2131endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002132endif
Jeff Johnson522db002016-10-05 16:30:41 -07002133EXTRA_CFLAGS += -Wmissing-prototypes
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002134
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002135ifeq ($(call cc-option-yn, -Wheader-guard),y)
2136EXTRA_CFLAGS += -Wheader-guard
2137endif
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302138# If the module name is not "wlan", then the define MULTI_IF_NAME to be the
Yu Wang66e4ff22017-02-15 19:09:24 +08002139# same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302140# any string that must be unique for all instances of the driver on the system.
2141# This allows multiple instances of the driver with different module names.
2142# If the module name is wlan, leave MULTI_IF_NAME undefined and the code will
2143# treat the driver as the primary driver.
2144ifneq ($(MODNAME), wlan)
Yu Wang66e4ff22017-02-15 19:09:24 +08002145CHIP_NAME ?= $(MODNAME)
2146CDEFINES += -DMULTI_IF_NAME=\"$(CHIP_NAME)\"
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302147endif
2148
2149# WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the
2150# system. If it is not defined, then the host driver will use the first 4
2151# characters (including NULL) of MULTI_IF_NAME to construct
2152# WLAN_HDD_ADAPTER_MAGIC.
2153ifdef WLAN_HDD_ADAPTER_MAGIC
2154CDEFINES += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC)
2155endif
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002156
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002157# Module information used by KBuild framework
2158obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
2159$(MODNAME)-y := $(OBJS)