Kbuild 97 KB

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