Kbuild 55 KB

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