Kbuild 60 KB

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