Kbuild 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439
  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. ifdef CONFIG_ICNSS
  9. CONFIG_ROME_IF = snoc
  10. endif
  11. ifeq ($(CONFIG_CNSS), y)
  12. ifndef CONFIG_ROME_IF
  13. #use pci as default interface
  14. CONFIG_ROME_IF = pci
  15. endif
  16. endif
  17. ifeq ($(KERNEL_BUILD),1)
  18. # These are provided in external module based builds
  19. # Need to explicitly define for Kernel-based builds
  20. MODNAME := wlan
  21. WLAN_ROOT := drivers/staging/qcacld-3.0
  22. WLAN_COMMON_ROOT := ../qca-wifi-host-cmn
  23. WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
  24. endif
  25. # Make WLAN as open-source driver by default
  26. WLAN_OPEN_SOURCE := 1
  27. ifeq ($(KERNEL_BUILD), 0)
  28. # These are configurable via Kconfig for kernel-based builds
  29. # Need to explicitly configure for Android-based builds
  30. ifeq ($(CONFIG_ARCH_MDM9630), y)
  31. CONFIG_MOBILE_ROUTER := y
  32. endif
  33. ifeq ($(CONFIG_ARCH_MDM9640), y)
  34. CONFIG_MOBILE_ROUTER := y
  35. endif
  36. # As per target team, build is done as follows:
  37. # Defconfig : build with default flags
  38. # Slub : defconfig + CONFIG_SLUB_DEBUG=y +
  39. # CONFIG_SLUB_DEBUG_ON=y + CONFIG_PAGE_POISONING=y
  40. # Perf : Using appropriate msmXXXX-perf_defconfig
  41. #
  42. # Shipment builds (user variants) should not have any debug feature
  43. # enabled. This is identified using 'TARGET_BUILD_VARIANT'. Slub builds
  44. # are identified using the CONFIG_SLUB_DEBUG_ON configuration. Since
  45. # there is no other way to identify defconfig builds, QCOMs internal
  46. # representation of perf builds (identified using the string 'perf'),
  47. # is used to identify if the build is a slub or defconfig one. This
  48. # way no critical debug feature will be enabled for perf and shipment
  49. # builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT
  50. # config.
  51. ifneq ($(TARGET_BUILD_VARIANT),user)
  52. ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
  53. CONFIG_PKT_PROTO_TRACE := y
  54. else
  55. ifeq ($(findstring perf,$(KERNEL_DEFCONFIG)),)
  56. CONFIG_PKT_PROTO_TRACE := y
  57. endif
  58. endif
  59. endif
  60. #Flag to enable Legacy Fast Roaming2(LFR2)
  61. CONFIG_QCACLD_WLAN_LFR2 := y
  62. #Flag to enable Legacy Fast Roaming3(LFR3)
  63. CONFIG_QCACLD_WLAN_LFR3 := y
  64. #JB kernel has PMKSA patches, hence enabling this flag
  65. CONFIG_PRIMA_WLAN_OKC := y
  66. # JB kernel has CPU enablement patches, so enable
  67. ifeq ($(CONFIG_ROME_IF),pci)
  68. CONFIG_PRIMA_WLAN_11AC_HIGH_TP := y
  69. endif
  70. ifeq ($(CONFIG_ROME_IF),usb)
  71. CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n
  72. endif
  73. ifeq ($(CONFIG_ROME_IF),sdio)
  74. CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n
  75. endif
  76. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  77. #Flag to enable TDLS feature
  78. CONFIG_QCOM_TDLS := y
  79. endif
  80. ifeq ($(CONFIG_MOBILE_ROUTER), y)
  81. CONFIG_QCACLD_FEATURE_GREEN_AP := y
  82. endif
  83. #Flag to enable Fast Transition (11r) feature
  84. CONFIG_QCOM_VOWIFI_11R := y
  85. ifneq ($(CONFIG_QCA_CLD_WLAN),)
  86. ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_ICNSS)))
  87. #Flag to enable Protected Managment Frames (11w) feature
  88. CONFIG_WLAN_FEATURE_11W := y
  89. #Flag to enable LTE CoEx feature
  90. CONFIG_QCOM_LTE_COEX := y
  91. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  92. #Flag to enable LPSS feature
  93. CONFIG_WLAN_FEATURE_LPSS := y
  94. endif
  95. endif
  96. endif
  97. #Flag to enable Protected Managment Frames (11w) feature
  98. ifeq ($(CONFIG_ROME_IF),usb)
  99. CONFIG_WLAN_FEATURE_11W := y
  100. endif
  101. ifeq ($(CONFIG_ROME_IF),sdio)
  102. CONFIG_WLAN_FEATURE_11W := y
  103. endif
  104. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  105. #Flag to enable NAN
  106. CONFIG_QCACLD_FEATURE_NAN := y
  107. endif
  108. #Flag to enable Linux QCMBR feature as default feature
  109. ifeq ($(CONFIG_ROME_IF),usb)
  110. CONFIG_LINUX_QCMBR :=y
  111. endif
  112. CONFIG_MPC_UT_FRAMEWORK := y
  113. #Flag to enable offload packets feature
  114. CONFIG_WLAN_OFFLOAD_PACKETS := y
  115. #Flag to enable memdump feature
  116. CONFIG_WLAN_FEATURE_MEMDUMP := y
  117. #Flag to enable Fast Path feature
  118. CONFIG_WLAN_FASTPATH := y
  119. # Flag to enable NAPI
  120. CONFIG_WLAN_NAPI := y
  121. CONFIG_WLAN_NAPI_DEBUG := n
  122. # Flag to enable FW based TX Flow control
  123. ifeq ($(CONFIG_CNSS_EOS),y)
  124. CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
  125. else
  126. CONFIG_WLAN_TX_FLOW_CONTROL_V2 := n
  127. endif
  128. # Flag to enable LRO (Large Receive Offload)
  129. ifeq ($(CONFIG_CNSS_EOS), y)
  130. ifeq ($(CONFIG_INET_LRO), y)
  131. CONFIG_WLAN_LRO := y
  132. else
  133. CONFIG_WLAN_LRO := n
  134. endif
  135. endif
  136. ifeq ($(CONFIG_ROME_IF), snoc)
  137. CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
  138. endif
  139. # Flag to enable LFR Subnet Detection
  140. CONFIG_LFR_SUBNET_DETECTION := y
  141. # Flag to enable MCC to SCC switch feature
  142. CONFIG_MCC_TO_SCC_SWITCH := y
  143. endif
  144. # If not set, assume, Common driver is with in the build tree
  145. WLAN_COMMON_ROOT ?= qca-wifi-host-cmn
  146. WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
  147. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  148. CONFIG_QCOM_ESE := y
  149. endif
  150. # Feature flags which are not (currently) configurable via Kconfig
  151. #Whether to build debug version
  152. BUILD_DEBUG_VERSION := 1
  153. #Enable this flag to build driver in diag version
  154. BUILD_DIAG_VERSION := 1
  155. #Do we panic on bug? default is to warn
  156. PANIC_ON_BUG := 1
  157. #Enable OL debug and wmi unified functions
  158. CONFIG_ATH_PERF_PWR_OFFLOAD := 1
  159. #Disable packet log
  160. CONFIG_REMOVE_PKT_LOG := 0
  161. #Enable 11AC TX
  162. ifeq ($(CONFIG_ROME_IF),pci)
  163. CONFIG_ATH_11AC_TXCOMPACT := 1
  164. endif
  165. ifeq ($(CONFIG_ROME_IF),usb)
  166. CONFIG_ATH_11AC_TXCOMPACT := 0
  167. endif
  168. #Enable OS specific IRQ abstraction
  169. CONFIG_ATH_SUPPORT_SHARED_IRQ := 1
  170. #Enable message based HIF instead of RAW access in BMI
  171. ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
  172. CONFIG_HIF_MESSAGE_BASED := 0
  173. else
  174. CONFIG_HIF_MESSAGE_BASED := 1
  175. endif
  176. #Enable PCI specific APIS (dma, etc)
  177. ifeq ($(CONFIG_ROME_IF),pci)
  178. CONFIG_HIF_PCI := 1
  179. endif
  180. #Enable pci read/write config functions
  181. ifeq ($(CONFIG_ROME_IF),pci)
  182. CONFIG_ATH_PCI := 1
  183. endif
  184. ifeq ($(CONFIG_ROME_IF),snoc)
  185. CONFIG_HIF_SNOC:= 1
  186. endif
  187. ifeq ($(CONFIG_ROME_IF),usb)
  188. #CONFIG_ATH_PCI := 1
  189. endif
  190. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  191. #Enable IBSS support on CLD
  192. CONFIG_QCA_IBSS_SUPPORT := 1
  193. endif
  194. #Enable power management suspend/resume functionality to PCI
  195. CONFIG_ATH_BUS_PM := 1
  196. #Enable FLOWMAC module support
  197. CONFIG_ATH_SUPPORT_FLOWMAC_MODULE := 0
  198. #Enable spectral support
  199. CONFIG_ATH_SUPPORT_SPECTRAL := 0
  200. #Enable HOST statistics support
  201. CONFIG_SUPPORT_HOST_STATISTICS := 0
  202. #Enable WDI Event support
  203. CONFIG_WDI_EVENT_ENABLE := 1
  204. #Endianess selection
  205. CONFIG_LITTLE_ENDIAN := 1
  206. #Enable TX reclaim support
  207. CONFIG_TX_CREDIT_RECLAIM_SUPPORT := 0
  208. #Enable FTM support
  209. CONFIG_QCA_WIFI_FTM := 1
  210. #Enable Checksum Offload
  211. CONFIG_CHECKSUM_OFFLOAD := 1
  212. #Enable GTK offload
  213. CONFIG_GTK_OFFLOAD := 1
  214. #Enable EXT WOW
  215. ifeq ($(CONFIG_ROME_IF),pci)
  216. CONFIG_EXT_WOW := 1
  217. endif
  218. #Set this to 1 to catch erroneous Target accesses during debug.
  219. CONFIG_ATH_PCIE_ACCESS_DEBUG := 0
  220. #Enable IPA offload
  221. ifeq ($(CONFIG_IPA), y)
  222. CONFIG_IPA_OFFLOAD := 1
  223. endif
  224. #Enable Signed firmware support for split binary format
  225. CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := 0
  226. #Enable single firmware binary format
  227. CONFIG_QCA_SINGLE_BINARY_SUPPORT := 0
  228. #Enable collecting target RAM dump after kernel panic
  229. CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := 1
  230. #Flag to enable/disable secure firmware feature
  231. CONFIG_FEATURE_SECURE_FIRMWARE := 0
  232. #Flag to enable Stats Ext implementation
  233. CONFIG_FEATURE_STATS_EXT := 1
  234. ifeq ($(CONFIG_CFG80211),y)
  235. HAVE_CFG80211 := 1
  236. else
  237. ifeq ($(CONFIG_CFG80211),m)
  238. HAVE_CFG80211 := 1
  239. else
  240. HAVE_CFG80211 := 0
  241. endif
  242. endif
  243. ############ UAPI ############
  244. UAPI_DIR := uapi
  245. UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux
  246. ############ COMMON ############
  247. COMMON_DIR := core/common
  248. COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR)
  249. ############ HDD ############
  250. HDD_DIR := core/hdd
  251. HDD_INC_DIR := $(HDD_DIR)/inc
  252. HDD_SRC_DIR := $(HDD_DIR)/src
  253. HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
  254. -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
  255. HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
  256. $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
  257. $(HDD_SRC_DIR)/wlan_hdd_debugfs.o \
  258. $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \
  259. $(HDD_SRC_DIR)/wlan_hdd_ftm.o \
  260. $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
  261. $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \
  262. $(HDD_SRC_DIR)/wlan_hdd_main.o \
  263. $(HDD_SRC_DIR)/wlan_hdd_ocb.o \
  264. $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
  265. $(HDD_SRC_DIR)/wlan_hdd_power.o \
  266. $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \
  267. $(HDD_SRC_DIR)/wlan_hdd_scan.o \
  268. $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
  269. $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
  270. $(HDD_SRC_DIR)/wlan_hdd_trace.o \
  271. $(HDD_SRC_DIR)/wlan_hdd_wext.o \
  272. $(HDD_SRC_DIR)/wlan_hdd_wmm.o \
  273. $(HDD_SRC_DIR)/wlan_hdd_wowl.o
  274. ifeq ($(CONFIG_WLAN_LRO), y)
  275. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o
  276. endif
  277. ifeq ($(CONFIG_WLAN_NAPI), y)
  278. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o
  279. endif
  280. ifeq ($(CONFIG_IPA_OFFLOAD), 1)
  281. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o
  282. endif
  283. ifeq ($(HAVE_CFG80211),1)
  284. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
  285. $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o \
  286. $(HDD_SRC_DIR)/wlan_hdd_stats.o \
  287. $(HDD_SRC_DIR)/wlan_hdd_p2p.o
  288. endif
  289. ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
  290. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_green_ap.o
  291. endif
  292. ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
  293. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o
  294. endif
  295. ifeq ($(CONFIG_QCOM_TDLS),y)
  296. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
  297. endif
  298. ifeq ($(CONFIG_WLAN_SYNC_TSF),y)
  299. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o
  300. endif
  301. ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
  302. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o
  303. endif
  304. ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
  305. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_memdump.o
  306. endif
  307. ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
  308. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o
  309. endif
  310. ########### HOST DIAG LOG ###########
  311. HOST_DIAG_LOG_DIR := core/utils/host_diag_log
  312. HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc
  313. HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src
  314. HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
  315. -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
  316. HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
  317. ############ EPPING ############
  318. EPPING_DIR := core/utils/epping
  319. EPPING_INC_DIR := $(EPPING_DIR)/inc
  320. EPPING_SRC_DIR := $(EPPING_DIR)/src
  321. EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR)
  322. EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \
  323. $(EPPING_SRC_DIR)/epping_txrx.o \
  324. $(EPPING_SRC_DIR)/epping_tx.o \
  325. $(EPPING_SRC_DIR)/epping_rx.o \
  326. $(EPPING_SRC_DIR)/epping_helper.o \
  327. ############ MAC ############
  328. MAC_DIR := core/mac
  329. MAC_INC_DIR := $(MAC_DIR)/inc
  330. MAC_SRC_DIR := $(MAC_DIR)/src
  331. MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
  332. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
  333. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
  334. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
  335. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim
  336. MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfg_api.o \
  337. $(MAC_SRC_DIR)/cfg/cfg_debug.o \
  338. $(MAC_SRC_DIR)/cfg/cfg_param_name.o \
  339. $(MAC_SRC_DIR)/cfg/cfg_proc_msg.o \
  340. $(MAC_SRC_DIR)/cfg/cfg_send_msg.o
  341. MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o
  342. MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
  343. $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \
  344. $(MAC_SRC_DIR)/pe/lim/lim_api.o \
  345. $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \
  346. $(MAC_SRC_DIR)/pe/lim/lim_debug.o \
  347. $(MAC_SRC_DIR)/pe/lim/lim_ft.o \
  348. $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o \
  349. $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \
  350. $(MAC_SRC_DIR)/pe/lim/lim_p2p.o \
  351. $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \
  352. $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \
  353. $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \
  354. $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \
  355. $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \
  356. $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \
  357. $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \
  358. $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \
  359. $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \
  360. $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \
  361. $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \
  362. $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \
  363. $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \
  364. $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \
  365. $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \
  366. $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \
  367. $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \
  368. $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \
  369. $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \
  370. $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \
  371. $(MAC_SRC_DIR)/pe/lim/lim_ser_des_utils.o \
  372. $(MAC_SRC_DIR)/pe/lim/lim_session.o \
  373. $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \
  374. $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \
  375. $(MAC_SRC_DIR)/pe/lim/lim_sta_hash_api.o \
  376. $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \
  377. $(MAC_SRC_DIR)/pe/lim/lim_trace.o \
  378. $(MAC_SRC_DIR)/pe/lim/lim_utils.o
  379. ifeq ($(CONFIG_QCOM_TDLS),y)
  380. MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o
  381. endif
  382. ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
  383. MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \
  384. $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \
  385. $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \
  386. $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \
  387. $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o
  388. endif
  389. MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \
  390. $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \
  391. $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \
  392. $(MAC_SRC_DIR)/pe/sch/sch_debug.o \
  393. $(MAC_SRC_DIR)/pe/sch/sch_message.o
  394. MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o
  395. MAC_OBJS := $(MAC_CFG_OBJS) \
  396. $(MAC_DPH_OBJS) \
  397. $(MAC_LIM_OBJS) \
  398. $(MAC_SCH_OBJS) \
  399. $(MAC_RRM_OBJS)
  400. ############ SAP ############
  401. SAP_DIR := core/sap
  402. SAP_INC_DIR := $(SAP_DIR)/inc
  403. SAP_SRC_DIR := $(SAP_DIR)/src
  404. SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
  405. -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
  406. SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \
  407. $(SAP_SRC_DIR)/sap_ch_select.o \
  408. $(SAP_SRC_DIR)/sap_fsm.o \
  409. $(SAP_SRC_DIR)/sap_module.o
  410. ############ DFS ############ 350
  411. DFS_DIR := $(SAP_DIR)/dfs
  412. DFS_INC_DIR := $(DFS_DIR)/inc
  413. DFS_SRC_DIR := $(DFS_DIR)/src
  414. DFS_INC := -I$(WLAN_ROOT)/$(DFS_INC_DIR) \
  415. -I$(WLAN_ROOT)/$(DFS_SRC_DIR)
  416. DFS_OBJS := $(DFS_SRC_DIR)/dfs_bindetects.o \
  417. $(DFS_SRC_DIR)/dfs.o \
  418. $(DFS_SRC_DIR)/dfs_debug.o\
  419. $(DFS_SRC_DIR)/dfs_fcc_bin5.o\
  420. $(DFS_SRC_DIR)/dfs_init.o\
  421. $(DFS_SRC_DIR)/dfs_misc.o\
  422. $(DFS_SRC_DIR)/dfs_nol.o\
  423. $(DFS_SRC_DIR)/dfs_phyerr_tlv.o\
  424. $(DFS_SRC_DIR)/dfs_process_phyerr.o\
  425. $(DFS_SRC_DIR)/dfs_process_radarevent.o\
  426. $(DFS_SRC_DIR)/dfs_staggered.o
  427. ############ SME ############
  428. SME_DIR := core/sme
  429. SME_INC_DIR := $(SME_DIR)/inc
  430. SME_SRC_DIR := $(SME_DIR)/src
  431. SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
  432. -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
  433. SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \
  434. $(SME_SRC_DIR)/csr/csr_api_scan.o \
  435. $(SME_SRC_DIR)/csr/csr_cmd_process.o \
  436. $(SME_SRC_DIR)/csr/csr_link_list.o \
  437. $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \
  438. $(SME_SRC_DIR)/csr/csr_util.o \
  439. ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
  440. SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \
  441. $(SME_SRC_DIR)/csr/csr_host_scan_roam.o
  442. endif
  443. ifeq ($(CONFIG_QCOM_TDLS),y)
  444. SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_tdls_process.o
  445. endif
  446. SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
  447. SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
  448. $(SME_SRC_DIR)/common/sme_ft_api.o \
  449. $(SME_SRC_DIR)/common/sme_power_save.o \
  450. $(SME_SRC_DIR)/common/sme_trace.o
  451. SME_OEM_DATA_OBJS := $(SME_SRC_DIR)/oem_data/oem_data_api.o
  452. SME_P2P_OBJS = $(SME_SRC_DIR)/p2p/p2p_api.o
  453. SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
  454. ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
  455. SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_api.o
  456. endif
  457. SME_OBJS := $(SME_CMN_OBJS) \
  458. $(SME_CSR_OBJS) \
  459. $(SME_OEM_DATA_OBJS) \
  460. $(SME_P2P_OBJS) \
  461. $(SME_QOS_OBJS) \
  462. $(SME_RRM_OBJS) \
  463. $(SME_NAN_OBJS)
  464. ############ NLINK ############
  465. NLINK_DIR := core/utils/nlink
  466. NLINK_INC_DIR := $(NLINK_DIR)/inc
  467. NLINK_SRC_DIR := $(NLINK_DIR)/src
  468. NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR)
  469. NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
  470. ############ PTT ############
  471. PTT_DIR := core/utils/ptt
  472. PTT_INC_DIR := $(PTT_DIR)/inc
  473. PTT_SRC_DIR := $(PTT_DIR)/src
  474. PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR)
  475. PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
  476. ############ WLAN_LOGGING ############
  477. WLAN_LOGGING_DIR := core/utils/logging
  478. WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc
  479. WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src
  480. WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR)
  481. WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o
  482. ############ SYS ############
  483. SYS_DIR := core/mac/src/sys
  484. SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
  485. -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
  486. -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
  487. -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
  488. SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
  489. SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
  490. SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
  491. $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \
  492. $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \
  493. $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \
  494. $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
  495. $(SYS_LEGACY_SRC_DIR)/utils/src/log_api.o \
  496. $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \
  497. $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \
  498. $(SYS_LEGACY_SRC_DIR)/utils/src/utils_api.o \
  499. $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o
  500. ############ Qca-wifi-host-cmn ############
  501. QDF_OS_DIR := qdf
  502. QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc
  503. QDF_OS_SRC_DIR := $(QDF_OS_DIR)/linux/src
  504. QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR)
  505. QDF_INC := -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \
  506. -I$(WLAN_COMMON_INC)/$(QDF_OS_SRC_DIR)
  507. QDF_OBJS := $(QDF_OBJ_DIR)/qdf_defer.o \
  508. $(QDF_OBJ_DIR)/qdf_event.o \
  509. $(QDF_OBJ_DIR)/qdf_list.o \
  510. $(QDF_OBJ_DIR)/qdf_lock.o \
  511. $(QDF_OBJ_DIR)/qdf_mc_timer.o \
  512. $(QDF_OBJ_DIR)/qdf_mem.o \
  513. $(QDF_OBJ_DIR)/qdf_nbuf.o \
  514. $(QDF_OBJ_DIR)/qdf_threads.o \
  515. $(QDF_OBJ_DIR)/qdf_trace.o
  516. ############ CDS (Connectivity driver services) ############
  517. CDS_DIR := core/cds
  518. CDS_INC_DIR := $(CDS_DIR)/inc
  519. CDS_SRC_DIR := $(CDS_DIR)/src
  520. CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \
  521. -I$(WLAN_ROOT)/$(CDS_SRC_DIR)
  522. CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \
  523. $(CDS_SRC_DIR)/cds_reg_service.o \
  524. $(CDS_SRC_DIR)/cds_mq.o \
  525. $(CDS_SRC_DIR)/cds_packet.o \
  526. $(CDS_SRC_DIR)/cds_regdomain.o \
  527. $(CDS_SRC_DIR)/cds_sched.o \
  528. $(CDS_SRC_DIR)/cds_concurrency.o \
  529. $(CDS_SRC_DIR)/cds_utils.o \
  530. $(CDS_SRC_DIR)/cds_mc_timer.o
  531. ########### BMI ###########
  532. BMI_DIR := core/bmi
  533. BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
  534. BMI_OBJS := $(BMI_DIR)/src/bmi.o \
  535. $(BMI_DIR)/src/ol_fw.o
  536. BMI_OBJS += $(BMI_DIR)/src/bmi_1.o
  537. ########### WMI ###########
  538. WMI_ROOT_DIR := wmi
  539. WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
  540. WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
  541. WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
  542. WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
  543. WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
  544. $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
  545. $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
  546. $(WMI_OBJ_DIR)/wmi_unified_api.o \
  547. $(WMI_OBJ_DIR)/wmi_unified_non_tlv.o
  548. ########### FWLOG ###########
  549. FWLOG_DIR := core/utils/fwlog
  550. FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
  551. FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
  552. ############ TXRX ############
  553. TXRX_DIR := core/dp/txrx
  554. TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
  555. TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \
  556. $(TXRX_DIR)/ol_cfg.o \
  557. $(TXRX_DIR)/ol_rx.o \
  558. $(TXRX_DIR)/ol_rx_fwd.o \
  559. $(TXRX_DIR)/ol_txrx.o \
  560. $(TXRX_DIR)/ol_rx_defrag.o \
  561. $(TXRX_DIR)/ol_tx_desc.o \
  562. $(TXRX_DIR)/ol_tx.o \
  563. $(TXRX_DIR)/ol_rx_reorder_timeout.o \
  564. $(TXRX_DIR)/ol_rx_reorder.o \
  565. $(TXRX_DIR)/ol_rx_pn.o \
  566. $(TXRX_DIR)/ol_tx_queue.o \
  567. $(TXRX_DIR)/ol_txrx_peer_find.o \
  568. $(TXRX_DIR)/ol_txrx_event.o \
  569. $(TXRX_DIR)/ol_txrx_encap.o \
  570. $(TXRX_DIR)/ol_tx_send.o
  571. ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
  572. TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
  573. endif
  574. ############ OL ############
  575. OL_DIR := core/dp/ol
  576. OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
  577. ############ CDP ############
  578. CDP_ROOT_DIR := dp
  579. CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
  580. CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
  581. ############ PKTLOG ############
  582. PKTLOG_DIR := core/utils/pktlog
  583. PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
  584. PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
  585. $(PKTLOG_DIR)/pktlog_internal.o \
  586. $(PKTLOG_DIR)/linux_ac.o
  587. ############ HTT ############
  588. HTT_DIR := core/dp/htt
  589. HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
  590. HTT_OBJS := $(HTT_DIR)/htt_tx.o \
  591. $(HTT_DIR)/htt.o \
  592. $(HTT_DIR)/htt_t2h.o \
  593. $(HTT_DIR)/htt_h2t.o \
  594. $(HTT_DIR)/htt_fw_stats.o \
  595. $(HTT_DIR)/htt_rx.o
  596. ############## HTC ##########
  597. HTC_DIR := htc
  598. HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
  599. HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
  600. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
  601. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
  602. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
  603. ########### HIF ###########
  604. HIF_DIR := hif
  605. HIF_CE_DIR := $(HIF_DIR)/src/ce
  606. HIF_CNSS_STUB_DIR := $(HIF_DIR)/src/icnss_stub
  607. HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
  608. HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
  609. HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
  610. HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
  611. -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src \
  612. -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR) \
  613. -I$(WLAN_COMMON_INC)/$(HIF_CNSS_STUB_DIR)
  614. ifeq ($(CONFIG_HIF_PCI), 1)
  615. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  616. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
  617. endif
  618. ifeq ($(CONFIG_HIF_SNOC), 1)
  619. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  620. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
  621. endif
  622. HIF_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
  623. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o \
  624. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
  625. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
  626. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
  627. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
  628. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
  629. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o \
  630. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
  631. ifneq ($(CONFIG_ICNSS), y)
  632. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CNSS_STUB_DIR)/icnss_stub.o
  633. endif
  634. ifeq ($(CONFIG_WLAN_NAPI), y)
  635. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
  636. endif
  637. HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
  638. HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
  639. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
  640. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
  641. ifeq ($(CONFIG_HIF_PCI), 1)
  642. HIF_OBJS += $(HIF_PCIE_OBJS)
  643. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
  644. endif
  645. ifeq ($(CONFIG_HIF_SNOC), 1)
  646. HIF_OBJS += $(HIF_SNOC_OBJS)
  647. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
  648. endif
  649. ############ WMA ############
  650. WMA_DIR := core/wma
  651. WMA_INC_DIR := $(WMA_DIR)/inc
  652. WMA_SRC_DIR := $(WMA_DIR)/src
  653. WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
  654. -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
  655. WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \
  656. $(WMA_SRC_DIR)/wma_scan_roam.o \
  657. $(WMA_SRC_DIR)/wma_dev_if.o \
  658. $(WMA_SRC_DIR)/wma_mgmt.o \
  659. $(WMA_SRC_DIR)/wma_power.o \
  660. $(WMA_SRC_DIR)/wma_data.o \
  661. $(WMA_SRC_DIR)/wma_utils.o \
  662. $(WMA_SRC_DIR)/wma_features.o \
  663. $(WMA_SRC_DIR)/wma_dfs_interface.o \
  664. $(WMA_SRC_DIR)/wma_ocb.o \
  665. $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o
  666. ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
  667. WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
  668. endif
  669. ############## PLD ##########
  670. PLD_DIR := core/pld
  671. PLD_INC_DIR := $(PLD_DIR)/inc
  672. PLD_SRC_DIR := $(PLD_DIR)/src
  673. PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
  674. -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
  675. PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
  676. ifeq ($(CONFIG_PCI), y)
  677. PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
  678. endif
  679. ifeq ($(CONFIG_ICNSS),y)
  680. PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
  681. endif
  682. TARGET_INC := -I$(WLAN_ROOT)/target/inc
  683. LINUX_INC := -Iinclude/linux
  684. INCS := $(HDD_INC) \
  685. $(EPPING_INC) \
  686. $(LINUX_INC) \
  687. $(MAC_INC) \
  688. $(SAP_INC) \
  689. $(SME_INC) \
  690. $(SYS_INC) \
  691. $(QDF_INC) \
  692. $(CDS_INC) \
  693. $(DFS_INC)
  694. INCS += $(WMA_INC) \
  695. $(UAPI_INC) \
  696. $(COMMON_INC) \
  697. $(WMI_INC) \
  698. $(FWLOG_INC) \
  699. $(TXRX_INC) \
  700. $(OL_INC) \
  701. $(CDP_INC) \
  702. $(PKTLOG_INC) \
  703. $(HTT_INC) \
  704. $(HTC_INC) \
  705. $(DFS_INC)
  706. INCS += $(HIF_INC) \
  707. $(BMI_INC)
  708. INCS += $(TARGET_INC)
  709. INCS += $(NLINK_INC) \
  710. $(PTT_INC) \
  711. $(WLAN_LOGGING_INC)
  712. INCS += $(PLD_INC)
  713. ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
  714. INCS += $(PKTLOG_INC)
  715. endif
  716. ifeq ($(BUILD_DIAG_VERSION), 1)
  717. INCS += $(HOST_DIAG_LOG_INC)
  718. endif
  719. OBJS := $(HDD_OBJS) \
  720. $(EPPING_OBJS) \
  721. $(MAC_OBJS) \
  722. $(SAP_OBJS) \
  723. $(SME_OBJS) \
  724. $(SYS_OBJS) \
  725. $(QDF_OBJS) \
  726. $(CDS_OBJS) \
  727. $(DFS_OBJS)
  728. OBJS += $(WMA_OBJS) \
  729. $(TXRX_OBJS) \
  730. $(WMI_OBJS) \
  731. $(FWLOG_OBJS) \
  732. $(HTC_OBJS) \
  733. $(DFS_OBJS)
  734. OBJS += $(HIF_OBJS) \
  735. $(BMI_OBJS) \
  736. $(HTT_OBJS)
  737. OBJS += $(WLAN_LOGGING_OBJS)
  738. OBJS += $(NLINK_OBJS)
  739. OBJS += $(PTT_OBJS)
  740. OBJS += $(PLD_OBJS)
  741. ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
  742. OBJS += $(PKTLOG_OBJS)
  743. endif
  744. ifeq ($(BUILD_DIAG_VERSION), 1)
  745. OBJS += $(HOST_DIAG_LOG_OBJS)
  746. endif
  747. EXTRA_CFLAGS += $(INCS)
  748. CDEFINES := -DANI_LITTLE_BYTE_ENDIAN \
  749. -DANI_LITTLE_BIT_ENDIAN \
  750. -DQC_WLAN_CHIPSET_QCA_CLD \
  751. -DDOT11F_LITTLE_ENDIAN_HOST \
  752. -DANI_COMPILER_TYPE_GCC \
  753. -DANI_OS_TYPE_ANDROID=6 \
  754. -DWLAN_PERF \
  755. -DPTT_SOCK_SVC_ENABLE \
  756. -Wall\
  757. -Werror\
  758. -D__linux__ \
  759. -DHAL_SELF_STA_PER_BSS=1 \
  760. -DFEATURE_WLAN_WAPI \
  761. -DFEATURE_OEM_DATA_SUPPORT\
  762. -DSOFTAP_CHANNEL_RANGE \
  763. -DWLAN_AP_STA_CONCURRENCY \
  764. -DFEATURE_WLAN_SCAN_PNO \
  765. -DWLAN_FEATURE_PACKET_FILTERING \
  766. -DWLAN_FEATURE_P2P_DEBUG \
  767. -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \
  768. -DWLANTL_DEBUG\
  769. -DWLAN_NS_OFFLOAD \
  770. -DWLAN_SOFTAP_VSTA_FEATURE \
  771. -DWLAN_FEATURE_GTK_OFFLOAD \
  772. -DWLAN_WAKEUP_EVENTS \
  773. -DFEATURE_WLAN_RA_FILTERING\
  774. -DWLAN_NL80211_TESTMODE \
  775. -DFEATURE_WLAN_LPHB \
  776. -DFEATURE_WLAN_PAL_TIMER_DISABLE \
  777. -DFEATURE_WLAN_PAL_MEM_DISABLE \
  778. -DQCA_SUPPORT_TX_THROTTLE \
  779. -DWMI_INTERFACE_EVENT_LOGGING \
  780. -DATH_SUPPORT_WAPI \
  781. -DWLAN_FEATURE_LINK_LAYER_STATS \
  782. -DWLAN_LOGGING_SOCK_SVC_ENABLE \
  783. -DFEATURE_WLAN_EXTSCAN \
  784. -DWLAN_FEATURE_MBSSID \
  785. -DCONFIG_160MHZ_SUPPORT \
  786. -DCONFIG_MCL
  787. ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
  788. CDEFINES += -DQCA_WIFI_3_0
  789. CDEFINES += -DQCA_WIFI_3_0_EMU
  790. endif
  791. ifeq (y,$(filter y,$(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  792. CDEFINES += -DQCA_WIFI_3_0_ADRASTEA
  793. CDEFINES += -DADRASTEA_SHADOW_REGISTERS
  794. CDEFINES += -DADRASTEA_RRI_ON_DDR
  795. endif
  796. ifeq ($(CONFIG_WLAN_FASTPATH), y)
  797. CDEFINES += -DWLAN_FEATURE_FASTPATH
  798. endif
  799. ifeq ($(CONFIG_WLAN_NAPI), y)
  800. CDEFINES += -DFEATURE_NAPI
  801. ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
  802. CDEFINES += -DFEATURE_NAPI_DEBUG
  803. endif
  804. endif
  805. ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
  806. CDEFINES += -DMSM_PLATFORM
  807. endif
  808. CDEFINES += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
  809. ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
  810. CDEFINES += -DQCA_LL_TX_FLOW_CONTROL_V2
  811. CDEFINES += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
  812. else
  813. ifeq ($(CONFIG_ROME_IF),pci)
  814. CDEFINES += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
  815. endif
  816. endif
  817. ifeq ($(CONFIG_PKT_PROTO_TRACE), y)
  818. CDEFINES += -DQCA_PKT_PROTO_TRACE
  819. endif
  820. ifneq ($(CONFIG_QCA_CLD_WLAN),)
  821. CDEFINES += -DWCN_PRONTO
  822. CDEFINES += -DWCN_PRONTO_V1
  823. endif
  824. ifeq ($(BUILD_DEBUG_VERSION),1)
  825. CDEFINES += -DWLAN_DEBUG \
  826. -DTRACE_RECORD \
  827. -DLIM_TRACE_RECORD \
  828. -DSME_TRACE_RECORD \
  829. -DHDD_TRACE_RECORD \
  830. -DPE_DEBUG_LOGW \
  831. -DPE_DEBUG_LOGE \
  832. -DDEBUG
  833. endif
  834. ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
  835. CDEFINES += -DTIMER_MANAGER
  836. CDEFINES += -DMEMORY_DEBUG
  837. endif
  838. ifeq ($(HAVE_CFG80211),1)
  839. CDEFINES += -DWLAN_FEATURE_P2P
  840. CDEFINES += -DWLAN_FEATURE_WFD
  841. ifeq ($(CONFIG_QCOM_VOWIFI_11R),y)
  842. CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211
  843. CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC
  844. endif
  845. endif
  846. ifeq ($(CONFIG_QCOM_ESE),y)
  847. CDEFINES += -DFEATURE_WLAN_ESE
  848. CDEFINES += -DQCA_COMPUTE_TX_DELAY
  849. CDEFINES += -DQCA_COMPUTE_TX_DELAY_PER_TID
  850. endif
  851. #normally, TDLS negative behavior is not needed
  852. ifeq ($(CONFIG_QCOM_TDLS),y)
  853. CDEFINES += -DFEATURE_WLAN_TDLS
  854. endif
  855. ifeq ($(CONFIG_QCACLD_WLAN_LFR3),y)
  856. CDEFINES += -DWLAN_FEATURE_ROAM_OFFLOAD
  857. endif
  858. ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
  859. CDEFINES += -DWLAN_FEATURE_HOST_ROAM
  860. endif
  861. ifeq ($(CONFIG_PRIMA_WLAN_OKC),y)
  862. CDEFINES += -DFEATURE_WLAN_OKC
  863. endif
  864. ifeq ($(CONFIG_PRIMA_WLAN_11AC_HIGH_TP),y)
  865. CDEFINES += -DWLAN_FEATURE_11AC_HIGH_TP
  866. endif
  867. ifeq ($(BUILD_DIAG_VERSION),1)
  868. CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT
  869. CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
  870. CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
  871. ifeq ($(CONFIG_HIF_PCI), 1)
  872. CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  873. endif
  874. endif
  875. ifeq ($(CONFIG_HIF_USB), 1)
  876. CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  877. CDEFINES += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
  878. CDEFINES += -DCONFIG_ATH_PCIE_MAX_PERF=0 -DCONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD=0 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0
  879. CDEFINES += -DQCA_TX_HTT2_SUPPORT
  880. endif
  881. # enable the MAC Address auto-generation feature
  882. CDEFINES += -DWLAN_AUTOGEN_MACADDR_FEATURE
  883. ifeq ($(CONFIG_WLAN_FEATURE_11W),y)
  884. CDEFINES += -DWLAN_FEATURE_11W
  885. endif
  886. ifeq ($(CONFIG_QCOM_LTE_COEX),y)
  887. CDEFINES += -DFEATURE_WLAN_CH_AVOID
  888. endif
  889. ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
  890. CDEFINES += -DWLAN_FEATURE_LPSS
  891. endif
  892. ifeq ($(PANIC_ON_BUG),1)
  893. CDEFINES += -DPANIC_ON_BUG
  894. endif
  895. ifeq ($(WLAN_OPEN_SOURCE), 1)
  896. CDEFINES += -DWLAN_OPEN_SOURCE
  897. endif
  898. ifeq ($(CONFIG_FEATURE_STATS_EXT), 1)
  899. CDEFINES += -DWLAN_FEATURE_STATS_EXT
  900. endif
  901. ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
  902. CDEFINES += -DWLAN_FEATURE_NAN
  903. endif
  904. ifeq ($(CONFIG_QCA_IBSS_SUPPORT), 1)
  905. CDEFINES += -DQCA_IBSS_SUPPORT
  906. endif
  907. #Enable OL debug and wmi unified functions
  908. ifeq ($(CONFIG_ATH_PERF_PWR_OFFLOAD), 1)
  909. CDEFINES += -DATH_PERF_PWR_OFFLOAD
  910. endif
  911. #Disable packet log
  912. ifeq ($(CONFIG_REMOVE_PKT_LOG), 1)
  913. CDEFINES += -DREMOVE_PKT_LOG
  914. endif
  915. #Enable 11AC TX
  916. ifeq ($(CONFIG_ATH_11AC_TXCOMPACT), 1)
  917. CDEFINES += -DATH_11AC_TXCOMPACT
  918. endif
  919. #Enable OS specific IRQ abstraction
  920. ifeq ($(CONFIG_ATH_SUPPORT_SHARED_IRQ), 1)
  921. CDEFINES += -DATH_SUPPORT_SHARED_IRQ
  922. endif
  923. #Enable message based HIF instead of RAW access in BMI
  924. ifeq ($(CONFIG_HIF_MESSAGE_BASED), 1)
  925. CDEFINES += -DHIF_MESSAGE_BASED
  926. endif
  927. #Enable PCI specific APIS (dma, etc)
  928. ifeq ($(CONFIG_HIF_PCI), 1)
  929. CDEFINES += -DHIF_PCI
  930. endif
  931. ifeq ($(CONFIG_HIF_SNOC), 1)
  932. CDEFINES += -DHIF_SNOC
  933. endif
  934. #Enable USB specific APIS
  935. ifeq ($(CONFIG_HIF_USB), 1)
  936. CDEFINES += -DHIF_USB
  937. CDEFINES += -DCONFIG_HL_SUPPORT
  938. endif
  939. #Enable FW logs through ini
  940. CDEFINES += -DCONFIG_FW_LOGS_BASED_ON_INI
  941. #Enable pci read/write config functions
  942. ifeq ($(CONFIG_ATH_PCI), 1)
  943. CDEFINES += -DATH_PCI
  944. endif
  945. #Enable power management suspend/resume functionality
  946. ifeq ($(CONFIG_ATH_BUS_PM), 1)
  947. CDEFINES += -DATH_BUS_PM
  948. endif
  949. #Enable FLOWMAC module support
  950. ifeq ($(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE), 1)
  951. CDEFINES += -DATH_SUPPORT_FLOWMAC_MODULE
  952. endif
  953. #Enable spectral support
  954. ifeq ($(CONFIG_ATH_SUPPORT_SPECTRAL), 1)
  955. CDEFINES += -DATH_SUPPORT_SPECTRAL
  956. endif
  957. #Enable WDI Event support
  958. ifeq ($(CONFIG_WDI_EVENT_ENABLE), 1)
  959. CDEFINES += -DWDI_EVENT_ENABLE
  960. endif
  961. #Endianess selection
  962. ifeq ($(CONFIG_LITTLE_ENDIAN), 1)
  963. AH_LITTLE_ENDIAN=1234
  964. CDEFINES += -DAH_BYTE_ORDER=$(AH_LITTLE_ENDIAN)
  965. else
  966. AH_BIG_ENDIAN=4321
  967. CDEFINES += -DAH_BYTE_ORDER=$(AH_BIG_ENDIAN)
  968. CDEFINES += -DBIG_ENDIAN_HOST
  969. endif
  970. #Enable TX reclaim support
  971. ifeq ($(CONFIG_TX_CREDIT_RECLAIM_SUPPORT), 1)
  972. CDEFINES += -DTX_CREDIT_RECLAIM_SUPPORT
  973. endif
  974. #Enable FTM support
  975. ifeq ($(CONFIG_QCA_WIFI_FTM), 1)
  976. CDEFINES += -DQCA_WIFI_FTM
  977. endif
  978. #Enable Checksum Offload support
  979. ifeq ($(CONFIG_CHECKSUM_OFFLOAD), 1)
  980. CDEFINES += -DCHECKSUM_OFFLOAD
  981. endif
  982. #Enable Checksum Offload support
  983. ifeq ($(CONFIG_IPA_OFFLOAD), 1)
  984. CDEFINES += -DIPA_OFFLOAD
  985. endif
  986. ifneq ($(CONFIG_ARCH_MDM9630), y)
  987. ifeq ($(CONFIG_ARCH_MDM9640), y)
  988. CDEFINES += -DQCA_CONFIG_SMP
  989. endif
  990. endif
  991. #Enable GTK Offload
  992. ifeq ($(CONFIG_GTK_OFFLOAD), 1)
  993. CDEFINES += -DWLAN_FEATURE_GTK_OFFLOAD
  994. CDEFINES += -DIGTK_OFFLOAD
  995. endif
  996. #Enable GTK Offload
  997. ifeq ($(CONFIG_EXT_WOW), 1)
  998. CDEFINES += -DWLAN_FEATURE_EXTWOW_SUPPORT
  999. endif
  1000. #Mark it as SMP Kernel
  1001. ifeq ($(CONFIG_SMP),y)
  1002. CDEFINES += -DQCA_CONFIG_SMP
  1003. endif
  1004. ifeq ($(CONFIG_WLAN_FEATURE_RX_WAKELOCK), y)
  1005. CDEFINES += -DWLAN_FEATURE_HOLD_RX_WAKELOCK
  1006. endif
  1007. #Enable Channel Matrix restriction for all Rome only targets
  1008. ifneq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
  1009. CDEFINES += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
  1010. endif
  1011. #features specific to mobile router use case
  1012. ifeq ($(CONFIG_MOBILE_ROUTER), y)
  1013. #enable MCC TO SCC switch
  1014. CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
  1015. #enable wlan auto shutdown feature
  1016. CDEFINES += -DFEATURE_WLAN_AUTO_SHUTDOWN
  1017. #enable for MBSSID
  1018. CDEFINES += -DWLAN_FEATURE_MBSSID
  1019. #enable AP-AP ACS Optimization
  1020. CDEFINES += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
  1021. #Enable 4address scheme
  1022. CDEFINES += -DFEATURE_WLAN_STA_4ADDR_SCHEME
  1023. #Disable STA-AP Mode DFS support
  1024. CDEFINES += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
  1025. #Enable OBSS feature
  1026. CDEFINES += -DQCA_HT_2040_COEX
  1027. #Disable HT40 in 2.4GHZ STA mode
  1028. CDEFINES += -DQCA_HT_20_24G_STA_ONLY
  1029. else #CONFIG_MOBILE_ROUTER
  1030. #Open P2P device interface only for non-Mobile router use cases
  1031. CDEFINES += -DWLAN_OPEN_P2P_INTERFACE
  1032. #Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
  1033. CDEFINES += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
  1034. endif #CONFIG_MOBILE_ROUTER
  1035. #Green AP feature
  1036. ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
  1037. CDEFINES += -DFEATURE_GREEN_AP
  1038. endif
  1039. #Enable RX Full re-order OL feature only "LL and NON-MDM9630 platform"
  1040. ifneq ($(CONFIG_ARCH_MDM9630), y)
  1041. ifeq ($(CONFIG_HIF_PCI), 1)
  1042. CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
  1043. endif
  1044. endif
  1045. #Enable Signed firmware support for split binary format
  1046. ifeq ($(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT), 1)
  1047. CDEFINES += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
  1048. endif
  1049. #Enable single firmware binary format
  1050. ifeq ($(CONFIG_QCA_SINGLE_BINARY_SUPPORT), 1)
  1051. CDEFINES += -DQCA_SINGLE_BINARY_SUPPORT
  1052. endif
  1053. #Enable collecting target RAM dump after kernel panic
  1054. ifeq ($(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC), 1)
  1055. CDEFINES += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
  1056. endif
  1057. #Enable/disable secure firmware feature
  1058. ifeq ($(CONFIG_FEATURE_SECURE_FIRMWARE), 1)
  1059. CDEFINES += -DFEATURE_SECURE_FIRMWARE
  1060. endif
  1061. ifeq ($(CONFIG_ATH_PCIE_ACCESS_DEBUG), 1)
  1062. CDEFINES += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
  1063. endif
  1064. # Some kernel include files are being moved. Check to see if
  1065. # the old version of the files are present
  1066. ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/mach-msm/include/mach/msm_smd.h),)
  1067. CDEFINES += -DEXISTS_MSM_SMD
  1068. endif
  1069. ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/mach-msm/include/mach/msm_smsm.h),)
  1070. CDEFINES += -DEXISTS_MSM_SMSM
  1071. endif
  1072. # Enable feature support fo Linux version QCMBR
  1073. ifeq ($(CONFIG_LINUX_QCMBR),y)
  1074. CDEFINES += -DLINUX_QCMBR
  1075. endif
  1076. # Enable featue sync tsf between multi devices
  1077. ifeq ($(CONFIG_WLAN_SYNC_TSF), y)
  1078. CDEFINES += -DWLAN_FEATURE_TSF
  1079. endif
  1080. # Enable full rx re-order offload for adrastea
  1081. ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1082. CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
  1083. endif
  1084. # Enable athdiag procfs debug support for adrastea
  1085. ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1086. CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  1087. endif
  1088. # Enable 11AC TX compact feature for adrastea
  1089. ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
  1090. CDEFINES += -DATH_11AC_TXCOMPACT
  1091. endif
  1092. # NOTE: CONFIG_64BIT_PADDR requires CONFIG_HELIUMPLUS
  1093. ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
  1094. CONFIG_HELIUMPLUS := y
  1095. CONFIG_64BIT_PADDR := y
  1096. CONFIG_FEATURE_TSO := y
  1097. CONFIG_FEATURE_TSO_DEBUG := y
  1098. ifeq ($(CONFIG_HELIUMPLUS),y)
  1099. CDEFINES += -DHELIUMPLUS_PADDR64
  1100. CDEFINES += -DHELIUMPLUS
  1101. CDEFINES += -DAR900B
  1102. ifeq ($(CONFIG_64BIT_PADDR),y)
  1103. CDEFINES += -DHTT_PADDR64
  1104. endif
  1105. endif
  1106. endif
  1107. ifeq ($(CONFIG_FEATURE_TSO),y)
  1108. CDEFINES += -DFEATURE_TSO
  1109. endif
  1110. ifeq ($(CONFIG_FEATURE_TSO_DEBUG),y)
  1111. CDEFINES += -DFEATURE_TSO_DEBUG
  1112. endif
  1113. ifeq ($(CONFIG_WLAN_LRO), y)
  1114. CDEFINES += -DFEATURE_LRO
  1115. endif
  1116. ifeq ($(CONFIG_MOBILE_ROUTER), y)
  1117. CDEFINES += -DFEATURE_AP_MCC_CH_AVOIDANCE
  1118. endif
  1119. ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
  1120. CDEFINES += -DMPC_UT_FRAMEWORK
  1121. endif
  1122. ifeq ($(CONFIG_WLAN_OFFLOAD_PACKETS),y)
  1123. CDEFINES += -DWLAN_FEATURE_OFFLOAD_PACKETS
  1124. endif
  1125. ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
  1126. CDEFINES += -DWLAN_FEATURE_MEMDUMP
  1127. endif
  1128. ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
  1129. CDEFINES += -DFEATURE_LFR_SUBNET_DETECTION
  1130. endif
  1131. ifeq ($(CONFIG_MCC_TO_SCC_SWITCH), y)
  1132. CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
  1133. endif
  1134. KBUILD_CPPFLAGS += $(CDEFINES)
  1135. # Currently, for versions of gcc which support it, the kernel Makefile
  1136. # is disabling the maybe-uninitialized warning. Re-enable it for the
  1137. # WLAN driver. Note that we must use EXTRA_CFLAGS here so that it
  1138. # will override the kernel settings.
  1139. ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y)
  1140. EXTRA_CFLAGS += -Wmaybe-uninitialized
  1141. endif
  1142. # Module information used by KBuild framework
  1143. obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
  1144. $(MODNAME)-y := $(OBJS)