Kbuild 87 KB

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