wmi_unified_priv.h 74 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305
  1. /*
  2. * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /*
  19. * This file contains the API definitions for the Unified Wireless
  20. * Module Interface (WMI).
  21. */
  22. #ifndef _WMI_UNIFIED_PRIV_H_
  23. #define _WMI_UNIFIED_PRIV_H_
  24. #include <osdep.h>
  25. #include "wmi_unified_api.h"
  26. #include "wmi_unified_param.h"
  27. #include "wlan_scan_ucfg_api.h"
  28. #ifdef CONFIG_MCL
  29. #include <wmi_unified.h>
  30. #endif
  31. #include "qdf_atomic.h"
  32. #include <wbuff.h>
  33. #ifdef DFS_COMPONENT_ENABLE
  34. #include <wlan_dfs_public_struct.h>
  35. #endif
  36. #include <qdf_threads.h>
  37. #ifdef WLAN_SUPPORT_GREEN_AP
  38. #include "wlan_green_ap_api.h"
  39. #endif
  40. #ifdef WLAN_FEATURE_NAN_CONVERGENCE
  41. #include "nan_public_structs.h"
  42. #endif
  43. #ifdef WLAN_SUPPORT_TWT
  44. #include "wmi_unified_twt_param.h"
  45. #endif
  46. #ifdef WMI_SMART_ANT_SUPPORT
  47. #include "wmi_unified_smart_ant_param.h"
  48. #endif
  49. #ifdef WMI_DBR_SUPPORT
  50. #include "wmi_unified_dbr_param.h"
  51. #endif
  52. #ifdef WMI_ATF_SUPPORT
  53. #include "wmi_unified_atf_param.h"
  54. #endif
  55. #define WMI_UNIFIED_MAX_EVENT 0x100
  56. #ifdef WMI_EXT_DBG
  57. #define WMI_EXT_DBG_DIR "WMI_EXT_DBG"
  58. #define WMI_EXT_DBG_FILE "wmi_log"
  59. #define WMI_EXT_DBG_FILE_PERM (QDF_FILE_USR_READ | \
  60. QDF_FILE_GRP_READ | \
  61. QDF_FILE_OTH_READ)
  62. #define WMI_EXT_DBG_QUEUE_SIZE 1024
  63. #define WMI_EXT_DBG_DUMP_ROW_SIZE 16
  64. #define WMI_EXT_DBG_DUMP_GROUP_SIZE 1
  65. /**
  66. * enum WMI_MSG_TYPE - WMI message types
  67. * @ WMI_MSG_TYPE_CMD - Message is of type WMI command
  68. * @ WMI_MSG_TYPE_EVENT - Message is of type WMI event
  69. */
  70. enum WMI_MSG_TYPE {
  71. WMI_MSG_TYPE_CMD = 0,
  72. WMI_MSG_TYPE_EVENT,
  73. };
  74. /**
  75. * struct wmi_ext_dbg_msg - WMI command/event msg details
  76. * @ node - qdf list node of wmi messages
  77. * @ len - command/event message length
  78. * @ ts - Time of WMI command/event handling
  79. * @ WMI_MSG_TYPE - message type
  80. * @ bug - command/event buffer
  81. */
  82. struct wmi_ext_dbg_msg {
  83. qdf_list_node_t node;
  84. uint32_t len;
  85. uint64_t ts;
  86. enum WMI_MSG_TYPE type;
  87. uint8_t buf[0];
  88. };
  89. #endif /*WMI_EXT_DBG */
  90. #ifdef WMI_INTERFACE_EVENT_LOGGING
  91. #ifndef WMI_EVENT_DEBUG_MAX_ENTRY
  92. #define WMI_EVENT_DEBUG_MAX_ENTRY (1024)
  93. #endif
  94. #define WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH (16)
  95. /* wmi_mgmt commands */
  96. #ifndef WMI_MGMT_EVENT_DEBUG_MAX_ENTRY
  97. #define WMI_MGMT_EVENT_DEBUG_MAX_ENTRY (256)
  98. #endif
  99. /* wmi diag rx events max buffer */
  100. #ifndef WMI_DIAG_RX_EVENT_DEBUG_MAX_ENTRY
  101. #define WMI_DIAG_RX_EVENT_DEBUG_MAX_ENTRY (256)
  102. #endif
  103. #define wmi_alert(params...) QDF_TRACE_FATAL(QDF_MODULE_ID_WMI, ## params)
  104. #define wmi_err(params...) QDF_TRACE_ERROR(QDF_MODULE_ID_WMI, ## params)
  105. #define wmi_warn(params...) QDF_TRACE_WARN(QDF_MODULE_ID_WMI, ## params)
  106. #define wmi_info(params...) QDF_TRACE_INFO(QDF_MODULE_ID_WMI, ## params)
  107. #define wmi_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_WMI, ## params)
  108. #define wmi_nofl_alert(params...) \
  109. QDF_TRACE_FATAL_NO_FL(QDF_MODULE_ID_WMI, ## params)
  110. #define wmi_nofl_err(params...) \
  111. QDF_TRACE_ERROR_NO_FL(QDF_MODULE_ID_WMI, ## params)
  112. #define wmi_nofl_warn(params...) \
  113. QDF_TRACE_WARN_NO_FL(QDF_MODULE_ID_WMI, ## params)
  114. #define wmi_nofl_info(params...) \
  115. QDF_TRACE_INFO_NO_FL(QDF_MODULE_ID_WMI, ## params)
  116. #define wmi_nofl_debug(params...) \
  117. QDF_TRACE_DEBUG_NO_FL(QDF_MODULE_ID_WMI, ## params)
  118. #define wmi_alert_rl(params...) QDF_TRACE_FATAL_RL(QDF_MODULE_ID_WMI, params)
  119. #define wmi_err_rl(params...) QDF_TRACE_ERROR_RL(QDF_MODULE_ID_WMI, params)
  120. #define wmi_warn_rl(params...) QDF_TRACE_WARN_RL(QDF_MODULE_ID_WMI, params)
  121. #define wmi_info_rl(params...) QDF_TRACE_INFO_RL(QDF_MODULE_ID_WMI, params)
  122. #define wmi_debug_rl(params...) QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_WMI, params)
  123. /**
  124. * struct wmi_command_debug - WMI command log buffer data type
  125. * @ command - Store WMI Command id
  126. * @ data - Stores WMI command data
  127. * @ time - Time of WMI command handling
  128. */
  129. struct wmi_command_debug {
  130. uint32_t command;
  131. /*16 bytes of WMI cmd excluding TLV and WMI headers */
  132. uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)];
  133. uint64_t time;
  134. };
  135. /**
  136. * struct wmi_event_debug - WMI event log buffer data type
  137. * @ command - Store WMI Event id
  138. * @ data - Stores WMI Event data
  139. * @ time - Time of WMI Event handling
  140. */
  141. struct wmi_event_debug {
  142. uint32_t event;
  143. /*16 bytes of WMI event data excluding TLV header */
  144. uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)];
  145. uint64_t time;
  146. };
  147. /**
  148. * struct wmi_command_header - Type for accessing frame data
  149. * @ type - 802.11 Frame type
  150. * @ subType - 802.11 Frame subtype
  151. * @ protVer - 802.11 Version
  152. */
  153. struct wmi_command_header {
  154. #ifndef ANI_LITTLE_BIT_ENDIAN
  155. uint32_t sub_type:4;
  156. uint32_t type:2;
  157. uint32_t prot_ver:2;
  158. #else
  159. uint32_t prot_ver:2;
  160. uint32_t type:2;
  161. uint32_t sub_type:4;
  162. #endif
  163. };
  164. /**
  165. * struct wmi_log_buf_t - WMI log buffer information type
  166. * @buf - Refernce to WMI log buffer
  167. * @ length - length of buffer
  168. * @ buf_tail_idx - Tail index of buffer
  169. * @ p_buf_tail_idx - refernce to buffer tail index. It is added to accommodate
  170. * unified design since MCL uses global variable for buffer tail index
  171. * @ size - the size of the buffer in number of entries
  172. */
  173. struct wmi_log_buf_t {
  174. void *buf;
  175. uint32_t length;
  176. uint32_t buf_tail_idx;
  177. uint32_t *p_buf_tail_idx;
  178. uint32_t size;
  179. };
  180. /**
  181. * struct wmi_debug_log_info - Meta data to hold information of all buffers
  182. * used for WMI logging
  183. * @wmi_command_log_buf_info - Buffer info for WMI Command log
  184. * @wmi_command_tx_cmp_log_buf_info - Buffer info for WMI Command Tx completion
  185. * log
  186. * @wmi_event_log_buf_info - Buffer info for WMI Event log
  187. * @wmi_rx_event_log_buf_info - Buffer info for WMI event received log
  188. * @wmi_mgmt_command_log_buf_info - Buffer info for WMI Management Command log
  189. * @wmi_mgmt_command_tx_cmp_log_buf_info - Buffer info for WMI Management
  190. * Command Tx completion log
  191. * @wmi_mgmt_event_log_buf_info - Buffer info for WMI Management event log
  192. * @wmi_diag_event_log_buf_info - Buffer info for WMI diag event log
  193. * @wmi_record_lock - Lock WMI recording
  194. * @wmi_logging_enable - Enable/Disable state for WMI logging
  195. * @buf_offset_command - Offset from where WMI command data should be logged
  196. * @buf_offset_event - Offset from where WMI event data should be logged
  197. * @wmi_id_to_name - Function refernce to API to convert Command id to
  198. * string name
  199. * @wmi_log_debugfs_dir - refernce to debugfs directory
  200. */
  201. struct wmi_debug_log_info {
  202. struct wmi_log_buf_t wmi_command_log_buf_info;
  203. struct wmi_log_buf_t wmi_command_tx_cmp_log_buf_info;
  204. struct wmi_log_buf_t wmi_event_log_buf_info;
  205. struct wmi_log_buf_t wmi_rx_event_log_buf_info;
  206. struct wmi_log_buf_t wmi_mgmt_command_log_buf_info;
  207. struct wmi_log_buf_t wmi_mgmt_command_tx_cmp_log_buf_info;
  208. struct wmi_log_buf_t wmi_mgmt_event_log_buf_info;
  209. struct wmi_log_buf_t wmi_diag_event_log_buf_info;
  210. qdf_spinlock_t wmi_record_lock;
  211. bool wmi_logging_enable;
  212. uint32_t buf_offset_command;
  213. uint32_t buf_offset_event;
  214. struct dentry *wmi_log_debugfs_dir;
  215. };
  216. #endif /*WMI_INTERFACE_EVENT_LOGGING */
  217. #ifdef WLAN_OPEN_SOURCE
  218. struct fwdebug {
  219. struct sk_buff_head fwlog_queue;
  220. struct completion fwlog_completion;
  221. A_BOOL fwlog_open;
  222. };
  223. #endif /* WLAN_OPEN_SOURCE */
  224. /**
  225. * struct wmi_wq_dbg_info - WMI WQ debug info
  226. * @ wd_msg_type_id - wmi event id
  227. * @ wmi_wq - WMI workqueue struct
  228. * @ task - WMI workqueue task struct
  229. */
  230. struct wmi_wq_dbg_info {
  231. uint32_t wd_msg_type_id;
  232. qdf_workqueue_t *wmi_wq;
  233. qdf_thread_t *task;
  234. };
  235. struct wmi_ops {
  236. QDF_STATUS (*send_vdev_create_cmd)(wmi_unified_t wmi_handle,
  237. uint8_t macaddr[IEEE80211_ADDR_LEN],
  238. struct vdev_create_params *param);
  239. QDF_STATUS (*send_vdev_delete_cmd)(wmi_unified_t wmi_handle,
  240. uint8_t if_id);
  241. QDF_STATUS (*send_vdev_stop_cmd)(wmi_unified_t wmi,
  242. uint8_t vdev_id);
  243. QDF_STATUS (*send_vdev_down_cmd)(wmi_unified_t wmi,
  244. uint8_t vdev_id);
  245. QDF_STATUS (*send_vdev_start_cmd)(wmi_unified_t wmi,
  246. struct vdev_start_params *req);
  247. QDF_STATUS (*send_vdev_set_nac_rssi_cmd)(wmi_unified_t wmi,
  248. struct vdev_scan_nac_rssi_params *req);
  249. QDF_STATUS (*send_hidden_ssid_vdev_restart_cmd)(wmi_unified_t wmi_handle,
  250. struct hidden_ssid_vdev_restart_params *restart_params);
  251. QDF_STATUS (*send_peer_flush_tids_cmd)(wmi_unified_t wmi,
  252. uint8_t peer_addr[IEEE80211_ADDR_LEN],
  253. struct peer_flush_params *param);
  254. QDF_STATUS (*send_peer_delete_cmd)(wmi_unified_t wmi,
  255. uint8_t peer_addr[IEEE80211_ADDR_LEN],
  256. uint8_t vdev_id);
  257. QDF_STATUS (*send_peer_param_cmd)(wmi_unified_t wmi,
  258. uint8_t peer_addr[IEEE80211_ADDR_LEN],
  259. struct peer_set_params *param);
  260. QDF_STATUS (*send_vdev_up_cmd)(wmi_unified_t wmi,
  261. uint8_t bssid[IEEE80211_ADDR_LEN],
  262. struct vdev_up_params *params);
  263. QDF_STATUS (*send_peer_create_cmd)(wmi_unified_t wmi,
  264. struct peer_create_params *param);
  265. #ifdef WLAN_SUPPORT_GREEN_AP
  266. QDF_STATUS (*send_green_ap_ps_cmd)(wmi_unified_t wmi_handle,
  267. uint32_t value, uint8_t pdev_id);
  268. QDF_STATUS (*extract_green_ap_egap_status_info)(
  269. uint8_t *evt_buf,
  270. struct wlan_green_ap_egap_status_info *egap_status_info_params);
  271. #endif
  272. QDF_STATUS
  273. (*send_pdev_utf_cmd)(wmi_unified_t wmi_handle,
  274. struct pdev_utf_params *param,
  275. uint8_t mac_id);
  276. QDF_STATUS
  277. (*send_pdev_param_cmd)(wmi_unified_t wmi_handle,
  278. struct pdev_params *param,
  279. uint8_t mac_id);
  280. QDF_STATUS (*send_suspend_cmd)(wmi_unified_t wmi_handle,
  281. struct suspend_params *param,
  282. uint8_t mac_id);
  283. QDF_STATUS (*send_resume_cmd)(wmi_unified_t wmi_handle,
  284. uint8_t mac_id);
  285. #ifdef FEATURE_WLAN_D0WOW
  286. QDF_STATUS (*send_d0wow_enable_cmd)(wmi_unified_t wmi_handle,
  287. uint8_t mac_id);
  288. QDF_STATUS (*send_d0wow_disable_cmd)(wmi_unified_t wmi_handle,
  289. uint8_t mac_id);
  290. #endif
  291. QDF_STATUS (*send_wow_enable_cmd)(wmi_unified_t wmi_handle,
  292. struct wow_cmd_params *param,
  293. uint8_t mac_id);
  294. QDF_STATUS (*send_set_ap_ps_param_cmd)(wmi_unified_t wmi_handle,
  295. uint8_t *peer_addr,
  296. struct ap_ps_params *param);
  297. QDF_STATUS (*send_set_sta_ps_param_cmd)(wmi_unified_t wmi_handle,
  298. struct sta_ps_params *param);
  299. QDF_STATUS (*send_crash_inject_cmd)(wmi_unified_t wmi_handle,
  300. struct crash_inject *param);
  301. QDF_STATUS
  302. (*send_dbglog_cmd)(wmi_unified_t wmi_handle,
  303. struct dbglog_params *dbglog_param);
  304. QDF_STATUS (*send_vdev_set_param_cmd)(wmi_unified_t wmi_handle,
  305. struct vdev_set_params *param);
  306. QDF_STATUS (*send_vdev_sifs_trigger_cmd)(wmi_unified_t wmi_handle,
  307. struct sifs_trigger_param *param);
  308. QDF_STATUS (*send_stats_request_cmd)(wmi_unified_t wmi_handle,
  309. uint8_t macaddr[IEEE80211_ADDR_LEN],
  310. struct stats_request_params *param);
  311. #ifdef CONFIG_WIN
  312. QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle,
  313. WMI_HOST_PKTLOG_EVENT PKTLOG_EVENT, uint8_t mac_id);
  314. #else
  315. QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle,
  316. uint8_t macaddr[IEEE80211_ADDR_LEN],
  317. struct packet_enable_params *param);
  318. #endif
  319. QDF_STATUS (*send_packet_log_disable_cmd)(wmi_unified_t wmi_handle,
  320. uint8_t mac_id);
  321. QDF_STATUS (*send_beacon_send_cmd)(wmi_unified_t wmi_handle,
  322. struct beacon_params *param);
  323. QDF_STATUS (*send_beacon_tmpl_send_cmd)(wmi_unified_t wmi_handle,
  324. struct beacon_tmpl_params *param);
  325. QDF_STATUS (*send_peer_assoc_cmd)(wmi_unified_t wmi_handle,
  326. struct peer_assoc_params *param);
  327. QDF_STATUS (*send_scan_start_cmd)(wmi_unified_t wmi_handle,
  328. struct scan_req_params *param);
  329. QDF_STATUS (*send_scan_stop_cmd)(wmi_unified_t wmi_handle,
  330. struct scan_cancel_param *param);
  331. QDF_STATUS (*send_scan_chan_list_cmd)(wmi_unified_t wmi_handle,
  332. struct scan_chan_list_params *param);
  333. QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
  334. struct wmi_mgmt_params *param);
  335. QDF_STATUS (*send_offchan_data_tx_cmd)(wmi_unified_t wmi_handle,
  336. struct wmi_offchan_data_tx_params *param);
  337. QDF_STATUS (*send_modem_power_state_cmd)(wmi_unified_t wmi_handle,
  338. uint32_t param_value);
  339. QDF_STATUS (*send_set_sta_ps_mode_cmd)(wmi_unified_t wmi_handle,
  340. uint32_t vdev_id, uint8_t val);
  341. QDF_STATUS (*send_get_temperature_cmd)(wmi_unified_t wmi_handle);
  342. #ifdef CONVERGED_P2P_ENABLE
  343. QDF_STATUS (*send_set_p2pgo_oppps_req_cmd)(wmi_unified_t wmi_handle,
  344. struct p2p_ps_params *oppps);
  345. QDF_STATUS (*send_set_p2pgo_noa_req_cmd)(wmi_unified_t wmi_handle,
  346. struct p2p_ps_params *noa);
  347. #ifdef FEATURE_P2P_LISTEN_OFFLOAD
  348. QDF_STATUS (*send_p2p_lo_start_cmd)(wmi_unified_t wmi_handle,
  349. struct p2p_lo_start *param);
  350. QDF_STATUS (*send_p2p_lo_stop_cmd)(wmi_unified_t wmi_handle,
  351. uint8_t vdev_id);
  352. #endif /* FEATURE_P2P_LISTEN_OFFLOAD */
  353. #endif /* CONVERGED_P2P_ENABLE */
  354. QDF_STATUS (*send_set_smps_params_cmd)(wmi_unified_t wmi_handle,
  355. uint8_t vdev_id,
  356. int value);
  357. QDF_STATUS (*send_set_mimops_cmd)(wmi_unified_t wmi_handle,
  358. uint8_t vdev_id, int value);
  359. QDF_STATUS (*send_set_sta_uapsd_auto_trig_cmd)(wmi_unified_t wmi_handle,
  360. struct sta_uapsd_trig_params *param);
  361. #ifdef WLAN_FEATURE_DSRC
  362. QDF_STATUS (*send_ocb_set_utc_time_cmd)(wmi_unified_t wmi_handle,
  363. struct ocb_utc_param *utc);
  364. QDF_STATUS (*send_ocb_get_tsf_timer_cmd)(wmi_unified_t wmi_handle,
  365. uint8_t vdev_id);
  366. QDF_STATUS (*send_ocb_start_timing_advert_cmd)(wmi_unified_t wmi_handle,
  367. struct ocb_timing_advert_param *timing_advert);
  368. QDF_STATUS (*send_ocb_stop_timing_advert_cmd)(wmi_unified_t wmi_handle,
  369. struct ocb_timing_advert_param *timing_advert);
  370. QDF_STATUS (*send_dcc_get_stats_cmd)(wmi_unified_t wmi_handle,
  371. struct ocb_dcc_get_stats_param *get_stats_param);
  372. QDF_STATUS (*send_dcc_clear_stats_cmd)(wmi_unified_t wmi_handle,
  373. uint32_t vdev_id, uint32_t dcc_stats_bitmap);
  374. QDF_STATUS (*send_dcc_update_ndl_cmd)(wmi_unified_t wmi_handle,
  375. struct ocb_dcc_update_ndl_param *update_ndl_param);
  376. QDF_STATUS (*send_ocb_set_config_cmd)(wmi_unified_t wmi_handle,
  377. struct ocb_config *config);
  378. QDF_STATUS (*extract_ocb_chan_config_resp)(wmi_unified_t wmi_hdl,
  379. void *evt_buf,
  380. uint32_t *status);
  381. QDF_STATUS (*extract_ocb_tsf_timer)(wmi_unified_t wmi_hdl,
  382. void *evt_buf,
  383. struct ocb_get_tsf_timer_response *resp);
  384. QDF_STATUS (*extract_dcc_update_ndl_resp)(wmi_unified_t wmi_hdl,
  385. void *evt_buf, struct ocb_dcc_update_ndl_response *resp);
  386. QDF_STATUS (*extract_dcc_stats)(wmi_unified_t wmi_hdl,
  387. void *evt_buf,
  388. struct ocb_dcc_get_stats_response **response);
  389. #endif /* WLAN_FEATURE_DSRC */
  390. QDF_STATUS (*send_lro_config_cmd)(wmi_unified_t wmi_handle,
  391. struct wmi_lro_config_cmd_t *wmi_lro_cmd);
  392. QDF_STATUS (*send_set_thermal_mgmt_cmd)(wmi_unified_t wmi_handle,
  393. struct thermal_cmd_params *thermal_info);
  394. QDF_STATUS (*send_peer_rate_report_cmd)(wmi_unified_t wmi_handle,
  395. struct wmi_peer_rate_report_params *rate_report_params);
  396. #ifdef WMI_CONCURRENCY_SUPPORT
  397. QDF_STATUS (*send_set_mcc_channel_time_quota_cmd)
  398. (wmi_unified_t wmi_handle,
  399. uint32_t adapter_1_chan_freq,
  400. uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq);
  401. QDF_STATUS (*send_set_mcc_channel_time_latency_cmd)
  402. (wmi_unified_t wmi_handle,
  403. uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency);
  404. QDF_STATUS (*send_set_enable_disable_mcc_adaptive_scheduler_cmd)(
  405. wmi_unified_t wmi_handle, uint32_t mcc_adaptive_scheduler,
  406. uint32_t pdev_id);
  407. #endif /* WMI_CONCURRENCY_SUPPORT */
  408. QDF_STATUS (*send_p2p_go_set_beacon_ie_cmd)(wmi_unified_t wmi_handle,
  409. uint32_t vdev_id, uint8_t *p2p_ie);
  410. QDF_STATUS (*send_probe_rsp_tmpl_send_cmd)(wmi_unified_t wmi_handle,
  411. uint8_t vdev_id,
  412. struct wmi_probe_resp_params *probe_rsp_info);
  413. QDF_STATUS (*send_setup_install_key_cmd)(wmi_unified_t wmi_handle,
  414. struct set_key_params *key_params);
  415. QDF_STATUS (*send_reset_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
  416. struct wifi_passpoint_req_param *req);
  417. #ifdef WMI_ROAM_SUPPORT
  418. #ifdef FEATURE_LFR_SUBNET_DETECTION
  419. QDF_STATUS (*send_set_gateway_params_cmd)(wmi_unified_t wmi_handle,
  420. struct gateway_update_req_param *req);
  421. #endif /* FEATURE_LFR_SUBNET_DETECTION */
  422. #ifdef FEATURE_RSSI_MONITOR
  423. QDF_STATUS (*send_set_rssi_monitoring_cmd)(wmi_unified_t wmi_handle,
  424. struct rssi_monitor_param *req);
  425. #endif /* FEATURE_RSSI_MONITOR */
  426. QDF_STATUS (*send_roam_scan_offload_rssi_thresh_cmd)(wmi_unified_t wmi_handle,
  427. struct roam_offload_scan_rssi_params *roam_req);
  428. QDF_STATUS (*send_roam_mawc_params_cmd)(wmi_unified_t wmi_handle,
  429. struct wmi_mawc_roam_params *params);
  430. QDF_STATUS (*send_roam_scan_filter_cmd)(wmi_unified_t wmi_handle,
  431. struct roam_scan_filter_params *roam_req);
  432. QDF_STATUS (*send_roam_scan_offload_mode_cmd)(wmi_unified_t wmi_handle,
  433. wmi_start_scan_cmd_fixed_param *scan_cmd_fp,
  434. struct roam_offload_scan_params *roam_req);
  435. QDF_STATUS (*send_roam_scan_offload_ap_profile_cmd)(wmi_unified_t wmi_handle,
  436. struct ap_profile_params *ap_profile);
  437. QDF_STATUS (*send_roam_scan_offload_cmd)(wmi_unified_t wmi_handle,
  438. uint32_t command, uint32_t vdev_id);
  439. QDF_STATUS (*send_roam_scan_offload_scan_period_cmd)(wmi_unified_t wmi_handle,
  440. uint32_t scan_period,
  441. uint32_t scan_age,
  442. uint32_t vdev_id);
  443. QDF_STATUS (*send_roam_scan_offload_chan_list_cmd)(wmi_unified_t wmi_handle,
  444. uint8_t chan_count,
  445. uint32_t *chan_list,
  446. uint8_t list_type, uint32_t vdev_id);
  447. QDF_STATUS (*send_roam_scan_offload_rssi_change_cmd)(wmi_unified_t wmi_handle,
  448. uint32_t vdev_id,
  449. int32_t rssi_change_thresh,
  450. uint32_t bcn_rssi_weight,
  451. uint32_t hirssi_delay_btw_scans);
  452. QDF_STATUS (*send_per_roam_config_cmd)(wmi_unified_t wmi_handle,
  453. struct wmi_per_roam_config_req *req_buf);
  454. QDF_STATUS (*send_offload_11k_cmd)(wmi_unified_t wmi_handle,
  455. struct wmi_11k_offload_params *params);
  456. QDF_STATUS (*send_invoke_neighbor_report_cmd)(wmi_unified_t wmi_handle,
  457. struct wmi_invoke_neighbor_report_params *params);
  458. QDF_STATUS (*send_btm_config)(wmi_unified_t wmi_handle,
  459. struct wmi_btm_config *params);
  460. QDF_STATUS (*send_limit_off_chan_cmd)(wmi_unified_t wmi_handle,
  461. struct wmi_limit_off_chan_param *limit_off_chan_param);
  462. #ifdef WLAN_FEATURE_FILS_SK
  463. QDF_STATUS (*send_roam_scan_hlp_cmd) (wmi_unified_t wmi_handle,
  464. struct hlp_params *params);
  465. #endif /* WLAN_FEATURE_FILS_SK */
  466. #ifdef FEATURE_WLAN_ESE
  467. QDF_STATUS (*send_plm_stop_cmd)(wmi_unified_t wmi_handle,
  468. const struct plm_req_params *plm);
  469. QDF_STATUS (*send_plm_start_cmd)(wmi_unified_t wmi_handle,
  470. const struct plm_req_params *plm,
  471. uint32_t *gchannel_list);
  472. #endif /* FEATURE_WLAN_ESE */
  473. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  474. QDF_STATUS (*send_set_ric_req_cmd)(wmi_unified_t wmi_handle, void *msg,
  475. uint8_t is_add_ts);
  476. QDF_STATUS (*send_process_roam_synch_complete_cmd)(wmi_unified_t wmi_handle,
  477. uint8_t vdev_id);
  478. QDF_STATUS (*send_roam_invoke_cmd)(wmi_unified_t wmi_handle,
  479. struct wmi_roam_invoke_cmd *roaminvoke,
  480. uint32_t ch_hz);
  481. #endif /* WLAN_FEATURE_ROAM_OFFLOAD */
  482. #endif /* WMI_ROAM_SUPPORT */
  483. QDF_STATUS (*send_scan_probe_setoui_cmd)(wmi_unified_t wmi_handle,
  484. struct scan_mac_oui *psetoui);
  485. QDF_STATUS (*send_set_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
  486. struct wifi_passpoint_req_param *req);
  487. QDF_STATUS (*send_set_epno_network_list_cmd)(wmi_unified_t wmi_handle,
  488. struct wifi_enhanced_pno_params *req);
  489. QDF_STATUS (*send_extscan_get_capabilities_cmd)(wmi_unified_t wmi_handle,
  490. struct extscan_capabilities_params *pgetcapab);
  491. QDF_STATUS (*send_extscan_get_cached_results_cmd)(wmi_unified_t wmi_handle,
  492. struct extscan_cached_result_params *pcached_results);
  493. QDF_STATUS (*send_extscan_stop_change_monitor_cmd)(wmi_unified_t wmi_handle,
  494. struct extscan_capabilities_reset_params *reset_req);
  495. QDF_STATUS (*send_extscan_start_change_monitor_cmd)(wmi_unified_t wmi_handle,
  496. struct extscan_set_sig_changereq_params *
  497. psigchange);
  498. QDF_STATUS (*send_extscan_stop_hotlist_monitor_cmd)(wmi_unified_t wmi_handle,
  499. struct extscan_bssid_hotlist_reset_params *photlist_reset);
  500. QDF_STATUS (*send_extscan_start_hotlist_monitor_cmd)(wmi_unified_t wmi_handle,
  501. struct extscan_bssid_hotlist_set_params *params);
  502. QDF_STATUS (*send_stop_extscan_cmd)(wmi_unified_t wmi_handle,
  503. struct extscan_stop_req_params *pstopcmd);
  504. QDF_STATUS (*send_start_extscan_cmd)(wmi_unified_t wmi_handle,
  505. struct wifi_scan_cmd_req_params *pstart);
  506. QDF_STATUS (*send_csa_offload_enable_cmd)(wmi_unified_t wmi_handle,
  507. uint8_t vdev_id);
  508. QDF_STATUS (*send_pno_stop_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
  509. QDF_STATUS (*send_pno_start_cmd)(wmi_unified_t wmi_handle,
  510. struct pno_scan_req_params *pno);
  511. QDF_STATUS (*send_nlo_mawc_cmd)(wmi_unified_t wmi_handle,
  512. struct nlo_mawc_params *params);
  513. #ifdef IPA_OFFLOAD
  514. QDF_STATUS (*send_ipa_offload_control_cmd)(wmi_unified_t wmi_handle,
  515. struct ipa_uc_offload_control_params *ipa_offload);
  516. #endif
  517. QDF_STATUS (*send_process_ll_stats_clear_cmd)
  518. (wmi_unified_t wmi_handle,
  519. const struct ll_stats_clear_params *clear_req,
  520. uint8_t addr[IEEE80211_ADDR_LEN]);
  521. QDF_STATUS (*send_process_ll_stats_set_cmd)
  522. (wmi_unified_t wmi_handle, const struct ll_stats_set_params *set_req);
  523. QDF_STATUS (*send_process_ll_stats_get_cmd)
  524. (wmi_unified_t wmi_handle, const struct ll_stats_get_params *get_req,
  525. uint8_t addr[IEEE80211_ADDR_LEN]);
  526. QDF_STATUS (*send_congestion_cmd)(wmi_unified_t wmi_handle,
  527. uint8_t vdev_id);
  528. QDF_STATUS (*send_snr_request_cmd)(wmi_unified_t wmi_handle);
  529. QDF_STATUS (*send_snr_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
  530. QDF_STATUS (*send_link_status_req_cmd)(wmi_unified_t wmi_handle,
  531. struct link_status_params *link_status);
  532. #ifdef WLAN_POWER_MANAGEMENT_OFFLOAD
  533. QDF_STATUS (*send_add_wow_wakeup_event_cmd)(wmi_unified_t wmi_handle,
  534. uint32_t vdev_id,
  535. uint32_t *bitmap,
  536. bool enable);
  537. QDF_STATUS (*send_wow_patterns_to_fw_cmd)(wmi_unified_t wmi_handle,
  538. uint8_t vdev_id, uint8_t ptrn_id,
  539. const uint8_t *ptrn, uint8_t ptrn_len,
  540. uint8_t ptrn_offset, const uint8_t *mask,
  541. uint8_t mask_len, bool user,
  542. uint8_t default_patterns);
  543. QDF_STATUS (*send_enable_arp_ns_offload_cmd)(wmi_unified_t wmi_handle,
  544. struct pmo_arp_offload_params *arp_offload_req,
  545. struct pmo_ns_offload_params *ns_offload_req,
  546. uint8_t vdev_id);
  547. QDF_STATUS (*send_conf_hw_filter_cmd)(wmi_unified_t wmi,
  548. struct pmo_hw_filter_params *req);
  549. QDF_STATUS (*send_enable_enhance_multicast_offload_cmd)(
  550. wmi_unified_t wmi_handle,
  551. uint8_t vdev_id, bool action);
  552. QDF_STATUS (*send_add_clear_mcbc_filter_cmd)(wmi_unified_t wmi_handle,
  553. uint8_t vdev_id,
  554. struct qdf_mac_addr multicast_addr,
  555. bool clearList);
  556. QDF_STATUS (*send_multiple_add_clear_mcbc_filter_cmd)(wmi_unified_t wmi_handle,
  557. uint8_t vdev_id,
  558. struct pmo_mcast_filter_params *filter_param);
  559. QDF_STATUS (*send_gtk_offload_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
  560. struct pmo_gtk_req *params,
  561. bool enable_offload,
  562. uint32_t gtk_offload_opcode);
  563. QDF_STATUS (*send_process_gtk_offload_getinfo_cmd)(wmi_unified_t wmi_handle,
  564. uint8_t vdev_id,
  565. uint64_t offload_req_opcode);
  566. QDF_STATUS (*send_wow_sta_ra_filter_cmd)(wmi_unified_t wmi_handle,
  567. uint8_t vdev_id, uint8_t default_pattern,
  568. uint16_t rate_limit_interval);
  569. QDF_STATUS (*send_action_frame_patterns_cmd)(wmi_unified_t wmi_handle,
  570. struct pmo_action_wakeup_set_params *action_params);
  571. QDF_STATUS (*extract_gtk_rsp_event)(wmi_unified_t wmi_handle,
  572. void *evt_buf,
  573. struct pmo_gtk_rsp_params *gtk_rsp_param, uint32_t len);
  574. QDF_STATUS (*send_wow_delete_pattern_cmd)(wmi_unified_t wmi_handle,
  575. uint8_t ptrn_id,
  576. uint8_t vdev_id);
  577. QDF_STATUS (*send_host_wakeup_ind_to_fw_cmd)(wmi_unified_t wmi_handle);
  578. QDF_STATUS (*send_wow_timer_pattern_cmd)(wmi_unified_t wmi_handle,
  579. uint8_t vdev_id, uint32_t cookie, uint32_t time);
  580. #ifdef FEATURE_WLAN_LPHB
  581. QDF_STATUS (*send_lphb_config_hbenable_cmd)(wmi_unified_t wmi_handle,
  582. wmi_hb_set_enable_cmd_fixed_param *params);
  583. QDF_STATUS (*send_lphb_config_tcp_params_cmd)(wmi_unified_t wmi_handle,
  584. wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req);
  585. QDF_STATUS (*send_lphb_config_tcp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
  586. wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp);
  587. QDF_STATUS (*send_lphb_config_udp_params_cmd)(wmi_unified_t wmi_handle,
  588. wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req);
  589. QDF_STATUS (*send_lphb_config_udp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
  590. wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req);
  591. #endif /* FEATURE_WLAN_LPHB */
  592. #ifdef WLAN_FEATURE_PACKET_FILTERING
  593. QDF_STATUS (*send_enable_disable_packet_filter_cmd)(wmi_unified_t wmi_handle,
  594. uint8_t vdev_id, bool enable);
  595. QDF_STATUS (*send_config_packet_filter_cmd)(wmi_unified_t wmi_handle,
  596. uint8_t vdev_id, struct pmo_rcv_pkt_fltr_cfg *rcv_filter_param,
  597. uint8_t filter_id, bool enable);
  598. #endif
  599. #endif /* end of WLAN_POWER_MANAGEMENT_OFFLOAD */
  600. #ifdef CONFIG_MCL
  601. QDF_STATUS (*send_bcn_buf_ll_cmd)(wmi_unified_t wmi_handle,
  602. wmi_bcn_send_from_host_cmd_fixed_param * param);
  603. QDF_STATUS (*send_pktlog_wmi_send_cmd)(wmi_unified_t wmi_handle,
  604. WMI_PKTLOG_EVENT pktlog_event,
  605. WMI_CMD_ID cmd_id, uint8_t user_triggered);
  606. #endif
  607. #ifdef WLAN_SUPPORT_GREEN_AP
  608. QDF_STATUS (*send_egap_conf_params_cmd)(wmi_unified_t wmi_handle,
  609. struct wlan_green_ap_egap_params *egap_params);
  610. #endif
  611. #ifdef WLAN_FEATURE_CIF_CFR
  612. QDF_STATUS (*send_oem_dma_cfg_cmd)(wmi_unified_t wmi_handle,
  613. wmi_oem_dma_ring_cfg_req_fixed_param *cfg);
  614. #endif
  615. QDF_STATUS (*send_start_oem_data_cmd)(wmi_unified_t wmi_handle,
  616. uint32_t data_len,
  617. uint8_t *data);
  618. QDF_STATUS
  619. (*send_dfs_phyerr_filter_offload_en_cmd)(wmi_unified_t wmi_handle,
  620. bool dfs_phyerr_filter_offload);
  621. QDF_STATUS (*send_bss_color_change_enable_cmd)(wmi_unified_t wmi_handle,
  622. uint32_t vdev_id,
  623. bool enable);
  624. QDF_STATUS (*send_obss_color_collision_cfg_cmd)(wmi_unified_t wmi_handle,
  625. struct wmi_obss_color_collision_cfg_param *cfg);
  626. QDF_STATUS (*extract_obss_color_collision_info)(uint8_t *evt_buf,
  627. struct wmi_obss_color_collision_info *info);
  628. #ifdef WMI_STA_SUPPORT
  629. QDF_STATUS (*send_del_ts_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
  630. uint8_t ac);
  631. QDF_STATUS (*send_aggr_qos_cmd)(wmi_unified_t wmi_handle,
  632. struct aggr_add_ts_param *aggr_qos_rsp_msg);
  633. QDF_STATUS (*send_add_ts_cmd)(wmi_unified_t wmi_handle,
  634. struct add_ts_param *msg);
  635. QDF_STATUS (*send_process_add_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
  636. struct periodic_tx_pattern *
  637. pAddPeriodicTxPtrnParams,
  638. uint8_t vdev_id);
  639. QDF_STATUS (*send_process_del_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
  640. uint8_t vdev_id,
  641. uint8_t pattern_id);
  642. QDF_STATUS (*send_set_auto_shutdown_timer_cmd)(wmi_unified_t wmi_handle,
  643. uint32_t timer_val);
  644. #ifdef WLAN_FEATURE_NAN
  645. QDF_STATUS (*send_nan_req_cmd)(wmi_unified_t wmi_handle,
  646. struct nan_req_params *nan_req);
  647. #endif
  648. QDF_STATUS (*send_process_ch_avoid_update_cmd)(wmi_unified_t wmi_handle);
  649. QDF_STATUS (*send_process_set_ie_info_cmd)(wmi_unified_t wmi_handle,
  650. struct vdev_ie_info_param *ie_info);
  651. QDF_STATUS (*send_set_base_macaddr_indicate_cmd)(wmi_unified_t wmi_handle,
  652. uint8_t *custom_addr);
  653. QDF_STATUS (*send_pdev_set_pcl_cmd)(wmi_unified_t wmi_handle,
  654. struct wmi_pcl_chan_weights *msg);
  655. QDF_STATUS (*send_pdev_set_hw_mode_cmd)(wmi_unified_t wmi_handle,
  656. uint32_t hw_mode_index);
  657. #ifdef WLAN_POLICY_MGR_ENABLE
  658. QDF_STATUS (*send_pdev_set_dual_mac_config_cmd)(wmi_unified_t wmi_handle,
  659. struct policy_mgr_dual_mac_config *msg);
  660. #endif
  661. QDF_STATUS (*send_set_led_flashing_cmd)(wmi_unified_t wmi_handle,
  662. struct flashing_req_params *flashing);
  663. QDF_STATUS (*send_set_arp_stats_req_cmd)(wmi_unified_t wmi_handle,
  664. struct set_arp_stats *req_buf);
  665. QDF_STATUS (*send_get_arp_stats_req_cmd)(wmi_unified_t wmi_handle,
  666. struct get_arp_stats *req_buf);
  667. QDF_STATUS (*send_set_del_pmkid_cache_cmd) (wmi_unified_t wmi_handle,
  668. struct wmi_unified_pmk_cache *req_buf);
  669. QDF_STATUS (*send_adapt_dwelltime_params_cmd)(wmi_unified_t wmi_handle,
  670. struct wmi_adaptive_dwelltime_params *dwelltime_params);
  671. QDF_STATUS (*send_dbs_scan_sel_params_cmd)(wmi_unified_t wmi_handle,
  672. struct wmi_dbs_scan_sel_params *dbs_scan_params);
  673. QDF_STATUS (*send_vdev_set_gtx_cfg_cmd)(wmi_unified_t wmi_handle,
  674. uint32_t if_id,
  675. struct wmi_gtx_config *gtx_info);
  676. QDF_STATUS (*send_set_sta_keep_alive_cmd)(wmi_unified_t wmi_handle,
  677. struct sta_params *params);
  678. QDF_STATUS (*send_set_sta_sa_query_param_cmd)(wmi_unified_t wmi_handle,
  679. uint8_t vdev_id, uint32_t max_retries,
  680. uint32_t retry_interval);
  681. QDF_STATUS (*send_fw_profiling_cmd)(wmi_unified_t wmi_handle,
  682. uint32_t cmd, uint32_t value1, uint32_t value2);
  683. QDF_STATUS (*send_nat_keepalive_en_cmd)(wmi_unified_t wmi_handle,
  684. uint8_t vdev_id);
  685. QDF_STATUS (*send_process_dhcp_ind_cmd)(wmi_unified_t wmi_handle,
  686. wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind);
  687. QDF_STATUS (*send_get_link_speed_cmd)(wmi_unified_t wmi_handle,
  688. wmi_mac_addr peer_macaddr);
  689. QDF_STATUS (*send_wlm_latency_level_cmd)(wmi_unified_t wmi_handle,
  690. struct wlm_latency_level_param *param);
  691. QDF_STATUS (*send_sar_limit_cmd)(wmi_unified_t wmi_handle,
  692. struct sar_limit_cmd_params *params);
  693. QDF_STATUS (*get_sar_limit_cmd)(wmi_unified_t wmi_handle);
  694. QDF_STATUS (*extract_sar_limit_event)(wmi_unified_t wmi_handle,
  695. uint8_t *evt_buf,
  696. struct sar_limit_event *event);
  697. QDF_STATUS (*extract_sar2_result_event)(void *handle,
  698. uint8_t *event,
  699. uint32_t len);
  700. #ifdef WLAN_FEATURE_DISA
  701. QDF_STATUS (*send_encrypt_decrypt_send_cmd)(wmi_unified_t wmi_handle,
  702. struct disa_encrypt_decrypt_req_params *params);
  703. QDF_STATUS (*extract_encrypt_decrypt_resp_event)(wmi_unified_t wmi_handle,
  704. void *evt_buf,
  705. struct disa_encrypt_decrypt_resp_params *resp);
  706. #endif
  707. #ifdef CONVERGED_TDLS_ENABLE
  708. QDF_STATUS (*send_set_tdls_offchan_mode_cmd)(wmi_unified_t wmi_handle,
  709. struct tdls_channel_switch_params *chan_switch_params);
  710. QDF_STATUS (*send_update_fw_tdls_state_cmd)(wmi_unified_t wmi_handle,
  711. void *tdls_param, uint8_t tdls_state);
  712. QDF_STATUS (*send_update_tdls_peer_state_cmd)(wmi_unified_t wmi_handle,
  713. struct tdls_peer_state_params *peerStateParams,
  714. uint32_t *ch_mhz);
  715. QDF_STATUS (*extract_vdev_tdls_ev_param)(wmi_unified_t wmi_handle,
  716. void *evt_buf, struct tdls_event_info *param);
  717. #endif /* CONVERGED_TDLS_ENABLE */
  718. #endif /* WMI_STA_SUPPORT */
  719. QDF_STATUS (*send_stats_ext_req_cmd)(wmi_unified_t wmi_handle,
  720. struct stats_ext_params *preq);
  721. #ifdef WLAN_FEATURE_EXTWOW_SUPPORT
  722. QDF_STATUS (*send_enable_ext_wow_cmd)(wmi_unified_t wmi_handle,
  723. struct ext_wow_params *params);
  724. QDF_STATUS (*send_set_app_type2_params_in_fw_cmd)(wmi_unified_t wmi_handle,
  725. struct app_type2_params *appType2Params);
  726. QDF_STATUS (*send_app_type1_params_in_fw_cmd)(wmi_unified_t wmi_handle,
  727. struct app_type1_params *app_type1_params);
  728. #endif /* WLAN_FEATURE_EXTWOW_SUPPORT */
  729. QDF_STATUS (*send_process_dhcpserver_offload_cmd)(wmi_unified_t wmi_handle,
  730. struct dhcp_offload_info_params *params);
  731. QDF_STATUS (*send_regdomain_info_to_fw_cmd)(wmi_unified_t wmi_handle,
  732. uint32_t reg_dmn, uint16_t regdmn2G,
  733. uint16_t regdmn5G, uint8_t ctl2G,
  734. uint8_t ctl5G);
  735. QDF_STATUS (*send_process_fw_mem_dump_cmd)(wmi_unified_t wmi_handle,
  736. struct fw_dump_req_param *mem_dump_req);
  737. QDF_STATUS (*save_fw_version_cmd)(wmi_unified_t wmi_handle, void *evt_buf);
  738. QDF_STATUS (*check_and_update_fw_version_cmd)(wmi_unified_t wmi_hdl, void *ev);
  739. QDF_STATUS (*send_log_supported_evt_cmd)(wmi_unified_t wmi_handle,
  740. uint8_t *event,
  741. uint32_t len);
  742. QDF_STATUS (*send_enable_specific_fw_logs_cmd)(wmi_unified_t wmi_handle,
  743. struct wmi_wifi_start_log *start_log);
  744. QDF_STATUS (*send_flush_logs_to_fw_cmd)(wmi_unified_t wmi_handle);
  745. QDF_STATUS (*send_set_ssid_hotlist_cmd)(wmi_unified_t wmi_handle,
  746. struct ssid_hotlist_request_params *request);
  747. QDF_STATUS (*send_unit_test_cmd)(wmi_unified_t wmi_handle,
  748. struct wmi_unit_test_cmd *wmi_utest);
  749. #ifdef FEATURE_WLAN_APF
  750. QDF_STATUS
  751. (*send_set_active_apf_mode_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
  752. enum wmi_host_active_apf_mode ucast_mode,
  753. enum wmi_host_active_apf_mode mcast_bcast_mode);
  754. QDF_STATUS (*send_apf_enable_cmd)(wmi_unified_t wmi_handle, uint32_t vdev_id,
  755. bool enable);
  756. QDF_STATUS (*send_apf_write_work_memory_cmd)(wmi_unified_t wmi_handle,
  757. struct wmi_apf_write_memory_params *apf_write_params);
  758. QDF_STATUS (*send_apf_read_work_memory_cmd)(wmi_unified_t wmi_handle,
  759. struct wmi_apf_read_memory_params *apf_read_params);
  760. QDF_STATUS (*extract_apf_read_memory_resp_event)(wmi_unified_t wmi_handle,
  761. void *evt_buf,
  762. struct wmi_apf_read_memory_resp_event_params *resp);
  763. #endif /* FEATURE_WLAN_APF */
  764. QDF_STATUS (*send_pdev_get_tpc_config_cmd)(wmi_unified_t wmi_handle,
  765. uint32_t param);
  766. #ifdef WMI_ATF_SUPPORT
  767. QDF_STATUS (*send_set_bwf_cmd)(wmi_unified_t wmi_handle,
  768. struct set_bwf_params *param);
  769. #endif
  770. QDF_STATUS (*send_pdev_fips_cmd)(wmi_unified_t wmi_handle,
  771. struct fips_params *param);
  772. QDF_STATUS (*send_wlan_profile_enable_cmd)(wmi_unified_t wmi_handle,
  773. struct wlan_profile_params *param);
  774. QDF_STATUS (*send_wlan_profile_trigger_cmd)(wmi_unified_t wmi_handle,
  775. struct wlan_profile_params *param);
  776. QDF_STATUS (*send_pdev_set_chan_cmd)(wmi_unified_t wmi_handle,
  777. struct channel_param *param);
  778. QDF_STATUS (*send_set_ht_ie_cmd)(wmi_unified_t wmi_handle,
  779. struct ht_ie_params *param);
  780. QDF_STATUS (*send_set_vht_ie_cmd)(wmi_unified_t wmi_handle,
  781. struct vht_ie_params *param);
  782. QDF_STATUS (*send_wmm_update_cmd)(wmi_unified_t wmi_handle,
  783. struct wmm_update_params *param);
  784. QDF_STATUS (*send_process_update_edca_param_cmd)(wmi_unified_t wmi_handle,
  785. uint8_t vdev_id, bool mu_edca_param,
  786. struct wmi_host_wme_vparams wmm_vparams[WMI_MAX_NUM_AC]);
  787. QDF_STATUS (*send_set_ratepwr_table_cmd)(wmi_unified_t wmi_handle,
  788. struct ratepwr_table_params *param);
  789. QDF_STATUS (*send_get_ratepwr_table_cmd)(wmi_unified_t wmi_handle);
  790. QDF_STATUS (*send_set_ctl_table_cmd)(wmi_unified_t wmi_handle,
  791. struct ctl_table_params *param);
  792. QDF_STATUS (*send_set_mimogain_table_cmd)(wmi_unified_t wmi_handle,
  793. struct mimogain_table_params *param);
  794. QDF_STATUS (*send_set_ratepwr_chainmsk_cmd)(wmi_unified_t wmi_handle,
  795. struct ratepwr_chainmsk_params *param);
  796. QDF_STATUS (*send_set_macaddr_cmd)(wmi_unified_t wmi_handle,
  797. struct macaddr_params *param);
  798. QDF_STATUS (*send_pdev_scan_start_cmd)(wmi_unified_t wmi_handle);
  799. QDF_STATUS (*send_pdev_scan_end_cmd)(wmi_unified_t wmi_handle);
  800. QDF_STATUS (*send_set_acparams_cmd)(wmi_unified_t wmi_handle,
  801. struct acparams_params *param);
  802. QDF_STATUS (*send_set_vap_dscp_tid_map_cmd)(wmi_unified_t wmi_handle,
  803. struct vap_dscp_tid_map_params *param);
  804. QDF_STATUS (*send_proxy_ast_reserve_cmd)(wmi_unified_t wmi_handle,
  805. struct proxy_ast_reserve_params *param);
  806. QDF_STATUS (*send_pdev_qvit_cmd)(wmi_unified_t wmi_handle,
  807. struct pdev_qvit_params *param);
  808. QDF_STATUS (*send_mcast_group_update_cmd)(wmi_unified_t wmi_handle,
  809. struct mcast_group_update_params *param);
  810. QDF_STATUS (*send_peer_add_wds_entry_cmd)(wmi_unified_t wmi_handle,
  811. struct peer_add_wds_entry_params *param);
  812. QDF_STATUS (*send_peer_del_wds_entry_cmd)(wmi_unified_t wmi_handle,
  813. struct peer_del_wds_entry_params *param);
  814. QDF_STATUS (*send_set_bridge_mac_addr_cmd)(wmi_unified_t wmi_handle,
  815. struct set_bridge_mac_addr_params *param);
  816. QDF_STATUS (*send_peer_update_wds_entry_cmd)(wmi_unified_t wmi_handle,
  817. struct peer_update_wds_entry_params *param);
  818. QDF_STATUS (*send_phyerr_enable_cmd)(wmi_unified_t wmi_handle);
  819. QDF_STATUS (*send_phyerr_disable_cmd)(wmi_unified_t wmi_handle);
  820. #ifdef WMI_SMART_ANT_SUPPORT
  821. QDF_STATUS (*send_set_ant_switch_tbl_cmd)(wmi_unified_t wmi_handle,
  822. struct ant_switch_tbl_params *param);
  823. QDF_STATUS (*send_smart_ant_enable_cmd)(wmi_unified_t wmi_handle,
  824. struct smart_ant_enable_params *param);
  825. QDF_STATUS (*send_smart_ant_set_rx_ant_cmd)(wmi_unified_t wmi_handle,
  826. struct smart_ant_rx_ant_params *param);
  827. QDF_STATUS (*send_smart_ant_set_tx_ant_cmd)(wmi_unified_t wmi_handle,
  828. uint8_t macaddr[IEEE80211_ADDR_LEN],
  829. struct smart_ant_tx_ant_params *param);
  830. QDF_STATUS (*send_smart_ant_set_training_info_cmd)(wmi_unified_t wmi_handle,
  831. uint8_t macaddr[IEEE80211_ADDR_LEN],
  832. struct smart_ant_training_info_params *param);
  833. QDF_STATUS (*send_smart_ant_set_node_config_cmd)(wmi_unified_t wmi_handle,
  834. uint8_t macaddr[IEEE80211_ADDR_LEN],
  835. struct smart_ant_node_config_params *param);
  836. #endif
  837. QDF_STATUS (*send_smart_ant_enable_tx_feedback_cmd)(wmi_unified_t wmi_handle,
  838. struct smart_ant_enable_tx_feedback_params *param);
  839. QDF_STATUS (*send_vdev_spectral_configure_cmd)(wmi_unified_t wmi_handle,
  840. struct vdev_spectral_configure_params *param);
  841. QDF_STATUS (*send_vdev_spectral_enable_cmd)(wmi_unified_t wmi_handle,
  842. struct vdev_spectral_enable_params *param);
  843. QDF_STATUS (*send_bss_chan_info_request_cmd)(wmi_unified_t wmi_handle,
  844. struct bss_chan_info_request_params *param);
  845. QDF_STATUS (*send_thermal_mitigation_param_cmd)(wmi_unified_t wmi_handle,
  846. struct thermal_mitigation_params *param);
  847. QDF_STATUS (*send_vdev_set_neighbour_rx_cmd)(wmi_unified_t wmi_handle,
  848. uint8_t macaddr[IEEE80211_ADDR_LEN],
  849. struct set_neighbour_rx_params *param);
  850. QDF_STATUS (*send_vdev_set_fwtest_param_cmd)(wmi_unified_t wmi_handle,
  851. struct set_fwtest_params *param);
  852. QDF_STATUS (*send_vdev_config_ratemask_cmd)(wmi_unified_t wmi_handle,
  853. struct config_ratemask_params *param);
  854. QDF_STATUS (*send_vdev_set_custom_aggr_size_cmd)(wmi_unified_t wmi_handle,
  855. struct set_custom_aggr_size_params *param);
  856. QDF_STATUS (*send_vdev_set_qdepth_thresh_cmd)(wmi_unified_t wmi_handle,
  857. struct set_qdepth_thresh_params *param);
  858. QDF_STATUS (*send_wow_wakeup_cmd)(wmi_unified_t wmi_handle);
  859. QDF_STATUS (*send_wow_add_wakeup_event_cmd)(wmi_unified_t wmi_handle,
  860. struct wow_add_wakeup_params *param);
  861. QDF_STATUS (*send_wow_add_wakeup_pattern_cmd)(wmi_unified_t wmi_handle,
  862. struct wow_add_wakeup_pattern_params *param);
  863. QDF_STATUS (*send_wow_remove_wakeup_pattern_cmd)(wmi_unified_t wmi_handle,
  864. struct wow_remove_wakeup_pattern_params *param);
  865. QDF_STATUS (*send_pdev_set_regdomain_cmd)(wmi_unified_t wmi_handle,
  866. struct pdev_set_regdomain_params *param);
  867. QDF_STATUS (*send_set_quiet_mode_cmd)(wmi_unified_t wmi_handle,
  868. struct set_quiet_mode_params *param);
  869. QDF_STATUS (*send_set_beacon_filter_cmd)(wmi_unified_t wmi_handle,
  870. struct set_beacon_filter_params *param);
  871. QDF_STATUS (*send_remove_beacon_filter_cmd)(wmi_unified_t wmi_handle,
  872. struct remove_beacon_filter_params *param);
  873. /*
  874. QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
  875. uint8_t macaddr[IEEE80211_ADDR_LEN],
  876. struct mgmt_params *param);
  877. */
  878. QDF_STATUS (*send_addba_clearresponse_cmd)(wmi_unified_t wmi_handle,
  879. uint8_t macaddr[IEEE80211_ADDR_LEN],
  880. struct addba_clearresponse_params *param);
  881. QDF_STATUS (*send_addba_send_cmd)(wmi_unified_t wmi_handle,
  882. uint8_t macaddr[IEEE80211_ADDR_LEN],
  883. struct addba_send_params *param);
  884. QDF_STATUS (*send_delba_send_cmd)(wmi_unified_t wmi_handle,
  885. uint8_t macaddr[IEEE80211_ADDR_LEN],
  886. struct delba_send_params *param);
  887. QDF_STATUS (*send_addba_setresponse_cmd)(wmi_unified_t wmi_handle,
  888. uint8_t macaddr[IEEE80211_ADDR_LEN],
  889. struct addba_setresponse_params *param);
  890. QDF_STATUS (*send_singleamsdu_cmd)(wmi_unified_t wmi_handle,
  891. uint8_t macaddr[IEEE80211_ADDR_LEN],
  892. struct singleamsdu_params *param);
  893. QDF_STATUS (*send_set_qboost_param_cmd)(wmi_unified_t wmi_handle,
  894. uint8_t macaddr[IEEE80211_ADDR_LEN],
  895. struct set_qboost_params *param);
  896. QDF_STATUS (*send_mu_scan_cmd)(wmi_unified_t wmi_handle,
  897. struct mu_scan_params *param);
  898. QDF_STATUS (*send_lteu_config_cmd)(wmi_unified_t wmi_handle,
  899. struct lteu_config_params *param);
  900. QDF_STATUS (*send_set_ps_mode_cmd)(wmi_unified_t wmi_handle,
  901. struct set_ps_mode_params *param);
  902. QDF_STATUS (*save_service_bitmap)(wmi_unified_t wmi_handle,
  903. void *evt_buf, void *bitmap_buf);
  904. QDF_STATUS (*save_ext_service_bitmap)(wmi_unified_t wmi_handle,
  905. void *evt_buf, void *bitmap_buf);
  906. bool (*is_service_enabled)(wmi_unified_t wmi_handle,
  907. uint32_t service_id);
  908. QDF_STATUS (*get_target_cap_from_service_ready)(wmi_unified_t wmi_handle,
  909. void *evt_buf, struct wlan_psoc_target_capability_info *ev);
  910. QDF_STATUS (*extract_fw_version)(wmi_unified_t wmi_handle,
  911. void *ev, struct wmi_host_fw_ver *fw_ver);
  912. QDF_STATUS (*extract_fw_abi_version)(wmi_unified_t wmi_handle,
  913. void *ev, struct wmi_host_fw_abi_ver *fw_ver);
  914. QDF_STATUS (*extract_hal_reg_cap)(wmi_unified_t wmi_handle, void *evt_buf,
  915. struct wlan_psoc_hal_reg_capability *hal_reg_cap);
  916. host_mem_req * (*extract_host_mem_req)(wmi_unified_t wmi_handle,
  917. void *evt_buf, uint8_t *num_entries);
  918. QDF_STATUS (*init_cmd_send)(wmi_unified_t wmi_handle,
  919. struct wmi_init_cmd_param *param);
  920. QDF_STATUS (*save_fw_version)(wmi_unified_t wmi_handle, void *evt_buf);
  921. uint32_t (*ready_extract_init_status)(wmi_unified_t wmi_hdl, void *ev);
  922. QDF_STATUS (*ready_extract_mac_addr)(wmi_unified_t wmi_hdl, void *ev,
  923. uint8_t *macaddr);
  924. wmi_host_mac_addr * (*ready_extract_mac_addr_list)(wmi_unified_t wmi_hdl,
  925. void *ev, uint8_t *num_mac_addr);
  926. QDF_STATUS (*extract_ready_event_params)(wmi_unified_t wmi_handle,
  927. void *evt_buf, struct wmi_host_ready_ev_param *ev_param);
  928. QDF_STATUS (*check_and_update_fw_version)(wmi_unified_t wmi_hdl, void *ev);
  929. uint8_t* (*extract_dbglog_data_len)(wmi_unified_t wmi_handle, void *evt_buf,
  930. uint32_t *len);
  931. QDF_STATUS (*send_ext_resource_config)(wmi_unified_t wmi_handle,
  932. wmi_host_ext_resource_config *ext_cfg);
  933. QDF_STATUS (*send_nf_dbr_dbm_info_get_cmd)(wmi_unified_t wmi_handle,
  934. uint8_t mac_id);
  935. QDF_STATUS (*send_packet_power_info_get_cmd)(wmi_unified_t wmi_handle,
  936. struct packet_power_info_params *param);
  937. QDF_STATUS (*send_gpio_config_cmd)(wmi_unified_t wmi_handle,
  938. struct gpio_config_params *param);
  939. QDF_STATUS (*send_gpio_output_cmd)(wmi_unified_t wmi_handle,
  940. struct gpio_output_params *param);
  941. QDF_STATUS (*send_rtt_meas_req_test_cmd)(wmi_unified_t wmi_handle,
  942. struct rtt_meas_req_test_params *param);
  943. QDF_STATUS (*send_rtt_meas_req_cmd)(wmi_unified_t wmi_handle,
  944. struct rtt_meas_req_params *param);
  945. QDF_STATUS (*send_rtt_keepalive_req_cmd)(wmi_unified_t wmi_handle,
  946. struct rtt_keepalive_req_params *param);
  947. QDF_STATUS (*send_lci_set_cmd)(wmi_unified_t wmi_handle,
  948. struct lci_set_params *param);
  949. QDF_STATUS (*send_lcr_set_cmd)(wmi_unified_t wmi_handle,
  950. struct lcr_set_params *param);
  951. QDF_STATUS (*send_periodic_chan_stats_config_cmd)(wmi_unified_t wmi_handle,
  952. struct periodic_chan_stats_params *param);
  953. #ifdef WLAN_ATF_ENABLE
  954. QDF_STATUS (*send_set_atf_cmd)(wmi_unified_t wmi_handle,
  955. struct set_atf_params *param);
  956. QDF_STATUS
  957. (*send_atf_peer_request_cmd)(wmi_unified_t wmi_handle,
  958. struct atf_peer_request_params *param);
  959. QDF_STATUS
  960. (*send_set_atf_grouping_cmd)(wmi_unified_t wmi_handle,
  961. struct atf_grouping_params *param);
  962. QDF_STATUS
  963. (*send_set_atf_group_ac_cmd)(wmi_unified_t wmi_handle,
  964. struct atf_group_ac_params *param);
  965. QDF_STATUS (*extract_atf_peer_stats_ev)(wmi_unified_t wmi_handle,
  966. void *evt_buf,
  967. wmi_host_atf_peer_stats_event *ev);
  968. QDF_STATUS (*extract_atf_token_info_ev)(wmi_unified_t wmi_handle,
  969. void *evt_buf, uint8_t idx,
  970. wmi_host_atf_peer_stats_info *atf_info);
  971. #endif
  972. QDF_STATUS (*send_get_user_position_cmd)(wmi_unified_t wmi_handle,
  973. uint32_t value);
  974. QDF_STATUS
  975. (*send_reset_peer_mumimo_tx_count_cmd)(wmi_unified_t wmi_handle,
  976. uint32_t value);
  977. QDF_STATUS (*send_get_peer_mumimo_tx_count_cmd)(wmi_unified_t wmi_handle,
  978. uint32_t value);
  979. QDF_STATUS
  980. (*send_pdev_caldata_version_check_cmd)(wmi_unified_t wmi_handle,
  981. uint32_t value);
  982. QDF_STATUS
  983. (*send_btcoex_wlan_priority_cmd)(wmi_unified_t wmi_handle,
  984. struct btcoex_cfg_params *param);
  985. QDF_STATUS
  986. (*send_start_11d_scan_cmd)(wmi_unified_t wmi_handle,
  987. struct reg_start_11d_scan_req *param);
  988. QDF_STATUS
  989. (*send_stop_11d_scan_cmd)(wmi_unified_t wmi_handle,
  990. struct reg_stop_11d_scan_req *param);
  991. QDF_STATUS
  992. (*send_btcoex_duty_cycle_cmd)(wmi_unified_t wmi_handle,
  993. struct btcoex_cfg_params *param);
  994. QDF_STATUS
  995. (*send_coex_ver_cfg_cmd)(wmi_unified_t wmi_handle, coex_ver_cfg_t *param);
  996. QDF_STATUS
  997. (*send_coex_config_cmd)(wmi_unified_t wmi_handle,
  998. struct coex_config_params *param);
  999. QDF_STATUS (*send_bcn_offload_control_cmd)(wmi_unified_t wmi_handle,
  1000. struct bcn_offload_control *bcn_ctrl_param);
  1001. #ifdef OL_ATH_SMART_LOGGING
  1002. QDF_STATUS
  1003. (*send_smart_logging_enable_cmd)(wmi_unified_t wmi_handle, uint32_t param);
  1004. QDF_STATUS
  1005. (*send_smart_logging_fatal_cmd)(wmi_unified_t wmi_handle,
  1006. struct wmi_debug_fatal_events *param);
  1007. #endif /* OL_ATH_SMART_LOGGING */
  1008. QDF_STATUS (*extract_wds_addr_event)(wmi_unified_t wmi_handle,
  1009. void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);
  1010. QDF_STATUS (*extract_dcs_interference_type)(wmi_unified_t wmi_handle,
  1011. void *evt_buf, struct wmi_host_dcs_interference_param *param);
  1012. QDF_STATUS (*extract_dcs_cw_int)(wmi_unified_t wmi_handle, void *evt_buf,
  1013. wmi_host_ath_dcs_cw_int *cw_int);
  1014. QDF_STATUS (*extract_dcs_im_tgt_stats)(wmi_unified_t wmi_handle, void *evt_buf,
  1015. wmi_host_dcs_im_tgt_stats_t *wlan_stat);
  1016. QDF_STATUS (*extract_fips_event_data)(wmi_unified_t wmi_handle,
  1017. void *evt_buf, struct wmi_host_fips_event_param *param);
  1018. QDF_STATUS (*extract_vdev_start_resp)(wmi_unified_t wmi_handle, void *evt_buf,
  1019. wmi_host_vdev_start_resp *vdev_rsp);
  1020. QDF_STATUS (*extract_vdev_delete_resp)(wmi_unified_t wmi_handle, void *evt_buf,
  1021. struct wmi_host_vdev_delete_resp *delete_rsp);
  1022. QDF_STATUS (*extract_tbttoffset_update_params)(void *wmi_hdl, void *evt_buf,
  1023. uint8_t idx, struct tbttoffset_params *tbtt_param);
  1024. QDF_STATUS (*extract_ext_tbttoffset_update_params)(void *wmi_hdl, void *evt_buf,
  1025. uint8_t idx, struct tbttoffset_params *tbtt_param);
  1026. QDF_STATUS (*extract_tbttoffset_num_vdevs)(void *wmi_hdl, void *evt_buf,
  1027. uint32_t *num_vdevs);
  1028. QDF_STATUS (*extract_ext_tbttoffset_num_vdevs)(void *wmi_hdl, void *evt_buf,
  1029. uint32_t *num_vdevs);
  1030. QDF_STATUS (*extract_mgmt_rx_params)(wmi_unified_t wmi_handle, void *evt_buf,
  1031. struct mgmt_rx_event_params *hdr, uint8_t **bufp);
  1032. QDF_STATUS (*extract_vdev_stopped_param)(wmi_unified_t wmi_handle,
  1033. void *evt_buf, uint32_t *vdev_id);
  1034. QDF_STATUS (*extract_vdev_roam_param)(wmi_unified_t wmi_handle, void *evt_buf,
  1035. wmi_host_roam_event *param);
  1036. QDF_STATUS (*extract_vdev_scan_ev_param)(wmi_unified_t wmi_handle,
  1037. void *evt_buf, struct scan_event *param);
  1038. QDF_STATUS (*extract_mu_ev_param)(wmi_unified_t wmi_handle, void *evt_buf,
  1039. wmi_host_mu_report_event *param);
  1040. QDF_STATUS (*extract_mu_db_entry)(wmi_unified_t wmi_hdl, void *evt_buf,
  1041. uint8_t idx, wmi_host_mu_db_entry *param);
  1042. QDF_STATUS (*extract_mumimo_tx_count_ev_param)(wmi_unified_t wmi_handle,
  1043. void *evt_buf, wmi_host_peer_txmu_cnt_event *param);
  1044. QDF_STATUS (*extract_peer_gid_userpos_list_ev_param)(wmi_unified_t wmi_handle,
  1045. void *evt_buf, wmi_host_peer_gid_userpos_list_event *param);
  1046. QDF_STATUS
  1047. (*extract_esp_estimation_ev_param)(wmi_unified_t wmi_handle, void *evt_buf,
  1048. struct esp_estimation_event *param);
  1049. QDF_STATUS (*extract_pdev_caldata_version_check_ev_param)(
  1050. wmi_unified_t wmi_handle,
  1051. void *evt_buf, wmi_host_pdev_check_cal_version_event *param);
  1052. QDF_STATUS (*extract_pdev_tpc_config_ev_param)(wmi_unified_t wmi_handle,
  1053. void *evt_buf, wmi_host_pdev_tpc_config_event *param);
  1054. QDF_STATUS (*extract_gpio_input_ev_param)(wmi_unified_t wmi_handle,
  1055. void *evt_buf, uint32_t *gpio_num);
  1056. QDF_STATUS (*extract_pdev_reserve_ast_ev_param)(wmi_unified_t wmi_handle,
  1057. void *evt_buf, struct wmi_host_proxy_ast_reserve_param *param);
  1058. QDF_STATUS (*extract_nfcal_power_ev_param)(wmi_unified_t wmi_handle,
  1059. void *evt_buf,
  1060. wmi_host_pdev_nfcal_power_all_channels_event *param);
  1061. QDF_STATUS (*extract_pdev_tpc_ev_param)(wmi_unified_t wmi_handle,
  1062. void *evt_buf, wmi_host_pdev_tpc_event *param);
  1063. QDF_STATUS (*extract_pdev_generic_buffer_ev_param)(wmi_unified_t wmi_handle,
  1064. void *evt_buf, wmi_host_pdev_generic_buffer_event *param);
  1065. QDF_STATUS (*extract_mgmt_tx_compl_param)(wmi_unified_t wmi_handle,
  1066. void *evt_buf, wmi_host_mgmt_tx_compl_event *param);
  1067. QDF_STATUS (*extract_offchan_data_tx_compl_param)(wmi_unified_t wmi_handle,
  1068. void *evt_buf,
  1069. struct wmi_host_offchan_data_tx_compl_event *param);
  1070. QDF_STATUS (*extract_pdev_csa_switch_count_status)(wmi_unified_t wmi_handle,
  1071. void *evt_buf, struct pdev_csa_switch_count_status *param);
  1072. QDF_STATUS (*extract_swba_num_vdevs)(wmi_unified_t wmi_handle, void *evt_buf,
  1073. uint32_t *num_vdevs);
  1074. QDF_STATUS (*extract_swba_tim_info)(wmi_unified_t wmi_handle, void *evt_buf,
  1075. uint32_t idx, wmi_host_tim_info *tim_info);
  1076. QDF_STATUS (*extract_swba_noa_info)(wmi_unified_t wmi_handle, void *evt_buf,
  1077. uint32_t idx, wmi_host_p2p_noa_info *p2p_desc);
  1078. #ifdef CONVERGED_P2P_ENABLE
  1079. #ifdef FEATURE_P2P_LISTEN_OFFLOAD
  1080. QDF_STATUS (*extract_p2p_lo_stop_ev_param)(wmi_unified_t wmi_handle,
  1081. void *evt_buf, struct p2p_lo_event *param);
  1082. #endif
  1083. QDF_STATUS (*extract_p2p_noa_ev_param)(wmi_unified_t wmi_handle,
  1084. void *evt_buf, struct p2p_noa_info *param);
  1085. #endif
  1086. QDF_STATUS (*extract_peer_sta_ps_statechange_ev)(wmi_unified_t wmi_handle,
  1087. void *evt_buf, wmi_host_peer_sta_ps_statechange_event *ev);
  1088. QDF_STATUS (*extract_peer_sta_kickout_ev)(wmi_unified_t wmi_handle,
  1089. void *evt_buf, wmi_host_peer_sta_kickout_event *ev);
  1090. QDF_STATUS (*extract_peer_ratecode_list_ev)(wmi_unified_t wmi_handle,
  1091. void *evt_buf, uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap);
  1092. QDF_STATUS (*extract_comb_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
  1093. uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr);
  1094. QDF_STATUS (*extract_single_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
  1095. uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr);
  1096. QDF_STATUS (*extract_composite_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
  1097. uint16_t datalen, wmi_host_phyerr_t *phyerr);
  1098. QDF_STATUS (*extract_rtt_hdr)(wmi_unified_t wmi_handle, void *evt_buf,
  1099. wmi_host_rtt_event_hdr *ev);
  1100. QDF_STATUS (*extract_rtt_ev)(wmi_unified_t wmi_handle, void *evt_buf,
  1101. wmi_host_rtt_meas_event *ev, uint8_t *hdump, uint16_t hdump_len);
  1102. QDF_STATUS (*extract_rtt_error_report_ev)(wmi_unified_t wmi_handle,
  1103. void *evt_buf, wmi_host_rtt_error_report_event *ev);
  1104. QDF_STATUS (*extract_all_stats_count)(wmi_unified_t wmi_handle, void *evt_buf,
  1105. wmi_host_stats_event *stats_param);
  1106. QDF_STATUS (*extract_pdev_stats)(wmi_unified_t wmi_handle, void *evt_buf,
  1107. uint32_t index, wmi_host_pdev_stats *pdev_stats);
  1108. QDF_STATUS (*extract_unit_test)(wmi_unified_t wmi_handle, void *evt_buf,
  1109. wmi_unit_test_event *unit_test, uint32_t maxspace);
  1110. QDF_STATUS (*extract_pdev_ext_stats)(wmi_unified_t wmi_handle, void *evt_buf,
  1111. uint32_t index, wmi_host_pdev_ext_stats *pdev_ext_stats);
  1112. QDF_STATUS (*extract_vdev_stats)(wmi_unified_t wmi_handle, void *evt_buf,
  1113. uint32_t index, wmi_host_vdev_stats *vdev_stats);
  1114. QDF_STATUS (*extract_per_chain_rssi_stats)(wmi_unified_t wmi_handle,
  1115. void *evt_buf, uint32_t index,
  1116. struct wmi_host_per_chain_rssi_stats *rssi_stats);
  1117. QDF_STATUS (*extract_peer_stats)(wmi_unified_t wmi_handle, void *evt_buf,
  1118. uint32_t index, wmi_host_peer_stats *peer_stats);
  1119. QDF_STATUS (*extract_bcnflt_stats)(wmi_unified_t wmi_handle, void *evt_buf,
  1120. uint32_t index, wmi_host_bcnflt_stats *bcnflt_stats);
  1121. QDF_STATUS (*extract_peer_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf,
  1122. uint32_t index, wmi_host_peer_extd_stats *peer_extd_stats);
  1123. QDF_STATUS (*extract_chan_stats)(wmi_unified_t wmi_handle, void *evt_buf,
  1124. uint32_t index, wmi_host_chan_stats *chan_stats);
  1125. QDF_STATUS (*extract_thermal_stats)(wmi_unified_t wmi_handle, void *evt_buf,
  1126. uint32_t *temp, uint32_t *level, uint32_t *pdev_id);
  1127. QDF_STATUS (*extract_thermal_level_stats)(wmi_unified_t wmi_handle,
  1128. void *evt_buf, uint8_t idx, uint32_t *levelcount,
  1129. uint32_t *dccount);
  1130. QDF_STATUS (*extract_profile_ctx)(wmi_unified_t wmi_handle, void *evt_buf,
  1131. wmi_host_wlan_profile_ctx_t *profile_ctx);
  1132. QDF_STATUS (*extract_profile_data)(wmi_unified_t wmi_handle, void *evt_buf,
  1133. uint8_t idx,
  1134. wmi_host_wlan_profile_t *profile_data);
  1135. QDF_STATUS (*extract_chan_info_event)(wmi_unified_t wmi_handle, void *evt_buf,
  1136. wmi_host_chan_info_event *chan_info);
  1137. QDF_STATUS (*extract_channel_hopping_event)(wmi_unified_t wmi_handle,
  1138. void *evt_buf,
  1139. wmi_host_pdev_channel_hopping_event *ch_hopping);
  1140. QDF_STATUS (*extract_bss_chan_info_event)(wmi_unified_t wmi_handle,
  1141. void *evt_buf,
  1142. wmi_host_pdev_bss_chan_info_event *bss_chan_info);
  1143. QDF_STATUS (*extract_inst_rssi_stats_event)(wmi_unified_t wmi_handle,
  1144. void *evt_buf, wmi_host_inst_stats_resp *inst_rssi_resp);
  1145. QDF_STATUS (*extract_tx_data_traffic_ctrl_ev)(wmi_unified_t wmi_handle,
  1146. void *evt_buf, wmi_host_tx_data_traffic_ctrl_event *ev);
  1147. QDF_STATUS (*extract_vdev_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf,
  1148. uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats);
  1149. QDF_STATUS (*extract_vdev_nac_rssi_stats)(wmi_unified_t wmi_handle, void *evt_buf,
  1150. struct wmi_host_vdev_nac_rssi_event *vdev_nac_rssi_stats);
  1151. QDF_STATUS (*extract_bcn_stats)(wmi_unified_t wmi_handle, void *evt_buf,
  1152. uint32_t index, wmi_host_bcn_stats *bcn_stats);
  1153. #ifdef OL_ATH_SMART_LOGGING
  1154. QDF_STATUS (*extract_smartlog_event)(wmi_unified_t wmi_handle, void *evt_buf,
  1155. struct wmi_debug_fatal_events *event);
  1156. #endif /* OL_ATH_SMART_LOGGING */
  1157. QDF_STATUS (*send_power_dbg_cmd)(wmi_unified_t wmi_handle,
  1158. struct wmi_power_dbg_params *param);
  1159. QDF_STATUS (*send_multiple_vdev_restart_req_cmd)(wmi_unified_t wmi_handle,
  1160. struct multiple_vdev_restart_params *param);
  1161. QDF_STATUS (*send_fw_test_cmd)(wmi_unified_t wmi_handle,
  1162. struct set_fwtest_params *wmi_fwtest);
  1163. #ifdef WLAN_FEATURE_ACTION_OUI
  1164. QDF_STATUS (*send_action_oui_cmd)(wmi_unified_t wmi_handle,
  1165. struct action_oui_request *req);
  1166. #endif /* WLAN_FEATURE_ACTION_OUI */
  1167. QDF_STATUS (*send_peer_rx_reorder_queue_setup_cmd)(wmi_unified_t wmi_handle,
  1168. struct rx_reorder_queue_setup_params *param);
  1169. QDF_STATUS (*send_peer_rx_reorder_queue_remove_cmd)(wmi_unified_t wmi_handle,
  1170. struct rx_reorder_queue_remove_params *param);
  1171. QDF_STATUS (*extract_service_ready_ext)(wmi_unified_t wmi_handle,
  1172. uint8_t *evt_buf,
  1173. struct wlan_psoc_host_service_ext_param *param);
  1174. QDF_STATUS (*extract_hw_mode_cap_service_ready_ext)(
  1175. wmi_unified_t wmi_handle,
  1176. uint8_t *evt_buf, uint8_t hw_mode_idx,
  1177. struct wlan_psoc_host_hw_mode_caps *param);
  1178. QDF_STATUS (*extract_mac_phy_cap_service_ready_ext)(
  1179. wmi_unified_t wmi_handle,
  1180. uint8_t *evt_buf,
  1181. uint8_t hw_mode_id,
  1182. uint8_t phy_id,
  1183. struct wlan_psoc_host_mac_phy_caps *param);
  1184. QDF_STATUS (*extract_reg_cap_service_ready_ext)(
  1185. wmi_unified_t wmi_handle,
  1186. uint8_t *evt_buf, uint8_t phy_idx,
  1187. struct wlan_psoc_host_hal_reg_capabilities_ext *param);
  1188. QDF_STATUS (*extract_dbr_ring_cap_service_ready_ext)(
  1189. wmi_unified_t wmi_handle,
  1190. uint8_t *evt_buf, uint8_t idx,
  1191. struct wlan_psoc_host_dbr_ring_caps *param);
  1192. QDF_STATUS (*extract_sar_cap_service_ready_ext)(
  1193. wmi_unified_t wmi_handle,
  1194. uint8_t *evt_buf,
  1195. struct wlan_psoc_host_service_ext_param *ext_param);
  1196. #ifdef WMI_DBR_SUPPORT
  1197. QDF_STATUS (*send_dbr_cfg_cmd)(wmi_unified_t wmi_handle,
  1198. struct direct_buf_rx_cfg_req *cfg);
  1199. QDF_STATUS (*extract_dbr_buf_release_fixed)(
  1200. wmi_unified_t wmi_handle,
  1201. uint8_t *evt_buf,
  1202. struct direct_buf_rx_rsp *param);
  1203. QDF_STATUS (*extract_dbr_buf_release_entry)(
  1204. wmi_unified_t wmi_handle,
  1205. uint8_t *evt_buf, uint8_t idx,
  1206. struct direct_buf_rx_entry *param);
  1207. QDF_STATUS (*extract_dbr_buf_metadata)(
  1208. wmi_unified_t wmi_handle,
  1209. uint8_t *evt_buf, uint8_t idx,
  1210. struct direct_buf_rx_metadata *param);
  1211. #endif
  1212. QDF_STATUS (*extract_pdev_utf_event)(wmi_unified_t wmi_hdl,
  1213. uint8_t *evt_buf,
  1214. struct wmi_host_pdev_utf_event *param);
  1215. QDF_STATUS (*extract_pdev_qvit_event)(wmi_unified_t wmi_hdl,
  1216. uint8_t *evt_buf,
  1217. struct wmi_host_pdev_qvit_event *param);
  1218. uint16_t (*wmi_set_htc_tx_tag)(wmi_unified_t wmi_handle,
  1219. wmi_buf_t buf, uint32_t cmd_id);
  1220. QDF_STATUS (*extract_peer_delete_response_event)(
  1221. wmi_unified_t wmi_handle,
  1222. void *evt_buf,
  1223. struct wmi_host_peer_delete_response_event *param);
  1224. bool (*is_management_record)(uint32_t cmd_id);
  1225. bool (*is_diag_event)(uint32_t event_id);
  1226. uint8_t *(*wmi_id_to_name)(uint32_t cmd_id);
  1227. QDF_STATUS (*send_dfs_phyerr_offload_en_cmd)(wmi_unified_t wmi_handle,
  1228. uint32_t pdev_id);
  1229. QDF_STATUS (*send_dfs_phyerr_offload_dis_cmd)(wmi_unified_t wmi_handle,
  1230. uint32_t pdev_id);
  1231. QDF_STATUS (*extract_reg_chan_list_update_event)(wmi_unified_t wmi_handle,
  1232. uint8_t *evt_buf,
  1233. struct cur_regulatory_info
  1234. *reg_info,
  1235. uint32_t len);
  1236. QDF_STATUS (*extract_reg_11d_new_country_event)(wmi_unified_t wmi_handle,
  1237. uint8_t *evt_buf,
  1238. struct reg_11d_new_country *reg_11d_country,
  1239. uint32_t len);
  1240. QDF_STATUS (*extract_reg_ch_avoid_event)(wmi_unified_t wmi_handle,
  1241. uint8_t *evt_buf,
  1242. struct ch_avoid_ind_type *ch_avoid_event,
  1243. uint32_t len);
  1244. QDF_STATUS (*extract_chainmask_tables)(wmi_unified_t wmi_handle,
  1245. uint8_t *evt_buf,
  1246. struct wlan_psoc_host_chainmask_table *chainmask_table);
  1247. QDF_STATUS (*send_get_rcpi_cmd)(wmi_unified_t wmi_handle,
  1248. struct rcpi_req *get_rcpi_param);
  1249. QDF_STATUS (*extract_rcpi_response_event)(wmi_unified_t wmi_handle,
  1250. void *evt_buf,
  1251. struct rcpi_res *res);
  1252. QDF_STATUS (*extract_dfs_cac_complete_event)(wmi_unified_t wmi_handle,
  1253. uint8_t *evt_buf,
  1254. uint32_t *vdev_id,
  1255. uint32_t len);
  1256. QDF_STATUS (*extract_dfs_radar_detection_event)(wmi_unified_t wmi_handle,
  1257. uint8_t *evt_buf,
  1258. struct radar_found_info *radar_found,
  1259. uint32_t len);
  1260. QDF_STATUS (*extract_wlan_radar_event_info)(wmi_unified_t wmi_handle,
  1261. uint8_t *evt_buf,
  1262. struct radar_event_info *wlan_radar_event,
  1263. uint32_t len);
  1264. QDF_STATUS (*send_set_country_cmd)(wmi_unified_t wmi_handle,
  1265. struct set_country *param);
  1266. uint32_t (*convert_pdev_id_host_to_target)(uint32_t pdev_id);
  1267. uint32_t (*convert_pdev_id_target_to_host)(uint32_t pdev_id);
  1268. QDF_STATUS (*send_user_country_code_cmd)(wmi_unified_t wmi_handle,
  1269. uint8_t pdev_id, struct cc_regdmn_s *rd);
  1270. QDF_STATUS (*send_wds_entry_list_cmd)(wmi_unified_t wmi_handle);
  1271. QDF_STATUS (*extract_wds_entry)(wmi_unified_t wmi_handle,
  1272. uint8_t *evt_buf,
  1273. struct wdsentry *wds_entry,
  1274. u_int32_t idx);
  1275. #ifdef WLAN_FEATURE_NAN_CONVERGENCE
  1276. QDF_STATUS (*send_ndp_initiator_req_cmd)(wmi_unified_t wmi_handle,
  1277. struct nan_datapath_initiator_req *req);
  1278. QDF_STATUS (*send_ndp_responder_req_cmd)(wmi_unified_t wmi_handle,
  1279. struct nan_datapath_responder_req *req);
  1280. QDF_STATUS (*send_ndp_end_req_cmd)(wmi_unified_t wmi_handle,
  1281. struct nan_datapath_end_req *req);
  1282. QDF_STATUS (*extract_ndp_initiator_rsp)(wmi_unified_t wmi_handle,
  1283. uint8_t *data, struct nan_datapath_initiator_rsp *rsp);
  1284. QDF_STATUS (*extract_ndp_ind)(wmi_unified_t wmi_handle,
  1285. uint8_t *data, struct nan_datapath_indication_event *ind);
  1286. QDF_STATUS (*extract_ndp_confirm)(wmi_unified_t wmi_handle,
  1287. uint8_t *data, struct nan_datapath_confirm_event *ev);
  1288. QDF_STATUS (*extract_ndp_responder_rsp)(wmi_unified_t wmi_handle,
  1289. uint8_t *data, struct nan_datapath_responder_rsp *rsp);
  1290. QDF_STATUS (*extract_ndp_end_rsp)(wmi_unified_t wmi_handle,
  1291. uint8_t *data, struct nan_datapath_end_rsp_event *rsp);
  1292. QDF_STATUS (*extract_ndp_end_ind)(wmi_unified_t wmi_handle,
  1293. uint8_t *data, struct nan_datapath_end_indication_event **ind);
  1294. QDF_STATUS (*extract_ndp_sch_update)(wmi_unified_t wmi_handle,
  1295. uint8_t *data, struct nan_datapath_sch_update_event *ind);
  1296. #endif /* WLAN_FEATURE_NAN_CONVERGENCE */
  1297. QDF_STATUS (*send_obss_detection_cfg_cmd)(wmi_unified_t wmi_handle,
  1298. struct wmi_obss_detection_cfg_param *obss_cfg_param);
  1299. QDF_STATUS (*extract_obss_detection_info)(uint8_t *evt_buf,
  1300. struct wmi_obss_detect_info *info);
  1301. #ifdef WLAN_SUPPORT_FILS
  1302. QDF_STATUS (*send_vdev_fils_enable_cmd)(wmi_unified_t wmi_handle,
  1303. struct config_fils_params *param);
  1304. QDF_STATUS (*extract_swfda_vdev_id)(wmi_unified_t wmi_handle, void *evt_buf,
  1305. uint32_t *vdev_id);
  1306. QDF_STATUS (*send_fils_discovery_send_cmd)(wmi_unified_t wmi_handle,
  1307. struct fd_params *param);
  1308. #endif /* WLAN_SUPPORT_FILS */
  1309. QDF_STATUS
  1310. (*send_roam_scan_stats_cmd)(wmi_unified_t wmi_handle,
  1311. struct wmi_roam_scan_stats_req *params);
  1312. QDF_STATUS
  1313. (*extract_roam_scan_stats_res_evt)(wmi_unified_t wmi_handle,
  1314. void *evt_buf,
  1315. uint32_t *vdev_id,
  1316. struct wmi_roam_scan_stats_res **res_param);
  1317. QDF_STATUS
  1318. (*extract_offload_bcn_tx_status_evt)(wmi_unified_t wmi_handle,
  1319. void *evt_buf, uint32_t *vdev_id,
  1320. uint32_t *tx_status);
  1321. void (*wmi_pdev_id_conversion_enable)(wmi_unified_t wmi_handle);
  1322. void (*send_time_stamp_sync_cmd)(wmi_unified_t wmi_handle);
  1323. void (*wmi_free_allocated_event)(uint32_t cmd_event_id,
  1324. void **wmi_cmd_struct_ptr);
  1325. int (*wmi_check_and_pad_event)(void *os_handle, void *param_struc_ptr,
  1326. uint32_t param_buf_len,
  1327. uint32_t wmi_cmd_event_id,
  1328. void **wmi_cmd_struct_ptr);
  1329. int (*wmi_check_command_params)(void *os_handle, void *param_struc_ptr,
  1330. uint32_t param_buf_len,
  1331. uint32_t wmi_cmd_event_id);
  1332. #ifdef WLAN_SUPPORT_TWT
  1333. QDF_STATUS (*send_twt_enable_cmd)(wmi_unified_t wmi_handle,
  1334. struct wmi_twt_enable_param *params);
  1335. QDF_STATUS (*send_twt_disable_cmd)(wmi_unified_t wmi_handle,
  1336. struct wmi_twt_disable_param *params);
  1337. QDF_STATUS (*send_twt_add_dialog_cmd)(wmi_unified_t wmi_handle,
  1338. struct wmi_twt_add_dialog_param *params);
  1339. QDF_STATUS (*send_twt_del_dialog_cmd)(wmi_unified_t wmi_handle,
  1340. struct wmi_twt_del_dialog_param *params);
  1341. QDF_STATUS (*send_twt_pause_dialog_cmd)(wmi_unified_t wmi_handle,
  1342. struct wmi_twt_pause_dialog_cmd_param *params);
  1343. QDF_STATUS (*send_twt_resume_dialog_cmd)(wmi_unified_t wmi_handle,
  1344. struct wmi_twt_resume_dialog_cmd_param *params);
  1345. QDF_STATUS (*extract_twt_enable_comp_event)(wmi_unified_t wmi_handle,
  1346. uint8_t *evt_buf,
  1347. struct wmi_twt_enable_complete_event_param *params);
  1348. QDF_STATUS (*extract_twt_disable_comp_event)(wmi_unified_t wmi_handle,
  1349. uint8_t *evt_buf,
  1350. struct wmi_twt_disable_complete_event *params);
  1351. QDF_STATUS (*extract_twt_add_dialog_comp_event)(wmi_unified_t wmi_handle,
  1352. uint8_t *evt_buf,
  1353. struct wmi_twt_add_dialog_complete_event_param *params);
  1354. QDF_STATUS (*extract_twt_del_dialog_comp_event)(wmi_unified_t wmi_handle,
  1355. uint8_t *evt_buf,
  1356. struct wmi_twt_del_dialog_complete_event_param *params);
  1357. QDF_STATUS (*extract_twt_pause_dialog_comp_event)(wmi_unified_t wmi_handle,
  1358. uint8_t *evt_buf,
  1359. struct wmi_twt_pause_dialog_complete_event_param *params);
  1360. QDF_STATUS (*extract_twt_resume_dialog_comp_event)(wmi_unified_t wmi_handle,
  1361. uint8_t *evt_buf,
  1362. struct wmi_twt_resume_dialog_complete_event_param *params);
  1363. #endif
  1364. #ifdef QCA_SUPPORT_CP_STATS
  1365. QDF_STATUS (*extract_cca_stats)(wmi_unified_t wmi_handle, void *evt_buf,
  1366. struct wmi_host_congestion_stats *stats);
  1367. #endif /* QCA_SUPPORT_CP_STATS */
  1368. #if defined(WLAN_DFS_PARTIAL_OFFLOAD) && defined(HOST_DFS_SPOOF_TEST)
  1369. QDF_STATUS (*send_dfs_average_radar_params_cmd)(
  1370. wmi_unified_t wmi_handle,
  1371. struct dfs_radar_found_params *params);
  1372. QDF_STATUS (*extract_dfs_status_from_fw)(wmi_unified_t wmi_handle,
  1373. void *evt_buf,
  1374. uint32_t *dfs_status_check);
  1375. #endif
  1376. #ifdef OBSS_PD
  1377. QDF_STATUS (*send_obss_spatial_reuse_set)(wmi_unified_t wmi_handle,
  1378. struct wmi_host_obss_spatial_reuse_set_param
  1379. *obss_spatial_reuse_param);
  1380. #endif
  1381. };
  1382. /* Forward declartion for psoc*/
  1383. struct wlan_objmgr_psoc;
  1384. /**
  1385. * struct wmi_init_cmd - Saved wmi INIT command
  1386. * @buf: Buffer containing the wmi INIT command
  1387. * @buf_len: Length of the buffer
  1388. */
  1389. struct wmi_cmd_init {
  1390. wmi_buf_t buf;
  1391. uint32_t buf_len;
  1392. };
  1393. /**
  1394. * @abi_version_0: WMI Major and Minor versions
  1395. * @abi_version_1: WMI change revision
  1396. * @abi_version_ns_0: ABI version namespace first four dwords
  1397. * @abi_version_ns_1: ABI version namespace second four dwords
  1398. * @abi_version_ns_2: ABI version namespace third four dwords
  1399. * @abi_version_ns_3: ABI version namespace fourth four dwords
  1400. */
  1401. struct wmi_host_abi_version {
  1402. uint32_t abi_version_0;
  1403. uint32_t abi_version_1;
  1404. uint32_t abi_version_ns_0;
  1405. uint32_t abi_version_ns_1;
  1406. uint32_t abi_version_ns_2;
  1407. uint32_t abi_version_ns_3;
  1408. };
  1409. #define NUM_DEBUG_INFOS 9
  1410. struct wmi_unified {
  1411. void *scn_handle; /* handle to device */
  1412. osdev_t osdev; /* handle to use OS-independent services */
  1413. struct wbuff_mod_handle *wbuff_handle; /* handle to wbuff */
  1414. qdf_atomic_t pending_cmds;
  1415. HTC_ENDPOINT_ID wmi_endpoint_id;
  1416. uint16_t max_msg_len;
  1417. uint32_t *event_id;
  1418. wmi_unified_event_handler *event_handler;
  1419. enum wmi_rx_exec_ctx *ctx;
  1420. void *htc_handle;
  1421. qdf_spinlock_t eventq_lock;
  1422. qdf_nbuf_queue_t event_queue;
  1423. qdf_work_t rx_event_work;
  1424. qdf_workqueue_t *wmi_rx_work_queue;
  1425. int wmi_stop_in_progress;
  1426. struct wmi_host_abi_version fw_abi_version;
  1427. struct wmi_host_abi_version final_abi_vers;
  1428. uint32_t num_of_diag_events_logs;
  1429. uint32_t *events_logs_list;
  1430. #ifdef WLAN_OPEN_SOURCE
  1431. struct fwdebug dbglog;
  1432. struct dentry *debugfs_phy;
  1433. #endif /* WLAN_OPEN_SOURCE */
  1434. #ifdef WMI_INTERFACE_EVENT_LOGGING
  1435. struct wmi_debug_log_info log_info;
  1436. #endif /*WMI_INTERFACE_EVENT_LOGGING */
  1437. qdf_atomic_t is_target_suspended;
  1438. #ifdef FEATURE_RUNTIME_PM
  1439. qdf_atomic_t runtime_pm_inprogress;
  1440. #endif
  1441. qdf_atomic_t is_wow_bus_suspended;
  1442. bool tag_crash_inject;
  1443. bool tgt_force_assert_enable;
  1444. enum wmi_target_type target_type;
  1445. struct wmi_rx_ops rx_ops;
  1446. struct wmi_ops *ops;
  1447. bool use_cookie;
  1448. bool wmi_stopinprogress;
  1449. uint32_t *wmi_events;
  1450. #ifndef CONFIG_MCL
  1451. uint32_t *pdev_param;
  1452. uint32_t *vdev_param;
  1453. #endif
  1454. uint32_t *services;
  1455. struct wmi_soc *soc;
  1456. uint16_t wmi_max_cmds;
  1457. struct dentry *debugfs_de[NUM_DEBUG_INFOS];
  1458. #ifdef WMI_EXT_DBG
  1459. int wmi_ext_dbg_msg_queue_size;
  1460. qdf_list_t wmi_ext_dbg_msg_queue;
  1461. qdf_spinlock_t wmi_ext_dbg_msg_queue_lock;
  1462. qdf_dentry_t wmi_ext_dbg_dentry;
  1463. #endif /*WMI_EXT_DBG*/
  1464. };
  1465. #define WMI_MAX_RADIOS 3
  1466. struct wmi_soc {
  1467. struct wlan_objmgr_psoc *wmi_psoc;
  1468. void *scn_handle; /* handle to device */
  1469. qdf_atomic_t num_pdevs;
  1470. enum wmi_target_type target_type;
  1471. void *htc_handle;
  1472. uint32_t event_id[WMI_UNIFIED_MAX_EVENT];
  1473. wmi_unified_event_handler event_handler[WMI_UNIFIED_MAX_EVENT];
  1474. uint32_t max_event_idx;
  1475. enum wmi_rx_exec_ctx ctx[WMI_UNIFIED_MAX_EVENT];
  1476. qdf_spinlock_t ctx_lock;
  1477. struct wmi_unified *wmi_pdev[WMI_MAX_RADIOS];
  1478. HTC_ENDPOINT_ID wmi_endpoint_id[WMI_MAX_RADIOS];
  1479. uint16_t max_msg_len[WMI_MAX_RADIOS];
  1480. struct wmi_ops *ops;
  1481. const uint32_t *svc_ids;
  1482. uint32_t wmi_events[wmi_events_max];
  1483. /* WMI service bitmap received from target */
  1484. uint32_t *wmi_service_bitmap;
  1485. uint32_t *wmi_ext_service_bitmap;
  1486. #ifndef CONFIG_MCL
  1487. uint32_t pdev_param[wmi_pdev_param_max];
  1488. uint32_t vdev_param[wmi_vdev_param_max];
  1489. #endif
  1490. uint32_t services[wmi_services_max];
  1491. uint16_t wmi_max_cmds;
  1492. uint32_t soc_idx;
  1493. };
  1494. /**
  1495. * wmi_mtrace() - Wrappper function for qdf_mtrace api
  1496. * @message_id: 32-Bit Wmi message ID
  1497. * @vdev_id: Vdev ID
  1498. * @data: Actual message contents
  1499. *
  1500. * This function converts the 32-bit WMI message ID in 15-bit message ID
  1501. * format for qdf_mtrace as in qdf_mtrace message there are only 15
  1502. * bits reserved for message ID.
  1503. * out of these 15-bits, 8-bits (From MSB) specifies the WMI_GRP_ID
  1504. * and remaining 7-bits specifies the actual WMI command. With this
  1505. * notation there can be maximum 256 groups and each group can have
  1506. * max 128 commands can be supported.
  1507. *
  1508. * Return: None
  1509. */
  1510. void wmi_mtrace(uint32_t message_id, uint16_t vdev_id, uint32_t data);
  1511. void wmi_unified_register_module(enum wmi_target_type target_type,
  1512. void (*wmi_attach)(wmi_unified_t wmi_handle));
  1513. void wmi_tlv_init(void);
  1514. void wmi_non_tlv_init(void);
  1515. #ifdef WMI_NON_TLV_SUPPORT
  1516. /* ONLY_NON_TLV_TARGET:TLV attach dummy function definition for case when
  1517. * driver supports only NON-TLV target (WIN mainline) */
  1518. #define wmi_tlv_attach(x) qdf_print("TLV Unavailable")
  1519. #else
  1520. void wmi_tlv_attach(wmi_unified_t wmi_handle);
  1521. #endif
  1522. void wmi_non_tlv_attach(wmi_unified_t wmi_handle);
  1523. #ifdef FEATURE_WLAN_EXTSCAN
  1524. void wmi_extscan_attach_tlv(struct wmi_unified *wmi_handle);
  1525. #else
  1526. static inline void wmi_extscan_attach_tlv(struct wmi_unified *wmi_handle)
  1527. {
  1528. }
  1529. #endif
  1530. #ifdef WMI_SMART_ANT_SUPPORT
  1531. void wmi_smart_ant_attach_tlv(struct wmi_unified *wmi_handle);
  1532. #else
  1533. static inline void wmi_smart_ant_attach_tlv(struct wmi_unified *wmi_handle)
  1534. {
  1535. }
  1536. #endif
  1537. #ifdef WMI_DBR_SUPPORT
  1538. void wmi_dbr_attach_tlv(struct wmi_unified *wmi_handle);
  1539. #else
  1540. static inline void wmi_dbr_attach_tlv(struct wmi_unified *wmi_handle)
  1541. {
  1542. }
  1543. #endif
  1544. #ifdef WMI_ATF_SUPPORT
  1545. void wmi_atf_attach_tlv(struct wmi_unified *wmi_handle);
  1546. #else
  1547. static inline void wmi_atf_attach_tlv(struct wmi_unified *wmi_handle)
  1548. {
  1549. }
  1550. #endif
  1551. #ifdef WMI_AP_SUPPORT
  1552. void wmi_ap_attach_tlv(struct wmi_unified *wmi_handle);
  1553. #else
  1554. static inline void wmi_ap_attach_tlv(struct wmi_unified *wmi_handle)
  1555. {
  1556. }
  1557. #endif
  1558. #ifdef WLAN_FEATURE_DSRC
  1559. void wmi_ocb_attach_tlv(wmi_unified_t wmi_handle);
  1560. #else
  1561. static inline void wmi_ocb_attach_tlv(wmi_unified_t wmi_handle)
  1562. {
  1563. }
  1564. #endif
  1565. #ifdef WLAN_FEATURE_NAN_CONVERGENCE
  1566. void wmi_nan_attach_tlv(wmi_unified_t wmi_handle);
  1567. #else
  1568. static inline void wmi_nan_attach_tlv(wmi_unified_t wmi_handle)
  1569. {
  1570. }
  1571. #endif
  1572. #ifdef FEATURE_P2P_LISTEN_OFFLOAD
  1573. void wmi_p2p_listen_offload_attach_tlv(wmi_unified_t wmi_handle);
  1574. #else
  1575. static inline
  1576. void wmi_p2p_listen_offload_attach_tlv(wmi_unified_t wmi_handle)
  1577. {
  1578. }
  1579. #endif
  1580. #ifdef CONVERGED_P2P_ENABLE
  1581. void wmi_p2p_attach_tlv(wmi_unified_t wmi_handle);
  1582. #else
  1583. static inline void wmi_p2p_attach_tlv(struct wmi_unified *wmi_handle)
  1584. {
  1585. }
  1586. #endif
  1587. #ifdef FEATURE_LFR_SUBNET_DETECTION
  1588. void wmi_lfr_subnet_detection_attach_tlv(wmi_unified_t wmi_handle);
  1589. #else
  1590. static inline
  1591. void wmi_lfr_subnet_detection_attach_tlv(struct wmi_unified *wmi_handle)
  1592. {
  1593. }
  1594. #endif
  1595. #ifdef FEATURE_RSSI_MONITOR
  1596. void wmi_rssi_monitor_attach_tlv(wmi_unified_t wmi_handle);
  1597. #else
  1598. static inline
  1599. void wmi_rssi_monitor_attach_tlv(struct wmi_unified *wmi_handle)
  1600. {
  1601. }
  1602. #endif
  1603. #ifdef FEATURE_WLAN_ESE
  1604. void wmi_ese_attach_tlv(wmi_unified_t wmi_handle);
  1605. #else
  1606. static inline void wmi_ese_attach_tlv(struct wmi_unified *wmi_handle)
  1607. {
  1608. }
  1609. #endif
  1610. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  1611. void wmi_roam_offload_attach_tlv(wmi_unified_t wmi_handle);
  1612. #else
  1613. static inline
  1614. void wmi_roam_offload_attach_tlv(struct wmi_unified *wmi_handle)
  1615. {
  1616. }
  1617. #endif
  1618. #ifdef WLAN_FEATURE_FILS_SK
  1619. void wmi_fils_sk_attach_tlv(wmi_unified_t wmi_handle);
  1620. #else
  1621. static inline void wmi_fils_sk_attach_tlv(struct wmi_unified *wmi_handle)
  1622. {
  1623. }
  1624. #endif
  1625. #ifdef WMI_ROAM_SUPPORT
  1626. void wmi_roam_attach_tlv(struct wmi_unified *wmi_handle);
  1627. #else
  1628. static inline void wmi_roam_attach_tlv(struct wmi_unified *wmi_handle)
  1629. {
  1630. }
  1631. #endif
  1632. #ifdef WMI_CONCURRENCY_SUPPORT
  1633. void wmi_concurrency_attach_tlv(struct wmi_unified *wmi_handle);
  1634. #else
  1635. static inline void wmi_concurrency_attach_tlv(struct wmi_unified *wmi_handle)
  1636. {
  1637. }
  1638. #endif
  1639. #ifdef FEATURE_WLAN_D0WOW
  1640. void wmi_d0wow_attach_tlv(struct wmi_unified *wmi_handle);
  1641. #else
  1642. static inline void wmi_d0wow_attach_tlv(struct wmi_unified *wmi_handle)
  1643. {
  1644. }
  1645. #endif
  1646. #ifdef FEATURE_WLAN_RA_FILTERING
  1647. void wmi_ra_filtering_attach_tlv(struct wmi_unified *wmi_handle);
  1648. #else
  1649. static inline
  1650. void wmi_ra_filtering_attach_tlv(struct wmi_unified *wmi_handle)
  1651. {
  1652. }
  1653. #endif
  1654. #ifdef FEATURE_WLAN_LPHB
  1655. void wmi_lphb_attach_tlv(struct wmi_unified *wmi_handle);
  1656. #else
  1657. static inline void wmi_lphb_attach_tlv(struct wmi_unified *wmi_handle)
  1658. {
  1659. }
  1660. #endif
  1661. #ifdef WLAN_FEATURE_PACKET_FILTERING
  1662. void wmi_packet_filtering_attach_tlv(struct wmi_unified *wmi_handle);
  1663. #else
  1664. static inline
  1665. void wmi_packet_filtering_attach_tlv(struct wmi_unified *wmi_handle)
  1666. {
  1667. }
  1668. #endif
  1669. #ifdef WLAN_FEATURE_EXTWOW_SUPPORT
  1670. void wmi_extwow_attach_tlv(struct wmi_unified *wmi_handle);
  1671. #else
  1672. static inline void wmi_extwow_attach_tlv(struct wmi_unified *wmi_handle)
  1673. {
  1674. }
  1675. #endif
  1676. #ifdef WLAN_POWER_MANAGEMENT_OFFLOAD
  1677. void wmi_pmo_attach_tlv(struct wmi_unified *wmi_handle);
  1678. #else
  1679. static inline void wmi_pmo_attach_tlv(struct wmi_unified *wmi_handle)
  1680. {
  1681. }
  1682. #endif
  1683. #ifdef CONVERGED_TDLS_ENABLE
  1684. void wmi_tdls_attach_tlv(struct wmi_unified *wmi_handle);
  1685. #else
  1686. static inline void wmi_tdls_attach_tlv(struct wmi_unified *wmi_handle)
  1687. {
  1688. }
  1689. #endif
  1690. #ifdef WLAN_FEATURE_DISA
  1691. void wmi_disa_attach_tlv(struct wmi_unified *wmi_handle);
  1692. #else
  1693. static inline void wmi_disa_attach_tlv(struct wmi_unified *wmi_handle)
  1694. {
  1695. }
  1696. #endif
  1697. #ifdef WLAN_POLICY_MGR_ENABLE
  1698. void wmi_policy_mgr_attach_tlv(struct wmi_unified *wmi_handle);
  1699. #else
  1700. static inline
  1701. void wmi_policy_mgr_attach_tlv(struct wmi_unified *wmi_handle)
  1702. {
  1703. }
  1704. #endif
  1705. #ifdef WMI_STA_SUPPORT
  1706. void wmi_sta_attach_tlv(struct wmi_unified *wmi_handle);
  1707. #else
  1708. static inline void wmi_sta_attach_tlv(struct wmi_unified *wmi_handle)
  1709. {
  1710. }
  1711. #endif
  1712. /**
  1713. * wmi_align() - provides word aligned parameter
  1714. * @param: parameter to be aligned
  1715. *
  1716. * Return: word aligned parameter
  1717. */
  1718. static inline uint32_t wmi_align(uint32_t param)
  1719. {
  1720. return roundup(param, sizeof(uint32_t));
  1721. }
  1722. /**
  1723. * wmi_vdev_map_to_vdev_id() - Provides vdev id corresponding to idx
  1724. * from vdev map
  1725. * @vdev_map: Bitmask containing information of active vdev ids
  1726. * @idx: Index referring to the i'th bit set from LSB in vdev map
  1727. *
  1728. * This API returns the vdev id for the i'th bit set from LSB in vdev map.
  1729. * Index runs through 1 from maximum number of vdevs set in the vdev map
  1730. *
  1731. * Return: vdev id of the vdev object
  1732. */
  1733. static inline uint32_t wmi_vdev_map_to_vdev_id(uint32_t vdev_map,
  1734. uint32_t idx)
  1735. {
  1736. uint32_t vdev_count = 0, vdev_set = 0, vdev_id = WLAN_INVALID_VDEV_ID;
  1737. while (vdev_map) {
  1738. vdev_set += (vdev_map & 0x1);
  1739. if (vdev_set == (idx+1)) {
  1740. vdev_id = vdev_count;
  1741. break;
  1742. }
  1743. vdev_map >>= 1;
  1744. vdev_count++;
  1745. }
  1746. return vdev_id;
  1747. }
  1748. /**
  1749. * wmi_vdev_map_to_num_vdevs() - Provides number of vdevs active based on the
  1750. * vdev map received from FW
  1751. * @vdev_map: Bitmask containing information of active vdev ids
  1752. *
  1753. * Return: Number of vdevs set in the vdev bit mask
  1754. */
  1755. static inline uint32_t wmi_vdev_map_to_num_vdevs(uint32_t vdev_map)
  1756. {
  1757. uint32_t num_vdevs = 0;
  1758. while (vdev_map) {
  1759. num_vdevs += (vdev_map & 0x1);
  1760. vdev_map >>= 1;
  1761. }
  1762. return num_vdevs;
  1763. }
  1764. #ifdef WMI_EXT_DBG
  1765. /**
  1766. * wmi_ext_dbg_msg_get() - Allocate memory for wmi debug msg
  1767. *
  1768. * @buflen: Length of WMI message buffer
  1769. *
  1770. * Return: Allocated msg buffer else NULL on failure.
  1771. */
  1772. static inline struct wmi_ext_dbg_msg *wmi_ext_dbg_msg_get(uint32_t buflen)
  1773. {
  1774. return qdf_mem_malloc(sizeof(struct wmi_ext_dbg_msg) + buflen);
  1775. }
  1776. /**
  1777. * wmi_ext_dbg_msg_put() - Free wmi debug msg buffer
  1778. *
  1779. * @msg: wmi message buffer to be freed
  1780. *
  1781. * Return: none
  1782. */
  1783. static inline void wmi_ext_dbg_msg_put(struct wmi_ext_dbg_msg *msg)
  1784. {
  1785. qdf_mem_free(msg);
  1786. }
  1787. #else
  1788. static inline QDF_STATUS wmi_ext_dbg_msg_cmd_record(struct wmi_unified
  1789. *wmi_handle,
  1790. uint8_t *buf, uint32_t len)
  1791. {
  1792. return QDF_STATUS_SUCCESS;
  1793. }
  1794. static inline QDF_STATUS wmi_ext_dbg_msg_event_record(struct wmi_unified
  1795. *wmi_handle,
  1796. uint8_t *buf,
  1797. uint32_t len)
  1798. {
  1799. return QDF_STATUS_SUCCESS;
  1800. }
  1801. static inline QDF_STATUS wmi_ext_dbgfs_init(struct wmi_unified *wmi_handle)
  1802. {
  1803. return QDF_STATUS_SUCCESS;
  1804. }
  1805. static inline QDF_STATUS wmi_ext_dbgfs_deinit(struct wmi_unified *wmi_handle)
  1806. {
  1807. return QDF_STATUS_SUCCESS;
  1808. }
  1809. #endif /*WMI_EXT_DBG */
  1810. #endif