Kbuild 87 KB

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