Kbuild 84 KB

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