Kbuild 60 KB

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