Kbuild 60 KB

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