wmi_unified_api.h 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336
  1. /*
  2. * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
  3. *
  4. * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  5. *
  6. *
  7. * Permission to use, copy, modify, and/or distribute this software for
  8. * any purpose with or without fee is hereby granted, provided that the
  9. * above copyright notice and this permission notice appear in all
  10. * copies.
  11. *
  12. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  13. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  14. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  15. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  16. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  17. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  18. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  19. * PERFORMANCE OF THIS SOFTWARE.
  20. */
  21. /*
  22. * This file was originally distributed by Qualcomm Atheros, Inc.
  23. * under proprietary terms before Copyright ownership was assigned
  24. * to the Linux Foundation.
  25. */
  26. /*
  27. * This file contains the API definitions for the Unified Wireless Module
  28. * Interface (WMI).
  29. */
  30. #ifndef _WMI_UNIFIED_API_H_
  31. #define _WMI_UNIFIED_API_H_
  32. #include <osdep.h>
  33. #include "a_types.h"
  34. #include "ol_defines.h"
  35. #ifdef CONFIG_MCL
  36. #include "wmi.h"
  37. #endif
  38. #include "htc_api.h"
  39. #include "wmi_unified_param.h"
  40. typedef qdf_nbuf_t wmi_buf_t;
  41. #define wmi_buf_data(_buf) qdf_nbuf_data(_buf)
  42. #define WMI_LOGD(args ...) \
  43. QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_DEBUG, ## args)
  44. #define WMI_LOGI(args ...) \
  45. QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_INFO, ## args)
  46. #define WMI_LOGW(args ...) \
  47. QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_WARN, ## args)
  48. #define WMI_LOGE(args ...) \
  49. QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_ERROR, ## args)
  50. #define WMI_LOGP(args ...) \
  51. QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_FATAL, ## args)
  52. #define WMI_DEBUG_ALWAYS
  53. #ifdef WMI_DEBUG_ALWAYS
  54. #define WMI_LOGA(args ...) \
  55. QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_FATAL, ## args)
  56. #else
  57. #define WMI_LOGA(args ...)
  58. #endif
  59. /**
  60. * struct wmi_ops - service callbacks to upper layer
  61. * @service_ready_cbk: service ready callback
  62. * @service_ready_ext_cbk: service ready ext callback
  63. * @ready_cbk: ready calback
  64. * @wma_process_fw_event_handler_cbk: generic event handler callback
  65. */
  66. struct wmi_rx_ops {
  67. int (*wma_process_fw_event_handler_cbk)(void *ctx,
  68. void *ev, uint8_t rx_ctx);
  69. };
  70. /**
  71. * enum wmi_target_type - type of supported wmi command
  72. * @WMI_TLV_TARGET: tlv based target
  73. * @WMI_NON_TLV_TARGET: non-tlv based target
  74. *
  75. */
  76. enum wmi_target_type {
  77. WMI_TLV_TARGET,
  78. WMI_NON_TLV_TARGET
  79. };
  80. /**
  81. * enum wmi_rx_exec_ctx - wmi rx execution context
  82. * @WMI_RX_WORK_CTX: work queue context execution provided by WMI layer
  83. * @WMI_RX_UMAC_CTX: execution context provided by umac layer
  84. *
  85. */
  86. enum wmi_rx_exec_ctx {
  87. WMI_RX_WORK_CTX,
  88. WMI_RX_UMAC_CTX
  89. };
  90. /**
  91. * attach for unified WMI
  92. *
  93. * @param scn_handle : handle to SCN.
  94. * @param target_type : type of supported wmi command
  95. * @param use_cookie : flag to indicate cookie based allocation
  96. * @param ops : handle to wmi ops
  97. * @return opaque handle.
  98. */
  99. void *wmi_unified_attach(void *scn_handle,
  100. osdev_t osdev, enum wmi_target_type target_type,
  101. bool use_cookie, struct wmi_rx_ops *ops);
  102. /**
  103. * wmi_mgmt_cmd_record() - Wrapper function for mgmt command logging macro
  104. *
  105. * @wmi_handle: wmi handle
  106. * @cmd: mgmt command
  107. * @header: pointer to 802.11 header
  108. * @vdev_id: vdev id
  109. * @chanfreq: channel frequency
  110. *
  111. * Return: none
  112. */
  113. void wmi_mgmt_cmd_record(wmi_unified_t wmi_handle, uint32_t cmd,
  114. void *header, uint32_t vdev_id, uint32_t chanfreq);
  115. /**
  116. * detach for unified WMI
  117. *
  118. * @param wmi_handle : handle to WMI.
  119. * @return void.
  120. */
  121. void wmi_unified_detach(struct wmi_unified *wmi_handle);
  122. void
  123. wmi_unified_remove_work(struct wmi_unified *wmi_handle);
  124. /**
  125. * generic function to allocate WMI buffer
  126. *
  127. * @param wmi_handle : handle to WMI.
  128. * @param len : length of the buffer
  129. * @return wmi_buf_t.
  130. */
  131. #ifdef MEMORY_DEBUG
  132. #define wmi_buf_alloc(h, l) wmi_buf_alloc_debug(h, l, __FILE__, __LINE__)
  133. wmi_buf_t
  134. wmi_buf_alloc_debug(wmi_unified_t wmi_handle, uint16_t len,
  135. uint8_t *file_name, uint32_t line_num);
  136. #else
  137. wmi_buf_t wmi_buf_alloc(wmi_unified_t wmi_handle, uint16_t len);
  138. #endif
  139. /**
  140. * generic function frees WMI net buffer
  141. *
  142. * @param net_buf : Pointer ot net_buf to be freed
  143. */
  144. void wmi_buf_free(wmi_buf_t net_buf);
  145. /**
  146. * generic function to send unified WMI command
  147. *
  148. * @param wmi_handle : handle to WMI.
  149. * @param buf : wmi command buffer
  150. * @param buflen : wmi command buffer length
  151. * @param cmd_id : WMI cmd id
  152. * @return 0 on success and -ve on failure.
  153. */
  154. QDF_STATUS
  155. wmi_unified_cmd_send(wmi_unified_t wmi_handle, wmi_buf_t buf, uint32_t buflen,
  156. uint32_t cmd_id);
  157. /**
  158. * wmi_unified_register_event_handler() - WMI event handler
  159. * registration function
  160. *
  161. * @wmi_handle: handle to WMI.
  162. * @event_id: WMI event ID
  163. * @handler_func: Event handler call back function
  164. * @rx_ctx: rx event processing context
  165. *
  166. * @return 0 on success and -ve on failure.
  167. */
  168. int
  169. wmi_unified_register_event_handler(wmi_unified_t wmi_handle,
  170. uint32_t event_id,
  171. wmi_unified_event_handler handler_func,
  172. uint8_t rx_ctx);
  173. /**
  174. * WMI event handler unregister function
  175. *
  176. * @param wmi_handle : handle to WMI.
  177. * @param event_id : WMI event ID
  178. * @return 0 on success and -ve on failure.
  179. */
  180. int
  181. wmi_unified_unregister_event_handler(wmi_unified_t wmi_handle,
  182. uint32_t event_id);
  183. /**
  184. * request wmi to connet its htc service.
  185. * @param wmi_handle : handle to WMI.
  186. * @param htc_handle : handle to HTC.
  187. * @return void
  188. */
  189. int
  190. wmi_unified_connect_htc_service(struct wmi_unified *wmi_handle,
  191. void *htc_handle);
  192. /*
  193. * WMI API to verify the host has enough credits to suspend
  194. * @param wmi_handle : handle to WMI.
  195. */
  196. int wmi_is_suspend_ready(wmi_unified_t wmi_handle);
  197. /**
  198. * WMI API to get updated host_credits
  199. * @param wmi_handle : handle to WMI.
  200. */
  201. int wmi_get_host_credits(wmi_unified_t wmi_handle);
  202. /**
  203. * WMI API to get WMI Pending Commands in the HTC queue
  204. * @param wmi_handle : handle to WMI.
  205. */
  206. int wmi_get_pending_cmds(wmi_unified_t wmi_handle);
  207. /**
  208. * WMI API to set target suspend state
  209. * @param wmi_handle : handle to WMI.
  210. * @param val : suspend state boolean
  211. */
  212. void wmi_set_target_suspend(wmi_unified_t wmi_handle, bool val);
  213. /**
  214. * generic function to block unified WMI command
  215. * @param wmi_handle : handle to WMI.
  216. * @return 0 on success and -ve on failure.
  217. */
  218. int
  219. wmi_stop(wmi_unified_t wmi_handle);
  220. /**
  221. * API to flush all the previous packets associated with the wmi endpoint
  222. *
  223. * @param wmi_handle : handle to WMI.
  224. */
  225. void
  226. wmi_flush_endpoint(wmi_unified_t wmi_handle);
  227. /**
  228. * API to handle wmi rx event after UMAC has taken care of execution
  229. * context
  230. *
  231. * @param wmi_handle : handle to WMI.
  232. * @param evt_buf : wmi event buffer
  233. */
  234. void __wmi_control_rx(struct wmi_unified *wmi_handle, wmi_buf_t evt_buf);
  235. #ifdef FEATURE_RUNTIME_PM
  236. void
  237. wmi_set_runtime_pm_inprogress(wmi_unified_t wmi_handle, bool val);
  238. bool wmi_get_runtime_pm_inprogress(wmi_unified_t wmi_handle);
  239. #else
  240. static inline void
  241. wmi_set_runtime_pm_inprogress(wmi_unified_t wmi_handle, bool val)
  242. {
  243. return;
  244. }
  245. static inline bool wmi_get_runtime_pm_inprogress(wmi_unified_t wmi_handle)
  246. {
  247. return false;
  248. }
  249. #endif
  250. /**
  251. * UMAC Callback to process fw event.
  252. * @param wmi_handle : handle to WMI.
  253. * @param evt_buf : wmi event buffer
  254. */
  255. void wmi_process_fw_event(struct wmi_unified *wmi_handle, wmi_buf_t evt_buf);
  256. uint16_t wmi_get_max_msg_len(wmi_unified_t wmi_handle);
  257. QDF_STATUS wmi_unified_vdev_create_send(void *wmi_hdl,
  258. uint8_t macaddr[IEEE80211_ADDR_LEN],
  259. struct vdev_create_params *param);
  260. QDF_STATUS wmi_unified_vdev_delete_send(void *wmi_hdl,
  261. uint8_t if_id);
  262. QDF_STATUS wmi_unified_vdev_restart_send(void *wmi_hdl,
  263. uint8_t macaddr[IEEE80211_ADDR_LEN],
  264. struct vdev_start_params *param);
  265. QDF_STATUS wmi_unified_vdev_stop_send(void *wmi_hdl,
  266. uint8_t vdev_id);
  267. QDF_STATUS wmi_unified_vdev_up_send(void *wmi_hdl,
  268. uint8_t bssid[IEEE80211_ADDR_LEN],
  269. struct vdev_up_params *params);
  270. QDF_STATUS wmi_unified_vdev_down_send(void *wmi_hdl,
  271. uint8_t vdev_id);
  272. QDF_STATUS wmi_unified_vdev_start_send(void *wmi_hdl,
  273. struct vdev_start_params *req);
  274. QDF_STATUS wmi_unified_hidden_ssid_vdev_restart_send(void *wmi_hdl,
  275. struct hidden_ssid_vdev_restart_params *restart_params);
  276. QDF_STATUS wmi_unified_vdev_set_param_send(void *wmi_hdl,
  277. struct vdev_set_params *param);
  278. QDF_STATUS wmi_unified_peer_delete_send(void *wmi_hdl,
  279. uint8_t
  280. peer_addr[IEEE80211_ADDR_LEN],
  281. uint8_t vdev_id);
  282. QDF_STATUS wmi_unified_peer_flush_tids_send(void *wmi_hdl,
  283. uint8_t peer_addr[IEEE80211_ADDR_LEN],
  284. struct peer_flush_params *param);
  285. QDF_STATUS wmi_set_peer_param_send(void *wmi_hdl,
  286. uint8_t peer_addr[IEEE80211_ADDR_LEN],
  287. struct peer_set_params *param);
  288. QDF_STATUS wmi_unified_peer_create_send(void *wmi_hdl,
  289. struct peer_create_params *param);
  290. QDF_STATUS wmi_unified_stats_request_send(void *wmi_hdl,
  291. uint8_t macaddr[IEEE80211_ADDR_LEN],
  292. struct stats_request_params *param);
  293. QDF_STATUS wmi_unified_green_ap_ps_send(void *wmi_hdl,
  294. uint32_t value, uint8_t mac_id);
  295. QDF_STATUS wmi_unified_wow_enable_send(void *wmi_hdl,
  296. struct wow_cmd_params *param,
  297. uint8_t mac_id);
  298. QDF_STATUS wmi_unified_wow_wakeup_send(void *wmi_hdl);
  299. QDF_STATUS wmi_unified_wow_add_wakeup_event_send(void *wmi_hdl,
  300. struct wow_add_wakeup_params *param);
  301. QDF_STATUS wmi_unified_wow_add_wakeup_pattern_send(void *wmi_hdl,
  302. struct wow_add_wakeup_pattern_params *param);
  303. QDF_STATUS wmi_unified_wow_remove_wakeup_pattern_send(void *wmi_hdl,
  304. struct wow_remove_wakeup_pattern_params *param);
  305. #ifndef CONFIG_MCL
  306. QDF_STATUS wmi_unified_packet_log_enable_send(void *wmi_hdl,
  307. WMI_HOST_PKTLOG_EVENT PKTLOG_EVENT);
  308. #else
  309. QDF_STATUS wmi_unified_packet_log_enable_send(void *wmi_hdl,
  310. uint8_t macaddr[IEEE80211_ADDR_LEN],
  311. struct packet_enable_params *param);
  312. #endif
  313. QDF_STATUS wmi_unified_packet_log_disable_send(void *wmi_hdl);
  314. QDF_STATUS wmi_unified_suspend_send(void *wmi_hdl,
  315. struct suspend_params *param,
  316. uint8_t mac_id);
  317. QDF_STATUS wmi_unified_resume_send(void *wmi_hdl,
  318. uint8_t mac_id);
  319. QDF_STATUS
  320. wmi_unified_pdev_param_send(void *wmi_hdl,
  321. struct pdev_params *param,
  322. uint8_t mac_id);
  323. QDF_STATUS wmi_unified_beacon_tmpl_send_cmd(void *wmi_hdl,
  324. struct beacon_tmpl_params *param);
  325. QDF_STATUS wmi_unified_beacon_send_cmd(void *wmi_hdl,
  326. struct beacon_params *param);
  327. QDF_STATUS wmi_unified_peer_assoc_send(void *wmi_hdl,
  328. struct peer_assoc_params *param);
  329. QDF_STATUS wmi_unified_sta_ps_cmd_send(void *wmi_hdl,
  330. struct sta_ps_params *param);
  331. QDF_STATUS wmi_unified_ap_ps_cmd_send(void *wmi_hdl,
  332. uint8_t macaddr[IEEE80211_ADDR_LEN],
  333. struct ap_ps_params *param);
  334. QDF_STATUS wmi_unified_scan_start_cmd_send(void *wmi_hdl,
  335. struct scan_start_params *param);
  336. QDF_STATUS wmi_unified_scan_stop_cmd_send(void *wmi_hdl,
  337. struct scan_stop_params *param);
  338. QDF_STATUS wmi_unified_scan_chan_list_cmd_send(void *wmi_hdl,
  339. struct scan_chan_list_params *param);
  340. QDF_STATUS wmi_crash_inject(void *wmi_hdl,
  341. struct crash_inject *param);
  342. QDF_STATUS wmi_unified_pdev_utf_cmd_send(void *wmi_hdl,
  343. struct pdev_utf_params *param,
  344. uint8_t mac_id);
  345. QDF_STATUS wmi_unified_dbglog_cmd_send(void *wmi_hdl,
  346. struct dbglog_params *param);
  347. QDF_STATUS wmi_mgmt_unified_cmd_send(void *wmi_hdl,
  348. struct wmi_mgmt_params *param);
  349. QDF_STATUS wmi_unified_modem_power_state(void *wmi_hdl,
  350. uint32_t param_value);
  351. QDF_STATUS wmi_unified_set_sta_ps_mode(void *wmi_hdl,
  352. uint32_t vdev_id, uint8_t val);
  353. QDF_STATUS
  354. wmi_unified_set_sta_uapsd_auto_trig_cmd(void *wmi_hdl,
  355. struct sta_uapsd_trig_params *param);
  356. QDF_STATUS wmi_unified_get_temperature(void *wmi_hdl);
  357. QDF_STATUS wmi_unified_set_p2pgo_oppps_req(void *wmi_hdl,
  358. struct p2p_ps_params *oppps);
  359. QDF_STATUS wmi_unified_set_p2pgo_noa_req_cmd(void *wmi_hdl,
  360. struct p2p_ps_params *noa);
  361. QDF_STATUS wmi_unified_set_smps_params(void *wmi_hdl, uint8_t vdev_id,
  362. int value);
  363. QDF_STATUS wmi_unified_set_mimops(void *wmi_hdl, uint8_t vdev_id, int value);
  364. QDF_STATUS wmi_unified_ocb_set_utc_time(void *wmi_hdl,
  365. struct ocb_utc_param *utc);
  366. QDF_STATUS wmi_unified_ocb_start_timing_advert(void *wmi_hdl,
  367. struct ocb_timing_advert_param *timing_advert);
  368. QDF_STATUS wmi_unified_ocb_stop_timing_advert(void *wmi_hdl,
  369. struct ocb_timing_advert_param *timing_advert);
  370. QDF_STATUS wmi_unified_ocb_set_config(void *wmi_hdl,
  371. struct ocb_config_param *config, uint32_t *ch_mhz);
  372. QDF_STATUS wmi_unified_ocb_get_tsf_timer(void *wmi_hdl,
  373. uint8_t vdev_id);
  374. QDF_STATUS wmi_unified_lro_config_cmd(void *wmi_hdl,
  375. struct wmi_lro_config_cmd_t *wmi_lro_cmd);
  376. QDF_STATUS wmi_unified_set_thermal_mgmt_cmd(void *wmi_hdl,
  377. struct thermal_cmd_params *thermal_info);
  378. QDF_STATUS wmi_unified_peer_rate_report_cmd(void *wmi_hdl,
  379. struct wmi_peer_rate_report_params *rate_report_params);
  380. QDF_STATUS wmi_unified_set_mcc_channel_time_quota_cmd
  381. (void *wmi_hdl,
  382. uint32_t adapter_1_chan_freq,
  383. uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq);
  384. QDF_STATUS wmi_unified_set_mcc_channel_time_latency_cmd
  385. (void *wmi_hdl,
  386. uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency);
  387. QDF_STATUS wmi_unified_set_enable_disable_mcc_adaptive_scheduler_cmd(
  388. void *wmi_hdl, uint32_t mcc_adaptive_scheduler,
  389. uint32_t pdev_id);
  390. #ifdef CONFIG_MCL
  391. QDF_STATUS wmi_unified_bcn_buf_ll_cmd(void *wmi_hdl,
  392. wmi_bcn_send_from_host_cmd_fixed_param *param);
  393. #endif
  394. QDF_STATUS wmi_unified_set_sta_sa_query_param_cmd(void *wmi_hdl,
  395. uint8_t vdev_id, uint32_t max_retries,
  396. uint32_t retry_interval);
  397. QDF_STATUS wmi_unified_set_sta_keep_alive_cmd(void *wmi_hdl,
  398. struct sta_params *params);
  399. QDF_STATUS wmi_unified_vdev_set_gtx_cfg_cmd(void *wmi_hdl, uint32_t if_id,
  400. struct wmi_gtx_config *gtx_info);
  401. #ifdef CONFIG_MCL
  402. QDF_STATUS wmi_unified_process_update_edca_param(void *wmi_hdl,
  403. uint8_t vdev_id,
  404. wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]);
  405. #endif
  406. QDF_STATUS wmi_unified_probe_rsp_tmpl_send_cmd(void *wmi_hdl,
  407. uint8_t vdev_id,
  408. struct wmi_probe_resp_params *probe_rsp_info,
  409. uint8_t *frm);
  410. QDF_STATUS wmi_unified_setup_install_key_cmd(void *wmi_hdl,
  411. struct set_key_params *key_params);
  412. QDF_STATUS wmi_unified_encrypt_decrypt_send_cmd(void *wmi_hdl,
  413. struct encrypt_decrypt_req_params *params);
  414. QDF_STATUS wmi_unified_p2p_go_set_beacon_ie_cmd(void *wmi_hdl,
  415. A_UINT32 vdev_id, uint8_t *p2p_ie);
  416. QDF_STATUS wmi_unified_set_gateway_params_cmd(void *wmi_hdl,
  417. struct gateway_update_req_param *req);
  418. QDF_STATUS wmi_unified_set_rssi_monitoring_cmd(void *wmi_hdl,
  419. struct rssi_monitor_param *req);
  420. QDF_STATUS wmi_unified_scan_probe_setoui_cmd(void *wmi_hdl,
  421. struct scan_mac_oui *psetoui);
  422. QDF_STATUS wmi_unified_reset_passpoint_network_list_cmd(void *wmi_hdl,
  423. struct wifi_passpoint_req_param *req);
  424. QDF_STATUS wmi_unified_set_passpoint_network_list_cmd(void *wmi_hdl,
  425. struct wifi_passpoint_req_param *req);
  426. #ifdef CONFIG_MCL
  427. QDF_STATUS wmi_unified_roam_scan_offload_mode_cmd(void *wmi_hdl,
  428. wmi_start_scan_cmd_fixed_param *scan_cmd_fp,
  429. struct roam_offload_scan_params *roam_req);
  430. #endif
  431. QDF_STATUS wmi_unified_roam_scan_offload_rssi_thresh_cmd(void *wmi_hdl,
  432. struct roam_offload_scan_rssi_params *roam_req);
  433. QDF_STATUS wmi_unified_roam_scan_filter_cmd(void *wmi_hdl,
  434. struct roam_scan_filter_params *roam_req);
  435. QDF_STATUS wmi_unified_set_epno_network_list_cmd(void *wmi_hdl,
  436. struct wifi_enhanched_pno_params *req);
  437. QDF_STATUS wmi_unified_ipa_offload_control_cmd(void *wmi_hdl,
  438. struct ipa_offload_control_params *ipa_offload);
  439. QDF_STATUS wmi_unified_extscan_get_capabilities_cmd(void *wmi_hdl,
  440. struct extscan_capabilities_params *pgetcapab);
  441. QDF_STATUS wmi_unified_extscan_get_cached_results_cmd(void *wmi_hdl,
  442. struct extscan_cached_result_params *pcached_results);
  443. QDF_STATUS wmi_unified_extscan_stop_change_monitor_cmd(void *wmi_hdl,
  444. struct extscan_capabilities_reset_params *reset_req);
  445. QDF_STATUS wmi_unified_extscan_start_change_monitor_cmd(void *wmi_hdl,
  446. struct extscan_set_sig_changereq_params *
  447. psigchange);
  448. QDF_STATUS wmi_unified_extscan_stop_hotlist_monitor_cmd(void *wmi_hdl,
  449. struct extscan_bssid_hotlist_reset_params *photlist_reset);
  450. QDF_STATUS wmi_unified_stop_extscan_cmd(void *wmi_hdl,
  451. struct extscan_stop_req_params *pstopcmd);
  452. QDF_STATUS wmi_unified_start_extscan_cmd(void *wmi_hdl,
  453. struct wifi_scan_cmd_req_params *pstart);
  454. QDF_STATUS wmi_unified_plm_stop_cmd(void *wmi_hdl,
  455. const struct plm_req_params *plm);
  456. QDF_STATUS wmi_unified_plm_start_cmd(void *wmi_hdl,
  457. const struct plm_req_params *plm,
  458. uint32_t *gchannel_list);
  459. QDF_STATUS wmi_unified_pno_stop_cmd(void *wmi_hdl, uint8_t vdev_id);
  460. #ifdef FEATURE_WLAN_SCAN_PNO
  461. QDF_STATUS wmi_unified_pno_start_cmd(void *wmi_hdl,
  462. struct pno_scan_req_params *pno,
  463. uint32_t *gchannel_freq_list);
  464. #endif
  465. QDF_STATUS wmi_unified_set_ric_req_cmd(void *wmi_hdl, void *msg,
  466. uint8_t is_add_ts);
  467. QDF_STATUS wmi_unified_process_ll_stats_clear_cmd
  468. (void *wmi_hdl, const struct ll_stats_clear_params *clear_req,
  469. uint8_t addr[IEEE80211_ADDR_LEN]);
  470. QDF_STATUS wmi_unified_process_ll_stats_set_cmd
  471. (void *wmi_hdl, const struct ll_stats_set_params *set_req);
  472. QDF_STATUS wmi_unified_process_ll_stats_get_cmd
  473. (void *wmi_hdl, const struct ll_stats_get_params *get_req,
  474. uint8_t addr[IEEE80211_ADDR_LEN]);
  475. QDF_STATUS wmi_unified_get_stats_cmd(void *wmi_hdl,
  476. struct pe_stats_req *get_stats_param,
  477. uint8_t addr[IEEE80211_ADDR_LEN]);
  478. QDF_STATUS wmi_unified_snr_request_cmd(void *wmi_hdl);
  479. QDF_STATUS wmi_unified_snr_cmd(void *wmi_hdl, uint8_t vdev_id);
  480. QDF_STATUS wmi_unified_link_status_req_cmd(void *wmi_hdl,
  481. struct link_status_params *link_status);
  482. #ifdef CONFIG_MCL
  483. QDF_STATUS wmi_unified_lphb_config_hbenable_cmd(void *wmi_hdl,
  484. wmi_hb_set_enable_cmd_fixed_param *params);
  485. QDF_STATUS wmi_unified_lphb_config_tcp_params_cmd(void *wmi_hdl,
  486. wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req);
  487. QDF_STATUS wmi_unified_lphb_config_tcp_pkt_filter_cmd(void *wmi_hdl,
  488. wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp);
  489. QDF_STATUS wmi_unified_lphb_config_udp_params_cmd(void *wmi_hdl,
  490. wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req);
  491. QDF_STATUS wmi_unified_lphb_config_udp_pkt_filter_cmd(void *wmi_hdl,
  492. wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req);
  493. QDF_STATUS wmi_unified_process_dhcp_ind(void *wmi_hdl,
  494. wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind);
  495. QDF_STATUS wmi_unified_get_link_speed_cmd(void *wmi_hdl,
  496. wmi_mac_addr peer_macaddr);
  497. QDF_STATUS wmi_unified_egap_conf_params_cmd(void *wmi_hdl,
  498. wmi_ap_ps_egap_param_cmd_fixed_param *egap_params);
  499. #endif
  500. QDF_STATUS wmi_unified_fw_profiling_data_cmd(void *wmi_hdl,
  501. uint32_t cmd, uint32_t value1, uint32_t value2);
  502. QDF_STATUS wmi_unified_wow_sta_ra_filter_cmd(void *wmi_hdl,
  503. uint8_t vdev_id, uint8_t default_pattern,
  504. uint16_t rate_limit_interval);
  505. QDF_STATUS wmi_unified_nat_keepalive_en_cmd(void *wmi_hdl, uint8_t vdev_id);
  506. QDF_STATUS wmi_unified_csa_offload_enable(void *wmi_hdl, uint8_t vdev_id);
  507. QDF_STATUS wmi_unified_start_oem_data_cmd(void *wmi_hdl,
  508. uint32_t data_len,
  509. uint8_t *data);
  510. QDF_STATUS wmi_unified_dfs_phyerr_filter_offload_en_cmd(void *wmi_hdl,
  511. bool dfs_phyerr_filter_offload);
  512. #ifdef CONFIG_MCL
  513. QDF_STATUS wmi_unified_pktlog_wmi_send_cmd(void *wmi_hdl,
  514. WMI_PKTLOG_EVENT pktlog_event,
  515. uint32_t cmd_id,
  516. uint8_t user_triggered);
  517. #endif
  518. QDF_STATUS wmi_unified_add_wow_wakeup_event_cmd(void *wmi_hdl,
  519. uint32_t vdev_id,
  520. uint32_t bitmap,
  521. bool enable);
  522. QDF_STATUS wmi_unified_wow_patterns_to_fw_cmd(void *wmi_hdl,
  523. uint8_t vdev_id, uint8_t ptrn_id,
  524. const uint8_t *ptrn, uint8_t ptrn_len,
  525. uint8_t ptrn_offset, const uint8_t *mask,
  526. uint8_t mask_len, bool user,
  527. uint8_t default_patterns);
  528. QDF_STATUS wmi_unified_wow_delete_pattern_cmd(void *wmi_hdl, uint8_t ptrn_id,
  529. uint8_t vdev_id);
  530. QDF_STATUS wmi_unified_host_wakeup_ind_to_fw_cmd(void *wmi_hdl);
  531. QDF_STATUS wmi_unified_del_ts_cmd(void *wmi_hdl, uint8_t vdev_id,
  532. uint8_t ac);
  533. QDF_STATUS wmi_unified_aggr_qos_cmd(void *wmi_hdl,
  534. struct aggr_add_ts_param *aggr_qos_rsp_msg);
  535. QDF_STATUS wmi_unified_add_ts_cmd(void *wmi_hdl,
  536. struct add_ts_param *msg);
  537. QDF_STATUS wmi_unified_enable_disable_packet_filter_cmd(void *wmi_hdl,
  538. uint8_t vdev_id, bool enable);
  539. QDF_STATUS wmi_unified_config_packet_filter_cmd(void *wmi_hdl,
  540. uint8_t vdev_id, struct rcv_pkt_filter_config *rcv_filter_param,
  541. uint8_t filter_id, bool enable);
  542. QDF_STATUS wmi_unified_add_clear_mcbc_filter_cmd(void *wmi_hdl,
  543. uint8_t vdev_id,
  544. struct qdf_mac_addr multicast_addr,
  545. bool clearList);
  546. QDF_STATUS wmi_unified_send_gtk_offload_cmd(void *wmi_hdl, uint8_t vdev_id,
  547. struct gtk_offload_params *params,
  548. bool enable_offload,
  549. uint32_t gtk_offload_opcode);
  550. QDF_STATUS wmi_unified_process_gtk_offload_getinfo_cmd(void *wmi_hdl,
  551. uint8_t vdev_id,
  552. uint64_t offload_req_opcode);
  553. QDF_STATUS wmi_unified_process_add_periodic_tx_ptrn_cmd(void *wmi_hdl,
  554. struct periodic_tx_pattern *
  555. pAddPeriodicTxPtrnParams,
  556. uint8_t vdev_id);
  557. QDF_STATUS wmi_unified_process_del_periodic_tx_ptrn_cmd(void *wmi_hdl,
  558. uint8_t vdev_id,
  559. uint8_t pattern_id);
  560. QDF_STATUS wmi_unified_stats_ext_req_cmd(void *wmi_hdl,
  561. struct stats_ext_params *preq);
  562. QDF_STATUS wmi_unified_enable_ext_wow_cmd(void *wmi_hdl,
  563. struct ext_wow_params *params);
  564. QDF_STATUS wmi_unified_set_app_type2_params_in_fw_cmd(void *wmi_hdl,
  565. struct app_type2_params *appType2Params);
  566. QDF_STATUS wmi_unified_set_auto_shutdown_timer_cmd(void *wmi_hdl,
  567. uint32_t timer_val);
  568. QDF_STATUS wmi_unified_nan_req_cmd(void *wmi_hdl,
  569. struct nan_req_params *nan_req);
  570. QDF_STATUS wmi_unified_process_dhcpserver_offload_cmd(void *wmi_hdl,
  571. struct dhcp_offload_info_params *pDhcpSrvOffloadInfo);
  572. QDF_STATUS wmi_unified_process_ch_avoid_update_cmd(void *wmi_hdl);
  573. QDF_STATUS wmi_unified_send_regdomain_info_to_fw_cmd(void *wmi_hdl,
  574. uint32_t reg_dmn, uint16_t regdmn2G,
  575. uint16_t regdmn5G, int8_t ctl2G,
  576. int8_t ctl5G);
  577. QDF_STATUS wmi_unified_set_tdls_offchan_mode_cmd(void *wmi_hdl,
  578. struct tdls_channel_switch_params *chan_switch_params);
  579. QDF_STATUS wmi_unified_update_fw_tdls_state_cmd(void *wmi_hdl,
  580. void *tdls_param, uint8_t tdls_state);
  581. QDF_STATUS wmi_unified_update_tdls_peer_state_cmd(void *wmi_hdl,
  582. struct tdls_peer_state_params *peerStateParams,
  583. uint32_t *ch_mhz);
  584. QDF_STATUS wmi_unified_process_fw_mem_dump_cmd(void *wmi_hdl,
  585. struct fw_dump_req_param *mem_dump_req);
  586. QDF_STATUS wmi_unified_process_set_ie_info_cmd(void *wmi_hdl,
  587. struct vdev_ie_info_param *ie_info);
  588. QDF_STATUS wmi_unified_ocb_set_utc_time_cmd(void *wmi_hdl,
  589. struct ocb_utc_param *utc);
  590. QDF_STATUS wmi_unified_dcc_get_stats_cmd(void *wmi_hdl,
  591. struct dcc_get_stats_param *get_stats_param);
  592. QDF_STATUS wmi_unified_dcc_clear_stats(void *wmi_hdl,
  593. uint32_t vdev_id, uint32_t dcc_stats_bitmap);
  594. QDF_STATUS wmi_unified_dcc_update_ndl(void *wmi_hdl,
  595. struct dcc_update_ndl_param *update_ndl_param);
  596. QDF_STATUS wmi_unified_save_fw_version_cmd(void *wmi_hdl,
  597. void *evt_buf);
  598. #ifdef CONFIG_MCL
  599. QDF_STATUS wmi_unified_send_init_cmd(void *wmi_hdl,
  600. wmi_resource_config *res_cfg,
  601. uint8_t num_mem_chunks, struct wmi_host_mem_chunk *mem_chunk,
  602. bool action);
  603. #endif
  604. QDF_STATUS wmi_unified_send_saved_init_cmd(void *wmi_hdl);
  605. QDF_STATUS wmi_unified_set_base_macaddr_indicate_cmd(void *wmi_hdl,
  606. uint8_t *custom_addr);
  607. QDF_STATUS wmi_unified_log_supported_evt_cmd(void *wmi_hdl,
  608. uint8_t *event,
  609. uint32_t len);
  610. QDF_STATUS wmi_unified_enable_specific_fw_logs_cmd(void *wmi_hdl,
  611. struct wmi_wifi_start_log *start_log);
  612. QDF_STATUS wmi_unified_flush_logs_to_fw_cmd(void *wmi_hdl);
  613. QDF_STATUS wmi_unified_pdev_set_pcl_cmd(void *wmi_hdl,
  614. struct wmi_pcl_chan_weights *msg);
  615. QDF_STATUS wmi_unified_soc_set_hw_mode_cmd(void *wmi_hdl,
  616. uint32_t hw_mode_index);
  617. QDF_STATUS wmi_unified_pdev_set_dual_mac_config_cmd(void *wmi_hdl,
  618. struct wmi_dual_mac_config *msg);
  619. QDF_STATUS wmi_unified_enable_arp_ns_offload_cmd(void *wmi_hdl,
  620. struct host_offload_req_param *arp_offload_req,
  621. struct host_offload_req_param *ns_offload_req,
  622. bool arp_only,
  623. uint8_t vdev_id);
  624. QDF_STATUS wmi_unified_set_led_flashing_cmd(void *wmi_hdl,
  625. struct flashing_req_params *flashing);
  626. QDF_STATUS wmi_unified_app_type1_params_in_fw_cmd(void *wmi_hdl,
  627. struct app_type1_params *app_type1_params);
  628. QDF_STATUS wmi_unified_set_ssid_hotlist_cmd(void *wmi_hdl,
  629. struct ssid_hotlist_request_params *request);
  630. QDF_STATUS wmi_unified_roam_synch_complete_cmd(void *wmi_hdl,
  631. uint8_t vdev_id);
  632. QDF_STATUS wmi_unified_unit_test_cmd(void *wmi_hdl,
  633. struct wmi_unit_test_cmd *wmi_utest);
  634. QDF_STATUS wmi_unified_roam_invoke_cmd(void *wmi_hdl,
  635. struct wmi_roam_invoke_cmd *roaminvoke,
  636. uint32_t ch_hz);
  637. QDF_STATUS wmi_unified_roam_scan_offload_cmd(void *wmi_hdl,
  638. uint32_t command, uint32_t vdev_id);
  639. #ifdef CONFIG_MCL
  640. QDF_STATUS wmi_unified_send_roam_scan_offload_ap_cmd(void *wmi_hdl,
  641. wmi_ap_profile *ap_profile_p,
  642. uint32_t vdev_id);
  643. #endif
  644. QDF_STATUS wmi_unified_roam_scan_offload_scan_period(void *wmi_hdl,
  645. uint32_t scan_period,
  646. uint32_t scan_age,
  647. uint32_t vdev_id);
  648. QDF_STATUS wmi_unified_roam_scan_offload_chan_list_cmd(void *wmi_hdl,
  649. uint8_t chan_count,
  650. uint32_t *chan_list,
  651. uint8_t list_type, uint32_t vdev_id);
  652. QDF_STATUS wmi_unified_roam_scan_offload_rssi_change_cmd(void *wmi_hdl,
  653. uint32_t vdev_id,
  654. int32_t rssi_change_thresh,
  655. uint32_t bcn_rssi_weight,
  656. uint32_t hirssi_delay_btw_scans);
  657. QDF_STATUS wmi_unified_get_buf_extscan_hotlist_cmd(void *wmi_hdl,
  658. struct ext_scan_setbssi_hotlist_params *
  659. photlist, int *buf_len);
  660. QDF_STATUS wmi_unified_stats_request_send(void *wmi_hdl,
  661. uint8_t macaddr[IEEE80211_ADDR_LEN],
  662. struct stats_request_params *param);
  663. QDF_STATUS wmi_unified_pdev_get_tpc_config_cmd_send(void *wmi_hdl,
  664. uint32_t param);
  665. QDF_STATUS wmi_unified_set_bwf_cmd_send(void *wmi_hdl,
  666. struct set_bwf_params *param);
  667. QDF_STATUS wmi_send_get_user_position_cmd(void *wmi_hdl, uint32_t value);
  668. QDF_STATUS wmi_send_get_peer_mumimo_tx_count_cmd(void *wmi_hdl, uint32_t value);
  669. QDF_STATUS wmi_send_reset_peer_mumimo_tx_count_cmd(void *wmi_hdl,
  670. uint32_t value);
  671. QDF_STATUS wmi_send_pdev_caldata_version_check_cmd(void *wmi_hdl,
  672. uint32_t value);
  673. QDF_STATUS wmi_unified_send_btcoex_wlan_priority_cmd(void *wmi_hdl,
  674. int value);
  675. QDF_STATUS wmi_unified_set_atf_cmd_send(void *wmi_hdl,
  676. struct set_atf_params *param);
  677. QDF_STATUS wmi_unified_pdev_fips_cmd_send(void *wmi_hdl,
  678. struct fips_params *param);
  679. QDF_STATUS wmi_unified_wlan_profile_enable_cmd_send(void *wmi_hdl,
  680. struct wlan_profile_params *param);
  681. QDF_STATUS wmi_unified_wlan_profile_trigger_cmd_send(void *wmi_hdl,
  682. struct wlan_profile_params *param);
  683. QDF_STATUS wmi_unified_set_chan_cmd_send(void *wmi_hdl,
  684. struct channel_param *param);
  685. QDF_STATUS wmi_unified_set_ht_ie_cmd_send(void *wmi_hdl,
  686. struct ht_ie_params *param);
  687. QDF_STATUS wmi_unified_set_vht_ie_cmd_send(void *wmi_hdl,
  688. struct vht_ie_params *param);
  689. QDF_STATUS wmi_unified_wmm_update_cmd_send(void *wmi_hdl,
  690. struct wmm_update_params *param);
  691. QDF_STATUS wmi_unified_set_ant_switch_tbl_cmd_send(void *wmi_hdl,
  692. struct ant_switch_tbl_params *param);
  693. QDF_STATUS wmi_unified_set_ratepwr_table_cmd_send(void *wmi_hdl,
  694. struct ratepwr_table_params *param);
  695. QDF_STATUS wmi_unified_get_ratepwr_table_cmd_send(void *wmi_hdl);
  696. QDF_STATUS wmi_unified_set_ctl_table_cmd_send(void *wmi_hdl,
  697. struct ctl_table_params *param);
  698. QDF_STATUS wmi_unified_set_mimogain_table_cmd_send(void *wmi_hdl,
  699. struct mimogain_table_params *param);
  700. QDF_STATUS wmi_unified_set_ratepwr_chainmsk_cmd_send(void *wmi_hdl,
  701. struct ratepwr_chainmsk_params *param);
  702. QDF_STATUS wmi_unified_set_macaddr_cmd_send(void *wmi_hdl,
  703. struct macaddr_params *param);
  704. QDF_STATUS wmi_unified_pdev_scan_start_cmd_send(void *wmi_hdl);
  705. QDF_STATUS wmi_unified_pdev_scan_end_cmd_send(void *wmi_hdl);
  706. QDF_STATUS wmi_unified_set_acparams_cmd_send(void *wmi_hdl,
  707. struct acparams_params *param);
  708. QDF_STATUS wmi_unified_set_vap_dscp_tid_map_cmd_send(void *wmi_hdl,
  709. struct vap_dscp_tid_map_params *param);
  710. QDF_STATUS wmi_unified_proxy_ast_reserve_cmd_send(void *wmi_hdl,
  711. struct proxy_ast_reserve_params *param);
  712. QDF_STATUS wmi_unified_pdev_qvit_cmd_send(void *wmi_hdl,
  713. struct pdev_qvit_params *param);
  714. QDF_STATUS wmi_unified_mcast_group_update_cmd_send(void *wmi_hdl,
  715. struct mcast_group_update_params *param);
  716. QDF_STATUS wmi_unified_peer_add_wds_entry_cmd_send(void *wmi_hdl,
  717. struct peer_add_wds_entry_params *param);
  718. QDF_STATUS wmi_unified_peer_del_wds_entry_cmd_send(void *wmi_hdl,
  719. struct peer_del_wds_entry_params *param);
  720. QDF_STATUS wmi_unified_peer_update_wds_entry_cmd_send(void *wmi_hdl,
  721. struct peer_update_wds_entry_params *param);
  722. QDF_STATUS wmi_unified_phyerr_enable_cmd_send(void *wmi_hdl);
  723. QDF_STATUS wmi_unified_phyerr_enable_cmd_send(void *wmi_hdl);
  724. QDF_STATUS wmi_unified_phyerr_disable_cmd_send(void *wmi_hdl);
  725. QDF_STATUS wmi_unified_smart_ant_enable_cmd_send(void *wmi_hdl,
  726. struct smart_ant_enable_params *param);
  727. QDF_STATUS wmi_unified_smart_ant_set_rx_ant_cmd_send(void *wmi_hdl,
  728. struct smart_ant_rx_ant_params *param);
  729. QDF_STATUS wmi_unified_smart_ant_set_tx_ant_cmd_send(void *wmi_hdl,
  730. uint8_t macaddr[IEEE80211_ADDR_LEN],
  731. struct smart_ant_tx_ant_params *param);
  732. QDF_STATUS wmi_unified_smart_ant_set_training_info_cmd_send(void *wmi_hdl,
  733. uint8_t macaddr[IEEE80211_ADDR_LEN],
  734. struct smart_ant_training_info_params *param);
  735. QDF_STATUS wmi_unified_smart_ant_node_config_cmd_send(void *wmi_hdl,
  736. uint8_t macaddr[IEEE80211_ADDR_LEN],
  737. struct smart_ant_node_config_params *param);
  738. QDF_STATUS wmi_unified_smart_ant_enable_tx_feedback_cmd_send(void *wmi_hdl,
  739. struct smart_ant_enable_tx_feedback_params *param);
  740. QDF_STATUS wmi_unified_vdev_spectral_configure_cmd_send(void *wmi_hdl,
  741. struct vdev_spectral_configure_params *param);
  742. QDF_STATUS wmi_unified_vdev_spectral_enable_cmd_send(void *wmi_hdl,
  743. struct vdev_spectral_enable_params *param);
  744. QDF_STATUS wmi_unified_bss_chan_info_request_cmd_send(void *wmi_hdl,
  745. struct bss_chan_info_request_params *param);
  746. QDF_STATUS wmi_unified_thermal_mitigation_param_cmd_send(void *wmi_hdl,
  747. struct thermal_mitigation_params *param);
  748. QDF_STATUS wmi_unified_vdev_set_neighbour_rx_cmd_send(void *wmi_hdl,
  749. uint8_t macaddr[IEEE80211_ADDR_LEN],
  750. struct set_neighbour_rx_params *param);
  751. QDF_STATUS wmi_unified_vdev_set_fwtest_param_cmd_send(void *wmi_hdl,
  752. struct set_fwtest_params *param);
  753. QDF_STATUS wmi_unified_vdev_config_ratemask_cmd_send(void *wmi_hdl,
  754. struct config_ratemask_params *param);
  755. QDF_STATUS wmi_unified_vdev_install_key_cmd_send(void *wmi_hdl,
  756. uint8_t macaddr[IEEE80211_ADDR_LEN],
  757. struct vdev_install_key_params *param);
  758. QDF_STATUS wmi_unified_pdev_set_regdomain_cmd_send(void *wmi_hdl,
  759. struct pdev_set_regdomain_params *param);
  760. QDF_STATUS wmi_unified_set_quiet_mode_cmd_send(void *wmi_hdl,
  761. struct set_quiet_mode_params *param);
  762. QDF_STATUS wmi_unified_set_beacon_filter_cmd_send(void *wmi_hdl,
  763. struct set_beacon_filter_params *param);
  764. QDF_STATUS wmi_unified_remove_beacon_filter_cmd_send(void *wmi_hdl,
  765. struct remove_beacon_filter_params *param);
  766. QDF_STATUS wmi_unified_addba_clearresponse_cmd_send(void *wmi_hdl,
  767. uint8_t macaddr[IEEE80211_ADDR_LEN],
  768. struct addba_clearresponse_params *param);
  769. QDF_STATUS wmi_unified_addba_send_cmd_send(void *wmi_hdl,
  770. uint8_t macaddr[IEEE80211_ADDR_LEN],
  771. struct addba_send_params *param);
  772. QDF_STATUS wmi_unified_delba_send_cmd_send(void *wmi_hdl,
  773. uint8_t macaddr[IEEE80211_ADDR_LEN],
  774. struct delba_send_params *param);
  775. QDF_STATUS wmi_unified_addba_setresponse_cmd_send(void *wmi_hdl,
  776. uint8_t macaddr[IEEE80211_ADDR_LEN],
  777. struct addba_setresponse_params *param);
  778. QDF_STATUS wmi_unified_singleamsdu_cmd_send(void *wmi_hdl,
  779. uint8_t macaddr[IEEE80211_ADDR_LEN],
  780. struct singleamsdu_params *param);
  781. QDF_STATUS wmi_unified_set_qboost_param_cmd_send(void *wmi_hdl,
  782. uint8_t macaddr[IEEE80211_ADDR_LEN],
  783. struct set_qboost_params *param);
  784. QDF_STATUS wmi_unified_mu_scan_cmd_send(void *wmi_hdl,
  785. struct mu_scan_params *param);
  786. QDF_STATUS wmi_unified_lteu_config_cmd_send(void *wmi_hdl,
  787. struct lteu_config_params *param);
  788. QDF_STATUS wmi_unified_set_psmode_cmd_send(void *wmi_hdl,
  789. struct set_ps_mode_params *param);
  790. QDF_STATUS wmi_unified_init_cmd_send(void *wmi_hdl,
  791. target_resource_config *res_cfg,
  792. uint8_t num_mem_chunks,
  793. struct wmi_host_mem_chunk *mem_chunk);
  794. bool wmi_service_enabled(void *wmi_hdl, uint32_t service_id);
  795. QDF_STATUS wmi_save_service_bitmap(void *wmi_hdl, void *evt_buf);
  796. QDF_STATUS wmi_save_fw_version(void *wmi_hdl, void *evt_buf);
  797. QDF_STATUS wmi_get_target_cap_from_service_ready(void *wmi_hdl,
  798. void *evt_buf, target_capability_info *ev);
  799. QDF_STATUS wmi_extract_hal_reg_cap(void *wmi_hdl, void *evt_buf,
  800. TARGET_HAL_REG_CAPABILITIES *hal_reg_cap);
  801. host_mem_req *wmi_extract_host_mem_req_from_service_ready(void *wmi_hdl,
  802. void *evt_buf, uint8_t *num_entries);
  803. uint32_t wmi_ready_extract_init_status(void *wmi_hdl, void *ev);
  804. QDF_STATUS wmi_ready_extract_mac_addr(void *wmi_hdl,
  805. void *ev, uint8_t *macaddr);
  806. QDF_STATUS wmi_extract_fw_version(void *wmi_hdl,
  807. void *ev, struct wmi_host_fw_ver *fw_ver);
  808. QDF_STATUS wmi_extract_fw_abi_version(void *wmi_hdl,
  809. void *ev, struct wmi_host_fw_abi_ver *fw_ver);
  810. QDF_STATUS wmi_check_and_update_fw_version(void *wmi_hdl, void *ev);
  811. uint8_t *wmi_extract_dbglog_data_len(void *wmi_hdl,
  812. void *evt_b, uint16_t *len);
  813. QDF_STATUS wmi_send_ext_resource_config(void *wmi_hdl,
  814. wmi_host_ext_resource_config *ext_cfg);
  815. QDF_STATUS wmi_unified_nf_dbr_dbm_info_get_cmd_send(void *wmi_hdl);
  816. QDF_STATUS wmi_unified_packet_power_info_get_cmd_send(void *wmi_hdl,
  817. struct packet_power_info_params *param);
  818. QDF_STATUS wmi_unified_gpio_config_cmd_send(void *wmi_hdl,
  819. struct gpio_config_params *param);
  820. QDF_STATUS wmi_unified_gpio_output_cmd_send(void *wmi_hdl,
  821. struct gpio_output_params *param);
  822. QDF_STATUS wmi_unified_rtt_meas_req_test_cmd_send(void *wmi_hdl,
  823. struct rtt_meas_req_test_params *param);
  824. QDF_STATUS wmi_unified_rtt_meas_req_cmd_send(void *wmi_hdl,
  825. struct rtt_meas_req_params *param);
  826. QDF_STATUS wmi_unified_rtt_keepalive_req_cmd_send(void *wmi_hdl,
  827. struct rtt_keepalive_req_params *param);
  828. QDF_STATUS wmi_unified_lci_set_cmd_send(void *wmi_hdl,
  829. struct lci_set_params *param);
  830. QDF_STATUS wmi_unified_lcr_set_cmd_send(void *wmi_hdl,
  831. struct lcr_set_params *param);
  832. QDF_STATUS wmi_unified_send_periodic_chan_stats_config_cmd(void *wmi_hdl,
  833. struct periodic_chan_stats_params *param);
  834. QDF_STATUS
  835. wmi_send_atf_peer_request_cmd(void *wmi_hdl,
  836. struct atf_peer_request_params *param);
  837. QDF_STATUS
  838. wmi_send_set_atf_grouping_cmd(void *wmi_hdl,
  839. struct atf_grouping_params *param);
  840. /* Extract APIs */
  841. QDF_STATUS wmi_extract_wds_addr_event(void *wmi_hdl,
  842. void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);
  843. QDF_STATUS wmi_extract_dcs_interference_type(void *wmi_hdl,
  844. void *evt_buf, uint32_t *interference_type);
  845. QDF_STATUS wmi_extract_dcs_cw_int(void *wmi_hdl, void *evt_buf,
  846. wmi_host_ath_dcs_cw_int *cw_int);
  847. QDF_STATUS wmi_extract_dcs_im_tgt_stats(void *wmi_hdl, void *evt_buf,
  848. wmi_host_dcs_im_tgt_stats_t *wlan_stat);
  849. QDF_STATUS wmi_extract_fips_event_error_status(void *wmi_hdl, void *evt_buf,
  850. uint32_t *err_status);
  851. QDF_STATUS wmi_extract_fips_event_data(void *wmi_hdl, void *evt_buf,
  852. uint32_t *data_len, uint32_t **data);
  853. QDF_STATUS wmi_extract_vdev_start_resp(void *wmi_hdl, void *evt_buf,
  854. wmi_host_vdev_start_resp *vdev_rsp);
  855. QDF_STATUS wmi_extract_tbttoffset_update_params(void *wmi_hdl, void *evt_buf,
  856. uint32_t *vdev_map, uint32_t **tbttoffset_list);
  857. QDF_STATUS wmi_extract_mgmt_rx_params(void *wmi_hdl, void *evt_buf,
  858. wmi_host_mgmt_rx_hdr *hdr, uint8_t **bufp);
  859. QDF_STATUS wmi_extract_vdev_stopped_param(void *wmi_hdl, void *evt_buf,
  860. uint32_t *vdev_id);
  861. QDF_STATUS wmi_extract_vdev_roam_param(void *wmi_hdl, void *evt_buf,
  862. wmi_host_roam_event *ev);
  863. QDF_STATUS wmi_extract_vdev_scan_ev_param(void *wmi_hdl, void *evt_buf,
  864. wmi_host_scan_event *param);
  865. QDF_STATUS wmi_extract_mu_ev_param(void *wmi_hdl, void *evt_buf,
  866. wmi_host_mu_report_event *param);
  867. QDF_STATUS wmi_extract_mu_db_entry(void *wmi_hdl, void *evt_buf,
  868. uint8_t idx, wmi_host_mu_db_entry *param);
  869. QDF_STATUS wmi_extract_mumimo_tx_count_ev_param(void *wmi_hdl, void *evt_buf,
  870. wmi_host_peer_txmu_cnt_event *param);
  871. QDF_STATUS wmi_extract_peer_gid_userpos_list_ev_param(void *wmi_hdl,
  872. void *evt_buf, wmi_host_peer_gid_userpos_list_event *param);
  873. QDF_STATUS wmi_extract_pdev_caldata_version_check_ev_param(void *wmi_hdl,
  874. void *evt_buf, wmi_host_pdev_check_cal_version_event *param);
  875. QDF_STATUS wmi_extract_pdev_tpc_config_ev_param(void *wmi_hdl, void *evt_buf,
  876. wmi_host_pdev_tpc_config_event *param);
  877. QDF_STATUS wmi_extract_gpio_input_ev_param(void *wmi_hdl,
  878. void *evt_buf, uint32_t *gpio_num);
  879. QDF_STATUS wmi_extract_pdev_reserve_ast_ev_param(void *wmi_hdl,
  880. void *evt_buf, uint32_t *result);
  881. QDF_STATUS wmi_extract_nfcal_power_ev_param(void *wmi_hdl, void *evt_buf,
  882. wmi_host_pdev_nfcal_power_all_channels_event *param);
  883. QDF_STATUS wmi_extract_pdev_tpc_ev_param(void *wmi_hdl, void *evt_buf,
  884. wmi_host_pdev_tpc_event *param);
  885. QDF_STATUS wmi_extract_pdev_generic_buffer_ev_param(void *wmi_hdl,
  886. void *evt_buf,
  887. wmi_host_pdev_generic_buffer_event *param);
  888. QDF_STATUS wmi_extract_mgmt_tx_compl_param(void *wmi_hdl, void *evt_buf,
  889. wmi_host_mgmt_tx_compl_event *param);
  890. QDF_STATUS wmi_extract_swba_vdev_map(void *wmi_hdl, void *evt_buf,
  891. uint32_t *vdev_map);
  892. QDF_STATUS wmi_extract_swba_tim_info(void *wmi_hdl, void *evt_buf,
  893. uint32_t idx, wmi_host_tim_info *tim_info);
  894. QDF_STATUS wmi_extract_swba_noa_info(void *wmi_hdl, void *evt_buf,
  895. uint32_t idx, wmi_host_p2p_noa_info *p2p_desc);
  896. QDF_STATUS wmi_extract_peer_sta_ps_statechange_ev(void *wmi_hdl,
  897. void *evt_buf, wmi_host_peer_sta_ps_statechange_event *ev);
  898. QDF_STATUS wmi_extract_peer_sta_kickout_ev(void *wmi_hdl, void *evt_buf,
  899. wmi_host_peer_sta_kickout_event *ev);
  900. QDF_STATUS wmi_extract_peer_ratecode_list_ev(void *wmi_hdl, void *evt_buf,
  901. uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap);
  902. QDF_STATUS wmi_extract_bcnflt_stats(void *wmi_hdl, void *evt_buf,
  903. uint32_t index, wmi_host_bcnflt_stats *bcnflt_stats);
  904. QDF_STATUS wmi_extract_rtt_hdr(void *wmi_hdl, void *evt_buf,
  905. wmi_host_rtt_event_hdr *ev);
  906. QDF_STATUS wmi_extract_rtt_ev(void *wmi_hdl, void *evt_buf,
  907. wmi_host_rtt_meas_event *ev, uint8_t *hdump,
  908. uint16_t hdump_len);
  909. QDF_STATUS wmi_extract_rtt_error_report_ev(void *wmi_hdl, void *evt_buf,
  910. wmi_host_rtt_error_report_event *ev);
  911. QDF_STATUS wmi_extract_chan_stats(void *wmi_hdl, void *evt_buf,
  912. uint32_t index, wmi_host_chan_stats *chan_stats);
  913. QDF_STATUS wmi_extract_thermal_stats(void *wmi_hdl, void *evt_buf,
  914. uint32_t *temp, uint32_t *level);
  915. QDF_STATUS wmi_extract_thermal_level_stats(void *wmi_hdl, void *evt_buf,
  916. uint8_t idx, uint32_t *levelcount, uint32_t *dccount);
  917. QDF_STATUS wmi_extract_comb_phyerr(void *wmi_hdl, void *evt_buf,
  918. uint16_t datalen, uint16_t *buf_offset,
  919. wmi_host_phyerr_t *phyerr);
  920. QDF_STATUS wmi_extract_single_phyerr(void *wmi_hdl, void *evt_buf,
  921. uint16_t datalen, uint16_t *buf_offset,
  922. wmi_host_phyerr_t *phyerr);
  923. QDF_STATUS wmi_extract_composite_phyerr(void *wmi_hdl, void *evt_buf,
  924. uint16_t datalen, wmi_host_phyerr_t *phyerr);
  925. QDF_STATUS wmi_extract_profile_ctx(void *wmi_hdl, void *evt_buf,
  926. wmi_host_wlan_profile_ctx_t *profile_ctx);
  927. QDF_STATUS wmi_extract_profile_data(void *wmi_hdl, void *evt_buf, uint8_t idx,
  928. wmi_host_wlan_profile_t *profile_data);
  929. QDF_STATUS wmi_extract_chan_info_event(void *wmi_hdl, void *evt_buf,
  930. wmi_host_chan_info_event *chan_info);
  931. QDF_STATUS wmi_extract_channel_hopping_event(void *wmi_hdl, void *evt_buf,
  932. wmi_host_pdev_channel_hopping_event *ch_hopping);
  933. QDF_STATUS wmi_extract_stats_param(void *wmi_hdl, void *evt_buf,
  934. wmi_host_stats_event *stats_param);
  935. QDF_STATUS wmi_extract_pdev_stats(void *wmi_hdl, void *evt_buf,
  936. uint32_t index,
  937. wmi_host_pdev_stats *pdev_stats);
  938. QDF_STATUS wmi_extract_pdev_ext_stats(void *wmi_hdl, void *evt_buf,
  939. uint32_t index,
  940. wmi_host_pdev_ext_stats *pdev_ext_stats);
  941. QDF_STATUS wmi_extract_peer_extd_stats(void *wmi_hdl, void *evt_buf,
  942. uint32_t index,
  943. wmi_host_peer_extd_stats *peer_extd_stats);
  944. QDF_STATUS wmi_extract_bss_chan_info_event(void *wmi_hdl, void *evt_buf,
  945. wmi_host_pdev_bss_chan_info_event *bss_chan_info);
  946. QDF_STATUS wmi_extract_inst_rssi_stats_event(void *wmi_hdl, void *evt_buf,
  947. wmi_host_inst_stats_resp *inst_rssi_resp);
  948. QDF_STATUS wmi_extract_peer_stats(void *wmi_hdl, void *evt_buf,
  949. uint32_t index, wmi_host_peer_stats *peer_stats);
  950. QDF_STATUS wmi_extract_tx_data_traffic_ctrl_ev(void *wmi_hdl, void *evt_buf,
  951. wmi_host_tx_data_traffic_ctrl_event *ev);
  952. QDF_STATUS wmi_extract_atf_peer_stats_ev(void *wmi_hdl, void *evt_buf,
  953. wmi_host_atf_peer_stats_event *ev);
  954. QDF_STATUS wmi_extract_atf_token_info_ev(void *wmi_hdl, void *evt_buf,
  955. uint8_t idx, wmi_host_atf_peer_stats_info *atf_token_info);
  956. QDF_STATUS wmi_extract_vdev_stats(void *wmi_hdl, void *evt_buf,
  957. uint32_t index, wmi_host_vdev_stats *vdev_stats);
  958. QDF_STATUS wmi_extract_vdev_extd_stats(void *wmi_hdl, void *evt_buf,
  959. uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats);
  960. QDF_STATUS wmi_unified_send_power_dbg_cmd(void *wmi_hdl,
  961. struct wmi_power_dbg_params *param);
  962. QDF_STATUS wmi_unified_send_adapt_dwelltime_params_cmd(void *wmi_hdl,
  963. struct wmi_adaptive_dwelltime_params *
  964. wmi_param);
  965. QDF_STATUS wmi_unified_fw_test_cmd(void *wmi_hdl,
  966. struct set_fwtest_params *wmi_fwtest);
  967. QDF_STATUS wmi_unified_peer_rx_reorder_queue_setup_send(void *wmi_hdl,
  968. struct rx_reorder_queue_setup_params *param);
  969. QDF_STATUS wmi_unified_peer_rx_reorder_queue_remove_send(void *wmi_hdl,
  970. struct rx_reorder_queue_remove_params *param);
  971. QDF_STATUS wmi_extract_service_ready_ext(void *wmi_hdl, uint8_t *evt_buf,
  972. struct wmi_host_service_ext_param *param);
  973. QDF_STATUS wmi_extract_hw_mode_cap_service_ready_ext(
  974. void *wmi_hdl,
  975. uint8_t *evt_buf, uint8_t hw_mode_idx,
  976. struct wmi_host_hw_mode_caps *param);
  977. QDF_STATUS wmi_extract_mac_phy_cap_service_ready_ext(
  978. void *wmi_hdl,
  979. uint8_t *evt_buf, uint8_t hw_mode_idx,
  980. struct wmi_host_mac_phy_caps *param);
  981. QDF_STATUS wmi_extract_reg_cap_service_ready_ext(
  982. void *wmi_hdl,
  983. uint8_t *evt_buf, uint8_t phy_idx,
  984. struct WMI_HOST_HAL_REG_CAPABILITIES_EXT *param);
  985. #endif /* _WMI_UNIFIED_API_H_ */