Kbuild 61 KB

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