Kbuild 70 KB

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