Kbuild 60 KB

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