Kbuild 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444
  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_bss_score.o \
  687. $(UMAC_SCAN_CORE_DIR)/wlan_scan_filter.o \
  688. $(UMAC_SCAN_CORE_DIR)/wlan_scan_main.o \
  689. $(UMAC_SCAN_CORE_DIR)/wlan_scan_manager.o \
  690. $(UMAC_SCAN_DISP_DIR)/wlan_scan_tgt_api.o \
  691. $(UMAC_SCAN_DISP_DIR)/wlan_scan_ucfg_api.o \
  692. $(UMAC_SCAN_DISP_DIR)/wlan_scan_utils_api.o \
  693. $(WLAN_COMMON_ROOT)/os_if/linux/scan/src/wlan_cfg80211_scan.o \
  694. $(WLAN_COMMON_ROOT)/os_if/linux/wlan_cfg80211.o \
  695. $(WLAN_COMMON_ROOT)/target_if/scan/src/target_if_scan.o
  696. ############# UMAC_SPECTRAL_SCAN ############
  697. UMAC_SPECTRAL_DIR := spectral
  698. UMAC_SPECTRAL_DISP_INC_DIR := $(UMAC_SPECTRAL_DIR)/dispatcher/inc
  699. UMAC_SPECTRAL_CORE_INC_DIR := $(UMAC_SPECTRAL_DIR)/core
  700. UMAC_SPECTRAL_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/core
  701. UMAC_SPECTRAL_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/dispatcher/src
  702. UMAC_TARGET_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/target_if/spectral
  703. UMAC_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_DISP_INC_DIR)
  704. UMAC_SPECTRAL_OBJS := $(UMAC_SPECTRAL_CORE_DIR)/spectral_offload.o \
  705. $(UMAC_SPECTRAL_CORE_DIR)/spectral_common.o \
  706. $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_ucfg_api.o \
  707. $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_utils_api.o \
  708. $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_tgt_api.o \
  709. $(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/wlan_cfg80211_spectral.o \
  710. $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_netlink.o \
  711. $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_phyerr.o \
  712. $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral.o \
  713. $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_sim.o
  714. ############# UMAC_GREEN_AP ############
  715. UMAC_GREEN_AP_DIR := umac/green_ap
  716. UMAC_GREEN_AP_DISP_INC_DIR := $(UMAC_GREEN_AP_DIR)/dispatcher/inc
  717. UMAC_GREEN_AP_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/core/src
  718. UMAC_GREEN_AP_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/dispatcher/src
  719. UMAC_TARGET_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/target_if/green_ap/inc
  720. UMAC_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_GREEN_AP_DISP_INC_DIR)
  721. UMAC_GREEN_AP_OBJS := $(UMAC_GREEN_AP_CORE_DIR)/wlan_green_ap_main.o \
  722. $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_api.o \
  723. $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_ucfg_api.o \
  724. $(WLAN_COMMON_ROOT)/target_if/green_ap/src/target_if_green_ap.o
  725. ############# FTM CORE ############
  726. FTM_CORE_DIR := ftm
  727. TARGET_IF_FTM_DIR := target_if/ftm
  728. OS_IF_LINUX_FTM_DIR := os_if/linux/ftm
  729. FTM_CORE_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/core/src
  730. FTM_DISP_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/dispatcher/src
  731. TARGET_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(TARGET_IF_FTM_DIR)/src
  732. OS_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(OS_IF_LINUX_FTM_DIR)/src
  733. FTM_CORE_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/core/src
  734. FTM_DISP_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/dispatcher/inc
  735. TARGET_IF_FTM_INC := $(WLAN_COMMON_INC)/$(TARGET_IF_FTM_DIR)/inc
  736. OS_IF_FTM_INC := $(WLAN_COMMON_INC)/$(OS_IF_LINUX_FTM_DIR)/inc
  737. FTM_INC := -I$(FTM_DISP_INC) \
  738. -I$(FTM_CORE_INC) \
  739. -I$(OS_IF_FTM_INC) \
  740. -I$(TARGET_IF_FTM_INC)
  741. FTM_OBJS := $(FTM_DISP_SRC)/wlan_ftm_init_deinit.o \
  742. $(FTM_DISP_SRC)/wlan_ftm_ucfg_api.o \
  743. $(FTM_CORE_SRC)/wlan_ftm_svc.o \
  744. $(OS_IF_FTM_SRC)/wlan_cfg80211_ftm.o \
  745. $(TARGET_IF_FTM_SRC)/target_if_ftm.o
  746. ifeq ($(CONFIG_LINUX_QCMBR),y)
  747. FTM_OBJS += $(OS_IF_FTM_SRC)/wlan_ioctl_ftm.o
  748. endif
  749. ############# UMAC_CMN_SERVICES ############
  750. UMAC_COMMON_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/cmn_defs/inc \
  751. -I$(WLAN_COMMON_INC)/umac/cmn_services/utils/inc
  752. UMAC_COMMON_OBJS := $(WLAN_COMMON_ROOT)/umac/cmn_services/utils/src/wlan_utility.o
  753. ifeq ($(CONFIG_WLAN_LRO), y)
  754. QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_lro.o
  755. endif
  756. ############ CDS (Connectivity driver services) ############
  757. CDS_DIR := core/cds
  758. CDS_INC_DIR := $(CDS_DIR)/inc
  759. CDS_SRC_DIR := $(CDS_DIR)/src
  760. CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \
  761. -I$(WLAN_ROOT)/$(CDS_SRC_DIR)
  762. CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \
  763. $(CDS_SRC_DIR)/cds_reg_service.o \
  764. $(CDS_SRC_DIR)/cds_packet.o \
  765. $(CDS_SRC_DIR)/cds_regdomain.o \
  766. $(CDS_SRC_DIR)/cds_sched.o \
  767. $(CDS_SRC_DIR)/cds_utils.o
  768. ###### UMAC OBJMGR ########
  769. UMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr
  770. UMAC_OBJMGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/inc \
  771. -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/src \
  772. -I$(WLAN_COMMON_INC)/umac/cmn_services/inc \
  773. -I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc
  774. UMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \
  775. $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_pdev_obj.o \
  776. $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_peer_obj.o \
  777. $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \
  778. $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_service_ready_api.o \
  779. $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o
  780. ########### UMAC MGMT TXRX ##########
  781. UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx
  782. UMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \
  783. UMAC_MGMT_TXRX_OBJS := $(UMAC_MGMT_TXRX_DIR)/core/src/wlan_mgmt_txrx_main.o \
  784. $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_utils_api.o \
  785. $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_tgt_api.o
  786. ########## POWER MANAGEMENT OFFLOADS (PMO) ##########
  787. PMO_DIR := components/pmo
  788. PMO_INC := -I$(WLAN_ROOT)/$(PMO_DIR)/core/inc \
  789. -I$(WLAN_ROOT)/$(PMO_DIR)/core/src \
  790. -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/inc \
  791. -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/src \
  792. PMO_OBJS := $(PMO_DIR)/core/src/wlan_pmo_main.o \
  793. $(PMO_DIR)/core/src/wlan_pmo_arp.o \
  794. $(PMO_DIR)/core/src/wlan_pmo_ns.o \
  795. $(PMO_DIR)/core/src/wlan_pmo_gtk.o \
  796. $(PMO_DIR)/core/src/wlan_pmo_mc_addr_filtering.o \
  797. $(PMO_DIR)/core/src/wlan_pmo_static_config.o \
  798. $(PMO_DIR)/core/src/wlan_pmo_wow.o \
  799. $(PMO_DIR)/core/src/wlan_pmo_lphb.o \
  800. $(PMO_DIR)/core/src/wlan_pmo_suspend_resume.o \
  801. $(PMO_DIR)/core/src/wlan_pmo_hw_filter.o \
  802. $(PMO_DIR)/core/src/wlan_pmo_pkt_filter.o \
  803. $(PMO_DIR)/dispatcher/src/wlan_pmo_obj_mgmt_api.o \
  804. $(PMO_DIR)/dispatcher/src/wlan_pmo_ucfg_api.o \
  805. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_arp.o \
  806. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_ns.o \
  807. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_gtk.o \
  808. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_wow.o \
  809. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_static_config.o \
  810. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_mc_addr_filtering.o \
  811. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_lphb.o \
  812. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_suspend_resume.o \
  813. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_hw_filter.o \
  814. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_pkt_filter.o
  815. ########## DISA (ENCRYPTION TEST) ##########
  816. DISA_DIR := components/disa
  817. DISA_INC := -I$(WLAN_ROOT)/$(DISA_DIR)/core/inc \
  818. -I$(WLAN_ROOT)/$(DISA_DIR)/dispatcher/inc
  819. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  820. DISA_OBJS := $(DISA_DIR)/core/src/wlan_disa_main.o \
  821. $(DISA_DIR)/dispatcher/src/wlan_disa_obj_mgmt_api.o \
  822. $(DISA_DIR)/dispatcher/src/wlan_disa_tgt_api.o \
  823. $(DISA_DIR)/dispatcher/src/wlan_disa_ucfg_api.o
  824. endif
  825. ########## CLD TARGET_IF #######
  826. CLD_TARGET_IF_DIR := components/target_if
  827. CLD_TARGET_IF_INC := -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/inc \
  828. -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/src \
  829. CLD_TARGET_IF_OBJ := $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \
  830. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \
  831. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_hw_filter.o \
  832. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \
  833. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \
  834. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \
  835. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o \
  836. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_pkt_filter.o \
  837. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \
  838. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \
  839. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o \
  840. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  841. CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/disa/inc
  842. CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/disa/src/target_if_disa.o
  843. endif
  844. ############## UMAC P2P ###########
  845. P2P_DIR := umac/p2p
  846. P2P_CORE_DIR := $(P2P_DIR)/core
  847. P2P_CORE_SRC_DIR := $(P2P_CORE_DIR)/src
  848. P2P_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_CORE_SRC_DIR)
  849. P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher
  850. P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc
  851. P2P_DISPATCHER_SRC_DIR := $(P2P_DISPATCHER_DIR)/src
  852. P2P_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_DISPATCHER_SRC_DIR)
  853. UMAC_P2P_INC := -I$(WLAN_COMMON_INC)/$(P2P_DISPATCHER_INC_DIR) \
  854. -I$(WLAN_COMMON_INC)/umac/scan/dispatcher/inc
  855. UMAC_P2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \
  856. $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \
  857. $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \
  858. $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \
  859. $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o
  860. ###### UMAC POLICY MGR ########
  861. UMAC_POLICY_MGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/policy_mgr
  862. UMAC_POLICY_MGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/inc \
  863. -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/src
  864. UMAC_POLICY_MGR_OBJS := $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \
  865. $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \
  866. $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \
  867. $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \
  868. $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o \
  869. ###### UMAC TDLS ########
  870. UMAC_TDLS_DIR := $(WLAN_COMMON_ROOT)/umac/tdls
  871. UMAC_TDLS_INC := -I$(WLAN_COMMON_INC)/umac/tdls/dispatcher/inc
  872. UMAC_TDLS_OBJS := $(UMAC_TDLS_DIR)/core/src/wlan_tdls_main.o \
  873. $(UMAC_TDLS_DIR)/core/src/wlan_tdls_cmds_process.o \
  874. $(UMAC_TDLS_DIR)/core/src/wlan_tdls_peer.o \
  875. $(UMAC_TDLS_DIR)/core/src/wlan_tdls_mgmt.o \
  876. $(UMAC_TDLS_DIR)/core/src/wlan_tdls_ct.o \
  877. $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_tgt_api.o \
  878. $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_ucfg_api.o \
  879. $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_utils_api.o \
  880. $(WLAN_COMMON_ROOT)/os_if/linux/tdls/src/wlan_cfg80211_tdls.o
  881. ########### BMI ###########
  882. BMI_DIR := core/bmi
  883. BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
  884. BMI_OBJS := $(BMI_DIR)/src/bmi.o \
  885. $(BMI_DIR)/src/ol_fw.o \
  886. $(BMI_DIR)/src/ol_fw_common.o
  887. BMI_OBJS += $(BMI_DIR)/src/bmi_1.o
  888. ########## TARGET_IF #######
  889. TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if
  890. TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \
  891. -I$(WLAN_COMMON_INC)/target_if/core/src \
  892. -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \
  893. -I$(WLAN_COMMON_INC)/target_if/p2p/inc \
  894. -I$(WLAN_COMMON_INC)/target_if/regulatory/inc \
  895. -I$(WLAN_COMMON_INC)/target_if/tdls/inc
  896. TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \
  897. $(TARGET_IF_DIR)/init_deinit/src/service_ready_event_handler.o \
  898. $(TARGET_IF_DIR)/p2p/src/target_if_p2p.o \
  899. $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o \
  900. $(TARGET_IF_DIR)/tdls/src/target_if_tdls.o
  901. ########### GLOBAL_LMAC_IF ##########
  902. GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if
  903. GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \
  904. -I$(WLAN_COMMON_INC)/global_lmac_if/src
  905. GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o
  906. ########### WMI ###########
  907. WMI_ROOT_DIR := wmi
  908. WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
  909. WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
  910. WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
  911. WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
  912. WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
  913. $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
  914. $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
  915. $(WMI_OBJ_DIR)/wmi_unified_api.o \
  916. $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o \
  917. $(WMI_OBJ_DIR)/wmi_unified_reg_api.o \
  918. $(WMI_OBJ_DIR)/wmi_unified_dfs_api.o \
  919. $(WMI_OBJ_DIR)/wmi_unified_non_tlv.o
  920. ########### FWLOG ###########
  921. FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog
  922. FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
  923. FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
  924. ############ TXRX ############
  925. TXRX_DIR := core/dp/txrx
  926. TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
  927. TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \
  928. $(TXRX_DIR)/ol_cfg.o \
  929. $(TXRX_DIR)/ol_rx.o \
  930. $(TXRX_DIR)/ol_rx_fwd.o \
  931. $(TXRX_DIR)/ol_txrx.o \
  932. $(TXRX_DIR)/ol_rx_defrag.o \
  933. $(TXRX_DIR)/ol_tx_desc.o \
  934. $(TXRX_DIR)/ol_tx.o \
  935. $(TXRX_DIR)/ol_rx_reorder_timeout.o \
  936. $(TXRX_DIR)/ol_rx_reorder.o \
  937. $(TXRX_DIR)/ol_rx_pn.o \
  938. $(TXRX_DIR)/ol_tx_queue.o \
  939. $(TXRX_DIR)/ol_txrx_peer_find.o \
  940. $(TXRX_DIR)/ol_txrx_event.o \
  941. $(TXRX_DIR)/ol_txrx_encap.o \
  942. $(TXRX_DIR)/ol_tx_send.o \
  943. $(TXRX_DIR)/ol_tx_sched.o \
  944. $(TXRX_DIR)/ol_tx_classify.o
  945. ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
  946. TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
  947. endif
  948. ifeq ($(CONFIG_IPA_OFFLOAD), 1)
  949. TXRX_OBJS += $(TXRX_DIR)/ol_txrx_ipa.o
  950. endif
  951. ifeq ($(CONFIG_LITHIUM), y)
  952. ############ DP 3.0 ############
  953. DP_INC := -I$(WLAN_COMMON_ROOT)/dp/inc \
  954. -I$(WLAN_COMMON_ROOT)/dp/wifi3.0
  955. DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0
  956. DP_OBJS := $(DP_SRC)/dp_main.o \
  957. $(DP_SRC)/dp_tx.o \
  958. $(DP_SRC)/dp_tx_desc.o \
  959. $(DP_SRC)/dp_rx.o \
  960. $(DP_SRC)/dp_rx_err.o \
  961. $(DP_SRC)/dp_htt.o \
  962. $(DP_SRC)/dp_peer.o \
  963. $(DP_SRC)/dp_rx_desc.o \
  964. $(DP_SRC)/dp_reo.o \
  965. $(DP_SRC)/dp_rx_mon_dest.o \
  966. $(DP_SRC)/dp_rx_mon_status.o \
  967. $(DP_SRC)/dp_rx_defrag.o \
  968. $(DP_SRC)/dp_stats.o
  969. ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
  970. DP_OBJS += $(DP_SRC)/dp_tx_flow_control.o
  971. endif
  972. endif
  973. ifeq ($(CONFIG_IPA_OFFLOAD), 1)
  974. DP_OBJS += $(DP_SRC)/dp_ipa.o
  975. endif
  976. ifeq ($(CONFIG_WDI_EVENT_ENABLE), 1)
  977. DP_OBJS += $(DP_SRC)/dp_wdi_event.o
  978. endif
  979. ############ CFG ############
  980. WCFG_DIR := wlan_cfg
  981. WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR)
  982. WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR)
  983. WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o
  984. ############ OL ############
  985. OL_DIR := core/dp/ol
  986. OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
  987. ############ CDP ############
  988. CDP_ROOT_DIR := dp
  989. CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
  990. CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
  991. ############ PKTLOG ############
  992. PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog
  993. PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
  994. PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
  995. $(PKTLOG_DIR)/pktlog_internal.o \
  996. $(PKTLOG_DIR)/linux_ac.o
  997. ############ HTT ############
  998. HTT_DIR := core/dp/htt
  999. HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
  1000. HTT_OBJS := $(HTT_DIR)/htt_tx.o \
  1001. $(HTT_DIR)/htt.o \
  1002. $(HTT_DIR)/htt_t2h.o \
  1003. $(HTT_DIR)/htt_h2t.o \
  1004. $(HTT_DIR)/htt_fw_stats.o \
  1005. $(HTT_DIR)/htt_rx.o
  1006. ############## INIT-DEINIT ###########
  1007. INIT_DEINIT_DIR := init_deinit/dispatcher
  1008. INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc
  1009. INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src
  1010. INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR)
  1011. INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR)
  1012. INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o
  1013. ############## REGULATORY ###########
  1014. REGULATORY_DIR := umac/regulatory
  1015. REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc
  1016. REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src
  1017. REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc
  1018. REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src
  1019. REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR)
  1020. REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR)
  1021. REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR)
  1022. REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR)
  1023. REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_db.o \
  1024. $(REG_CORE_OBJ_DIR)/reg_services.o \
  1025. $(REG_CORE_OBJ_DIR)/reg_db_parser.o \
  1026. $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \
  1027. $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \
  1028. $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o
  1029. ############## Control path common scheduler ##########
  1030. SCHEDULER_DIR := scheduler
  1031. SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc
  1032. SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src
  1033. SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR)
  1034. SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR)
  1035. SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \
  1036. $(SCHEDULER_OBJ_DIR)/scheduler_core.o
  1037. ###### UMAC SERIALIZATION ########
  1038. UMAC_SER_DIR := umac/cmn_services/serialization
  1039. UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc
  1040. UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src
  1041. UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR)
  1042. UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR)
  1043. UMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_dequeue.o \
  1044. $(UMAC_SER_OBJ_DIR)/wlan_serialization_enqueue.o \
  1045. $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \
  1046. $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \
  1047. $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \
  1048. $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \
  1049. $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o
  1050. ###### WIFI POS ########
  1051. CONFIG_WIFI_POS_CONVERGED := y
  1052. WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src
  1053. WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc
  1054. WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src
  1055. WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc
  1056. WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src
  1057. WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc
  1058. ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
  1059. WIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \
  1060. $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \
  1061. $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \
  1062. $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \
  1063. $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \
  1064. $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o
  1065. endif
  1066. ######################### NAN #########################
  1067. NAN_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/nan/core/src
  1068. NAN_CORE_INC := -I$(WLAN_COMMON_INC)/umac/nan/core/inc
  1069. NAN_UCFG_DIR := $(WLAN_COMMON_ROOT)/umac/nan/dispatcher/src
  1070. NAN_UCFG_INC := -I$(WLAN_COMMON_INC)/umac/nan/dispatcher/inc
  1071. NAN_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/nan/src
  1072. NAN_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/nan/inc
  1073. NAN_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/nan/src
  1074. NAN_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/nan/inc
  1075. ifeq ($(CONFIG_NAN_CONVERGENCE), y)
  1076. WLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \
  1077. $(NAN_CORE_DIR)/nan_api.o \
  1078. $(NAN_CORE_DIR)/nan_utils.o \
  1079. $(NAN_UCFG_DIR)/nan_ucfg_api.o \
  1080. $(NAN_TGT_DIR)/target_if_nan.o \
  1081. $(NAN_OS_IF_DIR)/os_if_nan.o
  1082. endif
  1083. #######################################################
  1084. ############## HTC ##########
  1085. HTC_DIR := htc
  1086. HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
  1087. HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
  1088. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
  1089. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
  1090. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
  1091. ########### HIF ###########
  1092. HIF_DIR := hif
  1093. HIF_CE_DIR := $(HIF_DIR)/src/ce
  1094. HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
  1095. HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
  1096. HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
  1097. HIF_USB_DIR := $(HIF_DIR)/src/usb
  1098. HIF_SDIO_DIR := $(HIF_DIR)/src/sdio
  1099. HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio
  1100. HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include
  1101. HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src
  1102. HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
  1103. -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src
  1104. ifeq ($(CONFIG_HIF_PCI), 1)
  1105. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  1106. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
  1107. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
  1108. endif
  1109. ifeq ($(CONFIG_HIF_SNOC), 1)
  1110. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  1111. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
  1112. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
  1113. endif
  1114. ifeq ($(CONFIG_HIF_USB), 1)
  1115. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  1116. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR)
  1117. endif
  1118. ifeq ($(CONFIG_HIF_SDIO), 1)
  1119. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  1120. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR)
  1121. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR)
  1122. endif
  1123. HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
  1124. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
  1125. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o \
  1126. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_exec.o \
  1127. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_irq_affinity.o
  1128. HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o \
  1129. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
  1130. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
  1131. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
  1132. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
  1133. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
  1134. ifeq ($(CONFIG_LITHIUM), y)
  1135. HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o \
  1136. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
  1137. endif
  1138. HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \
  1139. $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \
  1140. $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \
  1141. $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o
  1142. HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_send.o \
  1143. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o \
  1144. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \
  1145. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \
  1146. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \
  1147. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_recv.o \
  1148. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o
  1149. HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \
  1150. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o
  1151. ifeq ($(CONFIG_WLAN_NAPI), y)
  1152. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
  1153. endif
  1154. ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), 1)
  1155. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_unit_test_suspend.o
  1156. endif
  1157. HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
  1158. HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
  1159. HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o
  1160. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
  1161. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
  1162. HIF_OBJS += $(HIF_COMMON_OBJS)
  1163. ifeq ($(CONFIG_HIF_PCI), 1)
  1164. HIF_OBJS += $(HIF_PCIE_OBJS)
  1165. HIF_OBJS += $(HIF_CE_OBJS)
  1166. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
  1167. endif
  1168. ifeq ($(CONFIG_HIF_SNOC), 1)
  1169. HIF_OBJS += $(HIF_SNOC_OBJS)
  1170. HIF_OBJS += $(HIF_CE_OBJS)
  1171. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
  1172. endif
  1173. ifeq ($(CONFIG_HIF_SDIO), 1)
  1174. HIF_OBJS += $(HIF_SDIO_OBJS)
  1175. HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS)
  1176. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o
  1177. endif
  1178. ifeq ($(CONFIG_HIF_USB), 1)
  1179. HIF_OBJS += $(HIF_USB_OBJS)
  1180. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o
  1181. endif
  1182. ifeq ($(CONFIG_LITHIUM), y)
  1183. ############ HAL ############
  1184. HAL_DIR := hal
  1185. HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \
  1186. -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0
  1187. HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \
  1188. $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_rx.o \
  1189. $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_wbm.o \
  1190. $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o
  1191. endif
  1192. ############ WMA ############
  1193. WMA_DIR := core/wma
  1194. WMA_INC_DIR := $(WMA_DIR)/inc
  1195. WMA_SRC_DIR := $(WMA_DIR)/src
  1196. WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
  1197. -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
  1198. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  1199. WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
  1200. endif
  1201. WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \
  1202. $(WMA_SRC_DIR)/wma_scan_roam.o \
  1203. $(WMA_SRC_DIR)/wma_dev_if.o \
  1204. $(WMA_SRC_DIR)/wma_mgmt.o \
  1205. $(WMA_SRC_DIR)/wma_power.o \
  1206. $(WMA_SRC_DIR)/wma_data.o \
  1207. $(WMA_SRC_DIR)/wma_utils.o \
  1208. $(WMA_SRC_DIR)/wma_features.o \
  1209. $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
  1210. $(WMA_NDP_OBJS)
  1211. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  1212. WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o
  1213. endif
  1214. ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
  1215. WMA_OBJS+= $(WMA_SRC_DIR)/wma_fips_api.o
  1216. endif
  1217. ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
  1218. WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
  1219. endif
  1220. ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
  1221. WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o
  1222. endif
  1223. ############## PLD ##########
  1224. PLD_DIR := core/pld
  1225. PLD_INC_DIR := $(PLD_DIR)/inc
  1226. PLD_SRC_DIR := $(PLD_DIR)/src
  1227. PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
  1228. -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
  1229. PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
  1230. ifeq ($(CONFIG_PCI), y)
  1231. PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
  1232. endif
  1233. ifeq ($(CONFIG_ICNSS),y)
  1234. PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
  1235. endif
  1236. ifeq ($(CONFIG_CNSS_SDIO),y)
  1237. PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o
  1238. endif
  1239. ifeq ($(CONFIG_PLD_USB_CNSS), y)
  1240. PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o
  1241. endif
  1242. ifeq ($(CONFIG_QCA6290_11AX), y)
  1243. TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/11ax/v1 \
  1244. -I$(WLAN_ROOT)/../fw-api/fw
  1245. else
  1246. TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/v2 \
  1247. -I$(WLAN_ROOT)/../fw-api/fw
  1248. endif
  1249. LINUX_INC := -Iinclude
  1250. INCS := $(HDD_INC) \
  1251. $(EPPING_INC) \
  1252. $(LINUX_INC) \
  1253. $(MAC_INC) \
  1254. $(SAP_INC) \
  1255. $(SME_INC) \
  1256. $(SYS_INC) \
  1257. $(QDF_INC) \
  1258. $(CDS_INC) \
  1259. $(DFS_INC) \
  1260. $(TARGET_IF_INC) \
  1261. $(CLD_TARGET_IF_INC) \
  1262. $(OS_IF_INC) \
  1263. $(GLOBAL_LMAC_IF_INC) \
  1264. $(FTM_INC)
  1265. INCS += $(WMA_INC) \
  1266. $(UAPI_INC) \
  1267. $(COMMON_INC) \
  1268. $(WMI_INC) \
  1269. $(FWLOG_INC) \
  1270. $(TXRX_INC) \
  1271. $(OL_INC) \
  1272. $(CDP_INC) \
  1273. $(PKTLOG_INC) \
  1274. $(HTT_INC) \
  1275. $(INIT_DEINIT_INC) \
  1276. $(SCHEDULER_INC) \
  1277. $(REGULATORY_INC) \
  1278. $(HTC_INC) \
  1279. $(DFS_INC) \
  1280. $(WCFG_INC)
  1281. INCS += $(HIF_INC) \
  1282. $(BMI_INC)
  1283. ifeq ($(CONFIG_LITHIUM), y)
  1284. INCS += $(HAL_INC) \
  1285. $(DP_INC)
  1286. endif
  1287. ################ WIFI POS ################
  1288. INCS += $(WIFI_POS_API_INC)
  1289. INCS += $(WIFI_POS_TGT_INC)
  1290. INCS += $(WIFI_POS_OS_IF_INC)
  1291. ##########################################
  1292. ################ NAN POS ################
  1293. INCS += $(NAN_CORE_INC)
  1294. INCS += $(NAN_UCFG_INC)
  1295. INCS += $(NAN_TGT_INC)
  1296. INCS += $(NAN_OS_IF_INC)
  1297. ##########################################
  1298. INCS += $(UMAC_OBJMGR_INC)
  1299. INCS += $(UMAC_MGMT_TXRX_INC)
  1300. INCS += $(PMO_INC)
  1301. INCS += $(UMAC_P2P_INC)
  1302. INCS += $(UMAC_POLICY_MGR_INC)
  1303. INCS += $(TARGET_INC)
  1304. INCS += $(UMAC_TDLS_INC)
  1305. INCS += $(UMAC_SER_INC)
  1306. INCS += $(NLINK_INC) \
  1307. $(PTT_INC) \
  1308. $(WLAN_LOGGING_INC)
  1309. INCS += $(PLD_INC)
  1310. ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
  1311. INCS += $(PKTLOG_INC)
  1312. endif
  1313. ifeq ($(BUILD_DIAG_VERSION), 1)
  1314. INCS += $(HOST_DIAG_LOG_INC)
  1315. endif
  1316. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  1317. INCS += $(DISA_INC)
  1318. endif
  1319. INCS += $(UMAC_DISP_INC)
  1320. INCS += $(UMAC_SCAN_INC)
  1321. INCS += $(UMAC_TARGET_SCAN_INC)
  1322. INCS += $(UMAC_GREEN_AP_INC)
  1323. INCS += $(UMAC_TARGET_GREEN_AP_INC)
  1324. INCS += $(UMAC_COMMON_INC)
  1325. INCS += $(UMAC_SPECTRAL_INC)
  1326. INCS += $(UMAC_TARGET_SPECTRAL_INC)
  1327. OBJS := $(HDD_OBJS) \
  1328. $(EPPING_OBJS) \
  1329. $(MAC_OBJS) \
  1330. $(SAP_OBJS) \
  1331. $(SME_OBJS) \
  1332. $(SYS_OBJS) \
  1333. $(QDF_OBJS) \
  1334. $(CDS_OBJS) \
  1335. $(DFS_OBJS) \
  1336. $(FTM_OBJS)
  1337. OBJS += $(WMA_OBJS) \
  1338. $(TXRX_OBJS) \
  1339. $(WMI_OBJS) \
  1340. $(FWLOG_OBJS) \
  1341. $(HTC_OBJS) \
  1342. $(INIT_DEINIT_OBJS) \
  1343. $(SCHEDULER_OBJS) \
  1344. $(REGULATORY_OBJS) \
  1345. $(DFS_OBJS)
  1346. OBJS += $(HIF_OBJS) \
  1347. $(BMI_OBJS) \
  1348. $(HTT_OBJS) \
  1349. $(OS_IF_OBJ) \
  1350. $(TARGET_IF_OBJ) \
  1351. $(CLD_TARGET_IF_OBJ) \
  1352. $(GLOBAL_LMAC_IF_OBJ)
  1353. ifeq ($(CONFIG_LITHIUM), y)
  1354. OBJS += $(HAL_OBJS)
  1355. endif
  1356. OBJS += $(UMAC_OBJMGR_OBJS)
  1357. OBJS += $(WIFI_POS_OBJS)
  1358. OBJS += $(WLAN_NAN_OBJS)
  1359. OBJS += $(UMAC_MGMT_TXRX_OBJS)
  1360. OBJS += $(UMAC_TDLS_OBJS)
  1361. OBJS += $(PMO_OBJS)
  1362. OBJS += $(UMAC_P2P_OBJS)
  1363. OBJS += $(UMAC_POLICY_MGR_OBJS)
  1364. OBJS += $(WLAN_LOGGING_OBJS)
  1365. OBJS += $(NLINK_OBJS)
  1366. OBJS += $(PTT_OBJS)
  1367. OBJS += $(UMAC_SER_OBJS)
  1368. OBJS += $(PLD_OBJS)
  1369. ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
  1370. OBJS += $(PKTLOG_OBJS)
  1371. endif
  1372. ifeq ($(BUILD_DIAG_VERSION), 1)
  1373. OBJS += $(HOST_DIAG_LOG_OBJS)
  1374. endif
  1375. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  1376. OBJS += $(DISA_OBJS)
  1377. endif
  1378. OBJS += $(UMAC_DISP_OBJS)
  1379. OBJS += $(UMAC_SCAN_OBJS)
  1380. OBJS += $(UMAC_COMMON_OBJS)
  1381. OBJS += $(WCFG_OBJS)
  1382. OBJS += $(UMAC_SPECTRAL_OBJS)
  1383. ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
  1384. OBJS += $(UMAC_GREEN_AP_OBJS)
  1385. endif
  1386. ifeq ($(CONFIG_LITHIUM), y)
  1387. OBJS += $(DP_OBJS)
  1388. endif
  1389. EXTRA_CFLAGS += $(INCS)
  1390. CDEFINES := -DANI_LITTLE_BYTE_ENDIAN \
  1391. -DANI_LITTLE_BIT_ENDIAN \
  1392. -DDOT11F_LITTLE_ENDIAN_HOST \
  1393. -DANI_COMPILER_TYPE_GCC \
  1394. -DANI_OS_TYPE_ANDROID=6 \
  1395. -DPTT_SOCK_SVC_ENABLE \
  1396. -Wall\
  1397. -Werror\
  1398. -D__linux__ \
  1399. -DHAL_SELF_STA_PER_BSS=1 \
  1400. -DFEATURE_WLAN_WAPI \
  1401. -DSOFTAP_CHANNEL_RANGE \
  1402. -DWLAN_AP_STA_CONCURRENCY \
  1403. -DFEATURE_WLAN_SCAN_PNO \
  1404. -DWLAN_FEATURE_PACKET_FILTERING \
  1405. -DWLAN_FEATURE_P2P_DEBUG \
  1406. -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \
  1407. -DWLANTL_DEBUG\
  1408. -DWLAN_NS_OFFLOAD \
  1409. -DWLAN_SOFTAP_VSTA_FEATURE \
  1410. -DWLAN_FEATURE_GTK_OFFLOAD \
  1411. -DWLAN_WAKEUP_EVENTS \
  1412. -DFEATURE_WLAN_RA_FILTERING\
  1413. -DFEATURE_WLAN_LPHB \
  1414. -DQCA_SUPPORT_TX_THROTTLE \
  1415. -DWMI_INTERFACE_EVENT_LOGGING \
  1416. -DATH_SUPPORT_WAPI \
  1417. -DWLAN_FEATURE_LINK_LAYER_STATS \
  1418. -DFEATURE_WLAN_EXTSCAN \
  1419. -DWLAN_FEATURE_MBSSID \
  1420. -DCONFIG_160MHZ_SUPPORT \
  1421. -DCONFIG_MCL \
  1422. -DCONFIG_LEGACY_CHAN_ENUM \
  1423. -DNAPIER_SCAN \
  1424. -DWLAN_PMO_ENABLE \
  1425. -DCONVERGED_P2P_ENABLE \
  1426. -DWLAN_POLICY_MGR_ENABLE \
  1427. -DSUPPORT_11AX \
  1428. -DCONFIG_HDD_INIT_WITH_RTNL_LOCK \
  1429. -DCONVERGED_TDLS_ENABLE \
  1430. -DWLAN_CONV_SPECTRAL_ENABLE \
  1431. -DSPECTRAL_USE_NETLINK_SOCKETS \
  1432. -DWLAN_SPECTRAL_ENABLE \
  1433. -DWMI_CMD_STRINGS
  1434. ############ WIFI POS ##############
  1435. ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
  1436. CDEFINES += -DWIFI_POS_CONVERGED
  1437. else
  1438. CDEFINES += -DFEATURE_OEM_DATA_SUPPORT
  1439. endif
  1440. ####################################
  1441. ifneq ($(CONFIG_HIF_USB), 1)
  1442. CDEFINES += -DWLAN_LOGGING_SOCK_SVC_ENABLE
  1443. endif
  1444. ifeq ($(CONFIG_WLAN_FEATURE_FILS),y)
  1445. CDEFINES += -DWLAN_FEATURE_FILS_SK
  1446. endif
  1447. ifeq ($(CONFIG_CNSS), y)
  1448. ifeq ($(CONFIG_CNSS_SDIO), y)
  1449. CDEFINES += -DCONFIG_PLD_SDIO_CNSS
  1450. else
  1451. CDEFINES += -DCONFIG_PLD_PCIE_CNSS
  1452. endif
  1453. endif
  1454. ifeq ($(CONFIG_CNSS2), y)
  1455. CDEFINES += -DCONFIG_PLD_PCIE_CNSS
  1456. CDEFINES += -DCONFIG_PLD_PCIE_INIT
  1457. endif
  1458. #Enable NL80211 test mode
  1459. ifeq ($(CONFIG_NL80211_TESTMODE), y)
  1460. CDEFINES += -DWLAN_NL80211_TESTMODE
  1461. endif
  1462. # Flag to enable bus auto suspend
  1463. ifeq ($(CONFIG_ROME_IF),pci)
  1464. ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
  1465. CDEFINES += -DFEATURE_RUNTIME_PM
  1466. endif
  1467. endif
  1468. ifeq ($(CONFIG_ICNSS), y)
  1469. CDEFINES += -DCONFIG_PLD_SNOC_ICNSS
  1470. endif
  1471. ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
  1472. CDEFINES += -DQCA_WIFI_3_0
  1473. endif
  1474. ifeq (y,$(filter y,$(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1475. CDEFINES += -DQCA_WIFI_3_0_ADRASTEA
  1476. ifeq ($(CONFIG_QMI_SUPPORT), 1)
  1477. CDEFINES += -DADRASTEA_SHADOW_REGISTERS
  1478. endif
  1479. CDEFINES += -DADRASTEA_RRI_ON_DDR
  1480. endif
  1481. ifeq ($(CONFIG_QMI_SUPPORT), 0)
  1482. CDEFINES += -DCONFIG_BYPASS_QMI
  1483. endif
  1484. ifeq ($(CONFIG_WLAN_FASTPATH), y)
  1485. CDEFINES += -DWLAN_FEATURE_FASTPATH
  1486. endif
  1487. ifeq ($(CONFIG_FEATURE_PKTLOG), y)
  1488. CDEFINES += -DFEATURE_PKTLOG
  1489. endif
  1490. CDEFINES += -DCONFIG_DP_TRACE
  1491. ifeq ($(CONFIG_WLAN_NAPI), y)
  1492. CDEFINES += -DFEATURE_NAPI
  1493. CDEFINES += -DHIF_IRQ_AFFINITY
  1494. ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
  1495. CDEFINES += -DFEATURE_NAPI_DEBUG
  1496. endif
  1497. endif
  1498. ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
  1499. CDEFINES += -DMSM_PLATFORM
  1500. endif
  1501. CDEFINES += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
  1502. ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
  1503. CDEFINES += -DQCA_LL_TX_FLOW_CONTROL_V2
  1504. CDEFINES += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
  1505. else
  1506. ifeq ($(CONFIG_ROME_IF),pci)
  1507. ifneq ($(CONFIG_LITHIUM),y)
  1508. CDEFINES += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
  1509. endif
  1510. endif
  1511. endif
  1512. ifneq ($(CONFIG_QCA_CLD_WLAN),)
  1513. CDEFINES += -DWCN_PRONTO
  1514. CDEFINES += -DWCN_PRONTO_V1
  1515. endif
  1516. ifeq ($(BUILD_DEBUG_VERSION),1)
  1517. CDEFINES += -DWLAN_DEBUG \
  1518. -DTRACE_RECORD \
  1519. -DLIM_TRACE_RECORD \
  1520. -DSME_TRACE_RECORD \
  1521. -DHDD_TRACE_RECORD \
  1522. -DPE_DEBUG_LOGW \
  1523. -DPE_DEBUG_LOGE
  1524. endif
  1525. ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), 1)
  1526. CDEFINES += -DWLAN_SUSPEND_RESUME_TEST
  1527. endif
  1528. ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
  1529. CDEFINES += -DTIMER_MANAGER
  1530. CDEFINES += -DMEMORY_DEBUG
  1531. CDEFINES += -DCONFIG_HALT_KMEMLEAK
  1532. endif
  1533. ifdef CONFIG_LEAK_DETECTION
  1534. CDEFINES += -DCONFIG_LEAK_DETECTION
  1535. endif
  1536. ifeq ($(HAVE_CFG80211),1)
  1537. CDEFINES += -DWLAN_FEATURE_P2P
  1538. CDEFINES += -DWLAN_FEATURE_WFD
  1539. ifeq ($(CONFIG_QCOM_VOWIFI_11R),y)
  1540. CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211
  1541. CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC
  1542. endif
  1543. endif
  1544. ifeq ($(CONFIG_QCOM_ESE),y)
  1545. CDEFINES += -DFEATURE_WLAN_ESE
  1546. CDEFINES += -DQCA_COMPUTE_TX_DELAY
  1547. CDEFINES += -DQCA_COMPUTE_TX_DELAY_PER_TID
  1548. endif
  1549. #normally, TDLS negative behavior is not needed
  1550. ifeq ($(CONFIG_QCOM_TDLS),y)
  1551. CDEFINES += -DFEATURE_WLAN_TDLS
  1552. endif
  1553. ifeq ($(CONFIG_QCACLD_WLAN_LFR3),y)
  1554. CDEFINES += -DWLAN_FEATURE_ROAM_OFFLOAD
  1555. endif
  1556. ifeq ($(CONFIG_CNSS_GENL), y)
  1557. CDEFINES += -DCNSS_GENL
  1558. endif
  1559. ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
  1560. CDEFINES += -DWLAN_FEATURE_HOST_ROAM
  1561. endif
  1562. ifeq ($(CONFIG_WLAN_POWER_DEBUGFS), y)
  1563. CDEFINES += -DWLAN_POWER_DEBUGFS
  1564. endif
  1565. # Enable object manager reference count debug infrastructure
  1566. CDEFINES += -DWLAN_OBJMGR_DEBUG
  1567. ifeq ($(CONFIG_WLAN_FEATURE_SAE),y)
  1568. CDEFINES += -DWLAN_FEATURE_SAE
  1569. endif
  1570. ifeq ($(BUILD_DIAG_VERSION),1)
  1571. CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT
  1572. CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
  1573. CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
  1574. ifeq ($(CONFIG_HIF_PCI), 1)
  1575. CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  1576. endif
  1577. endif
  1578. ifeq ($(CONFIG_HIF_USB), 1)
  1579. CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  1580. CDEFINES += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
  1581. CDEFINES += -DCONFIG_ATH_PCIE_MAX_PERF=0 -DCONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD=0 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0
  1582. endif
  1583. ifeq ($(CONFIG_WLAN_FEATURE_11W),y)
  1584. CDEFINES += -DWLAN_FEATURE_11W
  1585. endif
  1586. ifeq ($(CONFIG_QCA_TXDESC_SANITY_CHECKS), 1)
  1587. CDEFINES += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS
  1588. endif
  1589. ifeq ($(CONFIG_QCOM_LTE_COEX),y)
  1590. CDEFINES += -DFEATURE_WLAN_CH_AVOID
  1591. endif
  1592. ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
  1593. CDEFINES += -DWLAN_FEATURE_LPSS
  1594. endif
  1595. ifneq ($(TARGET_BUILD_VARIANT),user)
  1596. CDEFINES += -DDESC_DUP_DETECT_DEBUG
  1597. CDEFINES += -DDEBUG_RX_RING_BUFFER
  1598. endif
  1599. ifeq ($(PANIC_ON_BUG),1)
  1600. CDEFINES += -DPANIC_ON_BUG
  1601. endif
  1602. ifeq ($(WLAN_OPEN_SOURCE), 1)
  1603. CDEFINES += -DWLAN_OPEN_SOURCE
  1604. endif
  1605. ifeq ($(CONFIG_FEATURE_STATS_EXT), 1)
  1606. CDEFINES += -DWLAN_FEATURE_STATS_EXT
  1607. endif
  1608. ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
  1609. CDEFINES += -DWLAN_FEATURE_NAN
  1610. endif
  1611. ifeq ($(CONFIG_QCA_IBSS_SUPPORT), 1)
  1612. CDEFINES += -DQCA_IBSS_SUPPORT
  1613. endif
  1614. #Enable OL debug and wmi unified functions
  1615. ifeq ($(CONFIG_ATH_PERF_PWR_OFFLOAD), 1)
  1616. CDEFINES += -DATH_PERF_PWR_OFFLOAD
  1617. endif
  1618. #Disable packet log
  1619. ifeq ($(CONFIG_REMOVE_PKT_LOG), 1)
  1620. CDEFINES += -DREMOVE_PKT_LOG
  1621. endif
  1622. #Enable 11AC TX
  1623. ifeq ($(CONFIG_ATH_11AC_TXCOMPACT), 1)
  1624. CDEFINES += -DATH_11AC_TXCOMPACT
  1625. endif
  1626. #Enable OS specific IRQ abstraction
  1627. ifeq ($(CONFIG_ATH_SUPPORT_SHARED_IRQ), 1)
  1628. CDEFINES += -DATH_SUPPORT_SHARED_IRQ
  1629. endif
  1630. #Enable message based HIF instead of RAW access in BMI
  1631. ifeq ($(CONFIG_HIF_MESSAGE_BASED), 1)
  1632. CDEFINES += -DHIF_MESSAGE_BASED
  1633. endif
  1634. #Enable PCI specific APIS (dma, etc)
  1635. ifeq ($(CONFIG_HIF_PCI), 1)
  1636. CDEFINES += -DHIF_PCI
  1637. endif
  1638. ifeq ($(CONFIG_HIF_SNOC), 1)
  1639. CDEFINES += -DHIF_SNOC
  1640. endif
  1641. #Enable High Latency related Flags
  1642. ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
  1643. CDEFINES += -DCONFIG_HL_SUPPORT \
  1644. -DCONFIG_AR6320_SUPPORT \
  1645. -DSDIO_3_0 \
  1646. -DHIF_SDIO \
  1647. -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \
  1648. -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \
  1649. -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL \
  1650. -DHIF_MBOX_SLEEP_WAR \
  1651. -DDEBUG_HL_LOGGING \
  1652. -DQCA_BAD_PEER_TX_FLOW_CL \
  1653. -DCONFIG_TX_DESC_HI_PRIO_RESERVE \
  1654. -DCONFIG_PER_VDEV_TX_DESC_POOL \
  1655. -DCONFIG_SDIO \
  1656. -DFEATURE_WLAN_FORCE_SAP_SCC
  1657. endif
  1658. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  1659. CDEFINES += -DWLAN_FEATURE_DSRC
  1660. endif
  1661. ifeq ($(CONFIG_ARCH_SDX20), y)
  1662. ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
  1663. ifeq ($(CONFIG_WCNSS_SKB_PRE_ALLOC), y)
  1664. CDEFINES += -DFEATURE_SKB_PRE_ALLOC
  1665. endif
  1666. endif
  1667. endif
  1668. #Enable USB specific APIS
  1669. ifeq ($(CONFIG_HIF_USB), 1)
  1670. CDEFINES += -DHIF_USB \
  1671. -DCONFIG_PLD_USB_CNSS \
  1672. -DCONFIG_HL_SUPPORT
  1673. endif
  1674. #Enable FW logs through ini
  1675. CDEFINES += -DCONFIG_FW_LOGS_BASED_ON_INI
  1676. #Enable pci read/write config functions
  1677. ifeq ($(CONFIG_ATH_PCI), 1)
  1678. CDEFINES += -DATH_PCI
  1679. endif
  1680. #Enable power management suspend/resume functionality
  1681. ifeq ($(CONFIG_ATH_BUS_PM), 1)
  1682. CDEFINES += -DATH_BUS_PM
  1683. endif
  1684. #Enable FLOWMAC module support
  1685. ifeq ($(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE), 1)
  1686. CDEFINES += -DATH_SUPPORT_FLOWMAC_MODULE
  1687. endif
  1688. #Enable spectral support
  1689. ifeq ($(CONFIG_ATH_SUPPORT_SPECTRAL), 1)
  1690. CDEFINES += -DATH_SUPPORT_SPECTRAL
  1691. endif
  1692. #Enable WDI Event support
  1693. ifeq ($(CONFIG_WDI_EVENT_ENABLE), 1)
  1694. CDEFINES += -DWDI_EVENT_ENABLE
  1695. endif
  1696. #Endianess selection
  1697. ifeq ($(CONFIG_LITTLE_ENDIAN), 1)
  1698. AH_LITTLE_ENDIAN=1234
  1699. CDEFINES += -DAH_BYTE_ORDER=$(AH_LITTLE_ENDIAN)
  1700. else
  1701. AH_BIG_ENDIAN=4321
  1702. CDEFINES += -DAH_BYTE_ORDER=$(AH_BIG_ENDIAN)
  1703. CDEFINES += -DBIG_ENDIAN_HOST
  1704. endif
  1705. #Enable TX reclaim support
  1706. ifeq ($(CONFIG_TX_CREDIT_RECLAIM_SUPPORT), 1)
  1707. CDEFINES += -DTX_CREDIT_RECLAIM_SUPPORT
  1708. endif
  1709. #Enable FTM support
  1710. ifeq ($(CONFIG_QCA_WIFI_FTM), 1)
  1711. CDEFINES += -DQCA_WIFI_FTM
  1712. endif
  1713. #Enable Checksum Offload support
  1714. ifeq ($(CONFIG_CHECKSUM_OFFLOAD), 1)
  1715. CDEFINES += -DCHECKSUM_OFFLOAD
  1716. endif
  1717. #Enable Checksum Offload support
  1718. ifeq ($(CONFIG_IPA_OFFLOAD), 1)
  1719. CDEFINES += -DIPA_OFFLOAD
  1720. endif
  1721. ifeq ($(CONFIG_ARCH_SDX20), y)
  1722. CDEFINES += -DSYNC_IPA_READY
  1723. endif
  1724. #Enable GTK Offload
  1725. ifeq ($(CONFIG_GTK_OFFLOAD), 1)
  1726. CDEFINES += -DWLAN_FEATURE_GTK_OFFLOAD
  1727. CDEFINES += -DIGTK_OFFLOAD
  1728. endif
  1729. #Enable GTK Offload
  1730. ifeq ($(CONFIG_EXT_WOW), 1)
  1731. CDEFINES += -DWLAN_FEATURE_EXTWOW_SUPPORT
  1732. endif
  1733. #Mark it as SMP Kernel
  1734. ifeq ($(CONFIG_SMP),y)
  1735. CDEFINES += -DQCA_CONFIG_SMP
  1736. endif
  1737. #Enable Channel Matrix restriction for all Rome only targets
  1738. ifneq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
  1739. CDEFINES += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
  1740. endif
  1741. #Enable ICMP packet disable powersave feature
  1742. ifeq ($(CONFIG_ICMP_DISABLE_PS),y)
  1743. CDEFINES += -DWLAN_ICMP_DISABLE_PS
  1744. endif
  1745. #Enable OBSS feature
  1746. CDEFINES += -DQCA_HT_2040_COEX
  1747. #features specific to mobile router use case
  1748. ifeq ($(CONFIG_MOBILE_ROUTER), y)
  1749. #enable MCC TO SCC switch
  1750. CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
  1751. #enable wlan auto shutdown feature
  1752. CDEFINES += -DFEATURE_WLAN_AUTO_SHUTDOWN
  1753. #enable for MBSSID
  1754. CDEFINES += -DWLAN_FEATURE_MBSSID
  1755. #enable AP-AP ACS Optimization
  1756. CDEFINES += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
  1757. #Enable 4address scheme
  1758. CDEFINES += -DFEATURE_WLAN_STA_4ADDR_SCHEME
  1759. #enable MDM/SDX special config
  1760. CDEFINES += -DMDM_PLATFORM
  1761. #Disable STA-AP Mode DFS support
  1762. CDEFINES += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
  1763. else #CONFIG_MOBILE_ROUTER
  1764. #Open P2P device interface only for non-Mobile router use cases
  1765. CDEFINES += -DWLAN_OPEN_P2P_INTERFACE
  1766. #Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
  1767. CDEFINES += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
  1768. endif #CONFIG_MOBILE_ROUTER
  1769. #Green AP feature
  1770. ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
  1771. CDEFINES += -DWLAN_SUPPORT_GREEN_AP
  1772. endif
  1773. #Stats & Quota Metering feature
  1774. ifeq ($(CONFIG_IPA),y)
  1775. ifeq ($(CONFIG_QCACLD_FEATURE_METERING),y)
  1776. CDEFINES += -DFEATURE_METERING
  1777. endif
  1778. endif
  1779. #Enable RX Full re-order OL feature only "LL and NON-MDM9630 platform"
  1780. ifneq ($(CONFIG_ARCH_MDM9630), y)
  1781. ifeq ($(CONFIG_HIF_PCI), 1)
  1782. CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
  1783. endif
  1784. endif
  1785. ifeq ($(CONFIG_ARCH_MDM9607), y)
  1786. CDEFINES += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT
  1787. endif
  1788. ifeq ($(CONFIG_ARCH_MSM8996), y)
  1789. CDEFINES += -DCHANNEL_HOPPING_ALL_BANDS
  1790. endif
  1791. #Enable Signed firmware support for split binary format
  1792. ifeq ($(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT), 1)
  1793. CDEFINES += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
  1794. endif
  1795. #Enable single firmware binary format
  1796. ifeq ($(CONFIG_QCA_SINGLE_BINARY_SUPPORT), 1)
  1797. CDEFINES += -DQCA_SINGLE_BINARY_SUPPORT
  1798. endif
  1799. #Enable collecting target RAM dump after kernel panic
  1800. ifeq ($(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC), 1)
  1801. CDEFINES += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
  1802. endif
  1803. #Enable/disable secure firmware feature
  1804. ifeq ($(CONFIG_FEATURE_SECURE_FIRMWARE), 1)
  1805. CDEFINES += -DFEATURE_SECURE_FIRMWARE
  1806. endif
  1807. ifeq ($(CONFIG_ATH_PCIE_ACCESS_DEBUG), 1)
  1808. CDEFINES += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
  1809. endif
  1810. # Enable feature support fo Linux version QCMBR
  1811. ifeq ($(CONFIG_LINUX_QCMBR),y)
  1812. CDEFINES += -DLINUX_QCMBR
  1813. endif
  1814. # Enable featue sync tsf between multi devices
  1815. ifeq ($(CONFIG_WLAN_SYNC_TSF), y)
  1816. CDEFINES += -DWLAN_FEATURE_TSF
  1817. endif
  1818. ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
  1819. CDEFINES += -DWLAN_FEATURE_TSF_PLUS
  1820. endif
  1821. # Enable full rx re-order offload for adrastea
  1822. ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1823. CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
  1824. endif
  1825. # Enable athdiag procfs debug support for adrastea
  1826. ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1827. CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  1828. endif
  1829. # Enable 11AC TX compact feature for adrastea
  1830. ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1831. CDEFINES += -DATH_11AC_TXCOMPACT
  1832. endif
  1833. # NOTE: CONFIG_64BIT_PADDR requires CONFIG_HELIUMPLUS
  1834. ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
  1835. CONFIG_HELIUMPLUS := y
  1836. CONFIG_64BIT_PADDR := y
  1837. CONFIG_FEATURE_TSO := y
  1838. CONFIG_FEATURE_TSO_DEBUG := y
  1839. ifneq ($(CONFIG_FORCE_ALLOC_FROM_DMA_ZONE), y)
  1840. CONFIG_ENABLE_DEBUG_ADDRESS_MARKING := y
  1841. endif
  1842. ifeq ($(CONFIG_HELIUMPLUS),y)
  1843. CDEFINES += -DHELIUMPLUS
  1844. CDEFINES += -DAR900B
  1845. ifeq ($(CONFIG_64BIT_PADDR),y)
  1846. CDEFINES += -DHTT_PADDR64
  1847. endif
  1848. ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
  1849. CDEFINES += -DOL_RX_INDICATION_RECORD
  1850. CDEFINES += -DTSOSEG_DEBUG
  1851. endif
  1852. endif
  1853. endif
  1854. ifeq ($(CONFIG_ENABLE_DEBUG_ADDRESS_MARKING),y)
  1855. CDEFINES += -DENABLE_DEBUG_ADDRESS_MARKING
  1856. endif
  1857. ifeq ($(CONFIG_FEATURE_TSO),y)
  1858. CDEFINES += -DFEATURE_TSO
  1859. endif
  1860. ifeq ($(CONFIG_FEATURE_TSO_DEBUG),y)
  1861. CDEFINES += -DFEATURE_TSO_DEBUG
  1862. endif
  1863. ifeq ($(CONFIG_WLAN_LRO), y)
  1864. CDEFINES += -DFEATURE_LRO
  1865. endif
  1866. ifeq ($(CONFIG_MOBILE_ROUTER), y)
  1867. CDEFINES += -DFEATURE_AP_MCC_CH_AVOIDANCE
  1868. endif
  1869. ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
  1870. CDEFINES += -DMPC_UT_FRAMEWORK
  1871. endif
  1872. ifeq ($(CONFIG_WLAN_OFFLOAD_PACKETS),y)
  1873. CDEFINES += -DWLAN_FEATURE_OFFLOAD_PACKETS
  1874. endif
  1875. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  1876. CDEFINES += -DWLAN_FEATURE_DISA
  1877. endif
  1878. ifeq ($(CONFIG_WLAN_FEATURE_FIPS),y)
  1879. CDEFINES += -DWLAN_FEATURE_FIPS
  1880. endif
  1881. ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
  1882. CDEFINES += -DFEATURE_LFR_SUBNET_DETECTION
  1883. endif
  1884. ifeq ($(CONFIG_MCC_TO_SCC_SWITCH), y)
  1885. CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
  1886. endif
  1887. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  1888. CDEFINES += -DWLAN_FEATURE_NAN_DATAPATH
  1889. endif
  1890. ifeq ($(CONFIG_NAN_CONVERGENCE), y)
  1891. CDEFINES += -DWLAN_FEATURE_NAN_CONVERGENCE
  1892. endif
  1893. #Flag to enable/disable WLAN D0-WOW
  1894. ifeq ($(CONFIG_PCI_MSM), y)
  1895. ifeq ($(CONFIG_ROME_IF),pci)
  1896. CDEFINES += -DFEATURE_WLAN_D0WOW
  1897. endif
  1898. endif
  1899. ifeq ($(CONFIG_LITHIUM),y)
  1900. CDEFINES += -DCONFIG_SHADOW_V2
  1901. CDEFINES += -DQCA6290_HEADERS_DEF
  1902. CDEFINES += -DQCA_WIFI_QCA6290
  1903. CDEFINES += -DQCA_WIFI_QCA8074
  1904. CDEFINES += -DQCA_WIFI_QCA8074_VP
  1905. CDEFINES += -DDP_INTR_POLL_BASED
  1906. CDEFINES += -DTX_PER_PDEV_DESC_POOL
  1907. ifneq ($(CONFIG_IPA_OFFLOAD), 1)
  1908. CDEFINES += -DWLAN_RX_HASH
  1909. endif
  1910. CDEFINES += -DCONFIG_DP_TRACE
  1911. CDEFINES += -DFEATURE_TSO
  1912. CDEFINES += -DTSO_DEBUG_LOG_ENABLE
  1913. CDEFINES += -DDP_LFR
  1914. endif
  1915. ifeq ($(CONFIG_QCA6290_11AX), y)
  1916. CDEFINES += -DQCA_WIFI_QCA6290_11AX
  1917. endif
  1918. ifeq ($(CONFIG_WLAN_FEATURE_11AX),y)
  1919. CDEFINES += -DWLAN_FEATURE_11AX
  1920. CDEFINES += -DWLAN_FEATURE_11AX_BSS_COLOR
  1921. endif
  1922. # Dummy flag for WIN/MCL converged data path compilation
  1923. CDEFINES += -DDP_PRINT_ENABLE=0
  1924. CDEFINES += -DATH_SUPPORT_WRAP=0
  1925. CDEFINES += -DQCA_HOST2FW_RXBUF_RING
  1926. #endof dummy flags
  1927. # DFS component
  1928. CDEFINES += -DQCA_MCL_DFS_SUPPORT
  1929. CDEFINES += -DDFS_COMPONENT_ENABLE
  1930. CDEFINES += -DQCA_DFS_USE_POLICY_MANAGER
  1931. CDEFINES += -DQCA_DFS_NOL_PLATFORM_DRV_SUPPORT
  1932. ifeq ($(CONFIG_WLAN_DEBUGFS), y)
  1933. CDEFINES += -DWLAN_DEBUGFS
  1934. endif
  1935. ifeq ($(CONFIG_DYNAMIC_DEBUG),y)
  1936. CDEFINES += -DFEATURE_MULTICAST_HOST_FW_MSGS
  1937. endif
  1938. KBUILD_CPPFLAGS += $(CDEFINES)
  1939. # Currently, for versions of gcc which support it, the kernel Makefile
  1940. # is disabling the maybe-uninitialized warning. Re-enable it for the
  1941. # WLAN driver. Note that we must use EXTRA_CFLAGS here so that it
  1942. # will override the kernel settings.
  1943. ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y)
  1944. EXTRA_CFLAGS += -Wmaybe-uninitialized
  1945. ifneq (y,$(CONFIG_ARCH_MSM))
  1946. EXTRA_CFLAGS += -Wframe-larger-than=4096
  1947. endif
  1948. endif
  1949. EXTRA_CFLAGS += -Wmissing-prototypes
  1950. ifeq ($(call cc-option-yn, -Wheader-guard),y)
  1951. EXTRA_CFLAGS += -Wheader-guard
  1952. endif
  1953. # If the module name is not "wlan", then the define MULTI_IF_NAME to be the
  1954. # same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to
  1955. # any string that must be unique for all instances of the driver on the system.
  1956. # This allows multiple instances of the driver with different module names.
  1957. # If the module name is wlan, leave MULTI_IF_NAME undefined and the code will
  1958. # treat the driver as the primary driver.
  1959. ifneq ($(MODNAME), wlan)
  1960. CHIP_NAME ?= $(MODNAME)
  1961. CDEFINES += -DMULTI_IF_NAME=\"$(CHIP_NAME)\"
  1962. endif
  1963. # WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the
  1964. # system. If it is not defined, then the host driver will use the first 4
  1965. # characters (including NULL) of MULTI_IF_NAME to construct
  1966. # WLAN_HDD_ADAPTER_MAGIC.
  1967. ifdef WLAN_HDD_ADAPTER_MAGIC
  1968. CDEFINES += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC)
  1969. endif
  1970. # inject some build related information
  1971. ifeq ($(CONFIG_BUILD_TAG), y)
  1972. CLD_CHECKOUT = $(shell cd "$(WLAN_ROOT)" && \
  1973. git reflog | grep -vm1 cherry-pick | grep -oE ^[0-f]+)
  1974. CLD_IDS = $(shell cd "$(WLAN_ROOT)" && \
  1975. git log $(CLD_CHECKOUT)~..HEAD | \
  1976. sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
  1977. paste -sd "," -)
  1978. CMN_CHECKOUT = $(shell cd "$(WLAN_COMMON_INC)" && \
  1979. git reflog | grep -vm1 cherry-pick | grep -oE ^[0-f]+)
  1980. CMN_IDS = $(shell cd "$(WLAN_COMMON_INC)" && \
  1981. git log $(CMN_CHECKOUT)~..HEAD | \
  1982. sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
  1983. paste -sd "," -)
  1984. TIMESTAMP = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
  1985. BUILD_TAG = "$(TIMESTAMP); cld:$(CLD_IDS); cmn:$(CMN_IDS);"
  1986. CDEFINES += -DBUILD_TAG=\"$(BUILD_TAG)\"
  1987. endif
  1988. # Module information used by KBuild framework
  1989. obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
  1990. $(MODNAME)-y := $(OBJS)
  1991. OBJS_DIRS := $(dir $(OBJS)) \
  1992. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ \
  1993. $(QDF_OBJ_DIR)/ \
  1994. $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/ \
  1995. $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/ \
  1996. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/
  1997. CLEAN_DIRS := $(addsuffix *.o,$(sort $(OBJS_DIRS))) \
  1998. $(addsuffix .*.o.cmd,$(sort $(OBJS_DIRS)))
  1999. clean-files := $(CLEAN_DIRS)