Kbuild 58 KB

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