Kbuild 53 KB

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