Kbuild 63 KB

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