Kbuild 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482
  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. ifeq ($(CONFIG_CNSS_QCA6290), y)
  9. CONFIG_LITHIUM := y
  10. CONFIG_WLAN_FEATURE_11AX := y
  11. endif
  12. ifeq ($(CONFIG_CLD_HL_SDIO_CORE), y)
  13. CONFIG_QCA_WIFI_SDIO := 1
  14. endif
  15. ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
  16. CONFIG_ROME_IF = sdio
  17. endif
  18. ifdef CONFIG_ICNSS
  19. CONFIG_ROME_IF = snoc
  20. endif
  21. ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2)))
  22. ifndef CONFIG_ROME_IF
  23. #use pci as default interface
  24. CONFIG_ROME_IF = pci
  25. endif
  26. endif
  27. ifeq ($(KERNEL_BUILD),1)
  28. # These are provided in external module based builds
  29. # Need to explicitly define for Kernel-based builds
  30. MODNAME := wlan
  31. WLAN_ROOT := drivers/staging/qcacld-3.0
  32. WLAN_COMMON_ROOT := ../qca-wifi-host-cmn
  33. WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
  34. endif
  35. # Make WLAN as open-source driver by default
  36. WLAN_OPEN_SOURCE := 1
  37. ifeq ($(KERNEL_BUILD), 0)
  38. # These are configurable via Kconfig for kernel-based builds
  39. # Need to explicitly configure for Android-based builds
  40. ifneq ($(DEVELOPER_DISABLE_BUILD_TIMESTAMP),y)
  41. ifneq ($(WLAN_DISABLE_BUILD_TAG),y)
  42. CONFIG_BUILD_TAG := y
  43. endif
  44. endif
  45. ifeq ($(CONFIG_ARCH_MDM9630), y)
  46. CONFIG_MOBILE_ROUTER := y
  47. endif
  48. ifeq ($(CONFIG_ARCH_MDM9640), y)
  49. CONFIG_MOBILE_ROUTER := y
  50. endif
  51. ifeq ($(CONFIG_ARCH_SDX20), y)
  52. CONFIG_MOBILE_ROUTER := y
  53. endif
  54. ifeq ($(CONFIG_ARCH_MSM8917), y)
  55. ifeq ($(CONFIG_ROME_IF), sdio)
  56. CONFIG_WLAN_SYNC_TSF_PLUS := y
  57. endif
  58. endif
  59. #Flag to enable Legacy Fast Roaming2(LFR2)
  60. CONFIG_QCACLD_WLAN_LFR2 := y
  61. #Flag to enable Legacy Fast Roaming3(LFR3)
  62. ifneq ($(CONFIG_ARCH_SDX20), y)
  63. CONFIG_QCACLD_WLAN_LFR3 := y
  64. endif
  65. # JB kernel has CPU enablement patches, so enable
  66. ifeq ($(CONFIG_ROME_IF),pci)
  67. CONFIG_PRIMA_WLAN_11AC_HIGH_TP := y
  68. endif
  69. ifeq ($(CONFIG_ROME_IF),usb)
  70. CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n
  71. endif
  72. ifeq ($(CONFIG_ROME_IF),sdio)
  73. CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n
  74. endif
  75. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  76. #Flag to enable TDLS feature
  77. CONFIG_QCOM_TDLS := y
  78. endif
  79. CONFIG_QCACLD_FEATURE_GREEN_AP := y
  80. ifeq ($(CONFIG_ARCH_MSM8998), y)
  81. CONFIG_QCACLD_FEATURE_METERING := y
  82. endif
  83. ifeq ($(CONFIG_ARCH_SDM660), y)
  84. CONFIG_QCACLD_FEATURE_METERING := y
  85. endif
  86. ifeq ($(CONFIG_ARCH_SDM630), y)
  87. CONFIG_QCACLD_FEATURE_METERING := y
  88. endif
  89. ifeq ($(CONFIG_ARCH_SDM845), y)
  90. CONFIG_QCACLD_FEATURE_METERING := y
  91. endif
  92. ifeq ($(CONFIG_ARCH_SDM670), y)
  93. CONFIG_QCACLD_FEATURE_METERING := y
  94. endif
  95. #Flag to enable Fast Transition (11r) feature
  96. CONFIG_QCOM_VOWIFI_11R := y
  97. #Flag to enable FILS Feature (11ai)
  98. CONFIG_WLAN_FEATURE_FILS := y
  99. ifneq ($(CONFIG_QCA_CLD_WLAN),)
  100. ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2) $(CONFIG_ICNSS)))
  101. #Flag to enable Protected Managment Frames (11w) feature
  102. CONFIG_WLAN_FEATURE_11W := y
  103. #Flag to enable LTE CoEx feature
  104. CONFIG_QCOM_LTE_COEX := y
  105. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  106. #Flag to enable LPSS feature
  107. CONFIG_WLAN_FEATURE_LPSS := y
  108. endif
  109. endif
  110. endif
  111. #Flag to enable Protected Managment Frames (11w) feature
  112. ifeq ($(CONFIG_ROME_IF),usb)
  113. CONFIG_WLAN_FEATURE_11W := y
  114. endif
  115. ifeq ($(CONFIG_ROME_IF),sdio)
  116. CONFIG_WLAN_FEATURE_11W := y
  117. endif
  118. #Flag to enable the tx desc sanity check
  119. ifeq ($(CONFIG_ROME_IF),usb)
  120. CONFIG_QCA_TXDESC_SANITY_CHECKS := y
  121. endif
  122. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  123. #Flag to enable NAN
  124. CONFIG_QCACLD_FEATURE_NAN := y
  125. endif
  126. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  127. #Flag to enable NAN Data path
  128. CONFIG_WLAN_FEATURE_NAN_DATAPATH := y
  129. CONFIG_NAN_CONVERGENCE := y
  130. endif
  131. #Flag to enable Linux QCMBR feature as default feature
  132. ifeq ($(CONFIG_ROME_IF),usb)
  133. CONFIG_LINUX_QCMBR :=y
  134. endif
  135. CONFIG_MPC_UT_FRAMEWORK := y
  136. #Flag to enable offload packets feature
  137. CONFIG_WLAN_OFFLOAD_PACKETS := y
  138. #enable TSF get feature
  139. CONFIG_WLAN_SYNC_TSF := y
  140. #Enable DSRC feature
  141. ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
  142. CONFIG_WLAN_FEATURE_DSRC := y
  143. endif
  144. ifneq ($(CONFIG_ROME_IF),sdio)
  145. #Flag to enable DISA
  146. CONFIG_WLAN_FEATURE_DISA := y
  147. #Flag to enable FIPS
  148. CONFIG_WLAN_FEATURE_FIPS := y
  149. #Flag to enable SAE
  150. CONFIG_WLAN_FEATURE_SAE := y
  151. #Flag to enable Fast Path feature
  152. CONFIG_WLAN_FASTPATH := y
  153. # Flag to enable NAPI
  154. CONFIG_WLAN_NAPI := y
  155. CONFIG_WLAN_NAPI_DEBUG := n
  156. # Flag to enable FW based TX Flow control
  157. ifeq (y,$(findstring y,$(CONFIG_CNSS_EOS) $(CONFIG_LITHIUM)))
  158. CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
  159. else
  160. CONFIG_WLAN_TX_FLOW_CONTROL_V2 := n
  161. endif
  162. # Flag to enable LRO (Large Receive Offload)
  163. ifeq ($(CONFIG_INET_LRO), y)
  164. CONFIG_WLAN_LRO := y
  165. else
  166. CONFIG_WLAN_LRO := n
  167. endif
  168. endif
  169. ifeq ($(CONFIG_ROME_IF), snoc)
  170. CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
  171. endif
  172. # Flag to enable LFR Subnet Detection
  173. CONFIG_LFR_SUBNET_DETECTION := y
  174. # Flag to enable MCC to SCC switch feature
  175. CONFIG_MCC_TO_SCC_SWITCH := y
  176. endif
  177. # As per target team, build is done as follows:
  178. # Defconfig : build with default flags
  179. # Slub : defconfig + CONFIG_SLUB_DEBUG=y +
  180. # CONFIG_SLUB_DEBUG_ON=y + CONFIG_PAGE_POISONING=y
  181. # Perf : Using appropriate msmXXXX-perf_defconfig
  182. #
  183. # Shipment builds (user variants) should not have any debug feature
  184. # enabled. This is identified using 'TARGET_BUILD_VARIANT'. Slub builds
  185. # are identified using the CONFIG_SLUB_DEBUG_ON configuration. Since
  186. # there is no other way to identify defconfig builds, QCOMs internal
  187. # representation of perf builds (identified using the string 'perf'),
  188. # is used to identify if the build is a slub or defconfig one. This
  189. # way no critical debug feature will be enabled for perf and shipment
  190. # builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT
  191. # config.
  192. ifneq ($(TARGET_BUILD_VARIANT),user)
  193. ifeq ($(CONFIG_LITHIUM), y)
  194. CONFIG_FEATURE_PKTLOG := n
  195. else
  196. CONFIG_FEATURE_PKTLOG := y
  197. endif
  198. endif
  199. #Enable WLAN/Power debugfs feature only if debug_fs is enabled
  200. ifeq ($(CONFIG_DEBUG_FS), y)
  201. # Flag to enable debugfs. Depends on CONFIG_DEBUG_FS in kernel
  202. # configuration.
  203. CONFIG_WLAN_DEBUGFS := y
  204. CONFIG_WLAN_POWER_DEBUGFS := y
  205. endif
  206. # If not set, assume, Common driver is with in the build tree
  207. WLAN_COMMON_ROOT ?= ../qca-wifi-host-cmn
  208. WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
  209. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  210. CONFIG_QCOM_ESE := y
  211. endif
  212. # Feature flags which are not (currently) configurable via Kconfig
  213. #Whether to build debug version
  214. BUILD_DEBUG_VERSION := 1
  215. #Enable this flag to build driver in diag version
  216. BUILD_DIAG_VERSION := 1
  217. #Do we panic on bug? default is to warn
  218. PANIC_ON_BUG := 1
  219. #Enable OL debug and wmi unified functions
  220. CONFIG_ATH_PERF_PWR_OFFLOAD := 1
  221. #Disable packet log
  222. CONFIG_REMOVE_PKT_LOG := 0
  223. #Whether have QMI support
  224. CONFIG_QMI_SUPPORT := 1
  225. #Enable 11AC TX
  226. ifeq ($(CONFIG_ROME_IF),pci)
  227. CONFIG_ATH_11AC_TXCOMPACT := 1
  228. endif
  229. ifeq ($(CONFIG_ROME_IF),usb)
  230. CONFIG_ATH_11AC_TXCOMPACT := 0
  231. endif
  232. #Enable OS specific IRQ abstraction
  233. CONFIG_ATH_SUPPORT_SHARED_IRQ := 1
  234. #Enable message based HIF instead of RAW access in BMI
  235. ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
  236. CONFIG_HIF_MESSAGE_BASED := 0
  237. else
  238. CONFIG_HIF_MESSAGE_BASED := 1
  239. endif
  240. #Enable PCI specific APIS (dma, etc)
  241. ifeq ($(CONFIG_ROME_IF),pci)
  242. CONFIG_HIF_PCI := 1
  243. endif
  244. #Enable USB specific APIS
  245. ifeq ($(CONFIG_ROME_IF),usb)
  246. CONFIG_HIF_USB := 1
  247. CONFIG_PLD_USB_CNSS := y
  248. endif
  249. #Enable SDIO specific APIS
  250. ifeq ($(CONFIG_ROME_IF),sdio)
  251. CONFIG_HIF_SDIO := 1
  252. endif
  253. #Enable pci read/write config functions
  254. ifeq ($(CONFIG_ROME_IF),pci)
  255. CONFIG_ATH_PCI := 1
  256. endif
  257. ifeq ($(CONFIG_ROME_IF),snoc)
  258. CONFIG_HIF_SNOC:= 1
  259. endif
  260. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  261. #Enable IBSS support on CLD
  262. CONFIG_QCA_IBSS_SUPPORT := 1
  263. endif
  264. #Enable power management suspend/resume functionality to PCI
  265. CONFIG_ATH_BUS_PM := 1
  266. #Enable FLOWMAC module support
  267. CONFIG_ATH_SUPPORT_FLOWMAC_MODULE := 0
  268. #Enable spectral support
  269. CONFIG_ATH_SUPPORT_SPECTRAL := 0
  270. #Enable HOST statistics support
  271. CONFIG_SUPPORT_HOST_STATISTICS := 0
  272. #Enable WDI Event support
  273. CONFIG_WDI_EVENT_ENABLE := 1
  274. #Endianess selection
  275. CONFIG_LITTLE_ENDIAN := 1
  276. #Enable TX reclaim support
  277. CONFIG_TX_CREDIT_RECLAIM_SUPPORT := 0
  278. #Enable FTM support
  279. CONFIG_QCA_WIFI_FTM := 1
  280. #Enable Checksum Offload
  281. CONFIG_CHECKSUM_OFFLOAD := 1
  282. #Enable GTK offload
  283. CONFIG_GTK_OFFLOAD := 1
  284. #Enable EXT WOW
  285. ifeq ($(CONFIG_ROME_IF),pci)
  286. CONFIG_EXT_WOW := 1
  287. endif
  288. #Set this to 1 to catch erroneous Target accesses during debug.
  289. CONFIG_ATH_PCIE_ACCESS_DEBUG := 0
  290. #Enable IPA offload
  291. ifeq ($(CONFIG_IPA), y)
  292. CONFIG_IPA_OFFLOAD := 1
  293. endif
  294. ifeq ($(CONFIG_IPA3), y)
  295. CONFIG_IPA_OFFLOAD := 1
  296. endif
  297. #Enable Signed firmware support for split binary format
  298. CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := 0
  299. #Enable single firmware binary format
  300. CONFIG_QCA_SINGLE_BINARY_SUPPORT := 0
  301. #Enable collecting target RAM dump after kernel panic
  302. CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := 1
  303. #Flag to enable/disable secure firmware feature
  304. CONFIG_FEATURE_SECURE_FIRMWARE := 0
  305. #Flag to enable Stats Ext implementation
  306. CONFIG_FEATURE_STATS_EXT := 1
  307. ifeq ($(CONFIG_CFG80211),y)
  308. HAVE_CFG80211 := 1
  309. else
  310. ifeq ($(CONFIG_CFG80211),m)
  311. HAVE_CFG80211 := 1
  312. else
  313. HAVE_CFG80211 := 0
  314. endif
  315. endif
  316. ifeq ($(CONFIG_SLUB_DEBUG_ON), y)
  317. CONFIG_FEATURE_UNIT_TEST_SUSPEND := 1
  318. CONFIG_LEAK_DETECTION := 1
  319. endif
  320. # enable unit-test suspend for napier builds
  321. ifeq ($(CONFIG_LITHIUM), y)
  322. CONFIG_FEATURE_UNIT_TEST_SUSPEND := 1
  323. endif
  324. ############ UAPI ############
  325. UAPI_DIR := uapi
  326. UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux
  327. ############ COMMON ############
  328. COMMON_DIR := core/common
  329. COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR)
  330. ############ HDD ############
  331. HDD_DIR := core/hdd
  332. HDD_INC_DIR := $(HDD_DIR)/inc
  333. HDD_SRC_DIR := $(HDD_DIR)/src
  334. HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
  335. -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
  336. HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
  337. $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
  338. $(HDD_SRC_DIR)/wlan_hdd_data_stall_detection.o \
  339. $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \
  340. $(HDD_SRC_DIR)/wlan_hdd_ftm.o \
  341. $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
  342. $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \
  343. $(HDD_SRC_DIR)/wlan_hdd_main.o \
  344. $(HDD_SRC_DIR)/wlan_hdd_object_manager.o \
  345. $(HDD_SRC_DIR)/wlan_hdd_memdump.o \
  346. $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
  347. $(HDD_SRC_DIR)/wlan_hdd_packet_filter.o \
  348. $(HDD_SRC_DIR)/wlan_hdd_power.o \
  349. $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \
  350. $(HDD_SRC_DIR)/wlan_hdd_request_manager.o \
  351. $(HDD_SRC_DIR)/wlan_hdd_scan.o \
  352. $(HDD_SRC_DIR)/wlan_hdd_spectralscan.o \
  353. $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
  354. $(HDD_SRC_DIR)/wlan_hdd_sysfs.o \
  355. $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
  356. $(HDD_SRC_DIR)/wlan_hdd_trace.o \
  357. $(HDD_SRC_DIR)/wlan_hdd_wext.o \
  358. $(HDD_SRC_DIR)/wlan_hdd_wmm.o \
  359. $(HDD_SRC_DIR)/wlan_hdd_wowl.o
  360. ifeq ($(CONFIG_WLAN_DEBUGFS), y)
  361. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs.o
  362. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_llstat.o
  363. endif
  364. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  365. HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_ocb.o
  366. endif
  367. ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
  368. HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_fips.o
  369. endif
  370. ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
  371. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lpass.o
  372. endif
  373. ifeq ($(CONFIG_WLAN_LRO), y)
  374. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o
  375. endif
  376. ifeq ($(CONFIG_WLAN_NAPI), y)
  377. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o
  378. endif
  379. ifeq ($(CONFIG_IPA_OFFLOAD), 1)
  380. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o
  381. endif
  382. ifeq ($(HAVE_CFG80211),1)
  383. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
  384. $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o \
  385. $(HDD_SRC_DIR)/wlan_hdd_stats.o \
  386. $(HDD_SRC_DIR)/wlan_hdd_p2p.o
  387. endif
  388. ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
  389. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o
  390. endif
  391. ifeq ($(CONFIG_QCOM_TDLS),y)
  392. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
  393. endif
  394. ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
  395. CONFIG_WLAN_SYNC_TSF := y
  396. endif
  397. ifeq ($(CONFIG_WLAN_SYNC_TSF),y)
  398. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o
  399. endif
  400. ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
  401. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o
  402. endif
  403. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  404. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o
  405. endif
  406. ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
  407. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o
  408. endif
  409. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  410. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o
  411. endif
  412. ifeq ($(CONFIG_WLAN_FEATURE_11AX),y)
  413. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_he.o
  414. endif
  415. ifeq ($(CONFIG_LITHIUM), y)
  416. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rx_monitor.o
  417. endif
  418. ########### HOST DIAG LOG ###########
  419. HOST_DIAG_LOG_DIR := $(WLAN_COMMON_ROOT)/utils/host_diag_log
  420. HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc
  421. HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src
  422. HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
  423. -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
  424. HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
  425. ############ EPPING ############
  426. EPPING_DIR := $(WLAN_COMMON_ROOT)/utils/epping
  427. EPPING_INC_DIR := $(EPPING_DIR)/inc
  428. EPPING_SRC_DIR := $(EPPING_DIR)/src
  429. EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR)
  430. EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \
  431. $(EPPING_SRC_DIR)/epping_txrx.o \
  432. $(EPPING_SRC_DIR)/epping_tx.o \
  433. $(EPPING_SRC_DIR)/epping_rx.o \
  434. $(EPPING_SRC_DIR)/epping_helper.o \
  435. ############ MAC ############
  436. MAC_DIR := core/mac
  437. MAC_INC_DIR := $(MAC_DIR)/inc
  438. MAC_SRC_DIR := $(MAC_DIR)/src
  439. MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
  440. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
  441. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
  442. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
  443. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \
  444. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan
  445. MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfg_api.o \
  446. $(MAC_SRC_DIR)/cfg/cfg_param_name.o \
  447. $(MAC_SRC_DIR)/cfg/cfg_proc_msg.o \
  448. $(MAC_SRC_DIR)/cfg/cfg_send_msg.o
  449. MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o
  450. MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
  451. $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \
  452. $(MAC_SRC_DIR)/pe/lim/lim_api.o \
  453. $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \
  454. $(MAC_SRC_DIR)/pe/lim/lim_ft.o \
  455. $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o \
  456. $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \
  457. $(MAC_SRC_DIR)/pe/lim/lim_p2p.o \
  458. $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \
  459. $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \
  460. $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \
  461. $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \
  462. $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \
  463. $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \
  464. $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \
  465. $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \
  466. $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \
  467. $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \
  468. $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \
  469. $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \
  470. $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \
  471. $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \
  472. $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \
  473. $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \
  474. $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \
  475. $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \
  476. $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \
  477. $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \
  478. $(MAC_SRC_DIR)/pe/lim/lim_ser_des_utils.o \
  479. $(MAC_SRC_DIR)/pe/lim/lim_session.o \
  480. $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \
  481. $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \
  482. $(MAC_SRC_DIR)/pe/lim/lim_sta_hash_api.o \
  483. $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \
  484. $(MAC_SRC_DIR)/pe/lim/lim_trace.o \
  485. $(MAC_SRC_DIR)/pe/lim/lim_utils.o
  486. ifeq ($(CONFIG_QCOM_TDLS),y)
  487. MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o
  488. endif
  489. ifeq ($(CONFIG_WLAN_FEATURE_FILS),y)
  490. MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_fils.o
  491. endif
  492. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  493. MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o
  494. endif
  495. ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
  496. MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \
  497. $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \
  498. $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \
  499. $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \
  500. $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o
  501. endif
  502. MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \
  503. $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \
  504. $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \
  505. $(MAC_SRC_DIR)/pe/sch/sch_message.o
  506. MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o
  507. MAC_OBJS := $(MAC_CFG_OBJS) \
  508. $(MAC_DPH_OBJS) \
  509. $(MAC_LIM_OBJS) \
  510. $(MAC_SCH_OBJS) \
  511. $(MAC_RRM_OBJS) \
  512. $(MAC_NDP_OBJS)
  513. ############ SAP ############
  514. SAP_DIR := core/sap
  515. SAP_INC_DIR := $(SAP_DIR)/inc
  516. SAP_SRC_DIR := $(SAP_DIR)/src
  517. SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
  518. -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
  519. SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \
  520. $(SAP_SRC_DIR)/sap_ch_select.o \
  521. $(SAP_SRC_DIR)/sap_fsm.o \
  522. $(SAP_SRC_DIR)/sap_module.o
  523. ############ DFS ############ 350
  524. DFS_DIR := $(WLAN_COMMON_ROOT)/umac/dfs
  525. DFS_CORE_INC_DIR := $(DFS_DIR)/core/inc
  526. DFS_CORE_SRC_DIR := $(DFS_DIR)/core/src
  527. DFS_DISP_INC_DIR := $(DFS_DIR)/dispatcher/inc
  528. DFS_DISP_SRC_DIR := $(DFS_DIR)/dispatcher/src
  529. DFS_TARGET_INC_DIR := $(WLAN_COMMON_ROOT)/target_if/dfs/inc
  530. DFS_CMN_SERVICES_INC_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/dfs/inc
  531. DFS_INC := -I$(WLAN_ROOT)/$(DFS_DISP_INC_DIR) \
  532. -I$(WLAN_ROOT)/$(DFS_TARGET_INC_DIR) \
  533. -I$(WLAN_ROOT)/$(DFS_CMN_SERVICES_INC_DIR)
  534. DFS_OBJS := $(DFS_CORE_SRC_DIR)/filtering/dfs_bindetects.o \
  535. $(DFS_CORE_SRC_DIR)/filtering/dfs_debug.o\
  536. $(DFS_CORE_SRC_DIR)/filtering/dfs_fcc_bin5.o\
  537. $(DFS_CORE_SRC_DIR)/filtering/dfs_init.o\
  538. $(DFS_CORE_SRC_DIR)/filtering/dfs_misc.o\
  539. $(DFS_CORE_SRC_DIR)/filtering/dfs_radar.o\
  540. $(DFS_CORE_SRC_DIR)/filtering/dfs_ar.o\
  541. $(DFS_CORE_SRC_DIR)/filtering/ar5416_radar.o\
  542. $(DFS_CORE_SRC_DIR)/filtering/ar9300_radar.o\
  543. $(DFS_CORE_SRC_DIR)/filtering/ar5212_radar.o\
  544. $(DFS_CORE_SRC_DIR)/filtering/dfs_phyerr_tlv.o\
  545. $(DFS_CORE_SRC_DIR)/filtering/dfs_process_phyerr.o\
  546. $(DFS_CORE_SRC_DIR)/filtering/dfs_process_radarevent.o\
  547. $(DFS_CORE_SRC_DIR)/filtering/dfs_staggered.o \
  548. $(DFS_CORE_SRC_DIR)/misc/dfs.o \
  549. $(DFS_CORE_SRC_DIR)/misc/dfs_cac.o\
  550. $(DFS_CORE_SRC_DIR)/misc/dfs_nol.o\
  551. $(DFS_CORE_SRC_DIR)/misc/dfs_nol.o\
  552. $(DFS_CORE_SRC_DIR)/misc/dfs_zero_cac.o\
  553. $(DFS_CORE_SRC_DIR)/misc/dfs_random_chan_sel.o\
  554. $(DFS_CORE_SRC_DIR)/misc/dfs_process_radar_found_ind.o\
  555. $(DFS_DISP_SRC_DIR)/wlan_dfs_init_deinit_api.o\
  556. $(DFS_DISP_SRC_DIR)/wlan_dfs_lmac_api.o\
  557. $(DFS_DISP_SRC_DIR)/wlan_dfs_mlme_api.o\
  558. $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o\
  559. $(DFS_DISP_SRC_DIR)/wlan_dfs_ucfg_api.o\
  560. $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o\
  561. $(DFS_DISP_SRC_DIR)/wlan_dfs_utils_api.o\
  562. $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs.o
  563. ############ SME ############
  564. SME_DIR := core/sme
  565. SME_INC_DIR := $(SME_DIR)/inc
  566. SME_SRC_DIR := $(SME_DIR)/src
  567. SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
  568. -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
  569. SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \
  570. $(SME_SRC_DIR)/csr/csr_api_scan.o \
  571. $(SME_SRC_DIR)/csr/csr_cmd_process.o \
  572. $(SME_SRC_DIR)/csr/csr_link_list.o \
  573. $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \
  574. $(SME_SRC_DIR)/csr/csr_util.o \
  575. ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
  576. SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \
  577. $(SME_SRC_DIR)/csr/csr_host_scan_roam.o
  578. endif
  579. SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
  580. SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
  581. $(SME_SRC_DIR)/common/sme_ft_api.o \
  582. $(SME_SRC_DIR)/common/sme_power_save.o \
  583. $(SME_SRC_DIR)/common/sme_trace.o
  584. SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
  585. ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
  586. SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_api.o
  587. endif
  588. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  589. SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o
  590. endif
  591. SME_OBJS := $(SME_CMN_OBJS) \
  592. $(SME_CSR_OBJS) \
  593. $(SME_QOS_OBJS) \
  594. $(SME_RRM_OBJS) \
  595. $(SME_NAN_OBJS) \
  596. $(SME_NDP_OBJS)
  597. ############ NLINK ############
  598. NLINK_DIR := $(WLAN_COMMON_ROOT)/utils/nlink
  599. NLINK_INC_DIR := $(NLINK_DIR)/inc
  600. NLINK_SRC_DIR := $(NLINK_DIR)/src
  601. NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR)
  602. NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
  603. ############ PTT ############
  604. PTT_DIR := $(WLAN_COMMON_ROOT)/utils/ptt
  605. PTT_INC_DIR := $(PTT_DIR)/inc
  606. PTT_SRC_DIR := $(PTT_DIR)/src
  607. PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR)
  608. PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
  609. ############ WLAN_LOGGING ############
  610. WLAN_LOGGING_DIR := $(WLAN_COMMON_ROOT)/utils/logging
  611. WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc
  612. WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src
  613. WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR)
  614. WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o \
  615. $(WLAN_LOGGING_SRC_DIR)/wlan_roam_debug.o
  616. ############ SYS ############
  617. SYS_DIR := core/mac/src/sys
  618. SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
  619. -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
  620. -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
  621. -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
  622. SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
  623. SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
  624. SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
  625. $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \
  626. $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \
  627. $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \
  628. $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
  629. $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \
  630. $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \
  631. $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o
  632. ############ Qca-wifi-host-cmn ############
  633. QDF_OS_DIR := qdf
  634. QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc
  635. QDF_OS_SRC_DIR := $(QDF_OS_DIR)/src
  636. QDF_OS_LINUX_SRC_DIR := $(QDF_OS_DIR)/linux/src
  637. QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR)
  638. QDF_LINUX_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_LINUX_SRC_DIR)
  639. QDF_INC := -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \
  640. -I$(WLAN_COMMON_INC)/$(QDF_OS_LINUX_SRC_DIR)
  641. QDF_OBJS := $(QDF_LINUX_OBJ_DIR)/qdf_defer.o \
  642. $(QDF_LINUX_OBJ_DIR)/qdf_event.o \
  643. $(QDF_LINUX_OBJ_DIR)/qdf_list.o \
  644. $(QDF_LINUX_OBJ_DIR)/qdf_lock.o \
  645. $(QDF_LINUX_OBJ_DIR)/qdf_mc_timer.o \
  646. $(QDF_LINUX_OBJ_DIR)/qdf_mem.o \
  647. $(QDF_LINUX_OBJ_DIR)/qdf_nbuf.o \
  648. $(QDF_LINUX_OBJ_DIR)/qdf_threads.o \
  649. $(QDF_LINUX_OBJ_DIR)/qdf_crypto.o \
  650. $(QDF_LINUX_OBJ_DIR)/qdf_trace.o \
  651. $(QDF_OBJ_DIR)/qdf_types.o
  652. ifeq ($(CONFIG_WLAN_DEBUGFS), y)
  653. QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_debugfs.o
  654. endif
  655. # enable CPU hotplug support if SMP is enabled
  656. ifeq ($(CONFIG_SMP),y)
  657. QDF_OBJS += $(QDF_OBJ_DIR)/qdf_cpuhp.o
  658. QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_cpuhp.o
  659. endif
  660. ifdef CONFIG_LEAK_DETECTION
  661. QDF_OBJS += $(QDF_OBJ_DIR)/qdf_debug_domain.o
  662. endif
  663. ##########OS_IF #######
  664. OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if
  665. OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux \
  666. -I$(WLAN_COMMON_INC)/os_if/linux/scan/inc \
  667. -I$(WLAN_COMMON_INC)/os_if/linux/p2p/inc \
  668. -I$(WLAN_COMMON_INC)/os_if/linux/spectral/inc \
  669. -I$(WLAN_COMMON_INC)/os_if/linux/tdls/inc
  670. OS_IF_OBJ := $(OS_IF_DIR)/linux/p2p/src/wlan_cfg80211_p2p.o
  671. ############ UMAC_DISP ############
  672. UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if
  673. UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc
  674. UMAC_DISP_SRC_DIR := $(UMAC_DISP_DIR)/src
  675. UMAC_DISP_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_DISP_SRC_DIR)
  676. UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR)
  677. UMAC_DISP_OBJS := $(UMAC_DISP_OBJ_DIR)/wlan_lmac_if.o
  678. ############# UMAC_SCAN ############
  679. UMAC_SCAN_DIR := umac/scan
  680. UMAC_SCAN_DISP_INC_DIR := $(UMAC_SCAN_DIR)/dispatcher/inc
  681. UMAC_SCAN_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/core/src
  682. UMAC_SCAN_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/dispatcher/src
  683. UMAC_TARGET_SCAN_INC := -I$(WLAN_COMMON_INC)/target_if/scan/inc
  684. UMAC_SCAN_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SCAN_DISP_INC_DIR)
  685. UMAC_SCAN_OBJS := $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db.o \
  686. $(UMAC_SCAN_CORE_DIR)/wlan_scan_11d.o \
  687. $(UMAC_SCAN_CORE_DIR)/wlan_scan_bss_score.o \
  688. $(UMAC_SCAN_CORE_DIR)/wlan_scan_filter.o \
  689. $(UMAC_SCAN_CORE_DIR)/wlan_scan_main.o \
  690. $(UMAC_SCAN_CORE_DIR)/wlan_scan_manager.o \
  691. $(UMAC_SCAN_DISP_DIR)/wlan_scan_tgt_api.o \
  692. $(UMAC_SCAN_DISP_DIR)/wlan_scan_ucfg_api.o \
  693. $(UMAC_SCAN_DISP_DIR)/wlan_scan_utils_api.o \
  694. $(WLAN_COMMON_ROOT)/os_if/linux/scan/src/wlan_cfg80211_scan.o \
  695. $(WLAN_COMMON_ROOT)/os_if/linux/wlan_cfg80211.o \
  696. $(WLAN_COMMON_ROOT)/target_if/scan/src/target_if_scan.o
  697. ############# UMAC_SPECTRAL_SCAN ############
  698. UMAC_SPECTRAL_DIR := spectral
  699. UMAC_SPECTRAL_DISP_INC_DIR := $(UMAC_SPECTRAL_DIR)/dispatcher/inc
  700. UMAC_SPECTRAL_CORE_INC_DIR := $(UMAC_SPECTRAL_DIR)/core
  701. UMAC_SPECTRAL_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/core
  702. UMAC_SPECTRAL_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/dispatcher/src
  703. UMAC_TARGET_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/target_if/spectral
  704. UMAC_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_DISP_INC_DIR) \
  705. -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_CORE_INC_DIR) \
  706. -I$(WLAN_COMMON_INC)/target_if/direct_buf_rx/inc
  707. UMAC_SPECTRAL_OBJS := $(UMAC_SPECTRAL_CORE_DIR)/spectral_offload.o \
  708. $(UMAC_SPECTRAL_CORE_DIR)/spectral_common.o \
  709. $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_ucfg_api.o \
  710. $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_utils_api.o \
  711. $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_tgt_api.o \
  712. $(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/wlan_cfg80211_spectral.o \
  713. $(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/os_if_spectral_netlink.o \
  714. $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_netlink.o \
  715. $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_phyerr.o \
  716. $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral.o \
  717. $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_sim.o
  718. ############# UMAC_GREEN_AP ############
  719. UMAC_GREEN_AP_DIR := umac/green_ap
  720. UMAC_GREEN_AP_DISP_INC_DIR := $(UMAC_GREEN_AP_DIR)/dispatcher/inc
  721. UMAC_GREEN_AP_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/core/src
  722. UMAC_GREEN_AP_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/dispatcher/src
  723. UMAC_TARGET_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/target_if/green_ap/inc
  724. UMAC_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_GREEN_AP_DISP_INC_DIR)
  725. UMAC_GREEN_AP_OBJS := $(UMAC_GREEN_AP_CORE_DIR)/wlan_green_ap_main.o \
  726. $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_api.o \
  727. $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_ucfg_api.o \
  728. $(WLAN_COMMON_ROOT)/target_if/green_ap/src/target_if_green_ap.o
  729. ############# FTM CORE ############
  730. FTM_CORE_DIR := ftm
  731. TARGET_IF_FTM_DIR := target_if/ftm
  732. OS_IF_LINUX_FTM_DIR := os_if/linux/ftm
  733. FTM_CORE_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/core/src
  734. FTM_DISP_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/dispatcher/src
  735. TARGET_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(TARGET_IF_FTM_DIR)/src
  736. OS_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(OS_IF_LINUX_FTM_DIR)/src
  737. FTM_CORE_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/core/src
  738. FTM_DISP_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/dispatcher/inc
  739. TARGET_IF_FTM_INC := $(WLAN_COMMON_INC)/$(TARGET_IF_FTM_DIR)/inc
  740. OS_IF_FTM_INC := $(WLAN_COMMON_INC)/$(OS_IF_LINUX_FTM_DIR)/inc
  741. FTM_INC := -I$(FTM_DISP_INC) \
  742. -I$(FTM_CORE_INC) \
  743. -I$(OS_IF_FTM_INC) \
  744. -I$(TARGET_IF_FTM_INC)
  745. FTM_OBJS := $(FTM_DISP_SRC)/wlan_ftm_init_deinit.o \
  746. $(FTM_DISP_SRC)/wlan_ftm_ucfg_api.o \
  747. $(FTM_CORE_SRC)/wlan_ftm_svc.o \
  748. $(OS_IF_FTM_SRC)/wlan_cfg80211_ftm.o \
  749. $(TARGET_IF_FTM_SRC)/target_if_ftm.o
  750. ifeq ($(CONFIG_LINUX_QCMBR),y)
  751. FTM_OBJS += $(OS_IF_FTM_SRC)/wlan_ioctl_ftm.o
  752. endif
  753. ############# UMAC_CMN_SERVICES ############
  754. UMAC_COMMON_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/cmn_defs/inc \
  755. -I$(WLAN_COMMON_INC)/umac/cmn_services/utils/inc
  756. UMAC_COMMON_OBJS := $(WLAN_COMMON_ROOT)/umac/cmn_services/utils/src/wlan_utility.o
  757. ifeq ($(CONFIG_WLAN_LRO), y)
  758. QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_lro.o
  759. endif
  760. ############ CDS (Connectivity driver services) ############
  761. CDS_DIR := core/cds
  762. CDS_INC_DIR := $(CDS_DIR)/inc
  763. CDS_SRC_DIR := $(CDS_DIR)/src
  764. CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \
  765. -I$(WLAN_ROOT)/$(CDS_SRC_DIR)
  766. CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \
  767. $(CDS_SRC_DIR)/cds_reg_service.o \
  768. $(CDS_SRC_DIR)/cds_packet.o \
  769. $(CDS_SRC_DIR)/cds_regdomain.o \
  770. $(CDS_SRC_DIR)/cds_sched.o \
  771. $(CDS_SRC_DIR)/cds_utils.o
  772. ###### UMAC OBJMGR ########
  773. UMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr
  774. UMAC_OBJMGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/inc \
  775. -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/src \
  776. -I$(WLAN_COMMON_INC)/umac/cmn_services/inc \
  777. -I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc
  778. UMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \
  779. $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_pdev_obj.o \
  780. $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_peer_obj.o \
  781. $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \
  782. $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o
  783. ########### UMAC MGMT TXRX ##########
  784. UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx
  785. UMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \
  786. UMAC_MGMT_TXRX_OBJS := $(UMAC_MGMT_TXRX_DIR)/core/src/wlan_mgmt_txrx_main.o \
  787. $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_utils_api.o \
  788. $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_tgt_api.o
  789. ########## POWER MANAGEMENT OFFLOADS (PMO) ##########
  790. PMO_DIR := components/pmo
  791. PMO_INC := -I$(WLAN_ROOT)/$(PMO_DIR)/core/inc \
  792. -I$(WLAN_ROOT)/$(PMO_DIR)/core/src \
  793. -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/inc \
  794. -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/src \
  795. PMO_OBJS := $(PMO_DIR)/core/src/wlan_pmo_main.o \
  796. $(PMO_DIR)/core/src/wlan_pmo_arp.o \
  797. $(PMO_DIR)/core/src/wlan_pmo_ns.o \
  798. $(PMO_DIR)/core/src/wlan_pmo_gtk.o \
  799. $(PMO_DIR)/core/src/wlan_pmo_mc_addr_filtering.o \
  800. $(PMO_DIR)/core/src/wlan_pmo_static_config.o \
  801. $(PMO_DIR)/core/src/wlan_pmo_wow.o \
  802. $(PMO_DIR)/core/src/wlan_pmo_lphb.o \
  803. $(PMO_DIR)/core/src/wlan_pmo_suspend_resume.o \
  804. $(PMO_DIR)/core/src/wlan_pmo_hw_filter.o \
  805. $(PMO_DIR)/core/src/wlan_pmo_pkt_filter.o \
  806. $(PMO_DIR)/dispatcher/src/wlan_pmo_obj_mgmt_api.o \
  807. $(PMO_DIR)/dispatcher/src/wlan_pmo_ucfg_api.o \
  808. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_arp.o \
  809. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_ns.o \
  810. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_gtk.o \
  811. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_wow.o \
  812. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_static_config.o \
  813. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_mc_addr_filtering.o \
  814. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_lphb.o \
  815. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_suspend_resume.o \
  816. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_hw_filter.o \
  817. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_pkt_filter.o
  818. ########## DISA (ENCRYPTION TEST) ##########
  819. DISA_DIR := components/disa
  820. DISA_INC := -I$(WLAN_ROOT)/$(DISA_DIR)/core/inc \
  821. -I$(WLAN_ROOT)/$(DISA_DIR)/dispatcher/inc
  822. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  823. DISA_OBJS := $(DISA_DIR)/core/src/wlan_disa_main.o \
  824. $(DISA_DIR)/dispatcher/src/wlan_disa_obj_mgmt_api.o \
  825. $(DISA_DIR)/dispatcher/src/wlan_disa_tgt_api.o \
  826. $(DISA_DIR)/dispatcher/src/wlan_disa_ucfg_api.o
  827. endif
  828. ######## OCB ##############
  829. OCB_DIR := components/ocb
  830. OCB_INC := -I$(WLAN_ROOT)/$(OCB_DIR)/core/inc \
  831. -I$(WLAN_ROOT)/$(OCB_DIR)/dispatcher/inc
  832. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  833. OCB_OBJS := $(OCB_DIR)/dispatcher/src/wlan_ocb_ucfg_api.o \
  834. $(OCB_DIR)/dispatcher/src/wlan_ocb_tgt_api.o \
  835. $(OCB_DIR)/core/src/wlan_ocb_main.o
  836. endif
  837. ########## CLD TARGET_IF #######
  838. CLD_TARGET_IF_DIR := components/target_if
  839. CLD_TARGET_IF_INC := -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/inc \
  840. -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/src
  841. CLD_TARGET_IF_OBJ := $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \
  842. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \
  843. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_hw_filter.o \
  844. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \
  845. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \
  846. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \
  847. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o \
  848. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_pkt_filter.o \
  849. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \
  850. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \
  851. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o
  852. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  853. CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ocb/inc
  854. CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ocb/src/target_if_ocb.o
  855. endif
  856. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  857. CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/disa/inc
  858. CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/disa/src/target_if_disa.o
  859. endif
  860. ############## UMAC P2P ###########
  861. P2P_DIR := umac/p2p
  862. P2P_CORE_DIR := $(P2P_DIR)/core
  863. P2P_CORE_SRC_DIR := $(P2P_CORE_DIR)/src
  864. P2P_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_CORE_SRC_DIR)
  865. P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher
  866. P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc
  867. P2P_DISPATCHER_SRC_DIR := $(P2P_DISPATCHER_DIR)/src
  868. P2P_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_DISPATCHER_SRC_DIR)
  869. UMAC_P2P_INC := -I$(WLAN_COMMON_INC)/$(P2P_DISPATCHER_INC_DIR) \
  870. -I$(WLAN_COMMON_INC)/umac/scan/dispatcher/inc
  871. UMAC_P2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \
  872. $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \
  873. $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \
  874. $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \
  875. $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o
  876. ###### UMAC POLICY MGR ########
  877. UMAC_POLICY_MGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/policy_mgr
  878. UMAC_POLICY_MGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/inc \
  879. -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/src
  880. UMAC_POLICY_MGR_OBJS := $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \
  881. $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \
  882. $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \
  883. $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \
  884. $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o \
  885. ###### UMAC TDLS ########
  886. UMAC_TDLS_DIR := $(WLAN_COMMON_ROOT)/umac/tdls
  887. UMAC_TDLS_INC := -I$(WLAN_COMMON_INC)/umac/tdls/dispatcher/inc
  888. UMAC_TDLS_OBJS := $(UMAC_TDLS_DIR)/core/src/wlan_tdls_main.o \
  889. $(UMAC_TDLS_DIR)/core/src/wlan_tdls_cmds_process.o \
  890. $(UMAC_TDLS_DIR)/core/src/wlan_tdls_peer.o \
  891. $(UMAC_TDLS_DIR)/core/src/wlan_tdls_mgmt.o \
  892. $(UMAC_TDLS_DIR)/core/src/wlan_tdls_ct.o \
  893. $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_tgt_api.o \
  894. $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_ucfg_api.o \
  895. $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_utils_api.o \
  896. $(WLAN_COMMON_ROOT)/os_if/linux/tdls/src/wlan_cfg80211_tdls.o
  897. ########### BMI ###########
  898. BMI_DIR := core/bmi
  899. BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
  900. BMI_OBJS := $(BMI_DIR)/src/bmi.o \
  901. $(BMI_DIR)/src/ol_fw.o \
  902. $(BMI_DIR)/src/ol_fw_common.o
  903. BMI_OBJS += $(BMI_DIR)/src/bmi_1.o
  904. ########## TARGET_IF #######
  905. TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if
  906. TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \
  907. -I$(WLAN_COMMON_INC)/target_if/core/src \
  908. -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \
  909. -I$(WLAN_COMMON_INC)/target_if/p2p/inc \
  910. -I$(WLAN_COMMON_INC)/target_if/regulatory/inc \
  911. -I$(WLAN_COMMON_INC)/target_if/tdls/inc
  912. TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \
  913. $(TARGET_IF_DIR)/p2p/src/target_if_p2p.o \
  914. $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o \
  915. $(TARGET_IF_DIR)/tdls/src/target_if_tdls.o \
  916. $(TARGET_IF_DIR)/init_deinit/src/init_cmd_api.o \
  917. $(TARGET_IF_DIR)/init_deinit/src/init_deinit_ucfg.o \
  918. $(TARGET_IF_DIR)/init_deinit/src/init_event_handler.o \
  919. $(TARGET_IF_DIR)/init_deinit/src/service_ready_util.o \
  920. ########### GLOBAL_LMAC_IF ##########
  921. GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if
  922. GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \
  923. -I$(WLAN_COMMON_INC)/global_lmac_if/src
  924. GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o
  925. ########### WMI ###########
  926. WMI_ROOT_DIR := wmi
  927. WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
  928. WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
  929. WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
  930. WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
  931. WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
  932. $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
  933. $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
  934. $(WMI_OBJ_DIR)/wmi_unified_api.o \
  935. $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o \
  936. $(WMI_OBJ_DIR)/wmi_unified_reg_api.o \
  937. $(WMI_OBJ_DIR)/wmi_unified_dfs_api.o \
  938. $(WMI_OBJ_DIR)/wmi_unified_non_tlv.o
  939. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  940. ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
  941. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_ut.o
  942. endif
  943. endif
  944. ########### FWLOG ###########
  945. FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog
  946. FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
  947. FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
  948. ############ TXRX ############
  949. TXRX_DIR := core/dp/txrx
  950. TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
  951. TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \
  952. $(TXRX_DIR)/ol_cfg.o \
  953. $(TXRX_DIR)/ol_rx.o \
  954. $(TXRX_DIR)/ol_rx_fwd.o \
  955. $(TXRX_DIR)/ol_txrx.o \
  956. $(TXRX_DIR)/ol_rx_defrag.o \
  957. $(TXRX_DIR)/ol_tx_desc.o \
  958. $(TXRX_DIR)/ol_tx.o \
  959. $(TXRX_DIR)/ol_rx_reorder_timeout.o \
  960. $(TXRX_DIR)/ol_rx_reorder.o \
  961. $(TXRX_DIR)/ol_rx_pn.o \
  962. $(TXRX_DIR)/ol_tx_queue.o \
  963. $(TXRX_DIR)/ol_txrx_peer_find.o \
  964. $(TXRX_DIR)/ol_txrx_event.o \
  965. $(TXRX_DIR)/ol_txrx_encap.o \
  966. $(TXRX_DIR)/ol_tx_send.o \
  967. $(TXRX_DIR)/ol_tx_sched.o \
  968. $(TXRX_DIR)/ol_tx_classify.o
  969. ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
  970. TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
  971. endif
  972. ifeq ($(CONFIG_IPA_OFFLOAD), 1)
  973. TXRX_OBJS += $(TXRX_DIR)/ol_txrx_ipa.o
  974. endif
  975. ifeq ($(CONFIG_LITHIUM), y)
  976. ############ DP 3.0 ############
  977. DP_INC := -I$(WLAN_COMMON_ROOT)/dp/inc \
  978. -I$(WLAN_COMMON_ROOT)/dp/wifi3.0
  979. DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0
  980. DP_OBJS := $(DP_SRC)/dp_main.o \
  981. $(DP_SRC)/dp_tx.o \
  982. $(DP_SRC)/dp_tx_desc.o \
  983. $(DP_SRC)/dp_rx.o \
  984. $(DP_SRC)/dp_rx_err.o \
  985. $(DP_SRC)/dp_htt.o \
  986. $(DP_SRC)/dp_peer.o \
  987. $(DP_SRC)/dp_rx_desc.o \
  988. $(DP_SRC)/dp_reo.o \
  989. $(DP_SRC)/dp_rx_mon_dest.o \
  990. $(DP_SRC)/dp_rx_mon_status.o \
  991. $(DP_SRC)/dp_rx_defrag.o \
  992. $(DP_SRC)/dp_stats.o
  993. ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
  994. DP_OBJS += $(DP_SRC)/dp_tx_flow_control.o
  995. endif
  996. endif
  997. ifeq ($(CONFIG_IPA_OFFLOAD), 1)
  998. DP_OBJS += $(DP_SRC)/dp_ipa.o
  999. endif
  1000. ifeq ($(CONFIG_WDI_EVENT_ENABLE), 1)
  1001. DP_OBJS += $(DP_SRC)/dp_wdi_event.o
  1002. endif
  1003. ############ CFG ############
  1004. WCFG_DIR := wlan_cfg
  1005. WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR)
  1006. WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR)
  1007. WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o
  1008. ############ OL ############
  1009. OL_DIR := core/dp/ol
  1010. OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
  1011. ############ CDP ############
  1012. CDP_ROOT_DIR := dp
  1013. CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
  1014. CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
  1015. ############ PKTLOG ############
  1016. PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog
  1017. PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
  1018. PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
  1019. $(PKTLOG_DIR)/pktlog_internal.o \
  1020. $(PKTLOG_DIR)/linux_ac.o
  1021. ############ HTT ############
  1022. HTT_DIR := core/dp/htt
  1023. HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
  1024. HTT_OBJS := $(HTT_DIR)/htt_tx.o \
  1025. $(HTT_DIR)/htt.o \
  1026. $(HTT_DIR)/htt_t2h.o \
  1027. $(HTT_DIR)/htt_h2t.o \
  1028. $(HTT_DIR)/htt_fw_stats.o \
  1029. $(HTT_DIR)/htt_rx.o
  1030. ############## INIT-DEINIT ###########
  1031. INIT_DEINIT_DIR := init_deinit/dispatcher
  1032. INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc
  1033. INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src
  1034. INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR)
  1035. INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR)
  1036. INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o
  1037. ############## REGULATORY ###########
  1038. REGULATORY_DIR := umac/regulatory
  1039. REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc
  1040. REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src
  1041. REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc
  1042. REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src
  1043. REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR)
  1044. REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR)
  1045. REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR)
  1046. REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR)
  1047. REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_db.o \
  1048. $(REG_CORE_OBJ_DIR)/reg_services.o \
  1049. $(REG_CORE_OBJ_DIR)/reg_db_parser.o \
  1050. $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \
  1051. $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \
  1052. $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o
  1053. ############## Control path common scheduler ##########
  1054. SCHEDULER_DIR := scheduler
  1055. SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc
  1056. SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src
  1057. SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR)
  1058. SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR)
  1059. SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \
  1060. $(SCHEDULER_OBJ_DIR)/scheduler_core.o
  1061. ###### UMAC SERIALIZATION ########
  1062. UMAC_SER_DIR := umac/cmn_services/serialization
  1063. UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc
  1064. UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src
  1065. UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR)
  1066. UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR)
  1067. UMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_dequeue.o \
  1068. $(UMAC_SER_OBJ_DIR)/wlan_serialization_enqueue.o \
  1069. $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \
  1070. $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \
  1071. $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \
  1072. $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \
  1073. $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o
  1074. ###### WIFI POS ########
  1075. CONFIG_WIFI_POS_CONVERGED := y
  1076. WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src
  1077. WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc
  1078. WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src
  1079. WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc
  1080. WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src
  1081. WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc
  1082. ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
  1083. WIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \
  1084. $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \
  1085. $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \
  1086. $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \
  1087. $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \
  1088. $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o
  1089. endif
  1090. ######################### NAN #########################
  1091. NAN_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/nan/core/src
  1092. NAN_CORE_INC := -I$(WLAN_COMMON_INC)/umac/nan/core/inc
  1093. NAN_UCFG_DIR := $(WLAN_COMMON_ROOT)/umac/nan/dispatcher/src
  1094. NAN_UCFG_INC := -I$(WLAN_COMMON_INC)/umac/nan/dispatcher/inc
  1095. NAN_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/nan/src
  1096. NAN_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/nan/inc
  1097. NAN_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/nan/src
  1098. NAN_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/nan/inc
  1099. ifeq ($(CONFIG_NAN_CONVERGENCE), y)
  1100. WLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \
  1101. $(NAN_CORE_DIR)/nan_api.o \
  1102. $(NAN_CORE_DIR)/nan_utils.o \
  1103. $(NAN_UCFG_DIR)/nan_ucfg_api.o \
  1104. $(NAN_TGT_DIR)/target_if_nan.o \
  1105. $(NAN_OS_IF_DIR)/os_if_nan.o
  1106. endif
  1107. #######################################################
  1108. ############## HTC ##########
  1109. HTC_DIR := htc
  1110. HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
  1111. HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
  1112. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
  1113. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
  1114. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
  1115. ########### HIF ###########
  1116. HIF_DIR := hif
  1117. HIF_CE_DIR := $(HIF_DIR)/src/ce
  1118. HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
  1119. HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
  1120. HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
  1121. HIF_USB_DIR := $(HIF_DIR)/src/usb
  1122. HIF_SDIO_DIR := $(HIF_DIR)/src/sdio
  1123. HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio
  1124. HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include
  1125. HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src
  1126. HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
  1127. -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src
  1128. ifeq ($(CONFIG_HIF_PCI), 1)
  1129. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  1130. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
  1131. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
  1132. endif
  1133. ifeq ($(CONFIG_HIF_SNOC), 1)
  1134. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  1135. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
  1136. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
  1137. endif
  1138. ifeq ($(CONFIG_HIF_USB), 1)
  1139. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  1140. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR)
  1141. endif
  1142. ifeq ($(CONFIG_HIF_SDIO), 1)
  1143. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  1144. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR)
  1145. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR)
  1146. endif
  1147. HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
  1148. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
  1149. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o \
  1150. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_exec.o \
  1151. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_irq_affinity.o
  1152. HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o \
  1153. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
  1154. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
  1155. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
  1156. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
  1157. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
  1158. ifeq ($(CONFIG_LITHIUM), y)
  1159. HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o \
  1160. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
  1161. endif
  1162. HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \
  1163. $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \
  1164. $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \
  1165. $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o
  1166. HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_send.o \
  1167. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o \
  1168. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \
  1169. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \
  1170. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \
  1171. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_recv.o \
  1172. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o
  1173. HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \
  1174. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o
  1175. ifeq ($(CONFIG_WLAN_NAPI), y)
  1176. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
  1177. endif
  1178. ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), 1)
  1179. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_unit_test_suspend.o
  1180. endif
  1181. HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
  1182. HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
  1183. HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o
  1184. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
  1185. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
  1186. HIF_OBJS += $(HIF_COMMON_OBJS)
  1187. ifeq ($(CONFIG_HIF_PCI), 1)
  1188. HIF_OBJS += $(HIF_PCIE_OBJS)
  1189. HIF_OBJS += $(HIF_CE_OBJS)
  1190. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
  1191. endif
  1192. ifeq ($(CONFIG_HIF_SNOC), 1)
  1193. HIF_OBJS += $(HIF_SNOC_OBJS)
  1194. HIF_OBJS += $(HIF_CE_OBJS)
  1195. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
  1196. endif
  1197. ifeq ($(CONFIG_HIF_SDIO), 1)
  1198. HIF_OBJS += $(HIF_SDIO_OBJS)
  1199. HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS)
  1200. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o
  1201. endif
  1202. ifeq ($(CONFIG_HIF_USB), 1)
  1203. HIF_OBJS += $(HIF_USB_OBJS)
  1204. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o
  1205. endif
  1206. ifeq ($(CONFIG_LITHIUM), y)
  1207. ############ HAL ############
  1208. HAL_DIR := hal
  1209. HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \
  1210. -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0
  1211. HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \
  1212. $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_rx.o \
  1213. $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_wbm.o \
  1214. $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o
  1215. endif
  1216. ############ WMA ############
  1217. WMA_DIR := core/wma
  1218. WMA_INC_DIR := $(WMA_DIR)/inc
  1219. WMA_SRC_DIR := $(WMA_DIR)/src
  1220. WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
  1221. -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
  1222. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  1223. WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
  1224. endif
  1225. WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \
  1226. $(WMA_SRC_DIR)/wma_scan_roam.o \
  1227. $(WMA_SRC_DIR)/wma_dev_if.o \
  1228. $(WMA_SRC_DIR)/wma_mgmt.o \
  1229. $(WMA_SRC_DIR)/wma_power.o \
  1230. $(WMA_SRC_DIR)/wma_data.o \
  1231. $(WMA_SRC_DIR)/wma_utils.o \
  1232. $(WMA_SRC_DIR)/wma_features.o \
  1233. $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
  1234. $(WMA_NDP_OBJS)
  1235. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  1236. WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o
  1237. endif
  1238. ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
  1239. WMA_OBJS+= $(WMA_SRC_DIR)/wma_fips_api.o
  1240. endif
  1241. ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
  1242. WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
  1243. endif
  1244. ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
  1245. WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o
  1246. endif
  1247. ############## PLD ##########
  1248. PLD_DIR := core/pld
  1249. PLD_INC_DIR := $(PLD_DIR)/inc
  1250. PLD_SRC_DIR := $(PLD_DIR)/src
  1251. PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
  1252. -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
  1253. PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
  1254. ifeq ($(CONFIG_PCI), y)
  1255. PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
  1256. endif
  1257. ifeq ($(CONFIG_ICNSS),y)
  1258. PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
  1259. endif
  1260. ifeq ($(CONFIG_CNSS_SDIO),y)
  1261. PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o
  1262. endif
  1263. ifeq ($(CONFIG_PLD_USB_CNSS), y)
  1264. PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o
  1265. endif
  1266. ifeq ($(CONFIG_QCA6290_11AX), y)
  1267. TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/11ax/v1 \
  1268. -I$(WLAN_ROOT)/../fw-api/fw
  1269. else
  1270. TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/v2 \
  1271. -I$(WLAN_ROOT)/../fw-api/fw
  1272. endif
  1273. LINUX_INC := -Iinclude
  1274. INCS := $(HDD_INC) \
  1275. $(EPPING_INC) \
  1276. $(LINUX_INC) \
  1277. $(MAC_INC) \
  1278. $(SAP_INC) \
  1279. $(SME_INC) \
  1280. $(SYS_INC) \
  1281. $(QDF_INC) \
  1282. $(CDS_INC) \
  1283. $(DFS_INC) \
  1284. $(TARGET_IF_INC) \
  1285. $(CLD_TARGET_IF_INC) \
  1286. $(OS_IF_INC) \
  1287. $(GLOBAL_LMAC_IF_INC) \
  1288. $(FTM_INC)
  1289. INCS += $(WMA_INC) \
  1290. $(UAPI_INC) \
  1291. $(COMMON_INC) \
  1292. $(WMI_INC) \
  1293. $(FWLOG_INC) \
  1294. $(TXRX_INC) \
  1295. $(OL_INC) \
  1296. $(CDP_INC) \
  1297. $(PKTLOG_INC) \
  1298. $(HTT_INC) \
  1299. $(INIT_DEINIT_INC) \
  1300. $(SCHEDULER_INC) \
  1301. $(REGULATORY_INC) \
  1302. $(HTC_INC) \
  1303. $(DFS_INC) \
  1304. $(WCFG_INC)
  1305. INCS += $(HIF_INC) \
  1306. $(BMI_INC)
  1307. ifeq ($(CONFIG_LITHIUM), y)
  1308. INCS += $(HAL_INC) \
  1309. $(DP_INC)
  1310. endif
  1311. ################ WIFI POS ################
  1312. INCS += $(WIFI_POS_API_INC)
  1313. INCS += $(WIFI_POS_TGT_INC)
  1314. INCS += $(WIFI_POS_OS_IF_INC)
  1315. ##########################################
  1316. ################ NAN POS ################
  1317. INCS += $(NAN_CORE_INC)
  1318. INCS += $(NAN_UCFG_INC)
  1319. INCS += $(NAN_TGT_INC)
  1320. INCS += $(NAN_OS_IF_INC)
  1321. ##########################################
  1322. INCS += $(UMAC_OBJMGR_INC)
  1323. INCS += $(UMAC_MGMT_TXRX_INC)
  1324. INCS += $(PMO_INC)
  1325. INCS += $(UMAC_P2P_INC)
  1326. INCS += $(UMAC_POLICY_MGR_INC)
  1327. INCS += $(TARGET_INC)
  1328. INCS += $(UMAC_TDLS_INC)
  1329. INCS += $(UMAC_SER_INC)
  1330. INCS += $(NLINK_INC) \
  1331. $(PTT_INC) \
  1332. $(WLAN_LOGGING_INC)
  1333. INCS += $(PLD_INC)
  1334. INCS += $(OCB_INC)
  1335. ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
  1336. INCS += $(PKTLOG_INC)
  1337. endif
  1338. ifeq ($(BUILD_DIAG_VERSION), 1)
  1339. INCS += $(HOST_DIAG_LOG_INC)
  1340. endif
  1341. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  1342. INCS += $(DISA_INC)
  1343. endif
  1344. INCS += $(UMAC_DISP_INC)
  1345. INCS += $(UMAC_SCAN_INC)
  1346. INCS += $(UMAC_TARGET_SCAN_INC)
  1347. INCS += $(UMAC_GREEN_AP_INC)
  1348. INCS += $(UMAC_TARGET_GREEN_AP_INC)
  1349. INCS += $(UMAC_COMMON_INC)
  1350. INCS += $(UMAC_SPECTRAL_INC)
  1351. INCS += $(UMAC_TARGET_SPECTRAL_INC)
  1352. OBJS := $(HDD_OBJS) \
  1353. $(EPPING_OBJS) \
  1354. $(MAC_OBJS) \
  1355. $(SAP_OBJS) \
  1356. $(SME_OBJS) \
  1357. $(SYS_OBJS) \
  1358. $(QDF_OBJS) \
  1359. $(CDS_OBJS) \
  1360. $(DFS_OBJS) \
  1361. $(FTM_OBJS)
  1362. OBJS += $(WMA_OBJS) \
  1363. $(TXRX_OBJS) \
  1364. $(WMI_OBJS) \
  1365. $(FWLOG_OBJS) \
  1366. $(HTC_OBJS) \
  1367. $(INIT_DEINIT_OBJS) \
  1368. $(SCHEDULER_OBJS) \
  1369. $(REGULATORY_OBJS) \
  1370. $(DFS_OBJS)
  1371. OBJS += $(HIF_OBJS) \
  1372. $(BMI_OBJS) \
  1373. $(HTT_OBJS) \
  1374. $(OS_IF_OBJ) \
  1375. $(TARGET_IF_OBJ) \
  1376. $(CLD_TARGET_IF_OBJ) \
  1377. $(GLOBAL_LMAC_IF_OBJ)
  1378. ifeq ($(CONFIG_LITHIUM), y)
  1379. OBJS += $(HAL_OBJS)
  1380. endif
  1381. OBJS += $(UMAC_OBJMGR_OBJS)
  1382. OBJS += $(WIFI_POS_OBJS)
  1383. OBJS += $(WLAN_NAN_OBJS)
  1384. OBJS += $(UMAC_MGMT_TXRX_OBJS)
  1385. OBJS += $(UMAC_TDLS_OBJS)
  1386. OBJS += $(PMO_OBJS)
  1387. OBJS += $(UMAC_P2P_OBJS)
  1388. OBJS += $(UMAC_POLICY_MGR_OBJS)
  1389. OBJS += $(WLAN_LOGGING_OBJS)
  1390. OBJS += $(NLINK_OBJS)
  1391. OBJS += $(PTT_OBJS)
  1392. OBJS += $(UMAC_SER_OBJS)
  1393. OBJS += $(PLD_OBJS)
  1394. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  1395. OBJS += $(OCB_OBJS)
  1396. endif
  1397. ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
  1398. OBJS += $(PKTLOG_OBJS)
  1399. endif
  1400. ifeq ($(BUILD_DIAG_VERSION), 1)
  1401. OBJS += $(HOST_DIAG_LOG_OBJS)
  1402. endif
  1403. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  1404. OBJS += $(DISA_OBJS)
  1405. endif
  1406. OBJS += $(UMAC_DISP_OBJS)
  1407. OBJS += $(UMAC_SCAN_OBJS)
  1408. OBJS += $(UMAC_COMMON_OBJS)
  1409. OBJS += $(WCFG_OBJS)
  1410. OBJS += $(UMAC_SPECTRAL_OBJS)
  1411. ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
  1412. OBJS += $(UMAC_GREEN_AP_OBJS)
  1413. endif
  1414. ifeq ($(CONFIG_LITHIUM), y)
  1415. OBJS += $(DP_OBJS)
  1416. endif
  1417. EXTRA_CFLAGS += $(INCS)
  1418. CDEFINES := -DANI_LITTLE_BYTE_ENDIAN \
  1419. -DANI_LITTLE_BIT_ENDIAN \
  1420. -DDOT11F_LITTLE_ENDIAN_HOST \
  1421. -DANI_COMPILER_TYPE_GCC \
  1422. -DANI_OS_TYPE_ANDROID=6 \
  1423. -DPTT_SOCK_SVC_ENABLE \
  1424. -Wall\
  1425. -Werror\
  1426. -D__linux__ \
  1427. -DHAL_SELF_STA_PER_BSS=1 \
  1428. -DFEATURE_WLAN_WAPI \
  1429. -DSOFTAP_CHANNEL_RANGE \
  1430. -DWLAN_AP_STA_CONCURRENCY \
  1431. -DFEATURE_WLAN_SCAN_PNO \
  1432. -DWLAN_FEATURE_PACKET_FILTERING \
  1433. -DWLAN_FEATURE_P2P_DEBUG \
  1434. -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \
  1435. -DWLANTL_DEBUG\
  1436. -DWLAN_NS_OFFLOAD \
  1437. -DWLAN_SOFTAP_VSTA_FEATURE \
  1438. -DWLAN_FEATURE_GTK_OFFLOAD \
  1439. -DWLAN_WAKEUP_EVENTS \
  1440. -DFEATURE_WLAN_RA_FILTERING\
  1441. -DFEATURE_WLAN_LPHB \
  1442. -DQCA_SUPPORT_TX_THROTTLE \
  1443. -DWMI_INTERFACE_EVENT_LOGGING \
  1444. -DATH_SUPPORT_WAPI \
  1445. -DWLAN_FEATURE_LINK_LAYER_STATS \
  1446. -DFEATURE_WLAN_EXTSCAN \
  1447. -DWLAN_FEATURE_MBSSID \
  1448. -DCONFIG_160MHZ_SUPPORT \
  1449. -DCONFIG_MCL \
  1450. -DCONFIG_LEGACY_CHAN_ENUM \
  1451. -DNAPIER_SCAN \
  1452. -DWLAN_PMO_ENABLE \
  1453. -DCONVERGED_P2P_ENABLE \
  1454. -DWLAN_POLICY_MGR_ENABLE \
  1455. -DSUPPORT_11AX \
  1456. -DCONFIG_HDD_INIT_WITH_RTNL_LOCK \
  1457. -DCONVERGED_TDLS_ENABLE \
  1458. -DWLAN_CONV_SPECTRAL_ENABLE \
  1459. -DSPECTRAL_USE_NETLINK_SOCKETS \
  1460. -DWLAN_SPECTRAL_ENABLE \
  1461. -DWMI_CMD_STRINGS
  1462. ############ WIFI POS ##############
  1463. ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
  1464. CDEFINES += -DWIFI_POS_CONVERGED
  1465. else
  1466. CDEFINES += -DFEATURE_OEM_DATA_SUPPORT
  1467. endif
  1468. ####################################
  1469. ifneq ($(CONFIG_HIF_USB), 1)
  1470. CDEFINES += -DWLAN_LOGGING_SOCK_SVC_ENABLE
  1471. endif
  1472. ifeq ($(CONFIG_WLAN_FEATURE_FILS),y)
  1473. CDEFINES += -DWLAN_FEATURE_FILS_SK
  1474. endif
  1475. ifeq ($(CONFIG_CNSS), y)
  1476. ifeq ($(CONFIG_CNSS_SDIO), y)
  1477. CDEFINES += -DCONFIG_PLD_SDIO_CNSS
  1478. else
  1479. CDEFINES += -DCONFIG_PLD_PCIE_CNSS
  1480. endif
  1481. endif
  1482. ifeq ($(CONFIG_CNSS2), y)
  1483. CDEFINES += -DCONFIG_PLD_PCIE_CNSS
  1484. CDEFINES += -DCONFIG_PLD_PCIE_INIT
  1485. endif
  1486. #Enable NL80211 test mode
  1487. ifeq ($(CONFIG_NL80211_TESTMODE), y)
  1488. CDEFINES += -DWLAN_NL80211_TESTMODE
  1489. endif
  1490. # Flag to enable bus auto suspend
  1491. ifeq ($(CONFIG_ROME_IF),pci)
  1492. ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
  1493. CDEFINES += -DFEATURE_RUNTIME_PM
  1494. endif
  1495. endif
  1496. ifeq ($(CONFIG_ICNSS), y)
  1497. CDEFINES += -DCONFIG_PLD_SNOC_ICNSS
  1498. endif
  1499. ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
  1500. CDEFINES += -DQCA_WIFI_3_0
  1501. endif
  1502. ifeq (y,$(filter y,$(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1503. CDEFINES += -DQCA_WIFI_3_0_ADRASTEA
  1504. ifeq ($(CONFIG_QMI_SUPPORT), 1)
  1505. CDEFINES += -DADRASTEA_SHADOW_REGISTERS
  1506. endif
  1507. CDEFINES += -DADRASTEA_RRI_ON_DDR
  1508. endif
  1509. ifeq ($(CONFIG_QMI_SUPPORT), 0)
  1510. CDEFINES += -DCONFIG_BYPASS_QMI
  1511. endif
  1512. ifeq ($(CONFIG_WLAN_FASTPATH), y)
  1513. CDEFINES += -DWLAN_FEATURE_FASTPATH
  1514. endif
  1515. ifeq ($(CONFIG_FEATURE_PKTLOG), y)
  1516. CDEFINES += -DFEATURE_PKTLOG
  1517. endif
  1518. CDEFINES += -DCONFIG_DP_TRACE
  1519. ifeq ($(CONFIG_WLAN_NAPI), y)
  1520. CDEFINES += -DFEATURE_NAPI
  1521. CDEFINES += -DHIF_IRQ_AFFINITY
  1522. ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
  1523. CDEFINES += -DFEATURE_NAPI_DEBUG
  1524. endif
  1525. endif
  1526. ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
  1527. CDEFINES += -DMSM_PLATFORM
  1528. endif
  1529. CDEFINES += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
  1530. ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
  1531. CDEFINES += -DQCA_LL_TX_FLOW_CONTROL_V2
  1532. CDEFINES += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
  1533. else
  1534. ifeq ($(CONFIG_ROME_IF),pci)
  1535. ifneq ($(CONFIG_LITHIUM),y)
  1536. CDEFINES += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
  1537. endif
  1538. endif
  1539. endif
  1540. ifneq ($(CONFIG_QCA_CLD_WLAN),)
  1541. CDEFINES += -DWCN_PRONTO
  1542. CDEFINES += -DWCN_PRONTO_V1
  1543. endif
  1544. ifeq ($(BUILD_DEBUG_VERSION),1)
  1545. CDEFINES += -DWLAN_DEBUG \
  1546. -DTRACE_RECORD \
  1547. -DLIM_TRACE_RECORD \
  1548. -DSME_TRACE_RECORD \
  1549. -DHDD_TRACE_RECORD \
  1550. -DPE_DEBUG_LOGW \
  1551. -DPE_DEBUG_LOGE
  1552. endif
  1553. ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), 1)
  1554. CDEFINES += -DWLAN_SUSPEND_RESUME_TEST
  1555. endif
  1556. ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
  1557. CDEFINES += -DTIMER_MANAGER
  1558. CDEFINES += -DMEMORY_DEBUG
  1559. CDEFINES += -DCONFIG_HALT_KMEMLEAK
  1560. endif
  1561. ifdef CONFIG_LEAK_DETECTION
  1562. CDEFINES += -DCONFIG_LEAK_DETECTION
  1563. endif
  1564. ifeq ($(HAVE_CFG80211),1)
  1565. CDEFINES += -DWLAN_FEATURE_P2P
  1566. CDEFINES += -DWLAN_FEATURE_WFD
  1567. ifeq ($(CONFIG_QCOM_VOWIFI_11R),y)
  1568. CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211
  1569. CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC
  1570. endif
  1571. endif
  1572. ifeq ($(CONFIG_QCOM_ESE),y)
  1573. CDEFINES += -DFEATURE_WLAN_ESE
  1574. CDEFINES += -DQCA_COMPUTE_TX_DELAY
  1575. CDEFINES += -DQCA_COMPUTE_TX_DELAY_PER_TID
  1576. endif
  1577. #normally, TDLS negative behavior is not needed
  1578. ifeq ($(CONFIG_QCOM_TDLS),y)
  1579. CDEFINES += -DFEATURE_WLAN_TDLS
  1580. endif
  1581. ifeq ($(CONFIG_QCACLD_WLAN_LFR3),y)
  1582. CDEFINES += -DWLAN_FEATURE_ROAM_OFFLOAD
  1583. endif
  1584. ifeq ($(CONFIG_CNSS_GENL), y)
  1585. CDEFINES += -DCNSS_GENL
  1586. endif
  1587. ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
  1588. CDEFINES += -DWLAN_FEATURE_HOST_ROAM
  1589. endif
  1590. ifeq ($(CONFIG_WLAN_POWER_DEBUGFS), y)
  1591. CDEFINES += -DWLAN_POWER_DEBUGFS
  1592. endif
  1593. # Enable object manager reference count debug infrastructure
  1594. CDEFINES += -DWLAN_OBJMGR_DEBUG
  1595. ifeq ($(CONFIG_WLAN_FEATURE_SAE),y)
  1596. CDEFINES += -DWLAN_FEATURE_SAE
  1597. endif
  1598. ifeq ($(BUILD_DIAG_VERSION),1)
  1599. CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT
  1600. CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
  1601. CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
  1602. ifeq ($(CONFIG_HIF_PCI), 1)
  1603. CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  1604. endif
  1605. endif
  1606. ifeq ($(CONFIG_HIF_USB), 1)
  1607. CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  1608. CDEFINES += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
  1609. CDEFINES += -DCONFIG_ATH_PCIE_MAX_PERF=0 -DCONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD=0 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0
  1610. endif
  1611. ifeq ($(CONFIG_WLAN_FEATURE_11W),y)
  1612. CDEFINES += -DWLAN_FEATURE_11W
  1613. endif
  1614. ifeq ($(CONFIG_QCA_TXDESC_SANITY_CHECKS), 1)
  1615. CDEFINES += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS
  1616. endif
  1617. ifeq ($(CONFIG_QCOM_LTE_COEX),y)
  1618. CDEFINES += -DFEATURE_WLAN_CH_AVOID
  1619. endif
  1620. ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
  1621. CDEFINES += -DWLAN_FEATURE_LPSS
  1622. endif
  1623. ifneq ($(TARGET_BUILD_VARIANT),user)
  1624. CDEFINES += -DDESC_DUP_DETECT_DEBUG
  1625. CDEFINES += -DDEBUG_RX_RING_BUFFER
  1626. endif
  1627. ifeq ($(PANIC_ON_BUG),1)
  1628. CDEFINES += -DPANIC_ON_BUG
  1629. endif
  1630. ifeq ($(WLAN_OPEN_SOURCE), 1)
  1631. CDEFINES += -DWLAN_OPEN_SOURCE
  1632. endif
  1633. ifeq ($(CONFIG_FEATURE_STATS_EXT), 1)
  1634. CDEFINES += -DWLAN_FEATURE_STATS_EXT
  1635. endif
  1636. ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
  1637. CDEFINES += -DWLAN_FEATURE_NAN
  1638. endif
  1639. ifeq ($(CONFIG_QCA_IBSS_SUPPORT), 1)
  1640. CDEFINES += -DQCA_IBSS_SUPPORT
  1641. endif
  1642. #Enable OL debug and wmi unified functions
  1643. ifeq ($(CONFIG_ATH_PERF_PWR_OFFLOAD), 1)
  1644. CDEFINES += -DATH_PERF_PWR_OFFLOAD
  1645. endif
  1646. #Disable packet log
  1647. ifeq ($(CONFIG_REMOVE_PKT_LOG), 1)
  1648. CDEFINES += -DREMOVE_PKT_LOG
  1649. endif
  1650. #Enable 11AC TX
  1651. ifeq ($(CONFIG_ATH_11AC_TXCOMPACT), 1)
  1652. CDEFINES += -DATH_11AC_TXCOMPACT
  1653. endif
  1654. #Enable OS specific IRQ abstraction
  1655. ifeq ($(CONFIG_ATH_SUPPORT_SHARED_IRQ), 1)
  1656. CDEFINES += -DATH_SUPPORT_SHARED_IRQ
  1657. endif
  1658. #Enable message based HIF instead of RAW access in BMI
  1659. ifeq ($(CONFIG_HIF_MESSAGE_BASED), 1)
  1660. CDEFINES += -DHIF_MESSAGE_BASED
  1661. endif
  1662. #Enable PCI specific APIS (dma, etc)
  1663. ifeq ($(CONFIG_HIF_PCI), 1)
  1664. CDEFINES += -DHIF_PCI
  1665. endif
  1666. ifeq ($(CONFIG_HIF_SNOC), 1)
  1667. CDEFINES += -DHIF_SNOC
  1668. endif
  1669. #Enable High Latency related Flags
  1670. ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
  1671. CDEFINES += -DCONFIG_HL_SUPPORT \
  1672. -DCONFIG_AR6320_SUPPORT \
  1673. -DSDIO_3_0 \
  1674. -DHIF_SDIO \
  1675. -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \
  1676. -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \
  1677. -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL \
  1678. -DHIF_MBOX_SLEEP_WAR \
  1679. -DDEBUG_HL_LOGGING \
  1680. -DQCA_BAD_PEER_TX_FLOW_CL \
  1681. -DCONFIG_TX_DESC_HI_PRIO_RESERVE \
  1682. -DCONFIG_PER_VDEV_TX_DESC_POOL \
  1683. -DCONFIG_SDIO \
  1684. -DFEATURE_WLAN_FORCE_SAP_SCC
  1685. endif
  1686. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  1687. CDEFINES += -DWLAN_FEATURE_DSRC
  1688. ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
  1689. CDEFINES += -DWLAN_OCB_UT
  1690. endif
  1691. endif
  1692. ifeq ($(CONFIG_ARCH_SDX20), y)
  1693. ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
  1694. ifeq ($(CONFIG_WCNSS_SKB_PRE_ALLOC), y)
  1695. CDEFINES += -DFEATURE_SKB_PRE_ALLOC
  1696. endif
  1697. endif
  1698. endif
  1699. #Enable USB specific APIS
  1700. ifeq ($(CONFIG_HIF_USB), 1)
  1701. CDEFINES += -DHIF_USB \
  1702. -DCONFIG_PLD_USB_CNSS \
  1703. -DCONFIG_HL_SUPPORT
  1704. endif
  1705. #Enable FW logs through ini
  1706. CDEFINES += -DCONFIG_FW_LOGS_BASED_ON_INI
  1707. #Enable pci read/write config functions
  1708. ifeq ($(CONFIG_ATH_PCI), 1)
  1709. CDEFINES += -DATH_PCI
  1710. endif
  1711. #Enable power management suspend/resume functionality
  1712. ifeq ($(CONFIG_ATH_BUS_PM), 1)
  1713. CDEFINES += -DATH_BUS_PM
  1714. endif
  1715. #Enable FLOWMAC module support
  1716. ifeq ($(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE), 1)
  1717. CDEFINES += -DATH_SUPPORT_FLOWMAC_MODULE
  1718. endif
  1719. #Enable spectral support
  1720. ifeq ($(CONFIG_ATH_SUPPORT_SPECTRAL), 1)
  1721. CDEFINES += -DATH_SUPPORT_SPECTRAL
  1722. endif
  1723. #Enable WDI Event support
  1724. ifeq ($(CONFIG_WDI_EVENT_ENABLE), 1)
  1725. CDEFINES += -DWDI_EVENT_ENABLE
  1726. endif
  1727. #Endianess selection
  1728. ifeq ($(CONFIG_LITTLE_ENDIAN), 1)
  1729. AH_LITTLE_ENDIAN=1234
  1730. CDEFINES += -DAH_BYTE_ORDER=$(AH_LITTLE_ENDIAN)
  1731. else
  1732. AH_BIG_ENDIAN=4321
  1733. CDEFINES += -DAH_BYTE_ORDER=$(AH_BIG_ENDIAN)
  1734. CDEFINES += -DBIG_ENDIAN_HOST
  1735. endif
  1736. #Enable TX reclaim support
  1737. ifeq ($(CONFIG_TX_CREDIT_RECLAIM_SUPPORT), 1)
  1738. CDEFINES += -DTX_CREDIT_RECLAIM_SUPPORT
  1739. endif
  1740. #Enable FTM support
  1741. ifeq ($(CONFIG_QCA_WIFI_FTM), 1)
  1742. CDEFINES += -DQCA_WIFI_FTM
  1743. endif
  1744. #Enable Checksum Offload support
  1745. ifeq ($(CONFIG_CHECKSUM_OFFLOAD), 1)
  1746. CDEFINES += -DCHECKSUM_OFFLOAD
  1747. endif
  1748. #Enable Checksum Offload support
  1749. ifeq ($(CONFIG_IPA_OFFLOAD), 1)
  1750. CDEFINES += -DIPA_OFFLOAD
  1751. endif
  1752. ifeq ($(CONFIG_ARCH_SDX20), y)
  1753. CDEFINES += -DSYNC_IPA_READY
  1754. endif
  1755. #Enable GTK Offload
  1756. ifeq ($(CONFIG_GTK_OFFLOAD), 1)
  1757. CDEFINES += -DWLAN_FEATURE_GTK_OFFLOAD
  1758. CDEFINES += -DIGTK_OFFLOAD
  1759. endif
  1760. #Enable GTK Offload
  1761. ifeq ($(CONFIG_EXT_WOW), 1)
  1762. CDEFINES += -DWLAN_FEATURE_EXTWOW_SUPPORT
  1763. endif
  1764. #Mark it as SMP Kernel
  1765. ifeq ($(CONFIG_SMP),y)
  1766. CDEFINES += -DQCA_CONFIG_SMP
  1767. endif
  1768. #Enable Channel Matrix restriction for all Rome only targets
  1769. ifneq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
  1770. CDEFINES += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
  1771. endif
  1772. #Enable ICMP packet disable powersave feature
  1773. ifeq ($(CONFIG_ICMP_DISABLE_PS),y)
  1774. CDEFINES += -DWLAN_ICMP_DISABLE_PS
  1775. endif
  1776. #Enable OBSS feature
  1777. CDEFINES += -DQCA_HT_2040_COEX
  1778. #features specific to mobile router use case
  1779. ifeq ($(CONFIG_MOBILE_ROUTER), y)
  1780. #enable MCC TO SCC switch
  1781. CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
  1782. #enable wlan auto shutdown feature
  1783. CDEFINES += -DFEATURE_WLAN_AUTO_SHUTDOWN
  1784. #enable for MBSSID
  1785. CDEFINES += -DWLAN_FEATURE_MBSSID
  1786. #enable AP-AP ACS Optimization
  1787. CDEFINES += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
  1788. #Enable 4address scheme
  1789. CDEFINES += -DFEATURE_WLAN_STA_4ADDR_SCHEME
  1790. #enable MDM/SDX special config
  1791. CDEFINES += -DMDM_PLATFORM
  1792. #Disable STA-AP Mode DFS support
  1793. CDEFINES += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
  1794. else #CONFIG_MOBILE_ROUTER
  1795. #Open P2P device interface only for non-Mobile router use cases
  1796. CDEFINES += -DWLAN_OPEN_P2P_INTERFACE
  1797. #Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
  1798. CDEFINES += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
  1799. endif #CONFIG_MOBILE_ROUTER
  1800. #Green AP feature
  1801. ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
  1802. CDEFINES += -DWLAN_SUPPORT_GREEN_AP
  1803. endif
  1804. #Stats & Quota Metering feature
  1805. ifeq ($(CONFIG_IPA),y)
  1806. ifeq ($(CONFIG_QCACLD_FEATURE_METERING),y)
  1807. CDEFINES += -DFEATURE_METERING
  1808. endif
  1809. endif
  1810. #Enable RX Full re-order OL feature only "LL and NON-MDM9630 platform"
  1811. ifneq ($(CONFIG_ARCH_MDM9630), y)
  1812. ifeq ($(CONFIG_HIF_PCI), 1)
  1813. CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
  1814. endif
  1815. endif
  1816. ifeq ($(CONFIG_ARCH_MDM9607), y)
  1817. CDEFINES += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT
  1818. endif
  1819. ifeq ($(CONFIG_ARCH_MSM8996), y)
  1820. CDEFINES += -DCHANNEL_HOPPING_ALL_BANDS
  1821. endif
  1822. #Enable Signed firmware support for split binary format
  1823. ifeq ($(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT), 1)
  1824. CDEFINES += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
  1825. endif
  1826. #Enable single firmware binary format
  1827. ifeq ($(CONFIG_QCA_SINGLE_BINARY_SUPPORT), 1)
  1828. CDEFINES += -DQCA_SINGLE_BINARY_SUPPORT
  1829. endif
  1830. #Enable collecting target RAM dump after kernel panic
  1831. ifeq ($(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC), 1)
  1832. CDEFINES += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
  1833. endif
  1834. #Enable/disable secure firmware feature
  1835. ifeq ($(CONFIG_FEATURE_SECURE_FIRMWARE), 1)
  1836. CDEFINES += -DFEATURE_SECURE_FIRMWARE
  1837. endif
  1838. ifeq ($(CONFIG_ATH_PCIE_ACCESS_DEBUG), 1)
  1839. CDEFINES += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
  1840. endif
  1841. # Enable feature support fo Linux version QCMBR
  1842. ifeq ($(CONFIG_LINUX_QCMBR),y)
  1843. CDEFINES += -DLINUX_QCMBR
  1844. endif
  1845. # Enable featue sync tsf between multi devices
  1846. ifeq ($(CONFIG_WLAN_SYNC_TSF), y)
  1847. CDEFINES += -DWLAN_FEATURE_TSF
  1848. endif
  1849. ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
  1850. CDEFINES += -DWLAN_FEATURE_TSF_PLUS
  1851. endif
  1852. # Enable full rx re-order offload for adrastea
  1853. ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1854. CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
  1855. endif
  1856. # Enable athdiag procfs debug support for adrastea
  1857. ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1858. CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  1859. endif
  1860. # Enable 11AC TX compact feature for adrastea
  1861. ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1862. CDEFINES += -DATH_11AC_TXCOMPACT
  1863. endif
  1864. # NOTE: CONFIG_64BIT_PADDR requires CONFIG_HELIUMPLUS
  1865. ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
  1866. CONFIG_HELIUMPLUS := y
  1867. CONFIG_64BIT_PADDR := y
  1868. CONFIG_FEATURE_TSO := y
  1869. CONFIG_FEATURE_TSO_DEBUG := y
  1870. ifneq ($(CONFIG_FORCE_ALLOC_FROM_DMA_ZONE), y)
  1871. CONFIG_ENABLE_DEBUG_ADDRESS_MARKING := y
  1872. endif
  1873. ifeq ($(CONFIG_HELIUMPLUS),y)
  1874. CDEFINES += -DHELIUMPLUS
  1875. CDEFINES += -DAR900B
  1876. ifeq ($(CONFIG_64BIT_PADDR),y)
  1877. CDEFINES += -DHTT_PADDR64
  1878. endif
  1879. ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
  1880. CDEFINES += -DOL_RX_INDICATION_RECORD
  1881. CDEFINES += -DTSOSEG_DEBUG
  1882. endif
  1883. endif
  1884. endif
  1885. ifeq ($(CONFIG_ENABLE_DEBUG_ADDRESS_MARKING),y)
  1886. CDEFINES += -DENABLE_DEBUG_ADDRESS_MARKING
  1887. endif
  1888. ifeq ($(CONFIG_FEATURE_TSO),y)
  1889. CDEFINES += -DFEATURE_TSO
  1890. endif
  1891. ifeq ($(CONFIG_FEATURE_TSO_DEBUG),y)
  1892. CDEFINES += -DFEATURE_TSO_DEBUG
  1893. endif
  1894. ifeq ($(CONFIG_WLAN_LRO), y)
  1895. CDEFINES += -DFEATURE_LRO
  1896. endif
  1897. ifeq ($(CONFIG_MOBILE_ROUTER), y)
  1898. CDEFINES += -DFEATURE_AP_MCC_CH_AVOIDANCE
  1899. endif
  1900. ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
  1901. CDEFINES += -DMPC_UT_FRAMEWORK
  1902. endif
  1903. ifeq ($(CONFIG_WLAN_OFFLOAD_PACKETS),y)
  1904. CDEFINES += -DWLAN_FEATURE_OFFLOAD_PACKETS
  1905. endif
  1906. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  1907. CDEFINES += -DWLAN_FEATURE_DISA
  1908. endif
  1909. ifeq ($(CONFIG_WLAN_FEATURE_FIPS),y)
  1910. CDEFINES += -DWLAN_FEATURE_FIPS
  1911. endif
  1912. ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
  1913. CDEFINES += -DFEATURE_LFR_SUBNET_DETECTION
  1914. endif
  1915. ifeq ($(CONFIG_MCC_TO_SCC_SWITCH), y)
  1916. CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
  1917. endif
  1918. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  1919. CDEFINES += -DWLAN_FEATURE_NAN_DATAPATH
  1920. endif
  1921. ifeq ($(CONFIG_NAN_CONVERGENCE), y)
  1922. CDEFINES += -DWLAN_FEATURE_NAN_CONVERGENCE
  1923. endif
  1924. #Flag to enable/disable WLAN D0-WOW
  1925. ifeq ($(CONFIG_PCI_MSM), y)
  1926. ifeq ($(CONFIG_ROME_IF),pci)
  1927. CDEFINES += -DFEATURE_WLAN_D0WOW
  1928. endif
  1929. endif
  1930. ifeq ($(CONFIG_LITHIUM),y)
  1931. CDEFINES += -DCONFIG_SHADOW_V2
  1932. CDEFINES += -DQCA6290_HEADERS_DEF
  1933. CDEFINES += -DQCA_WIFI_QCA6290
  1934. CDEFINES += -DQCA_WIFI_QCA8074
  1935. CDEFINES += -DQCA_WIFI_QCA8074_VP
  1936. CDEFINES += -DDP_INTR_POLL_BASED
  1937. CDEFINES += -DTX_PER_PDEV_DESC_POOL
  1938. ifneq ($(CONFIG_IPA_OFFLOAD), 1)
  1939. CDEFINES += -DWLAN_RX_HASH
  1940. endif
  1941. CDEFINES += -DCONFIG_DP_TRACE
  1942. CDEFINES += -DFEATURE_TSO
  1943. CDEFINES += -DTSO_DEBUG_LOG_ENABLE
  1944. CDEFINES += -DDP_LFR
  1945. endif
  1946. ifeq ($(CONFIG_QCA6290_11AX), y)
  1947. CDEFINES += -DQCA_WIFI_QCA6290_11AX
  1948. endif
  1949. ifeq ($(CONFIG_WLAN_FEATURE_11AX),y)
  1950. CDEFINES += -DWLAN_FEATURE_11AX
  1951. CDEFINES += -DWLAN_FEATURE_11AX_BSS_COLOR
  1952. endif
  1953. # Dummy flag for WIN/MCL converged data path compilation
  1954. CDEFINES += -DDP_PRINT_ENABLE=0
  1955. CDEFINES += -DATH_SUPPORT_WRAP=0
  1956. CDEFINES += -DQCA_HOST2FW_RXBUF_RING
  1957. #endof dummy flags
  1958. # DFS component
  1959. CDEFINES += -DQCA_MCL_DFS_SUPPORT
  1960. CDEFINES += -DDFS_COMPONENT_ENABLE
  1961. CDEFINES += -DQCA_DFS_USE_POLICY_MANAGER
  1962. CDEFINES += -DQCA_DFS_NOL_PLATFORM_DRV_SUPPORT
  1963. ifeq ($(CONFIG_WLAN_DEBUGFS), y)
  1964. CDEFINES += -DWLAN_DEBUGFS
  1965. endif
  1966. ifeq ($(CONFIG_DYNAMIC_DEBUG),y)
  1967. CDEFINES += -DFEATURE_MULTICAST_HOST_FW_MSGS
  1968. endif
  1969. KBUILD_CPPFLAGS += $(CDEFINES)
  1970. # Currently, for versions of gcc which support it, the kernel Makefile
  1971. # is disabling the maybe-uninitialized warning. Re-enable it for the
  1972. # WLAN driver. Note that we must use EXTRA_CFLAGS here so that it
  1973. # will override the kernel settings.
  1974. ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y)
  1975. EXTRA_CFLAGS += -Wmaybe-uninitialized
  1976. ifneq (y,$(CONFIG_ARCH_MSM))
  1977. EXTRA_CFLAGS += -Wframe-larger-than=4096
  1978. endif
  1979. endif
  1980. EXTRA_CFLAGS += -Wmissing-prototypes
  1981. ifeq ($(call cc-option-yn, -Wheader-guard),y)
  1982. EXTRA_CFLAGS += -Wheader-guard
  1983. endif
  1984. # If the module name is not "wlan", then the define MULTI_IF_NAME to be the
  1985. # same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to
  1986. # any string that must be unique for all instances of the driver on the system.
  1987. # This allows multiple instances of the driver with different module names.
  1988. # If the module name is wlan, leave MULTI_IF_NAME undefined and the code will
  1989. # treat the driver as the primary driver.
  1990. ifneq ($(MODNAME), wlan)
  1991. CHIP_NAME ?= $(MODNAME)
  1992. CDEFINES += -DMULTI_IF_NAME=\"$(CHIP_NAME)\"
  1993. endif
  1994. # WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the
  1995. # system. If it is not defined, then the host driver will use the first 4
  1996. # characters (including NULL) of MULTI_IF_NAME to construct
  1997. # WLAN_HDD_ADAPTER_MAGIC.
  1998. ifdef WLAN_HDD_ADAPTER_MAGIC
  1999. CDEFINES += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC)
  2000. endif
  2001. # inject some build related information
  2002. ifeq ($(CONFIG_BUILD_TAG), y)
  2003. CLD_CHECKOUT = $(shell cd "$(WLAN_ROOT)" && \
  2004. git reflog | grep -vm1 cherry-pick | grep -oE ^[0-f]+)
  2005. CLD_IDS = $(shell cd "$(WLAN_ROOT)" && \
  2006. git log $(CLD_CHECKOUT)~..HEAD | \
  2007. sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
  2008. paste -sd "," -)
  2009. CMN_CHECKOUT = $(shell cd "$(WLAN_COMMON_INC)" && \
  2010. git reflog | grep -vm1 cherry-pick | grep -oE ^[0-f]+)
  2011. CMN_IDS = $(shell cd "$(WLAN_COMMON_INC)" && \
  2012. git log $(CMN_CHECKOUT)~..HEAD | \
  2013. sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
  2014. paste -sd "," -)
  2015. TIMESTAMP = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
  2016. BUILD_TAG = "$(TIMESTAMP); cld:$(CLD_IDS); cmn:$(CMN_IDS);"
  2017. CDEFINES += -DBUILD_TAG=\"$(BUILD_TAG)\"
  2018. endif
  2019. # Module information used by KBuild framework
  2020. obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
  2021. $(MODNAME)-y := $(OBJS)
  2022. OBJS_DIRS := $(dir $(OBJS)) \
  2023. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ \
  2024. $(QDF_OBJ_DIR)/ \
  2025. $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/ \
  2026. $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/ \
  2027. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/
  2028. CLEAN_DIRS := $(addsuffix *.o,$(sort $(OBJS_DIRS))) \
  2029. $(addsuffix .*.o.cmd,$(sort $(OBJS_DIRS)))
  2030. clean-files := $(CLEAN_DIRS)