Kbuild 74 KB

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