Kbuild 37 KB

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