Kbuild 54 KB

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