Kbuild 84 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557
  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 := y
  5. else
  6. KERNEL_BUILD := n
  7. endif
  8. ifeq ($(KERNEL_BUILD), y)
  9. # These are provided in external module based builds
  10. # Need to explicitly define for Kernel-based builds
  11. MODNAME := wlan
  12. WLAN_ROOT := drivers/staging/qcacld-3.0
  13. WLAN_COMMON_ROOT := ../qca-wifi-host-cmn
  14. WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
  15. endif
  16. WLAN_COMMON_ROOT ?= ../qca-wifi-host-cmn
  17. WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
  18. CONFIG_QCA_CLD_WLAN_PROFILE ?= default
  19. ifeq ($(KERNEL_BUILD), n)
  20. ifneq ($(ANDROID_BUILD_TOP),)
  21. override WLAN_ROOT := $(ANDROID_BUILD_TOP)/$(WLAN_ROOT)
  22. override WLAN_COMMON_INC := $(ANDROID_BUILD_TOP)/$(WLAN_COMMON_INC)
  23. endif
  24. endif
  25. include $(WLAN_ROOT)/configs/$(CONFIG_QCA_CLD_WLAN_PROFILE)_defconfig
  26. ############ UAPI ############
  27. UAPI_DIR := uapi
  28. UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux
  29. ############ COMMON ############
  30. COMMON_DIR := core/common
  31. COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR)
  32. ############ HDD ############
  33. HDD_DIR := core/hdd
  34. HDD_INC_DIR := $(HDD_DIR)/inc
  35. HDD_SRC_DIR := $(HDD_DIR)/src
  36. HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
  37. -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
  38. HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
  39. $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
  40. $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
  41. $(HDD_SRC_DIR)/wlan_hdd_data_stall_detection.o \
  42. $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \
  43. $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o \
  44. $(HDD_SRC_DIR)/wlan_hdd_ftm.o \
  45. $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
  46. $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \
  47. $(HDD_SRC_DIR)/wlan_hdd_main.o \
  48. $(HDD_SRC_DIR)/wlan_hdd_object_manager.o \
  49. $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
  50. $(HDD_SRC_DIR)/wlan_hdd_p2p.o \
  51. $(HDD_SRC_DIR)/wlan_hdd_power.o \
  52. $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \
  53. $(HDD_SRC_DIR)/wlan_hdd_scan.o \
  54. $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
  55. $(HDD_SRC_DIR)/wlan_hdd_stats.o \
  56. $(HDD_SRC_DIR)/wlan_hdd_trace.o \
  57. $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
  58. $(HDD_SRC_DIR)/wlan_hdd_wmm.o \
  59. $(HDD_SRC_DIR)/wlan_hdd_wowl.o
  60. ifeq ($(CONFIG_WLAN_WEXT_SUPPORT_ENABLE), y)
  61. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_wext.o \
  62. $(HDD_SRC_DIR)/wlan_hdd_hostapd_wext.o
  63. endif
  64. ifeq ($(CONFIG_WLAN_DEBUGFS), y)
  65. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs.o
  66. ifeq ($(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS), y)
  67. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_llstat.o
  68. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_csr.o
  69. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_connect.o
  70. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_offload.o
  71. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_roam.o
  72. endif
  73. endif
  74. ifeq ($(CONFIG_WLAN_CONV_SPECTRAL_ENABLE),y)
  75. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_spectralscan.o
  76. endif
  77. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  78. HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_ocb.o
  79. endif
  80. ifeq ($(CONFIG_FEATURE_MEMDUMP_ENABLE), y)
  81. HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_memdump.o
  82. endif
  83. ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
  84. HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_fips.o
  85. endif
  86. ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y)
  87. HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_green_ap.o
  88. endif
  89. ifeq ($(CONFIG_QCACLD_FEATURE_APF), y)
  90. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_apf.o
  91. endif
  92. ifeq ($(CONFIG_WLAN_FEATURE_LPSS), y)
  93. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lpass.o
  94. endif
  95. ifeq ($(CONFIG_WLAN_LRO), y)
  96. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o
  97. endif
  98. ifeq ($(CONFIG_WLAN_NAPI), y)
  99. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o
  100. endif
  101. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  102. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o
  103. endif
  104. ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
  105. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o
  106. endif
  107. ifeq ($(CONFIG_QCOM_TDLS), y)
  108. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
  109. endif
  110. ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
  111. CONFIG_WLAN_SYNC_TSF := y
  112. endif
  113. ifeq ($(CONFIG_WLAN_SYNC_TSF), y)
  114. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o
  115. endif
  116. ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
  117. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o
  118. endif
  119. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  120. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o
  121. endif
  122. ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
  123. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o
  124. endif
  125. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  126. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o
  127. endif
  128. ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
  129. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_he.o
  130. endif
  131. ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
  132. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_twt.o
  133. endif
  134. ifeq ($(CONFIG_LITHIUM), y)
  135. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rx_monitor.o
  136. endif
  137. ifeq ($(CONFIG_LITHIUM), y)
  138. CONFIG_WLAN_FEATURE_DP_RX_THREADS := y
  139. endif
  140. ifeq ($(CONFIG_WLAN_NUD_TRACKING), y)
  141. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nud_tracking.o
  142. endif
  143. ifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y)
  144. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_packet_filter.o
  145. endif
  146. ifeq ($(CONFIG_FEATURE_RSSI_MONITOR), y)
  147. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rssi_monitor.o
  148. endif
  149. ifeq ($(CONFIG_FEATURE_BSS_TRANSITION), y)
  150. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_bss_transition.o
  151. endif
  152. ifeq ($(CONFIG_FEATURE_STATION_INFO), y)
  153. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_station_info.o
  154. endif
  155. ifeq ($(CONFIG_FEATURE_TX_POWER), y)
  156. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tx_power.o
  157. endif
  158. ifeq ($(CONFIG_FEATURE_OTA_TEST), y)
  159. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ota_test.o
  160. endif
  161. ifeq ($(CONFIG_FEATURE_ACTIVE_TOS), y)
  162. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_active_tos.o
  163. endif
  164. ifeq ($(CONFIG_FEATURE_SAR_LIMITS), y)
  165. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sar_limits.o
  166. endif
  167. ifeq ($(CONFIG_FEATURE_CONCURRENCY_MATRIX), y)
  168. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_concurrency_matrix.o
  169. endif
  170. ifeq ($(CONFIG_FEATURE_SAP_COND_CHAN_SWITCH), y)
  171. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sap_cond_chan_switch.o
  172. endif
  173. ifeq ($(CONFIG_FEATURE_P2P_LISTEN_OFFLOAD), y)
  174. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_p2p_listen_offload.o
  175. endif
  176. ifeq ($(CONFIG_WLAN_SYSFS), y)
  177. HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs.o
  178. endif
  179. ########### Driver Synchronization Core (DSC) ###########
  180. DSC_DIR := components/dsc
  181. DSC_INC_DIR := $(DSC_DIR)/inc
  182. DSC_SRC_DIR := $(DSC_DIR)/src
  183. DSC_TEST_DIR := $(DSC_DIR)/test
  184. DSC_INC := \
  185. -I$(WLAN_ROOT)/$(DSC_INC_DIR) \
  186. -I$(WLAN_ROOT)/$(DSC_SRC_DIR) \
  187. -I$(WLAN_ROOT)/$(DSC_TEST_DIR)
  188. DSC_OBJS := \
  189. $(DSC_SRC_DIR)/__wlan_dsc.o \
  190. $(DSC_SRC_DIR)/wlan_dsc_driver.o \
  191. $(DSC_SRC_DIR)/wlan_dsc_psoc.o \
  192. $(DSC_SRC_DIR)/wlan_dsc_vdev.o
  193. ifeq ($(CONFIG_DSC_TEST), y)
  194. DSC_OBJS += $(DSC_TEST_DIR)/wlan_dsc_test.o
  195. endif
  196. cppflags-$(CONFIG_DSC_DEBUG) += -DWLAN_DSC_DEBUG
  197. cppflags-$(CONFIG_DSC_TEST) += -DWLAN_DSC_TEST
  198. ########### HOST DIAG LOG ###########
  199. HOST_DIAG_LOG_DIR := $(WLAN_COMMON_ROOT)/utils/host_diag_log
  200. HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc
  201. HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src
  202. HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
  203. -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
  204. HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
  205. ############ EPPING ############
  206. EPPING_DIR := $(WLAN_COMMON_ROOT)/utils/epping
  207. EPPING_INC_DIR := $(EPPING_DIR)/inc
  208. EPPING_SRC_DIR := $(EPPING_DIR)/src
  209. EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR)
  210. EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \
  211. $(EPPING_SRC_DIR)/epping_txrx.o \
  212. $(EPPING_SRC_DIR)/epping_tx.o \
  213. $(EPPING_SRC_DIR)/epping_rx.o \
  214. $(EPPING_SRC_DIR)/epping_helper.o
  215. ############ MAC ############
  216. MAC_DIR := core/mac
  217. MAC_INC_DIR := $(MAC_DIR)/inc
  218. MAC_SRC_DIR := $(MAC_DIR)/src
  219. MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
  220. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
  221. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
  222. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
  223. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \
  224. -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan
  225. MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfg_api.o \
  226. $(MAC_SRC_DIR)/cfg/cfg_param_name.o \
  227. $(MAC_SRC_DIR)/cfg/cfg_proc_msg.o \
  228. $(MAC_SRC_DIR)/cfg/cfg_send_msg.o
  229. MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o
  230. MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
  231. $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \
  232. $(MAC_SRC_DIR)/pe/lim/lim_api.o \
  233. $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \
  234. $(MAC_SRC_DIR)/pe/lim/lim_ft.o \
  235. $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o \
  236. $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \
  237. $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \
  238. $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \
  239. $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \
  240. $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \
  241. $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \
  242. $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \
  243. $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \
  244. $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \
  245. $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \
  246. $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \
  247. $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \
  248. $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \
  249. $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \
  250. $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \
  251. $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \
  252. $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \
  253. $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \
  254. $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \
  255. $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \
  256. $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \
  257. $(MAC_SRC_DIR)/pe/lim/lim_ser_des_utils.o \
  258. $(MAC_SRC_DIR)/pe/lim/lim_session.o \
  259. $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \
  260. $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \
  261. $(MAC_SRC_DIR)/pe/lim/lim_sta_hash_api.o \
  262. $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \
  263. $(MAC_SRC_DIR)/pe/lim/lim_trace.o \
  264. $(MAC_SRC_DIR)/pe/lim/lim_utils.o
  265. ifeq ($(CONFIG_QCOM_TDLS), y)
  266. MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o
  267. endif
  268. ifeq ($(CONFIG_WLAN_FEATURE_FILS), y)
  269. MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_fils.o
  270. endif
  271. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  272. MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o
  273. endif
  274. ifeq ($(CONFIG_QCACLD_WLAN_LFR2), y)
  275. MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \
  276. $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \
  277. $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \
  278. $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \
  279. $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o
  280. endif
  281. MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \
  282. $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \
  283. $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \
  284. $(MAC_SRC_DIR)/pe/sch/sch_message.o
  285. MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o
  286. MAC_OBJS := $(MAC_CFG_OBJS) \
  287. $(MAC_DPH_OBJS) \
  288. $(MAC_LIM_OBJS) \
  289. $(MAC_SCH_OBJS) \
  290. $(MAC_RRM_OBJS) \
  291. $(MAC_NDP_OBJS)
  292. ############ SAP ############
  293. SAP_DIR := core/sap
  294. SAP_INC_DIR := $(SAP_DIR)/inc
  295. SAP_SRC_DIR := $(SAP_DIR)/src
  296. SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
  297. -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
  298. SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \
  299. $(SAP_SRC_DIR)/sap_ch_select.o \
  300. $(SAP_SRC_DIR)/sap_fsm.o \
  301. $(SAP_SRC_DIR)/sap_module.o
  302. ############ CFG ############
  303. CFG_REL_DIR := $(WLAN_COMMON_ROOT)/cfg
  304. CFG_DIR := $(WLAN_ROOT)/$(CFG_REL_DIR)
  305. CFG_INC := \
  306. -I$(CFG_DIR)/inc \
  307. -I$(CFG_DIR)/dispatcher/inc \
  308. -I$(WLAN_ROOT)/components/cfg
  309. CFG_OBJS := \
  310. $(CFG_REL_DIR)/src/cfg.o
  311. ############ DFS ############
  312. DFS_DIR := $(WLAN_COMMON_ROOT)/umac/dfs
  313. DFS_CORE_INC_DIR := $(DFS_DIR)/core/inc
  314. DFS_CORE_SRC_DIR := $(DFS_DIR)/core/src
  315. DFS_DISP_INC_DIR := $(DFS_DIR)/dispatcher/inc
  316. DFS_DISP_SRC_DIR := $(DFS_DIR)/dispatcher/src
  317. DFS_TARGET_INC_DIR := $(WLAN_COMMON_ROOT)/target_if/dfs/inc
  318. DFS_CMN_SERVICES_INC_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/dfs/inc
  319. DFS_INC := -I$(WLAN_ROOT)/$(DFS_DISP_INC_DIR) \
  320. -I$(WLAN_ROOT)/$(DFS_TARGET_INC_DIR) \
  321. -I$(WLAN_ROOT)/$(DFS_CMN_SERVICES_INC_DIR)
  322. DFS_OBJS := $(DFS_CORE_SRC_DIR)/misc/dfs.o \
  323. $(DFS_CORE_SRC_DIR)/misc/dfs_cac.o \
  324. $(DFS_CORE_SRC_DIR)/misc/dfs_nol.o \
  325. $(DFS_CORE_SRC_DIR)/misc/dfs_random_chan_sel.o \
  326. $(DFS_CORE_SRC_DIR)/misc/dfs_process_radar_found_ind.o \
  327. $(DFS_DISP_SRC_DIR)/wlan_dfs_init_deinit_api.o \
  328. $(DFS_DISP_SRC_DIR)/wlan_dfs_lmac_api.o \
  329. $(DFS_DISP_SRC_DIR)/wlan_dfs_mlme_api.o \
  330. $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o \
  331. $(DFS_DISP_SRC_DIR)/wlan_dfs_ucfg_api.o \
  332. $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o \
  333. $(DFS_DISP_SRC_DIR)/wlan_dfs_utils_api.o \
  334. $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs.o
  335. ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y)
  336. DFS_OBJS += $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_full_offload.o \
  337. $(DFS_CORE_SRC_DIR)/misc/dfs_full_offload.o
  338. else
  339. DFS_OBJS += $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_partial_offload.o \
  340. $(DFS_CORE_SRC_DIR)/filtering/dfs_fcc_bin5.o \
  341. $(DFS_CORE_SRC_DIR)/filtering/dfs_bindetects.o \
  342. $(DFS_CORE_SRC_DIR)/filtering/dfs_debug.o \
  343. $(DFS_CORE_SRC_DIR)/filtering/dfs_init.o \
  344. $(DFS_CORE_SRC_DIR)/filtering/dfs_misc.o \
  345. $(DFS_CORE_SRC_DIR)/filtering/dfs_phyerr_tlv.o \
  346. $(DFS_CORE_SRC_DIR)/filtering/dfs_process_phyerr.o \
  347. $(DFS_CORE_SRC_DIR)/filtering/dfs_process_radarevent.o \
  348. $(DFS_CORE_SRC_DIR)/filtering/dfs_staggered.o \
  349. $(DFS_CORE_SRC_DIR)/filtering/dfs_radar.o \
  350. $(DFS_CORE_SRC_DIR)/filtering/dfs_ar.o \
  351. $(DFS_CORE_SRC_DIR)/filtering/dfs_partial_offload_radar.o \
  352. $(DFS_CORE_SRC_DIR)/misc/dfs_filter_init.o \
  353. $(DFS_CORE_SRC_DIR)/misc/dfs_zero_cac.o
  354. endif
  355. ############ SME ############
  356. SME_DIR := core/sme
  357. SME_INC_DIR := $(SME_DIR)/inc
  358. SME_SRC_DIR := $(SME_DIR)/src
  359. SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
  360. -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
  361. SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \
  362. $(SME_SRC_DIR)/csr/csr_api_scan.o \
  363. $(SME_SRC_DIR)/csr/csr_cmd_process.o \
  364. $(SME_SRC_DIR)/csr/csr_link_list.o \
  365. $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \
  366. $(SME_SRC_DIR)/csr/csr_util.o \
  367. ifeq ($(CONFIG_QCACLD_WLAN_LFR2), y)
  368. SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \
  369. $(SME_SRC_DIR)/csr/csr_host_scan_roam.o
  370. endif
  371. SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
  372. SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
  373. $(SME_SRC_DIR)/common/sme_ft_api.o \
  374. $(SME_SRC_DIR)/common/sme_power_save.o \
  375. $(SME_SRC_DIR)/common/sme_trace.o
  376. SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
  377. ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
  378. SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_api.o
  379. endif
  380. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  381. SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o
  382. endif
  383. SME_OBJS := $(SME_CMN_OBJS) \
  384. $(SME_CSR_OBJS) \
  385. $(SME_QOS_OBJS) \
  386. $(SME_RRM_OBJS) \
  387. $(SME_NAN_OBJS) \
  388. $(SME_NDP_OBJS)
  389. ############ NLINK ############
  390. NLINK_DIR := $(WLAN_COMMON_ROOT)/utils/nlink
  391. NLINK_INC_DIR := $(NLINK_DIR)/inc
  392. NLINK_SRC_DIR := $(NLINK_DIR)/src
  393. NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR)
  394. NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
  395. ############ PTT ############
  396. PTT_DIR := $(WLAN_COMMON_ROOT)/utils/ptt
  397. PTT_INC_DIR := $(PTT_DIR)/inc
  398. PTT_SRC_DIR := $(PTT_DIR)/src
  399. PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR)
  400. PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
  401. ############ WLAN_LOGGING ############
  402. WLAN_LOGGING_DIR := $(WLAN_COMMON_ROOT)/utils/logging
  403. WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc
  404. WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src
  405. WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR)
  406. WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o \
  407. $(WLAN_LOGGING_SRC_DIR)/wlan_roam_debug.o
  408. ############ SYS ############
  409. SYS_DIR := core/mac/src/sys
  410. SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
  411. -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
  412. -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
  413. -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
  414. SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
  415. SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
  416. SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
  417. $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \
  418. $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \
  419. $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \
  420. $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
  421. $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \
  422. $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \
  423. $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o
  424. ############ Qca-wifi-host-cmn ############
  425. QDF_OS_DIR := qdf
  426. QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc
  427. QDF_OS_SRC_DIR := $(QDF_OS_DIR)/src
  428. QDF_OS_LINUX_SRC_DIR := $(QDF_OS_DIR)/linux/src
  429. QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR)
  430. QDF_LINUX_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_LINUX_SRC_DIR)
  431. QDF_INC := -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \
  432. -I$(WLAN_COMMON_INC)/$(QDF_OS_LINUX_SRC_DIR)
  433. QDF_OBJS := $(QDF_LINUX_OBJ_DIR)/qdf_crypto.o \
  434. $(QDF_LINUX_OBJ_DIR)/qdf_defer.o \
  435. $(QDF_LINUX_OBJ_DIR)/qdf_dev.o \
  436. $(QDF_LINUX_OBJ_DIR)/qdf_event.o \
  437. $(QDF_LINUX_OBJ_DIR)/qdf_file.o \
  438. $(QDF_LINUX_OBJ_DIR)/qdf_idr.o \
  439. $(QDF_LINUX_OBJ_DIR)/qdf_list.o \
  440. $(QDF_LINUX_OBJ_DIR)/qdf_lock.o \
  441. $(QDF_LINUX_OBJ_DIR)/qdf_mc_timer.o \
  442. $(QDF_LINUX_OBJ_DIR)/qdf_mem.o \
  443. $(QDF_LINUX_OBJ_DIR)/qdf_nbuf.o \
  444. $(QDF_LINUX_OBJ_DIR)/qdf_net_if.o \
  445. $(QDF_LINUX_OBJ_DIR)/qdf_threads.o \
  446. $(QDF_LINUX_OBJ_DIR)/qdf_trace.o \
  447. $(QDF_LINUX_OBJ_DIR)/qdf_vfs.o \
  448. $(QDF_OBJ_DIR)/qdf_flex_mem.o \
  449. $(QDF_OBJ_DIR)/qdf_parse.o \
  450. $(QDF_OBJ_DIR)/qdf_platform.o \
  451. $(QDF_OBJ_DIR)/qdf_str.o \
  452. $(QDF_OBJ_DIR)/qdf_types.o \
  453. ifeq ($(CONFIG_WLAN_DEBUGFS), y)
  454. QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_debugfs.o
  455. endif
  456. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  457. QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_ipa.o
  458. endif
  459. # enable CPU hotplug support if SMP is enabled
  460. ifeq ($(CONFIG_SMP), y)
  461. QDF_OBJS += $(QDF_OBJ_DIR)/qdf_cpuhp.o
  462. QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_cpuhp.o
  463. endif
  464. ifeq ($(CONFIG_LEAK_DETECTION), y)
  465. QDF_OBJS += $(QDF_OBJ_DIR)/qdf_debug_domain.o
  466. endif
  467. ############ WBUFF ############
  468. WBUFF_OS_DIR := wbuff
  469. WBUFF_OS_INC_DIR := $(WBUFF_OS_DIR)/inc
  470. WBUFF_OS_SRC_DIR := $(WBUFF_OS_DIR)/src
  471. WBUFF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WBUFF_OS_SRC_DIR)
  472. WBUFF_INC := -I$(WLAN_COMMON_INC)/$(WBUFF_OS_INC_DIR) \
  473. ifeq ($(CONFIG_WLAN_WBUFF), y)
  474. WBUFF_OBJS += $(WBUFF_OBJ_DIR)/wbuff.o
  475. endif
  476. ##########QAL #######
  477. QAL_OS_DIR := qal
  478. QAL_OS_INC_DIR := $(QAL_OS_DIR)/inc
  479. QAL_OS_LINUX_SRC_DIR := $(QAL_OS_DIR)/linux/src
  480. QAL_LINUX_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QAL_OS_LINUX_SRC_DIR)
  481. QAL_INC := -I$(WLAN_COMMON_INC)/$(QAL_OS_INC_DIR) \
  482. -I$(WLAN_COMMON_INC)/$(QAL_OS_LINUX_SRC_DIR)
  483. QAL_OBJS := $(QAL_LINUX_OBJ_DIR)/qal_devcfg.o \
  484. $(QAL_LINUX_OBJ_DIR)/qal_vbus_dev.o \
  485. ##########OS_IF #######
  486. OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if
  487. OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux \
  488. -I$(WLAN_COMMON_INC)/os_if/linux/scan/inc \
  489. -I$(WLAN_COMMON_INC)/os_if/linux/p2p/inc \
  490. -I$(WLAN_COMMON_INC)/os_if/linux/spectral/inc \
  491. -I$(WLAN_COMMON_INC)/os_if/linux/tdls/inc \
  492. -I$(WLAN_COMMON_INC)/os_if/linux/crypto/inc
  493. OS_IF_OBJ := $(OS_IF_DIR)/linux/p2p/src/wlan_cfg80211_p2p.o \
  494. $(OS_IF_DIR)/linux/wlan_osif_request_manager.o \
  495. $(OS_IF_DIR)/linux/crypto/src/wlan_nl_to_crypto_params.o
  496. ############ UMAC_DISP ############
  497. UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if
  498. UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc
  499. UMAC_DISP_SRC_DIR := $(UMAC_DISP_DIR)/src
  500. UMAC_DISP_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_DISP_SRC_DIR)
  501. UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR)
  502. UMAC_DISP_OBJS := $(UMAC_DISP_OBJ_DIR)/wlan_lmac_if.o
  503. ############# UMAC_SCAN ############
  504. UMAC_SCAN_DIR := umac/scan
  505. UMAC_SCAN_DISP_INC_DIR := $(UMAC_SCAN_DIR)/dispatcher/inc
  506. UMAC_SCAN_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/core/src
  507. UMAC_SCAN_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/dispatcher/src
  508. UMAC_TARGET_SCAN_INC := -I$(WLAN_COMMON_INC)/target_if/scan/inc
  509. UMAC_SCAN_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SCAN_DISP_INC_DIR)
  510. UMAC_SCAN_OBJS := $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db.o \
  511. $(UMAC_SCAN_CORE_DIR)/wlan_scan_11d.o \
  512. $(UMAC_SCAN_CORE_DIR)/wlan_scan_bss_score.o \
  513. $(UMAC_SCAN_CORE_DIR)/wlan_scan_filter.o \
  514. $(UMAC_SCAN_CORE_DIR)/wlan_scan_main.o \
  515. $(UMAC_SCAN_CORE_DIR)/wlan_scan_manager.o \
  516. $(UMAC_SCAN_DISP_DIR)/wlan_scan_tgt_api.o \
  517. $(UMAC_SCAN_DISP_DIR)/wlan_scan_ucfg_api.o \
  518. $(UMAC_SCAN_DISP_DIR)/wlan_scan_utils_api.o \
  519. $(WLAN_COMMON_ROOT)/os_if/linux/scan/src/wlan_cfg80211_scan.o \
  520. $(WLAN_COMMON_ROOT)/os_if/linux/wlan_cfg80211.o \
  521. $(WLAN_COMMON_ROOT)/target_if/scan/src/target_if_scan.o
  522. ifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y)
  523. UMAC_SCAN_OBJS += $(UMAC_SCAN_DISP_DIR)/wlan_extscan_api.o
  524. endif
  525. ############# UMAC_SPECTRAL_SCAN ############
  526. UMAC_SPECTRAL_DIR := spectral
  527. UMAC_SPECTRAL_DISP_INC_DIR := $(UMAC_SPECTRAL_DIR)/dispatcher/inc
  528. UMAC_SPECTRAL_CORE_INC_DIR := $(UMAC_SPECTRAL_DIR)/core
  529. UMAC_SPECTRAL_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/core
  530. UMAC_SPECTRAL_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/dispatcher/src
  531. UMAC_TARGET_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/target_if/spectral
  532. UMAC_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_DISP_INC_DIR) \
  533. -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_CORE_INC_DIR) \
  534. -I$(WLAN_COMMON_INC)/target_if/direct_buf_rx/inc
  535. ifeq ($(CONFIG_WLAN_CONV_SPECTRAL_ENABLE),y)
  536. UMAC_SPECTRAL_OBJS := $(UMAC_SPECTRAL_CORE_DIR)/spectral_offload.o \
  537. $(UMAC_SPECTRAL_CORE_DIR)/spectral_common.o \
  538. $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_ucfg_api.o \
  539. $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_utils_api.o \
  540. $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_tgt_api.o \
  541. $(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/wlan_cfg80211_spectral.o \
  542. $(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/os_if_spectral_netlink.o \
  543. $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_netlink.o \
  544. $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_phyerr.o \
  545. $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral.o \
  546. $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_sim.o
  547. endif
  548. ############# UMAC_GREEN_AP ############
  549. UMAC_GREEN_AP_DIR := umac/green_ap
  550. UMAC_GREEN_AP_DISP_INC_DIR := $(UMAC_GREEN_AP_DIR)/dispatcher/inc
  551. UMAC_GREEN_AP_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/core/src
  552. UMAC_GREEN_AP_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/dispatcher/src
  553. UMAC_TARGET_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/target_if/green_ap/inc
  554. UMAC_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_GREEN_AP_DISP_INC_DIR)
  555. UMAC_GREEN_AP_OBJS := $(UMAC_GREEN_AP_CORE_DIR)/wlan_green_ap_main.o \
  556. $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_api.o \
  557. $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_ucfg_api.o \
  558. $(WLAN_COMMON_ROOT)/target_if/green_ap/src/target_if_green_ap.o
  559. ############# WLAN_CONV_CRYPTO_SUPPORTED ############
  560. UMAC_CRYPTO_DIR := umac/cmn_services/crypto
  561. UMAC_CRYPTO_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_CRYPTO_DIR)/src
  562. UMAC_CRYPTO_INC := -I$(WLAN_COMMON_INC)/$(UMAC_CRYPTO_DIR)/inc \
  563. -I$(WLAN_COMMON_INC)/$(UMAC_CRYPTO_DIR)/src
  564. UMAC_CRYPTO_OBJS := $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_global_api.o \
  565. $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_main.o \
  566. $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_obj_mgr.o \
  567. $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_param_handling.o
  568. ############# FTM CORE ############
  569. FTM_CORE_DIR := ftm
  570. TARGET_IF_FTM_DIR := target_if/ftm
  571. OS_IF_LINUX_FTM_DIR := os_if/linux/ftm
  572. FTM_CORE_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/core/src
  573. FTM_DISP_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/dispatcher/src
  574. TARGET_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(TARGET_IF_FTM_DIR)/src
  575. OS_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(OS_IF_LINUX_FTM_DIR)/src
  576. FTM_CORE_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/core/src
  577. FTM_DISP_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/dispatcher/inc
  578. TARGET_IF_FTM_INC := $(WLAN_COMMON_INC)/$(TARGET_IF_FTM_DIR)/inc
  579. OS_IF_FTM_INC := $(WLAN_COMMON_INC)/$(OS_IF_LINUX_FTM_DIR)/inc
  580. FTM_INC := -I$(FTM_DISP_INC) \
  581. -I$(FTM_CORE_INC) \
  582. -I$(OS_IF_FTM_INC) \
  583. -I$(TARGET_IF_FTM_INC)
  584. ifeq ($(CONFIG_QCA_WIFI_FTM), y)
  585. FTM_OBJS := $(FTM_DISP_SRC)/wlan_ftm_init_deinit.o \
  586. $(FTM_DISP_SRC)/wlan_ftm_ucfg_api.o \
  587. $(FTM_CORE_SRC)/wlan_ftm_svc.o \
  588. $(TARGET_IF_FTM_SRC)/target_if_ftm.o
  589. ifeq ($(QCA_WIFI_FTM_NL80211), y)
  590. FTM_OBJS += $(OS_IF_FTM_SRC)/wlan_cfg80211_ftm.o
  591. endif
  592. ifeq ($(CONFIG_LINUX_QCMBR), y)
  593. FTM_OBJS += $(OS_IF_FTM_SRC)/wlan_ioctl_ftm.o
  594. endif
  595. endif
  596. ############# UMAC_CMN_SERVICES ############
  597. UMAC_COMMON_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/cmn_defs/inc \
  598. -I$(WLAN_COMMON_INC)/umac/cmn_services/utils/inc
  599. UMAC_COMMON_OBJS := $(WLAN_COMMON_ROOT)/umac/cmn_services/utils/src/wlan_utility.o
  600. ifeq ($(CONFIG_WLAN_LRO), y)
  601. QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_lro.o
  602. endif
  603. ############ CDS (Connectivity driver services) ############
  604. CDS_DIR := core/cds
  605. CDS_INC_DIR := $(CDS_DIR)/inc
  606. CDS_SRC_DIR := $(CDS_DIR)/src
  607. CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \
  608. -I$(WLAN_ROOT)/$(CDS_SRC_DIR)
  609. CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \
  610. $(CDS_SRC_DIR)/cds_reg_service.o \
  611. $(CDS_SRC_DIR)/cds_packet.o \
  612. $(CDS_SRC_DIR)/cds_regdomain.o \
  613. $(CDS_SRC_DIR)/cds_sched.o \
  614. $(CDS_SRC_DIR)/cds_utils.o
  615. ###### UMAC OBJMGR ########
  616. UMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr
  617. UMAC_OBJMGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/inc \
  618. -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/src \
  619. -I$(WLAN_COMMON_INC)/umac/cmn_services/inc \
  620. -I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc
  621. UMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \
  622. $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_pdev_obj.o \
  623. $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_peer_obj.o \
  624. $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \
  625. $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o
  626. ifeq ($(CONFIG_WLAN_OBJMGR_DEBUG), y)
  627. UMAC_OBJMGR_OBJS += $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_debug.o
  628. endif
  629. ########### UMAC MGMT TXRX ##########
  630. UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx
  631. UMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \
  632. UMAC_MGMT_TXRX_OBJS := $(UMAC_MGMT_TXRX_DIR)/core/src/wlan_mgmt_txrx_main.o \
  633. $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_utils_api.o \
  634. $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_tgt_api.o
  635. ########## POWER MANAGEMENT OFFLOADS (PMO) ##########
  636. PMO_DIR := components/pmo
  637. PMO_INC := -I$(WLAN_ROOT)/$(PMO_DIR)/core/inc \
  638. -I$(WLAN_ROOT)/$(PMO_DIR)/core/src \
  639. -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/inc \
  640. -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/src \
  641. ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
  642. PMO_OBJS := $(PMO_DIR)/core/src/wlan_pmo_main.o \
  643. $(PMO_DIR)/core/src/wlan_pmo_apf.o \
  644. $(PMO_DIR)/core/src/wlan_pmo_arp.o \
  645. $(PMO_DIR)/core/src/wlan_pmo_gtk.o \
  646. $(PMO_DIR)/core/src/wlan_pmo_mc_addr_filtering.o \
  647. $(PMO_DIR)/core/src/wlan_pmo_static_config.o \
  648. $(PMO_DIR)/core/src/wlan_pmo_wow.o \
  649. $(PMO_DIR)/core/src/wlan_pmo_lphb.o \
  650. $(PMO_DIR)/core/src/wlan_pmo_suspend_resume.o \
  651. $(PMO_DIR)/core/src/wlan_pmo_hw_filter.o \
  652. $(PMO_DIR)/dispatcher/src/wlan_pmo_obj_mgmt_api.o \
  653. $(PMO_DIR)/dispatcher/src/wlan_pmo_ucfg_api.o \
  654. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_arp.o \
  655. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_gtk.o \
  656. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_wow.o \
  657. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_static_config.o \
  658. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_mc_addr_filtering.o \
  659. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_lphb.o \
  660. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_suspend_resume.o \
  661. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_hw_filter.o \
  662. ifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y)
  663. PMO_OBJS += $(PMO_DIR)/core/src/wlan_pmo_pkt_filter.o \
  664. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_pkt_filter.o
  665. endif
  666. endif
  667. ifeq ($(CONFIG_WLAN_NS_OFFLOAD), y)
  668. PMO_OBJS += $(PMO_DIR)/core/src/wlan_pmo_ns.o \
  669. $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_ns.o
  670. endif
  671. ########## DISA (ENCRYPTION TEST) ##########
  672. DISA_DIR := components/disa
  673. DISA_INC := -I$(WLAN_ROOT)/$(DISA_DIR)/core/inc \
  674. -I$(WLAN_ROOT)/$(DISA_DIR)/dispatcher/inc
  675. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  676. DISA_OBJS := $(DISA_DIR)/core/src/wlan_disa_main.o \
  677. $(DISA_DIR)/dispatcher/src/wlan_disa_obj_mgmt_api.o \
  678. $(DISA_DIR)/dispatcher/src/wlan_disa_tgt_api.o \
  679. $(DISA_DIR)/dispatcher/src/wlan_disa_ucfg_api.o
  680. endif
  681. ######## OCB ##############
  682. OCB_DIR := components/ocb
  683. OCB_INC := -I$(WLAN_ROOT)/$(OCB_DIR)/core/inc \
  684. -I$(WLAN_ROOT)/$(OCB_DIR)/dispatcher/inc
  685. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  686. OCB_OBJS := $(OCB_DIR)/dispatcher/src/wlan_ocb_ucfg_api.o \
  687. $(OCB_DIR)/dispatcher/src/wlan_ocb_tgt_api.o \
  688. $(OCB_DIR)/core/src/wlan_ocb_main.o
  689. endif
  690. ######## IPA ##############
  691. IPA_DIR := components/ipa
  692. IPA_INC := -I$(WLAN_ROOT)/$(IPA_DIR)/core/inc \
  693. -I$(WLAN_ROOT)/$(IPA_DIR)/dispatcher/inc
  694. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  695. IPA_OBJS := $(IPA_DIR)/dispatcher/src/wlan_ipa_ucfg_api.o \
  696. $(IPA_DIR)/dispatcher/src/wlan_ipa_obj_mgmt_api.o \
  697. $(IPA_DIR)/dispatcher/src/wlan_ipa_tgt_api.o \
  698. $(IPA_DIR)/core/src/wlan_ipa_main.o \
  699. $(IPA_DIR)/core/src/wlan_ipa_core.o \
  700. $(IPA_DIR)/core/src/wlan_ipa_stats.o \
  701. $(IPA_DIR)/core/src/wlan_ipa_rm.o
  702. endif
  703. ######## FWOL ##########
  704. FWOL_DIR := components/fw_offload
  705. FWOL_INC := -I$(WLAN_ROOT)/$(FWOL_DIR)/core/inc \
  706. -I$(WLAN_ROOT)/$(FWOL_DIR)/dispatcher/inc
  707. FWOL_OBJS := $(FWOL_DIR)/core/src/wlan_fw_offload_main.o \
  708. $(FWOL_DIR)/dispatcher/src/wlan_fwol_ucfg_api.o
  709. ######## SM FRAMEWORK ##############
  710. UMAC_SM_DIR := umac/cmn_services/sm_engine
  711. UMAC_SM_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SM_DIR)/inc
  712. UMAC_SM_OBJS := $(WLAN_COMMON_ROOT)/$(UMAC_SM_DIR)/src/wlan_sm_engine.o
  713. ifeq ($(CONFIG_SM_ENG_HIST), y)
  714. UMAC_SM_OBJS += $(WLAN_COMMON_ROOT)/$(UMAC_SM_DIR)/src/wlan_sm_engine_dbg.o
  715. endif
  716. ######## COMMON MLME ##############
  717. UMAC_MLME_INC := -I$(WLAN_COMMON_INC)/umac/mlme \
  718. -I$(WLAN_COMMON_INC)/umac/mlme/mlme_objmgr/dispatcher/inc \
  719. -I$(WLAN_COMMON_INC)/umac/mlme/vdev_mgr/dispatcher/inc
  720. ifeq ($(CONFIG_CMN_VDEV_MLME_SM), y)
  721. UMAC_MLME_OBJS := $(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_vdev_mlme_main.o \
  722. $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/core/src/vdev_mlme_sm.o \
  723. $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mlme_api.o
  724. endif
  725. ######## MLME ##############
  726. MLME_DIR := components/mlme
  727. MLME_INC := -I$(WLAN_ROOT)/$(MLME_DIR)/core/inc \
  728. -I$(WLAN_ROOT)/$(MLME_DIR)/dispatcher/inc
  729. MLME_OBJS := $(MLME_DIR)/core/src/wlan_mlme_main.o \
  730. $(MLME_DIR)/dispatcher/src/wlan_mlme_api.o \
  731. $(MLME_DIR)/dispatcher/src/wlan_mlme_ucfg_api.o
  732. ifeq ($(CONFIG_VDEV_SM), y)
  733. MLME_OBJS += $(MLME_DIR)/core/src/wlan_mlme_vdev_mgr_interface.o
  734. endif
  735. ########## ACTION OUI ##########
  736. ACTION_OUI_DIR := components/action_oui
  737. ACTION_OUI_INC := -I$(WLAN_ROOT)/$(ACTION_OUI_DIR)/core/inc \
  738. -I$(WLAN_ROOT)/$(ACTION_OUI_DIR)/dispatcher/inc
  739. ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
  740. ACTION_OUI_OBJS := $(ACTION_OUI_DIR)/core/src/wlan_action_oui_main.o \
  741. $(ACTION_OUI_DIR)/core/src/wlan_action_oui_parse.o \
  742. $(ACTION_OUI_DIR)/dispatcher/src/wlan_action_oui_tgt_api.o \
  743. $(ACTION_OUI_DIR)/dispatcher/src/wlan_action_oui_ucfg_api.o
  744. endif
  745. ########## CLD TARGET_IF #######
  746. CLD_TARGET_IF_DIR := components/target_if
  747. CLD_TARGET_IF_INC := -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/inc \
  748. -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/src
  749. ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
  750. CLD_TARGET_IF_OBJ := $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \
  751. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \
  752. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_hw_filter.o \
  753. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \
  754. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \
  755. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \
  756. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \
  757. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \
  758. $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o
  759. ifeq ($(CONFIG_WLAN_NS_OFFLOAD), y)
  760. CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o
  761. endif
  762. ifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y)
  763. CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_pkt_filter.o
  764. endif
  765. endif
  766. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  767. CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ocb/inc
  768. CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ocb/src/target_if_ocb.o
  769. endif
  770. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  771. CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/disa/inc
  772. CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/disa/src/target_if_disa.o
  773. endif
  774. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  775. CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ipa/inc
  776. CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ipa/src/target_if_ipa.o
  777. endif
  778. ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
  779. CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/action_oui/inc
  780. CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/action_oui/src/target_if_action_oui.o
  781. endif
  782. ############## UMAC P2P ###########
  783. P2P_DIR := umac/p2p
  784. P2P_CORE_DIR := $(P2P_DIR)/core
  785. P2P_CORE_SRC_DIR := $(P2P_CORE_DIR)/src
  786. P2P_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_CORE_SRC_DIR)
  787. P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher
  788. P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc
  789. P2P_DISPATCHER_SRC_DIR := $(P2P_DISPATCHER_DIR)/src
  790. P2P_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_DISPATCHER_SRC_DIR)
  791. UMAC_P2P_INC := -I$(WLAN_COMMON_INC)/$(P2P_DISPATCHER_INC_DIR) \
  792. -I$(WLAN_COMMON_INC)/umac/scan/dispatcher/inc
  793. UMAC_P2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \
  794. $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \
  795. $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_cfg.o \
  796. $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \
  797. $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \
  798. $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o
  799. ###### UMAC POLICY MGR ########
  800. UMAC_POLICY_MGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/policy_mgr
  801. UMAC_POLICY_MGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/inc \
  802. -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/src
  803. UMAC_POLICY_MGR_OBJS := $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \
  804. $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \
  805. $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \
  806. $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \
  807. $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_ucfg.o \
  808. $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o \
  809. ###### UMAC TDLS ########
  810. UMAC_TDLS_DIR := $(WLAN_COMMON_ROOT)/umac/tdls
  811. UMAC_TDLS_INC := -I$(WLAN_COMMON_INC)/umac/tdls/dispatcher/inc
  812. UMAC_TDLS_OBJS := $(UMAC_TDLS_DIR)/core/src/wlan_tdls_main.o \
  813. $(UMAC_TDLS_DIR)/core/src/wlan_tdls_cmds_process.o \
  814. $(UMAC_TDLS_DIR)/core/src/wlan_tdls_peer.o \
  815. $(UMAC_TDLS_DIR)/core/src/wlan_tdls_mgmt.o \
  816. $(UMAC_TDLS_DIR)/core/src/wlan_tdls_ct.o \
  817. $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_tgt_api.o \
  818. $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_ucfg_api.o \
  819. $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_utils_api.o \
  820. $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_cfg.o \
  821. $(WLAN_COMMON_ROOT)/os_if/linux/tdls/src/wlan_cfg80211_tdls.o
  822. ########### BMI ###########
  823. BMI_DIR := core/bmi
  824. BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
  825. ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
  826. BMI_OBJS := $(BMI_DIR)/src/bmi.o \
  827. $(BMI_DIR)/src/bmi_1.o \
  828. $(BMI_DIR)/src/ol_fw.o \
  829. $(BMI_DIR)/src/ol_fw_common.o
  830. endif
  831. ########## TARGET_IF #######
  832. TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if
  833. TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \
  834. -I$(WLAN_COMMON_INC)/target_if/core/src \
  835. -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \
  836. -I$(WLAN_COMMON_INC)/target_if/p2p/inc \
  837. -I$(WLAN_COMMON_INC)/target_if/regulatory/inc \
  838. -I$(WLAN_COMMON_INC)/target_if/tdls/inc
  839. TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \
  840. $(TARGET_IF_DIR)/p2p/src/target_if_p2p.o \
  841. $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o \
  842. $(TARGET_IF_DIR)/tdls/src/target_if_tdls.o \
  843. $(TARGET_IF_DIR)/init_deinit/src/init_cmd_api.o \
  844. $(TARGET_IF_DIR)/init_deinit/src/init_deinit_lmac.o \
  845. $(TARGET_IF_DIR)/init_deinit/src/init_event_handler.o \
  846. $(TARGET_IF_DIR)/init_deinit/src/service_ready_util.o \
  847. ########### GLOBAL_LMAC_IF ##########
  848. GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if
  849. GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \
  850. -I$(WLAN_COMMON_INC)/global_lmac_if/src
  851. GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o
  852. ########### WMI ###########
  853. WMI_ROOT_DIR := wmi
  854. WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
  855. WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
  856. WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
  857. WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
  858. WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
  859. $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
  860. $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
  861. $(WMI_OBJ_DIR)/wmi_unified_api.o \
  862. $(WMI_OBJ_DIR)/wmi_unified_reg_api.o
  863. ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
  864. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o
  865. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_pmo_tlv.o
  866. endif
  867. ifeq ($(CONFIG_QCACLD_FEATURE_APF), y)
  868. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_apf_tlv.o
  869. endif
  870. ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
  871. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_action_oui_tlv.o
  872. endif
  873. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  874. ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
  875. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_ut.o
  876. endif
  877. endif
  878. ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y)
  879. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_dfs_api.o
  880. endif
  881. ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
  882. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_api.o
  883. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_tlv.o
  884. endif
  885. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  886. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_api.o
  887. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_tlv.o
  888. endif
  889. ifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y)
  890. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_api.o
  891. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_tlv.o
  892. endif
  893. ifeq ($(CONFIG_NAN_CONVERGENCE), y)
  894. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_nan_api.o
  895. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_nan_tlv.o
  896. endif
  897. ifeq ($(CONFIG_CONVERGED_P2P_ENABLE), y)
  898. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_p2p_api.o
  899. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_p2p_tlv.o
  900. endif
  901. ifeq ($(CONFIG_WMI_ROAM_SUPPORT), y)
  902. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_roam_api.o
  903. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_roam_tlv.o
  904. endif
  905. ifeq ($(CONFIG_WMI_CONCURRENCY_SUPPORT), y)
  906. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_concurrency_api.o
  907. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_concurrency_tlv.o
  908. endif
  909. ifeq ($(CONFIG_WMI_STA_SUPPORT), y)
  910. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_sta_api.o
  911. WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_sta_tlv.o
  912. endif
  913. ########### FWLOG ###########
  914. FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog
  915. FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
  916. FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
  917. ############ TXRX ############
  918. TXRX_DIR := core/dp/txrx
  919. TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
  920. TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \
  921. $(TXRX_DIR)/ol_cfg.o \
  922. $(TXRX_DIR)/ol_rx.o \
  923. $(TXRX_DIR)/ol_rx_fwd.o \
  924. $(TXRX_DIR)/ol_txrx.o \
  925. $(TXRX_DIR)/ol_rx_defrag.o \
  926. $(TXRX_DIR)/ol_tx_desc.o \
  927. $(TXRX_DIR)/ol_tx.o \
  928. $(TXRX_DIR)/ol_rx_reorder_timeout.o \
  929. $(TXRX_DIR)/ol_rx_reorder.o \
  930. $(TXRX_DIR)/ol_rx_pn.o \
  931. $(TXRX_DIR)/ol_txrx_peer_find.o \
  932. $(TXRX_DIR)/ol_txrx_encap.o \
  933. $(TXRX_DIR)/ol_tx_send.o
  934. ifeq ($(CONFIG_WDI_EVENT_ENABLE), y)
  935. TXRX_OBJS += $(TXRX_DIR)/ol_txrx_event.o
  936. endif
  937. ifeq ($(CONFIG_LL_DP_SUPPORT), y)
  938. TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll.o
  939. ifeq ($(CONFIG_WLAN_FASTPATH), y)
  940. TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_fastpath.o
  941. else
  942. TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_legacy.o
  943. endif
  944. ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
  945. TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
  946. endif
  947. endif #CONFIG_LL_DP_SUPPORT
  948. ifeq ($(CONFIG_HL_DP_SUPPORT), y)
  949. TXRX_OBJS += $(TXRX_DIR)/ol_tx_hl.o
  950. TXRX_OBJS += $(TXRX_DIR)/ol_tx_classify.o
  951. TXRX_OBJS += $(TXRX_DIR)/ol_tx_sched.o
  952. TXRX_OBJS += $(TXRX_DIR)/ol_tx_queue.o
  953. endif #CONFIG_HL_DP_SUPPORT
  954. ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY), y)
  955. TXRX_OBJS += $(TXRX_DIR)/ol_txrx_legacy_flow_control.o
  956. endif
  957. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  958. TXRX_OBJS += $(TXRX_DIR)/ol_txrx_ipa.o
  959. endif
  960. ifeq ($(CONFIG_QCA_SUPPORT_TX_THROTTLE), y)
  961. TXRX_OBJS += $(TXRX_DIR)/ol_tx_throttle.o
  962. endif
  963. ############ TXRX 3.0 ############
  964. TXRX3.0_DIR := core/dp/txrx3.0
  965. TXRX3.0_INC := -I$(WLAN_ROOT)/$(TXRX3.0_DIR)
  966. TXRX3.0_OBJS := $(TXRX3.0_DIR)/dp_txrx.o \
  967. $(TXRX3.0_DIR)/dp_rx_thread.o
  968. ifeq ($(CONFIG_LITHIUM), y)
  969. ############ DP 3.0 ############
  970. DP_INC := -I$(WLAN_COMMON_INC)/dp/inc \
  971. -I$(WLAN_COMMON_INC)/dp/wifi3.0 \
  972. -I$(WLAN_COMMON_INC)/target_if/dp/inc
  973. DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0
  974. DP_OBJS := $(DP_SRC)/dp_main.o \
  975. $(DP_SRC)/dp_tx.o \
  976. $(DP_SRC)/dp_tx_desc.o \
  977. $(DP_SRC)/dp_rx.o \
  978. $(DP_SRC)/dp_rx_err.o \
  979. $(DP_SRC)/dp_htt.o \
  980. $(DP_SRC)/dp_peer.o \
  981. $(DP_SRC)/dp_rx_desc.o \
  982. $(DP_SRC)/dp_reo.o \
  983. $(DP_SRC)/dp_rx_mon_dest.o \
  984. $(DP_SRC)/dp_rx_mon_status.o \
  985. $(DP_SRC)/dp_rx_defrag.o \
  986. $(DP_SRC)/dp_stats.o \
  987. $(WLAN_COMMON_ROOT)/target_if/dp/src/target_if_dp.o
  988. ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
  989. DP_OBJS += $(DP_SRC)/dp_tx_flow_control.o
  990. endif
  991. endif
  992. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  993. DP_OBJS += $(DP_SRC)/dp_ipa.o
  994. endif
  995. ifeq ($(CONFIG_WDI_EVENT_ENABLE), y)
  996. DP_OBJS += $(DP_SRC)/dp_wdi_event.o
  997. endif
  998. ############ CFG ############
  999. WCFG_DIR := wlan_cfg
  1000. WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR)
  1001. WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR)
  1002. ifeq ($(CONFIG_LITHIUM), y)
  1003. WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o
  1004. endif
  1005. ############ OL ############
  1006. OL_DIR := core/dp/ol
  1007. OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
  1008. ############ CDP ############
  1009. CDP_ROOT_DIR := dp
  1010. CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
  1011. CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
  1012. ############ PKTLOG ############
  1013. PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog
  1014. PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
  1015. PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
  1016. $(PKTLOG_DIR)/pktlog_internal.o \
  1017. $(PKTLOG_DIR)/linux_ac.o
  1018. ############ HTT ############
  1019. HTT_DIR := core/dp/htt
  1020. HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
  1021. HTT_OBJS := $(HTT_DIR)/htt_tx.o \
  1022. $(HTT_DIR)/htt.o \
  1023. $(HTT_DIR)/htt_t2h.o \
  1024. $(HTT_DIR)/htt_h2t.o \
  1025. $(HTT_DIR)/htt_fw_stats.o \
  1026. $(HTT_DIR)/htt_rx.o
  1027. ifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y)
  1028. HTT_OBJS += $(HTT_DIR)/htt_monitor_rx.o
  1029. endif
  1030. ifeq ($(CONFIG_LL_DP_SUPPORT), y)
  1031. HTT_OBJS += $(HTT_DIR)/htt_rx_ll.o
  1032. endif
  1033. ifeq ($(CONFIG_HL_DP_SUPPORT), y)
  1034. HTT_OBJS += $(HTT_DIR)/htt_rx_hl.o
  1035. endif
  1036. ############## INIT-DEINIT ###########
  1037. INIT_DEINIT_DIR := init_deinit/dispatcher
  1038. INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc
  1039. INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src
  1040. INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR)
  1041. INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR)
  1042. INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o
  1043. ############## REGULATORY ###########
  1044. REGULATORY_DIR := umac/regulatory
  1045. REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc
  1046. REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src
  1047. REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc
  1048. REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src
  1049. REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR)
  1050. REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR)
  1051. REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR)
  1052. REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR)
  1053. REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_db.o \
  1054. $(REG_CORE_OBJ_DIR)/reg_services.o \
  1055. $(REG_CORE_OBJ_DIR)/reg_db_parser.o \
  1056. $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \
  1057. $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \
  1058. $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o
  1059. ifeq ($(CONFIG_HOST_11D_SCAN), y)
  1060. REGULATORY_OBJS += $(REG_CORE_OBJ_DIR)/reg_host_11d.o
  1061. endif
  1062. ############## Control path common scheduler ##########
  1063. SCHEDULER_DIR := scheduler
  1064. SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc
  1065. SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src
  1066. SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR)
  1067. SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR)
  1068. SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \
  1069. $(SCHEDULER_OBJ_DIR)/scheduler_core.o
  1070. ###### UMAC SERIALIZATION ########
  1071. UMAC_SER_DIR := umac/cmn_services/serialization
  1072. UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc
  1073. UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src
  1074. UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR)
  1075. UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR)
  1076. UMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \
  1077. $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \
  1078. $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \
  1079. $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \
  1080. $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o \
  1081. $(UMAC_SER_OBJ_DIR)/wlan_serialization_internal.o \
  1082. $(UMAC_SER_OBJ_DIR)/wlan_serialization_non_scan.o \
  1083. $(UMAC_SER_OBJ_DIR)/wlan_serialization_queue.o \
  1084. $(UMAC_SER_OBJ_DIR)/wlan_serialization_scan.o
  1085. ###### WIFI POS ########
  1086. WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src
  1087. WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc
  1088. WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src
  1089. WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc
  1090. WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src
  1091. WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc
  1092. ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
  1093. WIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \
  1094. $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \
  1095. $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \
  1096. $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \
  1097. $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \
  1098. $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o
  1099. endif
  1100. ###### CP STATS ########
  1101. CP_STATS_OS_IF_SRC := $(WLAN_COMMON_ROOT)/os_if/linux/cp_stats/src
  1102. CP_STATS_TGT_SRC := $(WLAN_COMMON_ROOT)/target_if/cp_stats/src
  1103. CP_STATS_CORE_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/core/src
  1104. CP_STATS_DISPATCHER_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/dispatcher/src
  1105. CP_STATS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/cp_stats/inc
  1106. CP_STATS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/cp_stats/inc
  1107. CP_STATS_DISPATCHER_INC := -I$(WLAN_COMMON_INC)/umac/cp_stats/dispatcher/inc
  1108. ifeq ($(CONFIG_CP_STATS), y)
  1109. CP_STATS_OBJS := $(CP_STATS_TGT_SRC)/target_if_mc_cp_stats.o \
  1110. $(CP_STATS_CORE_SRC)/wlan_cp_stats_comp_handler.o \
  1111. $(CP_STATS_CORE_SRC)/wlan_cp_stats_obj_mgr_handler.o \
  1112. $(CP_STATS_CORE_SRC)/wlan_cp_stats_ol_api.o \
  1113. $(CP_STATS_OS_IF_SRC)/wlan_cfg80211_mc_cp_stats.o \
  1114. $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_utils_api.o \
  1115. $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_tgt_api.o \
  1116. $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_ucfg_api.o
  1117. endif
  1118. ######################### NAN #########################
  1119. NAN_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/nan/core/src
  1120. NAN_CORE_INC := -I$(WLAN_COMMON_INC)/umac/nan/core/inc
  1121. NAN_UCFG_DIR := $(WLAN_COMMON_ROOT)/umac/nan/dispatcher/src
  1122. NAN_UCFG_INC := -I$(WLAN_COMMON_INC)/umac/nan/dispatcher/inc
  1123. NAN_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/nan/src
  1124. NAN_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/nan/inc
  1125. NAN_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/nan/src
  1126. NAN_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/nan/inc
  1127. ifeq ($(CONFIG_NAN_CONVERGENCE), y)
  1128. WLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \
  1129. $(NAN_CORE_DIR)/nan_api.o \
  1130. $(NAN_CORE_DIR)/nan_utils.o \
  1131. $(NAN_UCFG_DIR)/nan_ucfg_api.o \
  1132. $(NAN_UCFG_DIR)/cfg_nan.o \
  1133. $(NAN_TGT_DIR)/target_if_nan.o \
  1134. $(NAN_OS_IF_DIR)/os_if_nan.o
  1135. endif
  1136. #######################################################
  1137. ############## HTC ##########
  1138. HTC_DIR := htc
  1139. HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
  1140. HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
  1141. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
  1142. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
  1143. $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
  1144. ifeq ($(CONFIG_FEATURE_HTC_CREDIT_HISTORY), y)
  1145. HTC_OBJS += $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_credit_history.o
  1146. endif
  1147. ########### HIF ###########
  1148. HIF_DIR := hif
  1149. HIF_CE_DIR := $(HIF_DIR)/src/ce
  1150. HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
  1151. HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
  1152. HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
  1153. HIF_USB_DIR := $(HIF_DIR)/src/usb
  1154. HIF_SDIO_DIR := $(HIF_DIR)/src/sdio
  1155. HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio
  1156. HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include
  1157. HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src
  1158. HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
  1159. -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src
  1160. ifeq ($(CONFIG_HIF_PCI), y)
  1161. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  1162. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
  1163. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
  1164. endif
  1165. ifeq ($(CONFIG_HIF_SNOC), y)
  1166. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  1167. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
  1168. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
  1169. endif
  1170. ifeq ($(CONFIG_HIF_USB), y)
  1171. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  1172. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR)
  1173. endif
  1174. ifeq ($(CONFIG_HIF_SDIO), y)
  1175. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
  1176. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR)
  1177. HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR)
  1178. endif
  1179. HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
  1180. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o
  1181. ifeq ($(CONFIG_WLAN_NAPI), y)
  1182. HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_exec.o
  1183. HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_irq_affinity.o
  1184. endif
  1185. HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
  1186. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
  1187. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
  1188. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
  1189. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o \
  1190. $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
  1191. ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
  1192. HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o
  1193. endif
  1194. ifeq ($(CONFIG_LITHIUM), y)
  1195. ifeq ($(CONFIG_CNSS_QCA6290), y)
  1196. HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o
  1197. endif
  1198. ifeq ($(CONFIG_CNSS_QCA6390), y)
  1199. HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6390def.o
  1200. endif
  1201. HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
  1202. else
  1203. HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_legacy.o
  1204. endif
  1205. HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \
  1206. $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \
  1207. $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \
  1208. $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o
  1209. HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \
  1210. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \
  1211. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \
  1212. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o \
  1213. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/transfer.o
  1214. ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
  1215. HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o
  1216. endif
  1217. ifeq ($(CONFIG_SDIO_TRANSFER), adma)
  1218. HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/adma.o
  1219. else
  1220. HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/mailbox.o
  1221. endif
  1222. HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \
  1223. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o \
  1224. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/dev_quirks.o
  1225. ifeq ($(CONFIG_WLAN_NAPI), y)
  1226. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
  1227. endif
  1228. ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), y)
  1229. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_unit_test_suspend.o
  1230. endif
  1231. HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
  1232. HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
  1233. HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o
  1234. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
  1235. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
  1236. HIF_OBJS += $(HIF_COMMON_OBJS)
  1237. ifeq ($(CONFIG_HIF_PCI), y)
  1238. HIF_OBJS += $(HIF_PCIE_OBJS)
  1239. HIF_OBJS += $(HIF_CE_OBJS)
  1240. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
  1241. endif
  1242. ifeq ($(CONFIG_HIF_SNOC), y)
  1243. HIF_OBJS += $(HIF_SNOC_OBJS)
  1244. HIF_OBJS += $(HIF_CE_OBJS)
  1245. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
  1246. endif
  1247. ifeq ($(CONFIG_HIF_SDIO), y)
  1248. HIF_OBJS += $(HIF_SDIO_OBJS)
  1249. HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS)
  1250. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o
  1251. endif
  1252. ifeq ($(CONFIG_HIF_USB), y)
  1253. HIF_OBJS += $(HIF_USB_OBJS)
  1254. HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o
  1255. endif
  1256. ifeq ($(CONFIG_LITHIUM), y)
  1257. ############ HAL ############
  1258. HAL_DIR := hal
  1259. HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \
  1260. -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0
  1261. HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \
  1262. $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o
  1263. ifeq ($(CONFIG_CNSS_QCA6290), y)
  1264. HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6290
  1265. HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6290/hal_6290.o
  1266. else ifeq ($(CONFIG_CNSS_QCA6390), y)
  1267. HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6390
  1268. HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6390/hal_6390.o
  1269. else
  1270. #error "Not 11ax"
  1271. endif
  1272. endif #####CONFIG_LITHIUM####
  1273. ############ WMA ############
  1274. WMA_DIR := core/wma
  1275. WMA_INC_DIR := $(WMA_DIR)/inc
  1276. WMA_SRC_DIR := $(WMA_DIR)/src
  1277. WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
  1278. -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
  1279. ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
  1280. WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
  1281. endif
  1282. WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \
  1283. $(WMA_SRC_DIR)/wma_scan_roam.o \
  1284. $(WMA_SRC_DIR)/wma_dev_if.o \
  1285. $(WMA_SRC_DIR)/wma_mgmt.o \
  1286. $(WMA_SRC_DIR)/wma_power.o \
  1287. $(WMA_SRC_DIR)/wma_data.o \
  1288. $(WMA_SRC_DIR)/wma_utils.o \
  1289. $(WMA_SRC_DIR)/wma_features.o \
  1290. $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
  1291. $(WMA_NDP_OBJS)
  1292. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  1293. WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o
  1294. endif
  1295. ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
  1296. WMA_OBJS+= $(WMA_SRC_DIR)/wma_fips_api.o
  1297. endif
  1298. ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
  1299. WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
  1300. endif
  1301. ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
  1302. WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o
  1303. endif
  1304. ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
  1305. WMA_OBJS += $(WMA_SRC_DIR)/wma_twt.o
  1306. endif
  1307. ############## PLD ##########
  1308. PLD_DIR := core/pld
  1309. PLD_INC_DIR := $(PLD_DIR)/inc
  1310. PLD_SRC_DIR := $(PLD_DIR)/src
  1311. PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
  1312. -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
  1313. PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
  1314. ifeq ($(CONFIG_HIF_PCI), y)
  1315. PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
  1316. endif
  1317. ifeq ($(CONFIG_ICNSS), y)
  1318. PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
  1319. endif
  1320. ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
  1321. PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o
  1322. endif
  1323. ifeq ($(CONFIG_HIF_USB), y)
  1324. PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o
  1325. endif
  1326. TARGET_INC := -I$(WLAN_ROOT)/../fw-api/fw
  1327. ifeq ($(CONFIG_CNSS_QCA6290), y)
  1328. ifeq ($(CONFIG_QCA6290_11AX), y)
  1329. TARGET_INC += -I$(WLAN_ROOT)/../fw-api/hw/qca6290/11ax/v2
  1330. else
  1331. TARGET_INC += -I$(WLAN_ROOT)/../fw-api/hw/qca6290/v2
  1332. endif
  1333. endif
  1334. ifeq ($(CONFIG_CNSS_QCA6390), y)
  1335. TARGET_INC += -I$(WLAN_ROOT)/../fw-api/hw/qca6390/v1
  1336. endif
  1337. LINUX_INC := -Iinclude
  1338. INCS := $(HDD_INC) \
  1339. $(DSC_INC) \
  1340. $(EPPING_INC) \
  1341. $(LINUX_INC) \
  1342. $(MAC_INC) \
  1343. $(SAP_INC) \
  1344. $(SME_INC) \
  1345. $(SYS_INC) \
  1346. $(QAL_INC) \
  1347. $(QDF_INC) \
  1348. $(WBUFF_INC) \
  1349. $(CDS_INC) \
  1350. $(CFG_INC) \
  1351. $(DFS_INC) \
  1352. $(TARGET_IF_INC) \
  1353. $(CLD_TARGET_IF_INC) \
  1354. $(OS_IF_INC) \
  1355. $(GLOBAL_LMAC_IF_INC) \
  1356. $(FTM_INC)
  1357. INCS += $(WMA_INC) \
  1358. $(UAPI_INC) \
  1359. $(COMMON_INC) \
  1360. $(WMI_INC) \
  1361. $(FWLOG_INC) \
  1362. $(TXRX_INC) \
  1363. $(OL_INC) \
  1364. $(CDP_INC) \
  1365. $(PKTLOG_INC) \
  1366. $(HTT_INC) \
  1367. $(INIT_DEINIT_INC) \
  1368. $(SCHEDULER_INC) \
  1369. $(REGULATORY_INC) \
  1370. $(HTC_INC) \
  1371. $(DFS_INC) \
  1372. $(WCFG_INC) \
  1373. $(TXRX3.0_INC)
  1374. INCS += $(HIF_INC) \
  1375. $(BMI_INC)
  1376. ifeq ($(CONFIG_LITHIUM), y)
  1377. INCS += $(HAL_INC) \
  1378. $(DP_INC)
  1379. endif
  1380. ################ WIFI POS ################
  1381. INCS += $(WIFI_POS_API_INC)
  1382. INCS += $(WIFI_POS_TGT_INC)
  1383. INCS += $(WIFI_POS_OS_IF_INC)
  1384. ################ CP STATS ################
  1385. INCS += $(CP_STATS_OS_IF_INC)
  1386. INCS += $(CP_STATS_TGT_INC)
  1387. INCS += $(CP_STATS_DISPATCHER_INC)
  1388. ################ NAN POS ################
  1389. INCS += $(NAN_CORE_INC)
  1390. INCS += $(NAN_UCFG_INC)
  1391. INCS += $(NAN_TGT_INC)
  1392. INCS += $(NAN_OS_IF_INC)
  1393. ##########################################
  1394. INCS += $(UMAC_OBJMGR_INC)
  1395. INCS += $(UMAC_MGMT_TXRX_INC)
  1396. INCS += $(PMO_INC)
  1397. INCS += $(UMAC_P2P_INC)
  1398. INCS += $(UMAC_POLICY_MGR_INC)
  1399. INCS += $(TARGET_INC)
  1400. INCS += $(UMAC_TDLS_INC)
  1401. INCS += $(UMAC_SER_INC)
  1402. INCS += $(NLINK_INC) \
  1403. $(PTT_INC) \
  1404. $(WLAN_LOGGING_INC)
  1405. INCS += $(PLD_INC)
  1406. INCS += $(OCB_INC)
  1407. INCS += $(IPA_INC)
  1408. INCS += $(UMAC_SM_INC)
  1409. INCS += $(UMAC_MLME_INC)
  1410. INCS += $(MLME_INC)
  1411. INCS += $(FWOL_INC)
  1412. ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
  1413. INCS += $(PKTLOG_INC)
  1414. endif
  1415. INCS += $(HOST_DIAG_LOG_INC)
  1416. INCS += $(DISA_INC)
  1417. INCS += $(ACTION_OUI_INC)
  1418. INCS += $(UMAC_DISP_INC)
  1419. INCS += $(UMAC_SCAN_INC)
  1420. INCS += $(UMAC_TARGET_SCAN_INC)
  1421. INCS += $(UMAC_GREEN_AP_INC)
  1422. INCS += $(UMAC_TARGET_GREEN_AP_INC)
  1423. INCS += $(UMAC_COMMON_INC)
  1424. INCS += $(UMAC_SPECTRAL_INC)
  1425. INCS += $(UMAC_TARGET_SPECTRAL_INC)
  1426. INCS += $(UMAC_CRYPTO_INC)
  1427. OBJS := $(HDD_OBJS) \
  1428. $(DSC_OBJS) \
  1429. $(MAC_OBJS) \
  1430. $(SAP_OBJS) \
  1431. $(SME_OBJS) \
  1432. $(SYS_OBJS) \
  1433. $(QAL_OBJS) \
  1434. $(QDF_OBJS) \
  1435. $(WBUFF_OBJS) \
  1436. $(CDS_OBJS) \
  1437. $(CFG_OBJS) \
  1438. $(FTM_OBJS)
  1439. OBJS += $(WMA_OBJS) \
  1440. $(TXRX_OBJS) \
  1441. $(WMI_OBJS) \
  1442. $(HTC_OBJS) \
  1443. $(INIT_DEINIT_OBJS) \
  1444. $(SCHEDULER_OBJS) \
  1445. $(REGULATORY_OBJS)
  1446. OBJS += $(HIF_OBJS) \
  1447. $(BMI_OBJS) \
  1448. $(HTT_OBJS) \
  1449. $(OS_IF_OBJ) \
  1450. $(TARGET_IF_OBJ) \
  1451. $(CLD_TARGET_IF_OBJ) \
  1452. $(GLOBAL_LMAC_IF_OBJ)
  1453. ifeq ($(CONFIG_LITHIUM), y)
  1454. OBJS += $(HAL_OBJS)
  1455. endif
  1456. ifeq ($(CONFIG_FEATURE_FW_LOG_PARSING), y)
  1457. OBJS += $(FWLOG_OBJS)
  1458. endif
  1459. ifeq ($(CONFIG_FEATURE_EPPING), y)
  1460. OBJS += $(EPPING_OBJS)
  1461. endif
  1462. ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y)
  1463. OBJS += $(DFS_OBJS)
  1464. endif
  1465. OBJS += $(UMAC_OBJMGR_OBJS)
  1466. OBJS += $(WIFI_POS_OBJS)
  1467. OBJS += $(CP_STATS_OBJS)
  1468. OBJS += $(WLAN_NAN_OBJS)
  1469. OBJS += $(UMAC_MGMT_TXRX_OBJS)
  1470. OBJS += $(UMAC_TDLS_OBJS)
  1471. OBJS += $(PMO_OBJS)
  1472. OBJS += $(UMAC_P2P_OBJS)
  1473. OBJS += $(UMAC_POLICY_MGR_OBJS)
  1474. OBJS += $(WLAN_LOGGING_OBJS)
  1475. OBJS += $(NLINK_OBJS)
  1476. OBJS += $(PTT_OBJS)
  1477. OBJS += $(UMAC_SER_OBJS)
  1478. OBJS += $(PLD_OBJS)
  1479. OBJS += $(UMAC_SM_OBJS)
  1480. OBJS += $(UMAC_MLME_OBJS)
  1481. OBJS += $(MLME_OBJS)
  1482. OBJS += $(FWOL_OBJS)
  1483. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  1484. OBJS += $(OCB_OBJS)
  1485. endif
  1486. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  1487. OBJS += $(IPA_OBJS)
  1488. endif
  1489. ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
  1490. OBJS += $(PKTLOG_OBJS)
  1491. endif
  1492. ifeq ($(BUILD_DIAG_VERSION), y)
  1493. OBJS += $(HOST_DIAG_LOG_OBJS)
  1494. endif
  1495. ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
  1496. OBJS += $(DISA_OBJS)
  1497. endif
  1498. ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
  1499. OBJS += $(ACTION_OUI_OBJS)
  1500. endif
  1501. OBJS += $(UMAC_DISP_OBJS)
  1502. OBJS += $(UMAC_SCAN_OBJS)
  1503. OBJS += $(UMAC_COMMON_OBJS)
  1504. OBJS += $(WCFG_OBJS)
  1505. OBJS += $(UMAC_SPECTRAL_OBJS)
  1506. ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y)
  1507. OBJS += $(UMAC_GREEN_AP_OBJS)
  1508. endif
  1509. ifeq ($(CONFIG_CRYPTO_COMPONENT), y)
  1510. OBJS += $(UMAC_CRYPTO_OBJS)
  1511. endif
  1512. ifeq ($(CONFIG_LITHIUM), y)
  1513. OBJS += $(DP_OBJS)
  1514. endif
  1515. ifeq ($(CONFIG_WLAN_FEATURE_DP_RX_THREADS), y)
  1516. OBJS += $(TXRX3.0_OBJS)
  1517. endif
  1518. ccflags-y += $(INCS)
  1519. cppflags-y += -DANI_OS_TYPE_ANDROID=6 \
  1520. -Wall\
  1521. -Werror\
  1522. -D__linux__
  1523. cppflags-$(CONFIG_PTT_SOCK_SVC_ENABLE) += -DPTT_SOCK_SVC_ENABLE
  1524. cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DFEATURE_WLAN_WAPI
  1525. cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DATH_SUPPORT_WAPI
  1526. cppflags-$(CONFIG_AGEIE_ON_SCAN_RESULTS) += -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS
  1527. cppflags-$(CONFIG_SOFTAP_CHANNEL_RANGE) += -DSOFTAP_CHANNEL_RANGE
  1528. cppflags-$(CONFIG_FEATURE_WLAN_SCAN_PNO) += -DFEATURE_WLAN_SCAN_PNO
  1529. cppflags-$(CONFIG_WLAN_FEATURE_PACKET_FILTERING) += -DWLAN_FEATURE_PACKET_FILTERING
  1530. cppflags-$(CONFIG_WLAN_NS_OFFLOAD) += -DWLAN_NS_OFFLOAD
  1531. cppflags-$(CONFIG_FEATURE_WLAN_RA_FILTERING) += -DFEATURE_WLAN_RA_FILTERING
  1532. cppflags-$(CONFIG_FEATURE_WLAN_LPHB) += -DFEATURE_WLAN_LPHB
  1533. cppflags-$(CONFIG_QCA_SUPPORT_TX_THROTTLE) += -DQCA_SUPPORT_TX_THROTTLE
  1534. cppflags-$(CONFIG_WMI_INTERFACE_EVENT_LOGGING) += -DWMI_INTERFACE_EVENT_LOGGING
  1535. cppflags-$(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS) += -DWLAN_FEATURE_LINK_LAYER_STATS
  1536. cppflags-$(CONFIG_FEATURE_WLAN_EXTSCAN) += -DFEATURE_WLAN_EXTSCAN
  1537. cppflags-$(CONFIG_160MHZ_SUPPORT) += -DCONFIG_160MHZ_SUPPORT
  1538. cppflags-$(CONFIG_MCL) += -DCONFIG_MCL
  1539. cppflags-$(CONFIG_MCL_REGDB) += -DCONFIG_MCL_REGDB
  1540. cppflags-$(CONFIG_LEGACY_CHAN_ENUM) += -DCONFIG_LEGACY_CHAN_ENUM
  1541. cppflags-$(CONFIG_WLAN_PMO_ENABLE) += -DWLAN_PMO_ENABLE
  1542. cppflags-$(CONFIG_CONVERGED_P2P_ENABLE) += -DCONVERGED_P2P_ENABLE
  1543. cppflags-$(CONFIG_WLAN_POLICY_MGR_ENABLE) += -DWLAN_POLICY_MGR_ENABLE
  1544. cppflags-$(CONFIG_SUPPORT_11AX) += -DSUPPORT_11AX
  1545. cppflags-$(CONFIG_HDD_INIT_WITH_RTNL_LOCK) += -DCONFIG_HDD_INIT_WITH_RTNL_LOCK
  1546. cppflags-$(CONFIG_CONVERGED_TDLS_ENABLE) += -DCONVERGED_TDLS_ENABLE
  1547. cppflags-$(CONFIG_WLAN_CONV_SPECTRAL_ENABLE) += -DWLAN_CONV_SPECTRAL_ENABLE
  1548. cppflags-$(CONFIG_WMI_CMD_STRINGS) += -DWMI_CMD_STRINGS
  1549. cppflags-$(CONFIG_FEATURE_MONITOR_MODE_SUPPORT) += -DFEATURE_MONITOR_MODE_SUPPORT
  1550. cppflags-$(CONFIG_WLAN_FEATURE_TWT) += -DWLAN_SUPPORT_TWT
  1551. cppflags-$(CONFIG_WLAN_DISABLE_EXPORT_SYMBOL) += -DWLAN_DISABLE_EXPORT_SYMBOL
  1552. cppflags-$(CONFIG_WIFI_POS_CONVERGED) += -DWIFI_POS_CONVERGED
  1553. cppflags-$(CONFIG_WIFI_POS_LEGACY) += -DFEATURE_OEM_DATA_SUPPORT
  1554. cppflags-$(CONFIG_FEATURE_HTC_CREDIT_HISTORY) += -DFEATURE_HTC_CREDIT_HISTORY
  1555. cppflags-$(CONFIG_WLAN_FEATURE_P2P_DEBUG) += -DWLAN_FEATURE_P2P_DEBUG
  1556. cppflags-$(CONFIG_WLAN_WEXT_SUPPORT_ENABLE) += -DWLAN_WEXT_SUPPORT_ENABLE
  1557. cppflags-$(CONFIG_WLAN_LOGGING_SOCK_SVC) += -DWLAN_LOGGING_SOCK_SVC_ENABLE
  1558. cppflags-$(CONFIG_WLAN_LOGGING_BUFFERS_DYNAMICALLY) += -DWLAN_LOGGING_BUFFERS_DYNAMICALLY
  1559. cppflags-$(CONFIG_WLAN_FEATURE_FILS) += -DWLAN_FEATURE_FILS_SK
  1560. cppflags-$(CONFIG_CP_STATS) += -DQCA_SUPPORT_CP_STATS
  1561. cppflags-$(CONFIG_FEATURE_MEMDUMP_ENABLE) += -DWLAN_FEATURE_MEMDUMP_ENABLE
  1562. cppflags-$(CONFIG_FEATURE_FW_LOG_PARSING) += -DFEATURE_FW_LOG_PARSING
  1563. cppflags-$(CONFIG_PLD_SDIO_CNSS_FLAG) += -DCONFIG_PLD_SDIO_CNSS
  1564. cppflags-$(CONFIG_PLD_PCIE_CNSS_FLAG) += -DCONFIG_PLD_PCIE_CNSS
  1565. cppflags-$(CONFIG_PLD_PCIE_INIT_FLAG) += -DCONFIG_PLD_PCIE_INIT
  1566. cppflags-$(CONFIG_WLAN_FEATURE_DP_RX_THREADS) += -DFEATURE_WLAN_DP_RX_THREADS
  1567. #Enable NL80211 test mode
  1568. cppflags-$(CONFIG_NL80211_TESTMODE) += -DWLAN_NL80211_TESTMODE
  1569. # Flag to enable bus auto suspend
  1570. ifeq ($(CONFIG_HIF_PCI), y)
  1571. ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
  1572. cppflags-y += -DFEATURE_RUNTIME_PM
  1573. endif
  1574. endif
  1575. cppflags-$(CONFIG_ICNSS) += -DCONFIG_PLD_SNOC_ICNSS
  1576. cppflags-$(CONFIG_WIFI_3_0_ADRASTEA) += -DQCA_WIFI_3_0_ADRASTEA
  1577. cppflags-$(CONFIG_WIFI_3_0_ADRASTEA) += -DQCA_WIFI_3_0
  1578. cppflags-$(CONFIG_ADRASTEA_SHADOW_REGISTERS) += -DADRASTEA_SHADOW_REGISTERS
  1579. cppflags-$(CONFIG_ADRASTEA_RRI_ON_DDR) += -DADRASTEA_RRI_ON_DDR
  1580. ifeq ($(CONFIG_QMI_SUPPORT), n)
  1581. cppflags-y += -DCONFIG_BYPASS_QMI
  1582. endif
  1583. cppflags-$(CONFIG_WLAN_FASTPATH) += -DWLAN_FEATURE_FASTPATH
  1584. cppflags-$(CONFIG_FEATURE_PKTLOG) += -DFEATURE_PKTLOG
  1585. ifeq ($(CONFIG_WLAN_NAPI), y)
  1586. cppflags-y += -DFEATURE_NAPI
  1587. cppflags-y += -DHIF_IRQ_AFFINITY
  1588. ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
  1589. cppflags-y += -DFEATURE_NAPI_DEBUG
  1590. endif
  1591. endif
  1592. ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
  1593. cppflags-y += -DMSM_PLATFORM
  1594. endif
  1595. cppflags-y += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
  1596. cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_CONTROL_V2
  1597. cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
  1598. cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY) += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
  1599. ifeq ($(BUILD_DEBUG_VERSION), y)
  1600. cppflags-y += -DWLAN_DEBUG
  1601. ifeq ($(CONFIG_TRACE_RECORD_FEATURE), y)
  1602. cppflags-y += -DTRACE_RECORD \
  1603. -DLIM_TRACE_RECORD \
  1604. -DSME_TRACE_RECORD \
  1605. -DHDD_TRACE_RECORD
  1606. endif
  1607. endif
  1608. cppflags-$(CONFIG_UNIT_TEST) += -DWLAN_UNIT_TEST
  1609. cppflags-$(CONFIG_WLAN_DEBUG_CRASH_INJECT) += -DCONFIG_WLAN_DEBUG_CRASH_INJECT
  1610. cppflags-$(CONFIG_FEATURE_UNIT_TEST_SUSPEND) += -DWLAN_SUSPEND_RESUME_TEST
  1611. ifeq ($(CONFIG_LEAK_DETECTION), y)
  1612. cppflags-y += \
  1613. -DCONFIG_HALT_KMEMLEAK \
  1614. -DCONFIG_LEAK_DETECTION \
  1615. -DMEMORY_DEBUG \
  1616. -DNBUF_MEMORY_DEBUG \
  1617. -DNBUF_MAP_UNMAP_DEBUG \
  1618. -DTIMER_MANAGER
  1619. endif
  1620. cppflags-y += -DWLAN_FEATURE_P2P
  1621. cppflags-y += -DWLAN_FEATURE_WFD
  1622. ifeq ($(CONFIG_QCOM_VOWIFI_11R), y)
  1623. cppflags-y += -DKERNEL_SUPPORT_11R_CFG80211
  1624. cppflags-y += -DUSE_80211_WMMTSPEC_FOR_RIC
  1625. endif
  1626. ifeq ($(CONFIG_QCOM_ESE), y)
  1627. cppflags-y += -DFEATURE_WLAN_ESE
  1628. endif
  1629. #normally, TDLS negative behavior is not needed
  1630. cppflags-$(CONFIG_QCOM_TDLS) += -DFEATURE_WLAN_TDLS
  1631. cppflags-$(CONFIG_QCACLD_WLAN_LFR3) += -DWLAN_FEATURE_ROAM_OFFLOAD
  1632. cppflags-$(CONFIG_CNSS_GENL) += -DCNSS_GENL
  1633. cppflags-$(CONFIG_QCACLD_WLAN_LFR2) += -DWLAN_FEATURE_HOST_ROAM
  1634. cppflags-$(CONFIG_FEATURE_ROAM_DEBUG) += -DFEATURE_ROAM_DEBUG
  1635. cppflags-$(CONFIG_WLAN_POWER_DEBUGFS) += -DWLAN_POWER_DEBUGFS
  1636. # Enable object manager reference count debug infrastructure
  1637. cppflags-$(CONFIG_WLAN_OBJMGR_DEBUG) += -DWLAN_OBJMGR_DEBUG
  1638. cppflags-$(CONFIG_WLAN_OBJMGR_DEBUG) += -DWLAN_OBJMGR_REF_ID_DEBUG
  1639. cppflags-$(CONFIG_WLAN_FEATURE_SAE) += -DWLAN_FEATURE_SAE
  1640. ifeq ($(BUILD_DIAG_VERSION), y)
  1641. cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT
  1642. cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
  1643. cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
  1644. ifeq ($(CONFIG_HIF_PCI), y)
  1645. cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  1646. endif
  1647. endif
  1648. ifeq ($(CONFIG_HIF_USB), y)
  1649. cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  1650. cppflags-y += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
  1651. cppflags-y += -DCONFIG_ATH_PCIE_MAX_PERF=0 -DCONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD=0 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0
  1652. endif
  1653. cppflags-$(CONFIG_WLAN_FEATURE_11W) += -DWLAN_FEATURE_11W
  1654. cppflags-$(CONFIG_QCA_TXDESC_SANITY_CHECKS) += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS
  1655. cppflags-$(CONFIG_QCOM_LTE_COEX) += -DFEATURE_WLAN_CH_AVOID
  1656. cppflags-$(CONFIG_WLAN_FEATURE_LPSS) += -DWLAN_FEATURE_LPSS
  1657. cppflags-$(CONFIG_DESC_DUP_DETECT_DEBUG) += -DDESC_DUP_DETECT_DEBUG
  1658. cppflags-$(CONFIG_DEBUG_RX_RING_BUFFER) += -DDEBUG_RX_RING_BUFFER
  1659. cppflags-$(PANIC_ON_BUG) += -DPANIC_ON_BUG
  1660. cppflags-$(WLAN_WARN_ON_ASSERT) += -DWLAN_WARN_ON_ASSERT
  1661. ccflags-$(CONFIG_POWER_MANAGEMENT_OFFLOAD) += -DWLAN_POWER_MANAGEMENT_OFFLOAD
  1662. cppflags-$(CONFIG_WLAN_LOG_FATAL) += -DWLAN_LOG_FATAL
  1663. cppflags-$(CONFIG_WLAN_LOG_ERROR) += -DWLAN_LOG_ERROR
  1664. cppflags-$(CONFIG_WLAN_LOG_WARN) += -DWLAN_LOG_WARN
  1665. cppflags-$(CONFIG_WLAN_LOG_INFO) += -DWLAN_LOG_INFO
  1666. cppflags-$(CONFIG_WLAN_LOG_DEBUG) += -DWLAN_LOG_DEBUG
  1667. cppflags-$(CONFIG_WLAN_LOG_ENTER) += -DWLAN_LOG_ENTER
  1668. cppflags-$(CONFIG_WLAN_LOG_EXIT) += -DWLAN_LOG_EXIT
  1669. cppflags-$(WLAN_OPEN_SOURCE) += -DWLAN_OPEN_SOURCE
  1670. cppflags-$(CONFIG_FEATURE_STATS_EXT) += -DWLAN_FEATURE_STATS_EXT
  1671. cppflags-$(CONFIG_QCACLD_FEATURE_NAN) += -DWLAN_FEATURE_NAN
  1672. cppflags-$(CONFIG_QCA_IBSS_SUPPORT) += -DQCA_IBSS_SUPPORT
  1673. cppflags-$(CONFIG_WLAN_SYSFS) += -DWLAN_SYSFS
  1674. cppflags-$(CONFIG_FEATURE_WLAN_RMC) += -DFEATURE_WLAN_RMC
  1675. #Enable OL debug and wmi unified functions
  1676. cppflags-$(CONFIG_ATH_PERF_PWR_OFFLOAD) += -DATH_PERF_PWR_OFFLOAD
  1677. #Disable packet log
  1678. cppflags-$(CONFIG_REMOVE_PKT_LOG) += -DREMOVE_PKT_LOG
  1679. #Enable 11AC TX
  1680. cppflags-$(CONFIG_ATH_11AC_TXCOMPACT) += -DATH_11AC_TXCOMPACT
  1681. #Enable PCI specific APIS (dma, etc)
  1682. cppflags-$(CONFIG_HIF_PCI) += -DHIF_PCI
  1683. cppflags-$(CONFIG_HIF_SNOC) += -DHIF_SNOC
  1684. cppflags-$(CONFIG_HL_DP_SUPPORT) += -DCONFIG_HL_SUPPORT
  1685. cppflags-$(CONFIG_HL_DP_SUPPORT) += -DWLAN_PARTIAL_REORDER_OFFLOAD
  1686. cppflags-$(CONFIG_HL_DP_SUPPORT) += -DQCA_COMPUTE_TX_DELAY
  1687. cppflags-$(CONFIG_HL_DP_SUPPORT) += -DQCA_COMPUTE_TX_DELAY_PER_TID
  1688. cppflags-$(CONFIG_LL_DP_SUPPORT) += -DCONFIG_LL_DP_SUPPORT
  1689. cppflags-$(CONFIG_LL_DP_SUPPORT) += -DWLAN_FULL_REORDER_OFFLOAD
  1690. #Enable High Latency related Flags
  1691. ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
  1692. cppflags-y += -DCONFIG_AR6320_SUPPORT \
  1693. -DSDIO_3_0 \
  1694. -DHIF_SDIO \
  1695. -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \
  1696. -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \
  1697. -DHIF_MBOX_SLEEP_WAR \
  1698. -DDEBUG_HL_LOGGING \
  1699. -DQCA_BAD_PEER_TX_FLOW_CL \
  1700. -DCONFIG_SDIO \
  1701. -DFEATURE_WLAN_FORCE_SAP_SCC
  1702. ifeq ($(CONFIG_SDIO_TRANSFER), adma)
  1703. cppflags-y += -DCONFIG_SDIO_TRANSFER_ADMA
  1704. else
  1705. cppflags-y += -DCONFIG_SDIO_TRANSFER_MAILBOX
  1706. endif
  1707. endif
  1708. ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
  1709. cppflags-y += -DWLAN_FEATURE_DSRC
  1710. ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
  1711. cppflags-y += -DWLAN_OCB_UT
  1712. endif
  1713. endif
  1714. cppflags-$(CONFIG_FEATURE_SKB_PRE_ALLOC) += -DFEATURE_SKB_PRE_ALLOC
  1715. #Enable USB specific APIS
  1716. ifeq ($(CONFIG_HIF_USB), y)
  1717. cppflags-y += -DHIF_USB \
  1718. -DDEBUG_HL_LOGGING
  1719. endif
  1720. #Enable Genoa specific features.
  1721. cppflags-$(CONFIG_QCA_HL_NETDEV_FLOW_CONTROL) += -DQCA_HL_NETDEV_FLOW_CONTROL
  1722. cppflags-$(CONFIG_FEATURE_HL_GROUP_CREDIT_FLOW_CONTROL) += -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL
  1723. cppflags-$(CONFIG_FEATURE_HL_DBS_GROUP_CREDIT_SHARING) += -DFEATURE_HL_DBS_GROUP_CREDIT_SHARING
  1724. cppflags-$(CONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE) += -DCONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE
  1725. cppflags-$(CONFIG_TX_DESC_HI_PRIO_RESERVE) += -DCONFIG_TX_DESC_HI_PRIO_RESERVE
  1726. cppflags-$(CONFIG_PER_VDEV_TX_DESC_POOL) += -DCONFIG_PER_VDEV_TX_DESC_POOL
  1727. #Enable FW logs through ini
  1728. cppflags-y += -DCONFIG_FW_LOGS_BASED_ON_INI
  1729. #Enable power management suspend/resume functionality
  1730. cppflags-$(CONFIG_ATH_BUS_PM) += -DATH_BUS_PM
  1731. #Enable FLOWMAC module support
  1732. cppflags-$(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE) += -DATH_SUPPORT_FLOWMAC_MODULE
  1733. #Enable spectral support
  1734. cppflags-$(CONFIG_ATH_SUPPORT_SPECTRAL) += -DATH_SUPPORT_SPECTRAL
  1735. #Enable WDI Event support
  1736. cppflags-$(CONFIG_WDI_EVENT_ENABLE) += -DWDI_EVENT_ENABLE
  1737. #Endianness selection
  1738. ifeq ($(CONFIG_LITTLE_ENDIAN), y)
  1739. cppflags-y += -DANI_LITTLE_BYTE_ENDIAN
  1740. cppflags-y += -DANI_LITTLE_BIT_ENDIAN
  1741. cppflags-y += -DDOT11F_LITTLE_ENDIAN_HOST
  1742. else
  1743. cppflags-y += -DANI_BIG_BYTE_ENDIAN
  1744. cppflags-y += -DBIG_ENDIAN_HOST
  1745. endif
  1746. #Enable MWS COEX support for 4G quick TDM and 5G NR pwr limit
  1747. cppflags-y += -DMWS_COEX
  1748. #Enable TX reclaim support
  1749. cppflags-$(CONFIG_TX_CREDIT_RECLAIM_SUPPORT) += -DTX_CREDIT_RECLAIM_SUPPORT
  1750. #Enable FTM support
  1751. cppflags-$(CONFIG_QCA_WIFI_FTM) += -DQCA_WIFI_FTM
  1752. cppflags-$(CONFIG_NL80211_TESTMODE) += -DQCA_WIFI_FTM_NL80211
  1753. cppflags-$(CONFIG_LINUX_QCMBR) += -DLINUX_QCMBR -DQCA_WIFI_FTM_IOCTL
  1754. #Enable Checksum Offload support
  1755. cppflags-$(CONFIG_CHECKSUM_OFFLOAD) += -DCHECKSUM_OFFLOAD
  1756. #Enable Checksum Offload support
  1757. cppflags-$(CONFIG_IPA_OFFLOAD) += -DIPA_OFFLOAD
  1758. ifeq ($(CONFIG_ARCH_SDX20), y)
  1759. cppflags-y += -DSYNC_IPA_READY
  1760. endif
  1761. #Enable wbuff
  1762. cppflags-$(CONFIG_WLAN_WBUFF) += -DWLAN_FEATURE_WBUFF
  1763. #Enable GTK Offload
  1764. cppflags-$(CONFIG_GTK_OFFLOAD) += -DWLAN_FEATURE_GTK_OFFLOAD
  1765. #Enable External WoW
  1766. cppflags-$(CONFIG_EXT_WOW) += -DWLAN_FEATURE_EXTWOW_SUPPORT
  1767. #Mark it as SMP Kernel
  1768. cppflags-$(CONFIG_SMP) += -DQCA_CONFIG_SMP
  1769. cppflags-$(CONFIG_CHNL_MATRIX_RESTRICTION) += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
  1770. #Enable ICMP packet disable powersave feature
  1771. cppflags-$(CONFIG_ICMP_DISABLE_PS) += -DWLAN_ICMP_DISABLE_PS
  1772. #Enable OBSS feature
  1773. cppflags-y += -DQCA_HT_2040_COEX
  1774. #enable MCC TO SCC switch
  1775. cppflags-$(CONFIG_FEATURE_WLAN_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
  1776. #enable wlan auto shutdown feature
  1777. cppflags-$(CONFIG_FEATURE_WLAN_AUTO_SHUTDOWN) += -DFEATURE_WLAN_AUTO_SHUTDOWN
  1778. #enable AP-AP ACS Optimization
  1779. cppflags-$(CONFIG_FEATURE_WLAN_AP_AP_ACS_OPTIMIZE) += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
  1780. #Enable 4address scheme
  1781. cppflags-$(CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME) += -DFEATURE_WLAN_STA_4ADDR_SCHEME
  1782. #enable MDM/SDX special config
  1783. cppflags-$(CONFIG_MDM_PLATFORM) += -DMDM_PLATFORM
  1784. #Disable STA-AP Mode DFS support
  1785. cppflags-$(CONFIG_FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE) += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
  1786. #Open P2P device interface only for non-Mobile router use cases
  1787. cppflags-$(CONFIG_WLAN_OPEN_P2P_INTERFACE) += -DWLAN_OPEN_P2P_INTERFACE
  1788. #Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
  1789. cppflags-$(CONFIG_WLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY) += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
  1790. #Green AP feature
  1791. cppflags-$(CONFIG_QCACLD_FEATURE_GREEN_AP) += -DWLAN_SUPPORT_GREEN_AP
  1792. cppflags-$(CONFIG_QCACLD_FEATURE_APF) += -DFEATURE_WLAN_APF
  1793. cppflags-$(CONFIG_WLAN_FEATURE_SARV1_TO_SARV2) += -DWLAN_FEATURE_SARV1_TO_SARV2
  1794. #CRYPTO Coverged Component
  1795. cppflags-$(CONFIG_CRYPTO_COMPONENT) += -DWLAN_CONV_CRYPTO_SUPPORTED \
  1796. -DWLAN_CRYPTO_WEP_OS_DERIVATIVE \
  1797. -DWLAN_CRYPTO_TKIP_OS_DERIVATIVE \
  1798. -DWLAN_CRYPTO_CCMP_OS_DERIVATIVE \
  1799. -DWLAN_CRYPTO_GCMP_OS_DERIVATIVE \
  1800. -DWLAN_CRYPTO_WAPI_OS_DERIVATIVE \
  1801. -DWLAN_CRYPTO_GCM_OS_DERIVATIVE \
  1802. -DWLAN_CRYPTO_FILS_OS_DERIVATIVE \
  1803. -DWLAN_CRYPTO_OMAC1_OS_DERIVATIVE
  1804. #Enable host 11d scan
  1805. cppflags-$(CONFIG_HOST_11D_SCAN) += -DHOST_11D_SCAN
  1806. #Stats & Quota Metering feature
  1807. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  1808. ifeq ($(CONFIG_QCACLD_FEATURE_METERING), y)
  1809. cppflags-y += -DFEATURE_METERING
  1810. endif
  1811. endif
  1812. cppflags-$(CONFIG_TUFELLO_DUAL_FW_SUPPORT) += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT
  1813. cppflags-$(CONFIG_CHANNEL_HOPPING_ALL_BANDS) += -DCHANNEL_HOPPING_ALL_BANDS
  1814. #Enable Signed firmware support for split binary format
  1815. cppflags-$(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT) += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
  1816. #Enable single firmware binary format
  1817. cppflags-$(CONFIG_QCA_SINGLE_BINARY_SUPPORT) += -DQCA_SINGLE_BINARY_SUPPORT
  1818. #Enable collecting target RAM dump after kernel panic
  1819. cppflags-$(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC) += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
  1820. #Enable/disable secure firmware feature
  1821. cppflags-$(CONFIG_FEATURE_SECURE_FIRMWARE) += -DFEATURE_SECURE_FIRMWARE
  1822. cppflags-$(CONFIG_ATH_PCIE_ACCESS_DEBUG) += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
  1823. # Enable feature support for Linux version QCMBR
  1824. cppflags-$(CONFIG_LINUX_QCMBR) += -DLINUX_QCMBR
  1825. # Enable feature sync tsf between multi devices
  1826. cppflags-$(CONFIG_WLAN_SYNC_TSF) += -DWLAN_FEATURE_TSF
  1827. cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS) += -DWLAN_FEATURE_TSF_PLUS
  1828. # Enable feature sync tsf for chips based on Adrastea arch
  1829. cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS_NOIRQ) += -DWLAN_FEATURE_TSF_PLUS_NOIRQ
  1830. cppflags-$(CONFIG_ATH_PROCFS_DIAG_SUPPORT) += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
  1831. cppflags-$(CONFIG_HELIUMPLUS) += -DHELIUMPLUS
  1832. cppflags-$(CONFIG_RX_OL) += -DRECEIVE_OFFLOAD
  1833. cppflags-$(CONFIG_TX_TID_OVERRIDE) += -DATH_TX_PRI_OVERRIDE
  1834. cppflags-$(CONFIG_AR900B) += -DAR900B
  1835. cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64
  1836. cppflags-$(CONFIG_OL_RX_INDICATION_RECORD) += -DOL_RX_INDICATION_RECORD
  1837. cppflags-$(CONFIG_TSOSEG_DEBUG) += -DTSOSEG_DEBUG
  1838. cppflags-$(CONFIG_ENABLE_DEBUG_ADDRESS_MARKING) += -DENABLE_DEBUG_ADDRESS_MARKING
  1839. cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO
  1840. cppflags-$(CONFIG_FEATURE_TSO_DEBUG) += -DFEATURE_TSO_DEBUG
  1841. cppflags-$(CONFIG_WLAN_LRO) += -DFEATURE_LRO
  1842. cppflags-$(CONFIG_FEATURE_AP_MCC_CH_AVOIDANCE) += -DFEATURE_AP_MCC_CH_AVOIDANCE
  1843. cppflags-$(CONFIG_MPC_UT_FRAMEWORK) += -DMPC_UT_FRAMEWORK
  1844. cppflags-$(CONFIG_FEATURE_EPPING) += -DWLAN_FEATURE_EPPING
  1845. cppflags-$(CONFIG_WLAN_OFFLOAD_PACKETS) += -DWLAN_FEATURE_OFFLOAD_PACKETS
  1846. cppflags-$(CONFIG_WLAN_FEATURE_DISA) += -DWLAN_FEATURE_DISA
  1847. cppflags-$(CONFIG_WLAN_FEATURE_ACTION_OUI) += -DWLAN_FEATURE_ACTION_OUI
  1848. cppflags-$(CONFIG_WLAN_FEATURE_FIPS) += -DWLAN_FEATURE_FIPS
  1849. cppflags-$(CONFIG_LFR_SUBNET_DETECTION) += -DFEATURE_LFR_SUBNET_DETECTION
  1850. cppflags-$(CONFIG_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
  1851. cppflags-$(CONFIG_WLAN_FEATURE_NAN_DATAPATH) += -DWLAN_FEATURE_NAN_DATAPATH
  1852. cppflags-$(CONFIG_NAN_CONVERGENCE) += -DWLAN_FEATURE_NAN_CONVERGENCE
  1853. cppflags-$(CONFIG_FEATURE_WLAN_D0WOW) += -DFEATURE_WLAN_D0WOW
  1854. cppflags-$(CONFIG_QCA_WIFI_NAPIER_EMULATION) += -DQCA_WIFI_NAPIER_EMULATION
  1855. cppflags-$(CONFIG_SHADOW_V2) += -DCONFIG_SHADOW_V2
  1856. cppflags-$(CONFIG_QCA6290_HEADERS_DEF) += -DQCA6290_HEADERS_DEF
  1857. cppflags-$(CONFIG_QCA_WIFI_QCA6290) += -DQCA_WIFI_QCA6290
  1858. cppflags-$(CONFIG_QCA6390_HEADERS_DEF) += -DQCA6390_HEADERS_DEF
  1859. cppflags-$(CONFIG_QCA_WIFI_QCA6390) += -DQCA_WIFI_QCA6390
  1860. cppflags-$(CONFIG_QCA_WIFI_QCA8074) += -DQCA_WIFI_QCA8074
  1861. cppflags-$(CONFIG_QCA_WIFI_QCA8074_VP) += -DQCA_WIFI_QCA8074_VP
  1862. cppflags-$(CONFIG_DP_INTR_POLL_BASED) += -DDP_INTR_POLL_BASED
  1863. cppflags-$(CONFIG_TX_PER_PDEV_DESC_POOL) += -DTX_PER_PDEV_DESC_POOL
  1864. cppflags-$(CONFIG_DP_TRACE) += -DCONFIG_DP_TRACE
  1865. cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO
  1866. cppflags-$(CONFIG_TSO_DEBUG_LOG_ENABLE) += -DTSO_DEBUG_LOG_ENABLE
  1867. cppflags-$(CONFIG_DP_LFR) += -DDP_LFR
  1868. cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64
  1869. cppflags-$(CONFIG_WLAN_FEATURE_BMI) += -DWLAN_FEATURE_BMI
  1870. cppflags-$(CONFIG_QCN7605_SUPPORT) += -DQCN7605_SUPPORT
  1871. cppflags-$(CONFIG_HIF_REG_WINDOW_SUPPORT) += -DHIF_REG_WINDOW_SUPPORT
  1872. cppflags-$(CONFIG_WLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY) += -DWLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY
  1873. ccflags-$(CONFIG_QCA_LL_TX_FLOW_CONTROL_RESIZE) += -DQCA_LL_TX_FLOW_CONTROL_RESIZE
  1874. ccflags-$(CONFIG_HIF_PCI) += -DCE_SVC_CMN_INIT
  1875. ccflags-$(CONFIG_HIF_SNOC) += -DCE_SVC_CMN_INIT
  1876. ifeq ($(CONFIG_QCA6290_11AX), y)
  1877. cppflags-y += -DQCA_WIFI_QCA6290_11AX
  1878. cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_AC_BASED_FLOW_CONTROL
  1879. endif
  1880. cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX
  1881. cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX_BSS_COLOR
  1882. cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DSUPPORT_11AX_D3
  1883. cppflags-$(CONFIG_LITHIUM) += -DFEATURE_AST
  1884. cppflags-$(CONFIG_LITHIUM) += -DPEER_PROTECTED_ACCESS
  1885. #Enable STATE MACHINE HISTORY
  1886. cppflags-$(CONFIG_SM_ENG_HIST) += -DSM_ENG_HIST_ENABLE
  1887. #Enable VDEV STATE MACHINE
  1888. cppflags-$(CONFIG_CMN_VDEV_MLME_SM) += -DCMN_VDEV_MLME_SM_ENABLE
  1889. cppflags-$(CONFIG_VDEV_SM) += -DCONFIG_VDEV_SM
  1890. # Vendor Commands
  1891. cppflags-$(CONFIG_FEATURE_RSSI_MONITOR) += -DFEATURE_RSSI_MONITOR
  1892. cppflags-$(CONFIG_FEATURE_BSS_TRANSITION) += -DFEATURE_BSS_TRANSITION
  1893. cppflags-$(CONFIG_FEATURE_STATION_INFO) += -DFEATURE_STATION_INFO
  1894. cppflags-$(CONFIG_FEATURE_TX_POWER) += -DFEATURE_TX_POWER
  1895. cppflags-$(CONFIG_FEATURE_OTA_TEST) += -DFEATURE_OTA_TEST
  1896. cppflags-$(CONFIG_FEATURE_ACTIVE_TOS) += -DFEATURE_ACTIVE_TOS
  1897. cppflags-$(CONFIG_FEATURE_SAR_LIMITS) += -DFEATURE_SAR_LIMITS
  1898. cppflags-$(CONFIG_FEATURE_CONCURRENCY_MATRIX) += -DFEATURE_CONCURRENCY_MATRIX
  1899. cppflags-$(CONFIG_FEATURE_SAP_COND_CHAN_SWITCH) += -DFEATURE_SAP_COND_CHAN_SWITCH
  1900. #if converged p2p is enabled
  1901. ifeq ($(CONFIG_CONVERGED_P2P_ENABLE), y)
  1902. cppflags-$(CONFIG_FEATURE_P2P_LISTEN_OFFLOAD) += -DFEATURE_P2P_LISTEN_OFFLOAD
  1903. endif
  1904. #Flags to enable/disable WMI APIs
  1905. cppflags-$(CONFIG_WMI_ROAM_SUPPORT) += -DWMI_ROAM_SUPPORT
  1906. cppflags-$(CONFIG_WMI_CONCURRENCY_SUPPORT) += -DWMI_CONCURRENCY_SUPPORT
  1907. cppflags-$(CONFIG_WMI_STA_SUPPORT) += -DWMI_STA_SUPPORT
  1908. # Dummy flag for WIN/MCL converged data path compilation
  1909. cppflags-y += -DDP_PRINT_ENABLE=0
  1910. cppflags-y += -DATH_SUPPORT_WRAP=0
  1911. cppflags-y += -DQCA_HOST2FW_RXBUF_RING
  1912. #endof dummy flags
  1913. # Enable lock of serialization component to avoid race condition issues
  1914. cppflags-y += -DWLAN_CMD_SERIALIZATION_LOCKING
  1915. #CONFIG_SERIALIZATION_V1: Don't use enhancements to serialization component
  1916. #No CONFIG_SERIALIZATION_V1: Use enhancements to serialization component
  1917. ccflags-$(CONFIG_ENABLE_SIZE_OPTIMIZE) += -Os
  1918. # DFS component
  1919. cppflags-$(CONFIG_WLAN_DFS_STATIC_MEM_ALLOC) += -DWLAN_DFS_STATIC_MEM_ALLOC
  1920. cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_MCL_DFS_SUPPORT
  1921. ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y)
  1922. cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_FULL_OFFLOAD
  1923. else
  1924. cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_PARTIAL_OFFLOAD
  1925. endif
  1926. cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DDFS_COMPONENT_ENABLE
  1927. cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_USE_POLICY_MANAGER
  1928. cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_NOL_PLATFORM_DRV_SUPPORT
  1929. cppflags-$(CONFIG_WLAN_DEBUGFS) += -DWLAN_DEBUGFS
  1930. cppflags-$(CONFIG_DYNAMIC_DEBUG) += -DFEATURE_MULTICAST_HOST_FW_MSGS
  1931. cppflags-$(CONFIG_ENABLE_SMMU_S1_TRANSLATION) += -DENABLE_SMMU_S1_TRANSLATION
  1932. #Flag to enable/disable MTRACE feature
  1933. cppflags-$(CONFIG_ENABLE_MTRACE_LOG) += -DENABLE_MTRACE_LOG
  1934. #Flag to enable NUD tracking
  1935. cppflags-$(CONFIG_WLAN_NUD_TRACKING) += -DWLAN_NUD_TRACKING
  1936. #Flag to enable set and get disable channel list feature
  1937. cppflags-$(CONFIG_DISABLE_CHANNEL_LIST) += -DDISABLE_CHANNEL_LIST
  1938. #Flag to enable Dynamic Voltage WDCVS (Config Voltage Mode)
  1939. cppflags-$(CONFIG_WLAN_DYNAMIC_CVM) += -DFEATURE_WLAN_DYNAMIC_CVM
  1940. ifdef CONFIG_SCHED_HISTORY_SIZE
  1941. ccflags-y += -DWLAN_SCHED_HISTORY_SIZE=$(CONFIG_SCHED_HISTORY_SIZE)
  1942. endif
  1943. # configure log buffer size
  1944. ifdef CONFIG_CFG_NUM_DP_TRACE_RECORD
  1945. ccflags-y += -DMAX_QDF_DP_TRACE_RECORDS=$(CONFIG_CFG_NUM_DP_TRACE_RECORD)
  1946. endif
  1947. ifdef CONFIG_CFG_NUM_HTC_CREDIT_HISTORY
  1948. ccflags-y += -DHTC_CREDIT_HISTORY_MAX=$(CONFIG_CFG_NUM_HTC_CREDIT_HISTORY)
  1949. endif
  1950. ifdef CONFIG_CFG_NUM_WMI_EVENT_HISTORY
  1951. ccflags-y += -DWMI_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_EVENT_HISTORY)
  1952. endif
  1953. ifdef CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY
  1954. ccflags-y += -DWMI_MGMT_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY)
  1955. endif
  1956. ifdef CONFIG_CFG_NUM_TX_RX_HISTOGRAM
  1957. ccflags-y += -DNUM_TX_RX_HISTOGRAM=$(CONFIG_CFG_NUM_TX_RX_HISTOGRAM)
  1958. endif
  1959. ifdef CONFIG_CFG_NUM_RX_IND_RECORD
  1960. ccflags-y += -DOL_RX_INDICATION_MAX_RECORDS=$(CONFIG_CFG_NUM_RX_IND_RECORD)
  1961. endif
  1962. ifdef CONFIG_CFG_NUM_ROAM_DEBUG_RECORD
  1963. ccflags-y += -DWLAN_ROAM_DEBUG_MAX_REC=$(CONFIG_CFG_NUM_ROAM_DEBUG_RECORD)
  1964. endif
  1965. ifdef CONFIG_CFG_PMO_WOW_FILTERS_MAX
  1966. ccflags-y += -DPMO_WOW_FILTERS_MAX=$(CONFIG_CFG_PMO_WOW_FILTERS_MAX)
  1967. endif
  1968. ifdef CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV
  1969. ccflags-y += -DCFG_TGT_DEFAULT_GTK_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV)
  1970. endif
  1971. ifdef CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV
  1972. ccflags-y += -DCFG_TGT_DEFAULT_ROAM_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV)
  1973. endif
  1974. ifdef CONFIG_CFG_MAX_PERIODIC_TX_PTRNS
  1975. ccflags-y += -DWMA_MAXNUM_PERIODIC_TX_PTRNS=$(CONFIG_CFG_MAX_PERIODIC_TX_PTRNS)
  1976. endif
  1977. ifdef CONFIG_CFG_MAX_STA_VDEVS
  1978. ccflags-y += -DCFG_TGT_DEFAULT_MAX_STA_VDEVS=$(CONFIG_CFG_MAX_STA_VDEVS)
  1979. endif
  1980. ifdef CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS
  1981. ccflags-y += -DNUM_OF_ADDITIONAL_FW_PEERS=$(CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS)
  1982. endif
  1983. ifdef CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES
  1984. ccflags-y += -DCFG_TGT_NUM_TDLS_CONN_TABLE_ENTRIES=$(CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES)
  1985. endif
  1986. ifdef CONFIG_SIR_MAX_SUPPORTED_BSS
  1987. ccflags-y += -DSIR_MAX_SUPPORTED_BSS=$(CONFIG_SIR_MAX_SUPPORTED_BSS)
  1988. endif
  1989. ifdef CONFIG_SIR_SAP_MAX_NUM_PEERS
  1990. ccflags-y += -DSIR_SAP_MAX_NUM_PEERS=$(CONFIG_SIR_SAP_MAX_NUM_PEERS)
  1991. endif
  1992. ifdef CONFIG_LOCK_STATS_ON
  1993. ccflags-y += -DQDF_LOCK_STATS=1
  1994. ccflags-y += -DQDF_LOCK_STATS_DESTROY_PRINT=0
  1995. ccflags-y += -DQDF_LOCK_STATS_BUG_ON=1
  1996. ccflags-y += -DQDF_LOCK_STATS_LIST=1
  1997. ccflags-y += -DQDF_LOCK_STATS_LIST_SIZE=256
  1998. endif
  1999. KBUILD_CPPFLAGS += $(cppflags-y)
  2000. # Currently, for versions of gcc which support it, the kernel Makefile
  2001. # is disabling the maybe-uninitialized warning. Re-enable it for the
  2002. # WLAN driver. Note that we must use ccflags-y here so that it
  2003. # will override the kernel settings.
  2004. ifeq ($(call cc-option-yn, -Wmaybe-uninitialized), y)
  2005. ccflags-y += -Wmaybe-uninitialized
  2006. ifneq (y,$(CONFIG_ARCH_MSM))
  2007. ccflags-y += -Wframe-larger-than=4096
  2008. endif
  2009. endif
  2010. ccflags-y += -Wmissing-prototypes
  2011. ifeq ($(call cc-option-yn, -Wheader-guard), y)
  2012. ccflags-y += -Wheader-guard
  2013. endif
  2014. # If the module name is not "wlan", then the define MULTI_IF_NAME to be the
  2015. # same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to
  2016. # any string that must be unique for all instances of the driver on the system.
  2017. # This allows multiple instances of the driver with different module names.
  2018. # If the module name is wlan, leave MULTI_IF_NAME undefined and the code will
  2019. # treat the driver as the primary driver.
  2020. ifneq ($(MODNAME), wlan)
  2021. CHIP_NAME ?= $(MODNAME)
  2022. ccflags-y += -DMULTI_IF_NAME=\"$(CHIP_NAME)\"
  2023. endif
  2024. # WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the
  2025. # system. If it is not defined, then the host driver will use the first 4
  2026. # characters (including NULL) of MULTI_IF_NAME to construct
  2027. # WLAN_HDD_ADAPTER_MAGIC.
  2028. ifdef WLAN_HDD_ADAPTER_MAGIC
  2029. ccflags-y += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC)
  2030. endif
  2031. # Determine if we are building against an arm architecture host
  2032. ifeq ($(findstring arm, $(ARCH)),)
  2033. ccflags-y += -DWLAN_HOST_ARCH_ARM=0
  2034. else
  2035. ccflags-y += -DWLAN_HOST_ARCH_ARM=1
  2036. endif
  2037. # inject some build related information
  2038. ifeq ($(CONFIG_BUILD_TAG), y)
  2039. CLD_CHECKOUT = $(shell cd "$(WLAN_ROOT)" && \
  2040. git reflog | grep -vm1 "}: cherry-pick: " | grep -oE ^[0-f]+)
  2041. CLD_IDS = $(shell cd "$(WLAN_ROOT)" && \
  2042. git log -50 $(CLD_CHECKOUT)~..HEAD | \
  2043. sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
  2044. paste -sd "," -)
  2045. CMN_CHECKOUT = $(shell cd "$(WLAN_COMMON_INC)" && \
  2046. git reflog | grep -vm1 "}: cherry-pick: " | grep -oE ^[0-f]+)
  2047. CMN_IDS = $(shell cd "$(WLAN_COMMON_INC)" && \
  2048. git log -50 $(CMN_CHECKOUT)~..HEAD | \
  2049. sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
  2050. paste -sd "," -)
  2051. TIMESTAMP = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
  2052. BUILD_TAG = "$(TIMESTAMP); cld:$(CLD_IDS); cmn:$(CMN_IDS);"
  2053. # It's assumed that BUILD_TAG is used only in wlan_hdd_main.c
  2054. CFLAGS_wlan_hdd_main.o += -DBUILD_TAG=\"$(BUILD_TAG)\"
  2055. endif
  2056. # Module information used by KBuild framework
  2057. obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
  2058. $(MODNAME)-y := $(OBJS)
  2059. OBJS_DIRS := $(dir $(OBJS)) \
  2060. $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ \
  2061. $(QDF_OBJ_DIR)/ \
  2062. $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/ \
  2063. $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/ \
  2064. $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/
  2065. CLEAN_DIRS := $(addsuffix *.o,$(sort $(OBJS_DIRS))) \
  2066. $(addsuffix .*.o.cmd,$(sort $(OBJS_DIRS)))
  2067. clean-files := $(CLEAN_DIRS)