Kbuild 74 KB

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