Kbuild 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495
  1. # We can build either as part of a standalone Kernel build or as
  2. # an external module. Determine which mechanism is being used
  3. ifeq ($(MODNAME),)
  4. KERNEL_BUILD := 1
  5. else
  6. KERNEL_BUILD := 0
  7. endif
  8. ifdef CONFIG_ICNSS
  9. CONFIG_ROME_IF = snoc
  10. endif
  11. ifeq ($(CONFIG_CNSS), y)
  12. ifndef CONFIG_ROME_IF
  13. #use pci as default interface
  14. CONFIG_ROME_IF = pci
  15. endif
  16. endif
  17. ifeq ($(KERNEL_BUILD),1)
  18. # These are provided in external module based builds
  19. # Need to explicitly define for Kernel-based builds
  20. MODNAME := wlan
  21. WLAN_ROOT := drivers/staging/qcacld-3.0
  22. WLAN_COMMON_ROOT := ../qca-wifi-host-cmn
  23. WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
  24. endif
  25. # Make WLAN as open-source driver by default
  26. WLAN_OPEN_SOURCE := 1
  27. ifeq ($(KERNEL_BUILD), 0)
  28. # These are configurable via Kconfig for kernel-based builds
  29. # Need to explicitly configure for Android-based builds
  30. ifeq ($(CONFIG_ARCH_MDM9630), y)
  31. CONFIG_MOBILE_ROUTER := y
  32. endif
  33. ifeq ($(CONFIG_ARCH_MDM9640), y)
  34. CONFIG_MOBILE_ROUTER := y
  35. endif
  36. # As per target team, build is done as follows:
  37. # Defconfig : build with default flags
  38. # Slub : defconfig + CONFIG_SLUB_DEBUG=y +
  39. # CONFIG_SLUB_DEBUG_ON=y + CONFIG_PAGE_POISONING=y
  40. # Perf : Using appropriate msmXXXX-perf_defconfig
  41. #
  42. # Shipment builds (user variants) should not have any debug feature
  43. # enabled. This is identified using 'TARGET_BUILD_VARIANT'. Slub builds
  44. # are identified using the CONFIG_SLUB_DEBUG_ON configuration. Since
  45. # there is no other way to identify defconfig builds, QCOMs internal
  46. # representation of perf builds (identified using the string 'perf'),
  47. # is used to identify if the build is a slub or defconfig one. This
  48. # way no critical debug feature will be enabled for perf and shipment
  49. # builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT
  50. # config.
  51. ifneq ($(TARGET_BUILD_VARIANT),user)
  52. ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
  53. CONFIG_FEATURE_DP_TRACE := y
  54. else
  55. ifeq ($(findstring perf,$(KERNEL_DEFCONFIG)),)
  56. CONFIG_FEATURE_DP_TRACE := y
  57. endif
  58. endif
  59. endif
  60. #Flag to enable Legacy Fast Roaming2(LFR2)
  61. CONFIG_QCACLD_WLAN_LFR2 := y
  62. #Flag to enable Legacy Fast Roaming3(LFR3)
  63. CONFIG_QCACLD_WLAN_LFR3 := y
  64. #JB kernel has PMKSA patches, hence enabling this flag
  65. CONFIG_PRIMA_WLAN_OKC := y
  66. # JB kernel has CPU enablement patches, so enable
  67. ifeq ($(CONFIG_ROME_IF),pci)
  68. CONFIG_PRIMA_WLAN_11AC_HIGH_TP := y
  69. endif
  70. ifeq ($(CONFIG_ROME_IF),usb)
  71. CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n
  72. endif
  73. ifeq ($(CONFIG_ROME_IF),sdio)
  74. CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n
  75. endif
  76. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  77. #Flag to enable TDLS feature
  78. CONFIG_QCOM_TDLS := y
  79. endif
  80. ifeq ($(CONFIG_MOBILE_ROUTER), y)
  81. CONFIG_QCACLD_FEATURE_GREEN_AP := y
  82. endif
  83. #Flag to enable Fast Transition (11r) feature
  84. CONFIG_QCOM_VOWIFI_11R := y
  85. ifneq ($(CONFIG_QCA_CLD_WLAN),)
  86. ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_ICNSS)))
  87. #Flag to enable Protected Managment Frames (11w) feature
  88. CONFIG_WLAN_FEATURE_11W := y
  89. #Flag to enable LTE CoEx feature
  90. CONFIG_QCOM_LTE_COEX := y
  91. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  92. #Flag to enable LPSS feature
  93. CONFIG_WLAN_FEATURE_LPSS := y
  94. endif
  95. endif
  96. endif
  97. #Flag to enable Protected Managment Frames (11w) feature
  98. ifeq ($(CONFIG_ROME_IF),usb)
  99. CONFIG_WLAN_FEATURE_11W := y
  100. endif
  101. ifeq ($(CONFIG_ROME_IF),sdio)
  102. CONFIG_WLAN_FEATURE_11W := y
  103. endif
  104. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  105. #Flag to enable NAN
  106. CONFIG_QCACLD_FEATURE_NAN := y
  107. endif
  108. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  109. #Flag to enable NAN Data path
  110. CONFIG_WLAN_FEATURE_NAN_DATAPATH := y
  111. endif
  112. #Flag to enable Linux QCMBR feature as default feature
  113. ifeq ($(CONFIG_ROME_IF),usb)
  114. CONFIG_LINUX_QCMBR :=y
  115. endif
  116. CONFIG_MPC_UT_FRAMEWORK := y
  117. #Flag to enable offload packets feature
  118. CONFIG_WLAN_OFFLOAD_PACKETS := y
  119. #enable TSF get feature
  120. CONFIG_WLAN_SYNC_TSF := y
  121. #Flag to enable memdump feature
  122. CONFIG_WLAN_FEATURE_MEMDUMP := n
  123. #Flag to enable Fast Path feature
  124. CONFIG_WLAN_FASTPATH := y
  125. # Flag to enable NAPI
  126. CONFIG_WLAN_NAPI := y
  127. CONFIG_WLAN_NAPI_DEBUG := n
  128. # Flag to enable FW based TX Flow control
  129. ifeq ($(CONFIG_CNSS_EOS),y)
  130. CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
  131. else
  132. CONFIG_WLAN_TX_FLOW_CONTROL_V2 := n
  133. endif
  134. # Flag to enable LRO (Large Receive Offload)
  135. ifeq ($(CONFIG_CNSS_EOS), y)
  136. ifeq ($(CONFIG_INET_LRO), y)
  137. CONFIG_WLAN_LRO := y
  138. else
  139. CONFIG_WLAN_LRO := n
  140. endif
  141. endif
  142. ifeq ($(CONFIG_ROME_IF), snoc)
  143. CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
  144. endif
  145. # Flag to enable LFR Subnet Detection
  146. CONFIG_LFR_SUBNET_DETECTION := y
  147. # Flag to enable MCC to SCC switch feature
  148. CONFIG_MCC_TO_SCC_SWITCH := y
  149. endif
  150. # If not set, assume, Common driver is with in the build tree
  151. WLAN_COMMON_ROOT ?= qca-wifi-host-cmn
  152. WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
  153. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  154. CONFIG_QCOM_ESE := y
  155. endif
  156. # Feature flags which are not (currently) configurable via Kconfig
  157. #Whether to build debug version
  158. BUILD_DEBUG_VERSION := 1
  159. #Enable this flag to build driver in diag version
  160. BUILD_DIAG_VERSION := 1
  161. #Do we panic on bug? default is to warn
  162. PANIC_ON_BUG := 1
  163. #Enable OL debug and wmi unified functions
  164. CONFIG_ATH_PERF_PWR_OFFLOAD := 1
  165. #Disable packet log
  166. CONFIG_REMOVE_PKT_LOG := 0
  167. #Enable 11AC TX
  168. ifeq ($(CONFIG_ROME_IF),pci)
  169. CONFIG_ATH_11AC_TXCOMPACT := 1
  170. endif
  171. ifeq ($(CONFIG_ROME_IF),usb)
  172. CONFIG_ATH_11AC_TXCOMPACT := 0
  173. endif
  174. #Enable OS specific IRQ abstraction
  175. CONFIG_ATH_SUPPORT_SHARED_IRQ := 1
  176. #Enable message based HIF instead of RAW access in BMI
  177. ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
  178. CONFIG_HIF_MESSAGE_BASED := 0
  179. else
  180. CONFIG_HIF_MESSAGE_BASED := 1
  181. endif
  182. #Enable PCI specific APIS (dma, etc)
  183. ifeq ($(CONFIG_ROME_IF),pci)
  184. CONFIG_HIF_PCI := 1
  185. endif
  186. #Enable pci read/write config functions
  187. ifeq ($(CONFIG_ROME_IF),pci)
  188. CONFIG_ATH_PCI := 1
  189. endif
  190. ifeq ($(CONFIG_ROME_IF),snoc)
  191. CONFIG_HIF_SNOC:= 1
  192. endif
  193. ifeq ($(CONFIG_ROME_IF),usb)
  194. #CONFIG_ATH_PCI := 1
  195. endif
  196. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  197. #Enable IBSS support on CLD
  198. CONFIG_QCA_IBSS_SUPPORT := 1
  199. endif
  200. #Enable power management suspend/resume functionality to PCI
  201. CONFIG_ATH_BUS_PM := 1
  202. #Enable FLOWMAC module support
  203. CONFIG_ATH_SUPPORT_FLOWMAC_MODULE := 0
  204. #Enable spectral support
  205. CONFIG_ATH_SUPPORT_SPECTRAL := 0
  206. #Enable HOST statistics support
  207. CONFIG_SUPPORT_HOST_STATISTICS := 0
  208. #Enable WDI Event support
  209. CONFIG_WDI_EVENT_ENABLE := 1
  210. #Endianess selection
  211. CONFIG_LITTLE_ENDIAN := 1
  212. #Enable TX reclaim support
  213. CONFIG_TX_CREDIT_RECLAIM_SUPPORT := 0
  214. #Enable FTM support
  215. CONFIG_QCA_WIFI_FTM := 1
  216. #Enable Checksum Offload
  217. CONFIG_CHECKSUM_OFFLOAD := 1
  218. #Enable GTK offload
  219. CONFIG_GTK_OFFLOAD := 1
  220. #Enable EXT WOW
  221. ifeq ($(CONFIG_ROME_IF),pci)
  222. CONFIG_EXT_WOW := 1
  223. endif
  224. #Set this to 1 to catch erroneous Target accesses during debug.
  225. CONFIG_ATH_PCIE_ACCESS_DEBUG := 0
  226. #Enable IPA offload
  227. ifeq ($(CONFIG_IPA), y)
  228. CONFIG_IPA_OFFLOAD := 1
  229. endif
  230. #Enable Signed firmware support for split binary format
  231. CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := 0
  232. #Enable single firmware binary format
  233. CONFIG_QCA_SINGLE_BINARY_SUPPORT := 0
  234. #Enable collecting target RAM dump after kernel panic
  235. CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := 1
  236. #Flag to enable/disable secure firmware feature
  237. CONFIG_FEATURE_SECURE_FIRMWARE := 0
  238. #Flag to enable Stats Ext implementation
  239. CONFIG_FEATURE_STATS_EXT := 1
  240. ifeq ($(CONFIG_CFG80211),y)
  241. HAVE_CFG80211 := 1
  242. else
  243. ifeq ($(CONFIG_CFG80211),m)
  244. HAVE_CFG80211 := 1
  245. else
  246. HAVE_CFG80211 := 0
  247. endif
  248. endif
  249. ############ UAPI ############
  250. UAPI_DIR := uapi
  251. UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux
  252. ############ COMMON ############
  253. COMMON_DIR := core/common
  254. COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR)
  255. ############ HDD ############
  256. HDD_DIR := core/hdd
  257. HDD_INC_DIR := $(HDD_DIR)/inc
  258. HDD_SRC_DIR := $(HDD_DIR)/src
  259. HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
  260. -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
  261. HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
  262. $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
  263. $(HDD_SRC_DIR)/wlan_hdd_debugfs.o \
  264. $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \
  265. $(HDD_SRC_DIR)/wlan_hdd_ftm.o \
  266. $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
  267. $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \
  268. $(HDD_SRC_DIR)/wlan_hdd_main.o \
  269. $(HDD_SRC_DIR)/wlan_hdd_ocb.o \
  270. $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
  271. $(HDD_SRC_DIR)/wlan_hdd_power.o \
  272. $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \
  273. $(HDD_SRC_DIR)/wlan_hdd_scan.o \
  274. $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
  275. $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
  276. $(HDD_SRC_DIR)/wlan_hdd_trace.o \
  277. $(HDD_SRC_DIR)/wlan_hdd_wext.o \
  278. $(HDD_SRC_DIR)/wlan_hdd_wmm.o \
  279. $(HDD_SRC_DIR)/wlan_hdd_wowl.o
  280. ifeq ($(CONFIG_WLAN_LRO), y)
  281. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o
  282. endif
  283. ifeq ($(CONFIG_WLAN_NAPI), y)
  284. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o
  285. endif
  286. ifeq ($(CONFIG_IPA_OFFLOAD), 1)
  287. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o
  288. endif
  289. ifeq ($(HAVE_CFG80211),1)
  290. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
  291. $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o \
  292. $(HDD_SRC_DIR)/wlan_hdd_stats.o \
  293. $(HDD_SRC_DIR)/wlan_hdd_p2p.o
  294. endif
  295. ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
  296. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_green_ap.o
  297. endif
  298. ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
  299. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o
  300. endif
  301. ifeq ($(CONFIG_QCOM_TDLS),y)
  302. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
  303. endif
  304. ifeq ($(CONFIG_WLAN_SYNC_TSF),y)
  305. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o
  306. endif
  307. ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
  308. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o
  309. endif
  310. ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
  311. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_memdump.o
  312. endif
  313. ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
  314. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o
  315. endif
  316. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  317. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o
  318. endif
  319. ########### HOST DIAG LOG ###########
  320. HOST_DIAG_LOG_DIR := core/utils/host_diag_log
  321. HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc
  322. HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src
  323. HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
  324. -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
  325. HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
  326. ############ EPPING ############
  327. EPPING_DIR := core/utils/epping
  328. EPPING_INC_DIR := $(EPPING_DIR)/inc
  329. EPPING_SRC_DIR := $(EPPING_DIR)/src
  330. EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR)
  331. EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \
  332. $(EPPING_SRC_DIR)/epping_txrx.o \
  333. $(EPPING_SRC_DIR)/epping_tx.o \
  334. $(EPPING_SRC_DIR)/epping_rx.o \
  335. $(EPPING_SRC_DIR)/epping_helper.o \
  336. ############ MAC ############
  337. MAC_DIR := core/mac
  338. MAC_INC_DIR := $(MAC_DIR)/inc
  339. MAC_SRC_DIR := $(MAC_DIR)/src
  340. MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
  341. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
  342. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
  343. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
  344. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \
  345. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan
  346. MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfg_api.o \
  347. $(MAC_SRC_DIR)/cfg/cfg_debug.o \
  348. $(MAC_SRC_DIR)/cfg/cfg_param_name.o \
  349. $(MAC_SRC_DIR)/cfg/cfg_proc_msg.o \
  350. $(MAC_SRC_DIR)/cfg/cfg_send_msg.o
  351. MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o
  352. MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
  353. $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \
  354. $(MAC_SRC_DIR)/pe/lim/lim_api.o \
  355. $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \
  356. $(MAC_SRC_DIR)/pe/lim/lim_debug.o \
  357. $(MAC_SRC_DIR)/pe/lim/lim_ft.o \
  358. $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o \
  359. $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \
  360. $(MAC_SRC_DIR)/pe/lim/lim_p2p.o \
  361. $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \
  362. $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \
  363. $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \
  364. $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \
  365. $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \
  366. $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \
  367. $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \
  368. $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \
  369. $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \
  370. $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \
  371. $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \
  372. $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \
  373. $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \
  374. $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \
  375. $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \
  376. $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \
  377. $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \
  378. $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \
  379. $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \
  380. $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \
  381. $(MAC_SRC_DIR)/pe/lim/lim_ser_des_utils.o \
  382. $(MAC_SRC_DIR)/pe/lim/lim_session.o \
  383. $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \
  384. $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \
  385. $(MAC_SRC_DIR)/pe/lim/lim_sta_hash_api.o \
  386. $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \
  387. $(MAC_SRC_DIR)/pe/lim/lim_trace.o \
  388. $(MAC_SRC_DIR)/pe/lim/lim_utils.o
  389. ifeq ($(CONFIG_QCOM_TDLS),y)
  390. MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o
  391. endif
  392. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  393. MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o
  394. endif
  395. ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
  396. MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \
  397. $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \
  398. $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \
  399. $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \
  400. $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o
  401. endif
  402. MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \
  403. $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \
  404. $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \
  405. $(MAC_SRC_DIR)/pe/sch/sch_debug.o \
  406. $(MAC_SRC_DIR)/pe/sch/sch_message.o
  407. MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o
  408. MAC_OBJS := $(MAC_CFG_OBJS) \
  409. $(MAC_DPH_OBJS) \
  410. $(MAC_LIM_OBJS) \
  411. $(MAC_SCH_OBJS) \
  412. $(MAC_RRM_OBJS) \
  413. $(MAC_NDP_OBJS)
  414. ############ SAP ############
  415. SAP_DIR := core/sap
  416. SAP_INC_DIR := $(SAP_DIR)/inc
  417. SAP_SRC_DIR := $(SAP_DIR)/src
  418. SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
  419. -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
  420. SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \
  421. $(SAP_SRC_DIR)/sap_ch_select.o \
  422. $(SAP_SRC_DIR)/sap_fsm.o \
  423. $(SAP_SRC_DIR)/sap_module.o
  424. ############ DFS ############ 350
  425. DFS_DIR := $(SAP_DIR)/dfs
  426. DFS_INC_DIR := $(DFS_DIR)/inc
  427. DFS_SRC_DIR := $(DFS_DIR)/src
  428. DFS_INC := -I$(WLAN_ROOT)/$(DFS_INC_DIR) \
  429. -I$(WLAN_ROOT)/$(DFS_SRC_DIR)
  430. DFS_OBJS := $(DFS_SRC_DIR)/dfs_bindetects.o \
  431. $(DFS_SRC_DIR)/dfs.o \
  432. $(DFS_SRC_DIR)/dfs_debug.o\
  433. $(DFS_SRC_DIR)/dfs_fcc_bin5.o\
  434. $(DFS_SRC_DIR)/dfs_init.o\
  435. $(DFS_SRC_DIR)/dfs_misc.o\
  436. $(DFS_SRC_DIR)/dfs_nol.o\
  437. $(DFS_SRC_DIR)/dfs_phyerr_tlv.o\
  438. $(DFS_SRC_DIR)/dfs_process_phyerr.o\
  439. $(DFS_SRC_DIR)/dfs_process_radarevent.o\
  440. $(DFS_SRC_DIR)/dfs_staggered.o
  441. ############ SME ############
  442. SME_DIR := core/sme
  443. SME_INC_DIR := $(SME_DIR)/inc
  444. SME_SRC_DIR := $(SME_DIR)/src
  445. SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
  446. -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
  447. SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \
  448. $(SME_SRC_DIR)/csr/csr_api_scan.o \
  449. $(SME_SRC_DIR)/csr/csr_cmd_process.o \
  450. $(SME_SRC_DIR)/csr/csr_link_list.o \
  451. $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \
  452. $(SME_SRC_DIR)/csr/csr_util.o \
  453. ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
  454. SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \
  455. $(SME_SRC_DIR)/csr/csr_host_scan_roam.o
  456. endif
  457. ifeq ($(CONFIG_QCOM_TDLS),y)
  458. SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_tdls_process.o
  459. endif
  460. SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
  461. SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
  462. $(SME_SRC_DIR)/common/sme_ft_api.o \
  463. $(SME_SRC_DIR)/common/sme_power_save.o \
  464. $(SME_SRC_DIR)/common/sme_trace.o
  465. SME_OEM_DATA_OBJS := $(SME_SRC_DIR)/oem_data/oem_data_api.o
  466. SME_P2P_OBJS = $(SME_SRC_DIR)/p2p/p2p_api.o
  467. SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
  468. ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
  469. SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_api.o
  470. endif
  471. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  472. SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o
  473. endif
  474. SME_OBJS := $(SME_CMN_OBJS) \
  475. $(SME_CSR_OBJS) \
  476. $(SME_OEM_DATA_OBJS) \
  477. $(SME_P2P_OBJS) \
  478. $(SME_QOS_OBJS) \
  479. $(SME_RRM_OBJS) \
  480. $(SME_NAN_OBJS) \
  481. $(SME_NDP_OBJS)
  482. ############ NLINK ############
  483. NLINK_DIR := core/utils/nlink
  484. NLINK_INC_DIR := $(NLINK_DIR)/inc
  485. NLINK_SRC_DIR := $(NLINK_DIR)/src
  486. NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR)
  487. NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
  488. ############ PTT ############
  489. PTT_DIR := core/utils/ptt
  490. PTT_INC_DIR := $(PTT_DIR)/inc
  491. PTT_SRC_DIR := $(PTT_DIR)/src
  492. PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR)
  493. PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
  494. ############ WLAN_LOGGING ############
  495. WLAN_LOGGING_DIR := core/utils/logging
  496. WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc
  497. WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src
  498. WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR)
  499. WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o
  500. ############ SYS ############
  501. SYS_DIR := core/mac/src/sys
  502. SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
  503. -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
  504. -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
  505. -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
  506. SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
  507. SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
  508. SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
  509. $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \
  510. $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \
  511. $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \
  512. $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
  513. $(SYS_LEGACY_SRC_DIR)/utils/src/log_api.o \
  514. $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \
  515. $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \
  516. $(SYS_LEGACY_SRC_DIR)/utils/src/utils_api.o \
  517. $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o
  518. ############ Qca-wifi-host-cmn ############
  519. QDF_OS_DIR := qdf
  520. QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc
  521. QDF_OS_SRC_DIR := $(QDF_OS_DIR)/linux/src
  522. QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR)
  523. QDF_INC := -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \
  524. -I$(WLAN_COMMON_INC)/$(QDF_OS_SRC_DIR)
  525. QDF_OBJS := $(QDF_OBJ_DIR)/qdf_defer.o \
  526. $(QDF_OBJ_DIR)/qdf_event.o \
  527. $(QDF_OBJ_DIR)/qdf_list.o \
  528. $(QDF_OBJ_DIR)/qdf_lock.o \
  529. $(QDF_OBJ_DIR)/qdf_mc_timer.o \
  530. $(QDF_OBJ_DIR)/qdf_mem.o \
  531. $(QDF_OBJ_DIR)/qdf_nbuf.o \
  532. $(QDF_OBJ_DIR)/qdf_threads.o \
  533. $(QDF_OBJ_DIR)/qdf_trace.o
  534. ############ CDS (Connectivity driver services) ############
  535. CDS_DIR := core/cds
  536. CDS_INC_DIR := $(CDS_DIR)/inc
  537. CDS_SRC_DIR := $(CDS_DIR)/src
  538. CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \
  539. -I$(WLAN_ROOT)/$(CDS_SRC_DIR)
  540. CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \
  541. $(CDS_SRC_DIR)/cds_reg_service.o \
  542. $(CDS_SRC_DIR)/cds_mq.o \
  543. $(CDS_SRC_DIR)/cds_packet.o \
  544. $(CDS_SRC_DIR)/cds_regdomain.o \
  545. $(CDS_SRC_DIR)/cds_sched.o \
  546. $(CDS_SRC_DIR)/cds_concurrency.o \
  547. $(CDS_SRC_DIR)/cds_utils.o \
  548. $(CDS_SRC_DIR)/cds_mc_timer.o
  549. ########### BMI ###########
  550. BMI_DIR := core/bmi
  551. BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
  552. BMI_OBJS := $(BMI_DIR)/src/bmi.o \
  553. $(BMI_DIR)/src/ol_fw.o \
  554. $(BMI_DIR)/src/ol_fw_common.o
  555. BMI_OBJS += $(BMI_DIR)/src/bmi_1.o
  556. ########### WMI ###########
  557. WMI_ROOT_DIR := wmi
  558. WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
  559. WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
  560. WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
  561. WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
  562. WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
  563. $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
  564. $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
  565. $(WMI_OBJ_DIR)/wmi_unified_api.o \
  566. $(WMI_OBJ_DIR)/wmi_unified_non_tlv.o
  567. ########### FWLOG ###########
  568. FWLOG_DIR := core/utils/fwlog
  569. FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
  570. FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
  571. ############ TXRX ############
  572. TXRX_DIR := core/dp/txrx
  573. TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
  574. TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \
  575. $(TXRX_DIR)/ol_cfg.o \
  576. $(TXRX_DIR)/ol_rx.o \
  577. $(TXRX_DIR)/ol_rx_fwd.o \
  578. $(TXRX_DIR)/ol_txrx.o \
  579. $(TXRX_DIR)/ol_rx_defrag.o \
  580. $(TXRX_DIR)/ol_tx_desc.o \
  581. $(TXRX_DIR)/ol_tx.o \
  582. $(TXRX_DIR)/ol_rx_reorder_timeout.o \
  583. $(TXRX_DIR)/ol_rx_reorder.o \
  584. $(TXRX_DIR)/ol_rx_pn.o \
  585. $(TXRX_DIR)/ol_tx_queue.o \
  586. $(TXRX_DIR)/ol_txrx_peer_find.o \
  587. $(TXRX_DIR)/ol_txrx_event.o \
  588. $(TXRX_DIR)/ol_txrx_encap.o \
  589. $(TXRX_DIR)/ol_tx_send.o
  590. ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
  591. TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
  592. endif
  593. ############ OL ############
  594. OL_DIR := core/dp/ol
  595. OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
  596. ############ CDP ############
  597. CDP_ROOT_DIR := dp
  598. CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
  599. CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
  600. ############ PKTLOG ############
  601. PKTLOG_DIR := core/utils/pktlog
  602. PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
  603. PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
  604. $(PKTLOG_DIR)/pktlog_internal.o \
  605. $(PKTLOG_DIR)/linux_ac.o
  606. ############ HTT ############
  607. HTT_DIR := core/dp/htt
  608. HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
  609. HTT_OBJS := $(HTT_DIR)/htt_tx.o \
  610. $(HTT_DIR)/htt.o \
  611. $(HTT_DIR)/htt_t2h.o \
  612. $(HTT_DIR)/htt_h2t.o \
  613. $(HTT_DIR)/htt_fw_stats.o \
  614. $(HTT_DIR)/htt_rx.o
  615. ############## HTC ##########
  616. HTC_DIR := htc
  617. HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
  618. HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
  619. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
  620. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
  621. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
  622. ########### HIF ###########
  623. HIF_DIR := hif
  624. HIF_CE_DIR := $(HIF_DIR)/src/ce
  625. HIF_CNSS_STUB_DIR := $(HIF_DIR)/src/icnss_stub
  626. HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
  627. HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
  628. HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
  629. HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
  630. -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src \
  631. -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR) \
  632. -I$(WLAN_COMMON_INC)/$(HIF_CNSS_STUB_DIR)
  633. ifeq ($(CONFIG_HIF_PCI), 1)
  634. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  635. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
  636. endif
  637. ifeq ($(CONFIG_HIF_SNOC), 1)
  638. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  639. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
  640. endif
  641. HIF_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
  642. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o \
  643. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
  644. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
  645. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
  646. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
  647. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
  648. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o \
  649. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
  650. ifneq ($(CONFIG_ICNSS), y)
  651. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CNSS_STUB_DIR)/icnss_stub.o
  652. endif
  653. ifeq ($(CONFIG_WLAN_NAPI), y)
  654. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
  655. endif
  656. HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
  657. HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
  658. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
  659. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
  660. ifeq ($(CONFIG_HIF_PCI), 1)
  661. HIF_OBJS += $(HIF_PCIE_OBJS)
  662. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
  663. endif
  664. ifeq ($(CONFIG_HIF_SNOC), 1)
  665. HIF_OBJS += $(HIF_SNOC_OBJS)
  666. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
  667. endif
  668. ############ WMA ############
  669. WMA_DIR := core/wma
  670. WMA_INC_DIR := $(WMA_DIR)/inc
  671. WMA_SRC_DIR := $(WMA_DIR)/src
  672. WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
  673. -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
  674. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  675. WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
  676. endif
  677. WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \
  678. $(WMA_SRC_DIR)/wma_scan_roam.o \
  679. $(WMA_SRC_DIR)/wma_dev_if.o \
  680. $(WMA_SRC_DIR)/wma_mgmt.o \
  681. $(WMA_SRC_DIR)/wma_power.o \
  682. $(WMA_SRC_DIR)/wma_data.o \
  683. $(WMA_SRC_DIR)/wma_utils.o \
  684. $(WMA_SRC_DIR)/wma_features.o \
  685. $(WMA_SRC_DIR)/wma_dfs_interface.o \
  686. $(WMA_SRC_DIR)/wma_ocb.o \
  687. $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
  688. $(WMA_NDP_OBJS)
  689. ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
  690. WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
  691. endif
  692. ############## PLD ##########
  693. PLD_DIR := core/pld
  694. PLD_INC_DIR := $(PLD_DIR)/inc
  695. PLD_SRC_DIR := $(PLD_DIR)/src
  696. PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
  697. -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
  698. PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
  699. ifeq ($(CONFIG_PCI), y)
  700. PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
  701. endif
  702. ifeq ($(CONFIG_ICNSS),y)
  703. PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
  704. endif
  705. TARGET_INC := -I$(WLAN_ROOT)/target/inc
  706. LINUX_INC := -Iinclude/linux
  707. INCS := $(HDD_INC) \
  708. $(EPPING_INC) \
  709. $(LINUX_INC) \
  710. $(MAC_INC) \
  711. $(SAP_INC) \
  712. $(SME_INC) \
  713. $(SYS_INC) \
  714. $(QDF_INC) \
  715. $(CDS_INC) \
  716. $(DFS_INC)
  717. INCS += $(WMA_INC) \
  718. $(UAPI_INC) \
  719. $(COMMON_INC) \
  720. $(WMI_INC) \
  721. $(FWLOG_INC) \
  722. $(TXRX_INC) \
  723. $(OL_INC) \
  724. $(CDP_INC) \
  725. $(PKTLOG_INC) \
  726. $(HTT_INC) \
  727. $(HTC_INC) \
  728. $(DFS_INC)
  729. INCS += $(HIF_INC) \
  730. $(BMI_INC)
  731. INCS += $(TARGET_INC)
  732. INCS += $(NLINK_INC) \
  733. $(PTT_INC) \
  734. $(WLAN_LOGGING_INC)
  735. INCS += $(PLD_INC)
  736. ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
  737. INCS += $(PKTLOG_INC)
  738. endif
  739. ifeq ($(BUILD_DIAG_VERSION), 1)
  740. INCS += $(HOST_DIAG_LOG_INC)
  741. endif
  742. OBJS := $(HDD_OBJS) \
  743. $(EPPING_OBJS) \
  744. $(MAC_OBJS) \
  745. $(SAP_OBJS) \
  746. $(SME_OBJS) \
  747. $(SYS_OBJS) \
  748. $(QDF_OBJS) \
  749. $(CDS_OBJS) \
  750. $(DFS_OBJS)
  751. OBJS += $(WMA_OBJS) \
  752. $(TXRX_OBJS) \
  753. $(WMI_OBJS) \
  754. $(FWLOG_OBJS) \
  755. $(HTC_OBJS) \
  756. $(DFS_OBJS)
  757. OBJS += $(HIF_OBJS) \
  758. $(BMI_OBJS) \
  759. $(HTT_OBJS)
  760. OBJS += $(WLAN_LOGGING_OBJS)
  761. OBJS += $(NLINK_OBJS)
  762. OBJS += $(PTT_OBJS)
  763. OBJS += $(PLD_OBJS)
  764. ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
  765. OBJS += $(PKTLOG_OBJS)
  766. endif
  767. ifeq ($(BUILD_DIAG_VERSION), 1)
  768. OBJS += $(HOST_DIAG_LOG_OBJS)
  769. endif
  770. EXTRA_CFLAGS += $(INCS)
  771. CDEFINES := -DANI_LITTLE_BYTE_ENDIAN \
  772. -DANI_LITTLE_BIT_ENDIAN \
  773. -DQC_WLAN_CHIPSET_QCA_CLD \
  774. -DDOT11F_LITTLE_ENDIAN_HOST \
  775. -DANI_COMPILER_TYPE_GCC \
  776. -DANI_OS_TYPE_ANDROID=6 \
  777. -DWLAN_PERF \
  778. -DPTT_SOCK_SVC_ENABLE \
  779. -Wall\
  780. -Werror\
  781. -D__linux__ \
  782. -DHAL_SELF_STA_PER_BSS=1 \
  783. -DFEATURE_WLAN_WAPI \
  784. -DFEATURE_OEM_DATA_SUPPORT\
  785. -DSOFTAP_CHANNEL_RANGE \
  786. -DWLAN_AP_STA_CONCURRENCY \
  787. -DFEATURE_WLAN_SCAN_PNO \
  788. -DWLAN_FEATURE_PACKET_FILTERING \
  789. -DWLAN_FEATURE_P2P_DEBUG \
  790. -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \
  791. -DWLANTL_DEBUG\
  792. -DWLAN_NS_OFFLOAD \
  793. -DWLAN_SOFTAP_VSTA_FEATURE \
  794. -DWLAN_FEATURE_GTK_OFFLOAD \
  795. -DWLAN_WAKEUP_EVENTS \
  796. -DFEATURE_WLAN_RA_FILTERING\
  797. -DWLAN_NL80211_TESTMODE \
  798. -DFEATURE_WLAN_LPHB \
  799. -DFEATURE_WLAN_PAL_TIMER_DISABLE \
  800. -DFEATURE_WLAN_PAL_MEM_DISABLE \
  801. -DQCA_SUPPORT_TX_THROTTLE \
  802. -DWMI_INTERFACE_EVENT_LOGGING \
  803. -DATH_SUPPORT_WAPI \
  804. -DWLAN_FEATURE_LINK_LAYER_STATS \
  805. -DWLAN_LOGGING_SOCK_SVC_ENABLE \
  806. -DFEATURE_WLAN_EXTSCAN \
  807. -DWLAN_FEATURE_MBSSID \
  808. -DCONFIG_160MHZ_SUPPORT \
  809. -DCONFIG_MCL
  810. ifeq ($(CONFIG_CNSS), y)
  811. ifeq ($(CONFIG_CNSS_SDIO), y)
  812. CDEFINES += -DCONFIG_PLD_SDIO_CNSS
  813. else
  814. CDEFINES += -DCONFIG_PLD_PCIE_CNSS
  815. endif
  816. endif
  817. ifeq ($(CONFIG_ICNSS), y)
  818. CDEFINES += -DCONFIG_PLD_SNOC_ICNSS
  819. endif
  820. ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
  821. CDEFINES += -DQCA_WIFI_3_0
  822. CDEFINES += -DQCA_WIFI_3_0_EMU
  823. endif
  824. ifeq (y,$(filter y,$(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  825. CDEFINES += -DQCA_WIFI_3_0_ADRASTEA
  826. CDEFINES += -DADRASTEA_SHADOW_REGISTERS
  827. CDEFINES += -DADRASTEA_RRI_ON_DDR
  828. endif
  829. ifeq ($(CONFIG_WLAN_FASTPATH), y)
  830. CDEFINES += -DWLAN_FEATURE_FASTPATH
  831. endif
  832. ifeq ($(CONFIG_FEATURE_DP_TRACE), y)
  833. CDEFINES += -DFEATURE_DP_TRACE
  834. endif
  835. ifeq ($(CONFIG_WLAN_NAPI), y)
  836. CDEFINES += -DFEATURE_NAPI
  837. ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
  838. CDEFINES += -DFEATURE_NAPI_DEBUG
  839. endif
  840. endif
  841. ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
  842. CDEFINES += -DMSM_PLATFORM
  843. endif
  844. CDEFINES += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
  845. ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
  846. CDEFINES += -DQCA_LL_TX_FLOW_CONTROL_V2
  847. CDEFINES += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
  848. else
  849. ifeq ($(CONFIG_ROME_IF),pci)
  850. CDEFINES += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
  851. endif
  852. endif
  853. ifneq ($(CONFIG_QCA_CLD_WLAN),)
  854. CDEFINES += -DWCN_PRONTO
  855. CDEFINES += -DWCN_PRONTO_V1
  856. endif
  857. ifeq ($(BUILD_DEBUG_VERSION),1)
  858. CDEFINES += -DWLAN_DEBUG \
  859. -DTRACE_RECORD \
  860. -DLIM_TRACE_RECORD \
  861. -DSME_TRACE_RECORD \
  862. -DHDD_TRACE_RECORD \
  863. -DPE_DEBUG_LOGW \
  864. -DPE_DEBUG_LOGE \
  865. -DDEBUG
  866. endif
  867. ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
  868. CDEFINES += -DTIMER_MANAGER
  869. CDEFINES += -DMEMORY_DEBUG
  870. endif
  871. ifeq ($(HAVE_CFG80211),1)
  872. CDEFINES += -DWLAN_FEATURE_P2P
  873. CDEFINES += -DWLAN_FEATURE_WFD
  874. ifeq ($(CONFIG_QCOM_VOWIFI_11R),y)
  875. CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211
  876. CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC
  877. endif
  878. endif
  879. ifeq ($(CONFIG_QCOM_ESE),y)
  880. CDEFINES += -DFEATURE_WLAN_ESE
  881. CDEFINES += -DQCA_COMPUTE_TX_DELAY
  882. CDEFINES += -DQCA_COMPUTE_TX_DELAY_PER_TID
  883. endif
  884. #normally, TDLS negative behavior is not needed
  885. ifeq ($(CONFIG_QCOM_TDLS),y)
  886. CDEFINES += -DFEATURE_WLAN_TDLS
  887. endif
  888. ifeq ($(CONFIG_QCACLD_WLAN_LFR3),y)
  889. CDEFINES += -DWLAN_FEATURE_ROAM_OFFLOAD
  890. endif
  891. ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
  892. CDEFINES += -DWLAN_FEATURE_HOST_ROAM
  893. endif
  894. ifeq ($(CONFIG_PRIMA_WLAN_OKC),y)
  895. CDEFINES += -DFEATURE_WLAN_OKC
  896. endif
  897. ifeq ($(CONFIG_PRIMA_WLAN_11AC_HIGH_TP),y)
  898. CDEFINES += -DWLAN_FEATURE_11AC_HIGH_TP
  899. endif
  900. ifeq ($(BUILD_DIAG_VERSION),1)
  901. CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT
  902. CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
  903. CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
  904. ifeq ($(CONFIG_HIF_PCI), 1)
  905. CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  906. endif
  907. endif
  908. ifeq ($(CONFIG_HIF_USB), 1)
  909. CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  910. CDEFINES += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
  911. CDEFINES += -DCONFIG_ATH_PCIE_MAX_PERF=0 -DCONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD=0 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0
  912. CDEFINES += -DQCA_TX_HTT2_SUPPORT
  913. endif
  914. # enable the MAC Address auto-generation feature
  915. CDEFINES += -DWLAN_AUTOGEN_MACADDR_FEATURE
  916. ifeq ($(CONFIG_WLAN_FEATURE_11W),y)
  917. CDEFINES += -DWLAN_FEATURE_11W
  918. endif
  919. ifeq ($(CONFIG_QCOM_LTE_COEX),y)
  920. CDEFINES += -DFEATURE_WLAN_CH_AVOID
  921. endif
  922. ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
  923. CDEFINES += -DWLAN_FEATURE_LPSS
  924. endif
  925. ifneq ($(TARGET_BUILD_VARIANT),user)
  926. CDEFINES += -DDESC_DUP_DETECT_DEBUG
  927. CDEFINES += -DDEBUG_RX_RING_BUFFER
  928. endif
  929. ifeq ($(PANIC_ON_BUG),1)
  930. CDEFINES += -DPANIC_ON_BUG
  931. endif
  932. ifeq ($(WLAN_OPEN_SOURCE), 1)
  933. CDEFINES += -DWLAN_OPEN_SOURCE
  934. endif
  935. ifeq ($(CONFIG_FEATURE_STATS_EXT), 1)
  936. CDEFINES += -DWLAN_FEATURE_STATS_EXT
  937. endif
  938. ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
  939. CDEFINES += -DWLAN_FEATURE_NAN
  940. endif
  941. ifeq ($(CONFIG_QCA_IBSS_SUPPORT), 1)
  942. CDEFINES += -DQCA_IBSS_SUPPORT
  943. endif
  944. #Enable OL debug and wmi unified functions
  945. ifeq ($(CONFIG_ATH_PERF_PWR_OFFLOAD), 1)
  946. CDEFINES += -DATH_PERF_PWR_OFFLOAD
  947. endif
  948. #Disable packet log
  949. ifeq ($(CONFIG_REMOVE_PKT_LOG), 1)
  950. CDEFINES += -DREMOVE_PKT_LOG
  951. endif
  952. #Enable 11AC TX
  953. ifeq ($(CONFIG_ATH_11AC_TXCOMPACT), 1)
  954. CDEFINES += -DATH_11AC_TXCOMPACT
  955. endif
  956. #Enable OS specific IRQ abstraction
  957. ifeq ($(CONFIG_ATH_SUPPORT_SHARED_IRQ), 1)
  958. CDEFINES += -DATH_SUPPORT_SHARED_IRQ
  959. endif
  960. #Enable message based HIF instead of RAW access in BMI
  961. ifeq ($(CONFIG_HIF_MESSAGE_BASED), 1)
  962. CDEFINES += -DHIF_MESSAGE_BASED
  963. endif
  964. #Enable PCI specific APIS (dma, etc)
  965. ifeq ($(CONFIG_HIF_PCI), 1)
  966. CDEFINES += -DHIF_PCI
  967. endif
  968. ifeq ($(CONFIG_HIF_SNOC), 1)
  969. CDEFINES += -DHIF_SNOC
  970. endif
  971. #Enable USB specific APIS
  972. ifeq ($(CONFIG_HIF_USB), 1)
  973. CDEFINES += -DHIF_USB
  974. CDEFINES += -DCONFIG_HL_SUPPORT
  975. endif
  976. #Enable FW logs through ini
  977. CDEFINES += -DCONFIG_FW_LOGS_BASED_ON_INI
  978. #Enable pci read/write config functions
  979. ifeq ($(CONFIG_ATH_PCI), 1)
  980. CDEFINES += -DATH_PCI
  981. endif
  982. #Enable power management suspend/resume functionality
  983. ifeq ($(CONFIG_ATH_BUS_PM), 1)
  984. CDEFINES += -DATH_BUS_PM
  985. endif
  986. #Enable FLOWMAC module support
  987. ifeq ($(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE), 1)
  988. CDEFINES += -DATH_SUPPORT_FLOWMAC_MODULE
  989. endif
  990. #Enable spectral support
  991. ifeq ($(CONFIG_ATH_SUPPORT_SPECTRAL), 1)
  992. CDEFINES += -DATH_SUPPORT_SPECTRAL
  993. endif
  994. #Enable WDI Event support
  995. ifeq ($(CONFIG_WDI_EVENT_ENABLE), 1)
  996. CDEFINES += -DWDI_EVENT_ENABLE
  997. endif
  998. #Endianess selection
  999. ifeq ($(CONFIG_LITTLE_ENDIAN), 1)
  1000. AH_LITTLE_ENDIAN=1234
  1001. CDEFINES += -DAH_BYTE_ORDER=$(AH_LITTLE_ENDIAN)
  1002. else
  1003. AH_BIG_ENDIAN=4321
  1004. CDEFINES += -DAH_BYTE_ORDER=$(AH_BIG_ENDIAN)
  1005. CDEFINES += -DBIG_ENDIAN_HOST
  1006. endif
  1007. #Enable TX reclaim support
  1008. ifeq ($(CONFIG_TX_CREDIT_RECLAIM_SUPPORT), 1)
  1009. CDEFINES += -DTX_CREDIT_RECLAIM_SUPPORT
  1010. endif
  1011. #Enable FTM support
  1012. ifeq ($(CONFIG_QCA_WIFI_FTM), 1)
  1013. CDEFINES += -DQCA_WIFI_FTM
  1014. endif
  1015. #Enable Checksum Offload support
  1016. ifeq ($(CONFIG_CHECKSUM_OFFLOAD), 1)
  1017. CDEFINES += -DCHECKSUM_OFFLOAD
  1018. endif
  1019. #Enable Checksum Offload support
  1020. ifeq ($(CONFIG_IPA_OFFLOAD), 1)
  1021. CDEFINES += -DIPA_OFFLOAD
  1022. endif
  1023. ifneq ($(CONFIG_ARCH_MDM9630), y)
  1024. ifeq ($(CONFIG_ARCH_MDM9640), y)
  1025. CDEFINES += -DQCA_CONFIG_SMP
  1026. endif
  1027. endif
  1028. #Enable GTK Offload
  1029. ifeq ($(CONFIG_GTK_OFFLOAD), 1)
  1030. CDEFINES += -DWLAN_FEATURE_GTK_OFFLOAD
  1031. CDEFINES += -DIGTK_OFFLOAD
  1032. endif
  1033. #Enable GTK Offload
  1034. ifeq ($(CONFIG_EXT_WOW), 1)
  1035. CDEFINES += -DWLAN_FEATURE_EXTWOW_SUPPORT
  1036. endif
  1037. #Mark it as SMP Kernel
  1038. ifeq ($(CONFIG_SMP),y)
  1039. CDEFINES += -DQCA_CONFIG_SMP
  1040. endif
  1041. ifeq ($(CONFIG_WLAN_FEATURE_RX_WAKELOCK), y)
  1042. CDEFINES += -DWLAN_FEATURE_HOLD_RX_WAKELOCK
  1043. endif
  1044. #Enable Channel Matrix restriction for all Rome only targets
  1045. ifneq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
  1046. CDEFINES += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
  1047. endif
  1048. #features specific to mobile router use case
  1049. ifeq ($(CONFIG_MOBILE_ROUTER), y)
  1050. #enable MCC TO SCC switch
  1051. CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
  1052. #enable wlan auto shutdown feature
  1053. CDEFINES += -DFEATURE_WLAN_AUTO_SHUTDOWN
  1054. #enable for MBSSID
  1055. CDEFINES += -DWLAN_FEATURE_MBSSID
  1056. #enable AP-AP ACS Optimization
  1057. CDEFINES += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
  1058. #Enable 4address scheme
  1059. CDEFINES += -DFEATURE_WLAN_STA_4ADDR_SCHEME
  1060. #Disable STA-AP Mode DFS support
  1061. CDEFINES += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
  1062. #Enable OBSS feature
  1063. CDEFINES += -DQCA_HT_2040_COEX
  1064. #Disable HT40 in 2.4GHZ STA mode
  1065. CDEFINES += -DQCA_HT_20_24G_STA_ONLY
  1066. else #CONFIG_MOBILE_ROUTER
  1067. #Open P2P device interface only for non-Mobile router use cases
  1068. CDEFINES += -DWLAN_OPEN_P2P_INTERFACE
  1069. #Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
  1070. CDEFINES += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
  1071. endif #CONFIG_MOBILE_ROUTER
  1072. #Green AP feature
  1073. ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
  1074. CDEFINES += -DFEATURE_GREEN_AP
  1075. endif
  1076. #Enable RX Full re-order OL feature only "LL and NON-MDM9630 platform"
  1077. ifneq ($(CONFIG_ARCH_MDM9630), y)
  1078. ifeq ($(CONFIG_HIF_PCI), 1)
  1079. CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
  1080. endif
  1081. endif
  1082. #enable Code swap feature
  1083. ifeq ($(CONFIG_CNSS), y)
  1084. ifeq ($(CONFIG_HIF_PCI), 1)
  1085. CDEFINES += -DCONFIG_CODESWAP_FEATURE
  1086. endif
  1087. endif
  1088. #Enable Signed firmware support for split binary format
  1089. ifeq ($(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT), 1)
  1090. CDEFINES += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
  1091. endif
  1092. #Enable single firmware binary format
  1093. ifeq ($(CONFIG_QCA_SINGLE_BINARY_SUPPORT), 1)
  1094. CDEFINES += -DQCA_SINGLE_BINARY_SUPPORT
  1095. endif
  1096. #Enable collecting target RAM dump after kernel panic
  1097. ifeq ($(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC), 1)
  1098. CDEFINES += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
  1099. endif
  1100. #Enable/disable secure firmware feature
  1101. ifeq ($(CONFIG_FEATURE_SECURE_FIRMWARE), 1)
  1102. CDEFINES += -DFEATURE_SECURE_FIRMWARE
  1103. endif
  1104. ifeq ($(CONFIG_ATH_PCIE_ACCESS_DEBUG), 1)
  1105. CDEFINES += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
  1106. endif
  1107. # Some kernel include files are being moved. Check to see if
  1108. # the old version of the files are present
  1109. ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/mach-msm/include/mach/msm_smd.h),)
  1110. CDEFINES += -DEXISTS_MSM_SMD
  1111. endif
  1112. ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/mach-msm/include/mach/msm_smsm.h),)
  1113. CDEFINES += -DEXISTS_MSM_SMSM
  1114. endif
  1115. # Enable feature support fo Linux version QCMBR
  1116. ifeq ($(CONFIG_LINUX_QCMBR),y)
  1117. CDEFINES += -DLINUX_QCMBR
  1118. endif
  1119. # Enable featue sync tsf between multi devices
  1120. ifeq ($(CONFIG_WLAN_SYNC_TSF), y)
  1121. CDEFINES += -DWLAN_FEATURE_TSF
  1122. endif
  1123. # Enable full rx re-order offload for adrastea
  1124. ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1125. CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
  1126. endif
  1127. # Enable athdiag procfs debug support for adrastea
  1128. ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1129. CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  1130. endif
  1131. # Enable 11AC TX compact feature for adrastea
  1132. ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1133. CDEFINES += -DATH_11AC_TXCOMPACT
  1134. endif
  1135. # NOTE: CONFIG_64BIT_PADDR requires CONFIG_HELIUMPLUS
  1136. ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
  1137. CONFIG_HELIUMPLUS := y
  1138. CONFIG_64BIT_PADDR := y
  1139. CONFIG_FEATURE_TSO := y
  1140. CONFIG_FEATURE_TSO_DEBUG := y
  1141. ifeq ($(CONFIG_HELIUMPLUS),y)
  1142. CDEFINES += -DHELIUMPLUS_PADDR64
  1143. CDEFINES += -DHELIUMPLUS
  1144. CDEFINES += -DAR900B
  1145. ifeq ($(CONFIG_64BIT_PADDR),y)
  1146. CDEFINES += -DHTT_PADDR64
  1147. endif
  1148. endif
  1149. endif
  1150. ifeq ($(CONFIG_FEATURE_TSO),y)
  1151. CDEFINES += -DFEATURE_TSO
  1152. endif
  1153. ifeq ($(CONFIG_FEATURE_TSO_DEBUG),y)
  1154. CDEFINES += -DFEATURE_TSO_DEBUG
  1155. endif
  1156. ifeq ($(CONFIG_WLAN_LRO), y)
  1157. CDEFINES += -DFEATURE_LRO
  1158. endif
  1159. ifeq ($(CONFIG_MOBILE_ROUTER), y)
  1160. CDEFINES += -DFEATURE_AP_MCC_CH_AVOIDANCE
  1161. endif
  1162. ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
  1163. CDEFINES += -DMPC_UT_FRAMEWORK
  1164. endif
  1165. ifeq ($(CONFIG_WLAN_OFFLOAD_PACKETS),y)
  1166. CDEFINES += -DWLAN_FEATURE_OFFLOAD_PACKETS
  1167. endif
  1168. ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
  1169. CDEFINES += -DWLAN_FEATURE_MEMDUMP
  1170. endif
  1171. ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
  1172. CDEFINES += -DFEATURE_LFR_SUBNET_DETECTION
  1173. endif
  1174. ifeq ($(CONFIG_MCC_TO_SCC_SWITCH), y)
  1175. CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
  1176. endif
  1177. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  1178. CDEFINES += -DWLAN_FEATURE_NAN_DATAPATH
  1179. endif
  1180. KBUILD_CPPFLAGS += $(CDEFINES)
  1181. # Currently, for versions of gcc which support it, the kernel Makefile
  1182. # is disabling the maybe-uninitialized warning. Re-enable it for the
  1183. # WLAN driver. Note that we must use EXTRA_CFLAGS here so that it
  1184. # will override the kernel settings.
  1185. ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y)
  1186. EXTRA_CFLAGS += -Wmaybe-uninitialized
  1187. endif
  1188. # Module information used by KBuild framework
  1189. obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
  1190. $(MODNAME)-y := $(OBJS)