Kbuild 63 KB

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