Kbuild 54 KB

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