Kbuild 101 KB

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