Kbuild 61 KB

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