wmi_unified_api.h 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341
  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. struct btcoex_cfg_params *param);
  675. QDF_STATUS wmi_unified_send_btcoex_duty_cycle_cmd(void *wmi_hdl,
  676. struct btcoex_cfg_params *param);
  677. QDF_STATUS wmi_unified_set_atf_cmd_send(void *wmi_hdl,
  678. struct set_atf_params *param);
  679. QDF_STATUS wmi_unified_pdev_fips_cmd_send(void *wmi_hdl,
  680. struct fips_params *param);
  681. QDF_STATUS wmi_unified_wlan_profile_enable_cmd_send(void *wmi_hdl,
  682. struct wlan_profile_params *param);
  683. QDF_STATUS wmi_unified_wlan_profile_trigger_cmd_send(void *wmi_hdl,
  684. struct wlan_profile_params *param);
  685. QDF_STATUS wmi_unified_set_chan_cmd_send(void *wmi_hdl,
  686. struct channel_param *param);
  687. QDF_STATUS wmi_unified_set_ht_ie_cmd_send(void *wmi_hdl,
  688. struct ht_ie_params *param);
  689. QDF_STATUS wmi_unified_set_vht_ie_cmd_send(void *wmi_hdl,
  690. struct vht_ie_params *param);
  691. QDF_STATUS wmi_unified_wmm_update_cmd_send(void *wmi_hdl,
  692. struct wmm_update_params *param);
  693. QDF_STATUS wmi_unified_set_ant_switch_tbl_cmd_send(void *wmi_hdl,
  694. struct ant_switch_tbl_params *param);
  695. QDF_STATUS wmi_unified_set_ratepwr_table_cmd_send(void *wmi_hdl,
  696. struct ratepwr_table_params *param);
  697. QDF_STATUS wmi_unified_get_ratepwr_table_cmd_send(void *wmi_hdl);
  698. QDF_STATUS wmi_unified_set_ctl_table_cmd_send(void *wmi_hdl,
  699. struct ctl_table_params *param);
  700. QDF_STATUS wmi_unified_set_mimogain_table_cmd_send(void *wmi_hdl,
  701. struct mimogain_table_params *param);
  702. QDF_STATUS wmi_unified_set_ratepwr_chainmsk_cmd_send(void *wmi_hdl,
  703. struct ratepwr_chainmsk_params *param);
  704. QDF_STATUS wmi_unified_set_macaddr_cmd_send(void *wmi_hdl,
  705. struct macaddr_params *param);
  706. QDF_STATUS wmi_unified_pdev_scan_start_cmd_send(void *wmi_hdl);
  707. QDF_STATUS wmi_unified_pdev_scan_end_cmd_send(void *wmi_hdl);
  708. QDF_STATUS wmi_unified_set_acparams_cmd_send(void *wmi_hdl,
  709. struct acparams_params *param);
  710. QDF_STATUS wmi_unified_set_vap_dscp_tid_map_cmd_send(void *wmi_hdl,
  711. struct vap_dscp_tid_map_params *param);
  712. QDF_STATUS wmi_unified_proxy_ast_reserve_cmd_send(void *wmi_hdl,
  713. struct proxy_ast_reserve_params *param);
  714. QDF_STATUS wmi_unified_pdev_qvit_cmd_send(void *wmi_hdl,
  715. struct pdev_qvit_params *param);
  716. QDF_STATUS wmi_unified_mcast_group_update_cmd_send(void *wmi_hdl,
  717. struct mcast_group_update_params *param);
  718. QDF_STATUS wmi_unified_peer_add_wds_entry_cmd_send(void *wmi_hdl,
  719. struct peer_add_wds_entry_params *param);
  720. QDF_STATUS wmi_unified_peer_del_wds_entry_cmd_send(void *wmi_hdl,
  721. struct peer_del_wds_entry_params *param);
  722. QDF_STATUS wmi_unified_peer_update_wds_entry_cmd_send(void *wmi_hdl,
  723. struct peer_update_wds_entry_params *param);
  724. QDF_STATUS wmi_unified_phyerr_enable_cmd_send(void *wmi_hdl);
  725. QDF_STATUS wmi_unified_phyerr_enable_cmd_send(void *wmi_hdl);
  726. QDF_STATUS wmi_unified_phyerr_disable_cmd_send(void *wmi_hdl);
  727. QDF_STATUS wmi_unified_smart_ant_enable_cmd_send(void *wmi_hdl,
  728. struct smart_ant_enable_params *param);
  729. QDF_STATUS wmi_unified_smart_ant_set_rx_ant_cmd_send(void *wmi_hdl,
  730. struct smart_ant_rx_ant_params *param);
  731. QDF_STATUS wmi_unified_smart_ant_set_tx_ant_cmd_send(void *wmi_hdl,
  732. uint8_t macaddr[IEEE80211_ADDR_LEN],
  733. struct smart_ant_tx_ant_params *param);
  734. QDF_STATUS wmi_unified_smart_ant_set_training_info_cmd_send(void *wmi_hdl,
  735. uint8_t macaddr[IEEE80211_ADDR_LEN],
  736. struct smart_ant_training_info_params *param);
  737. QDF_STATUS wmi_unified_smart_ant_node_config_cmd_send(void *wmi_hdl,
  738. uint8_t macaddr[IEEE80211_ADDR_LEN],
  739. struct smart_ant_node_config_params *param);
  740. QDF_STATUS wmi_unified_smart_ant_enable_tx_feedback_cmd_send(void *wmi_hdl,
  741. struct smart_ant_enable_tx_feedback_params *param);
  742. QDF_STATUS wmi_unified_vdev_spectral_configure_cmd_send(void *wmi_hdl,
  743. struct vdev_spectral_configure_params *param);
  744. QDF_STATUS wmi_unified_vdev_spectral_enable_cmd_send(void *wmi_hdl,
  745. struct vdev_spectral_enable_params *param);
  746. QDF_STATUS wmi_unified_bss_chan_info_request_cmd_send(void *wmi_hdl,
  747. struct bss_chan_info_request_params *param);
  748. QDF_STATUS wmi_unified_thermal_mitigation_param_cmd_send(void *wmi_hdl,
  749. struct thermal_mitigation_params *param);
  750. QDF_STATUS wmi_unified_vdev_set_neighbour_rx_cmd_send(void *wmi_hdl,
  751. uint8_t macaddr[IEEE80211_ADDR_LEN],
  752. struct set_neighbour_rx_params *param);
  753. QDF_STATUS wmi_unified_vdev_set_fwtest_param_cmd_send(void *wmi_hdl,
  754. struct set_fwtest_params *param);
  755. QDF_STATUS wmi_unified_vdev_config_ratemask_cmd_send(void *wmi_hdl,
  756. struct config_ratemask_params *param);
  757. QDF_STATUS wmi_unified_vdev_install_key_cmd_send(void *wmi_hdl,
  758. uint8_t macaddr[IEEE80211_ADDR_LEN],
  759. struct vdev_install_key_params *param);
  760. QDF_STATUS wmi_unified_pdev_set_regdomain_cmd_send(void *wmi_hdl,
  761. struct pdev_set_regdomain_params *param);
  762. QDF_STATUS wmi_unified_set_quiet_mode_cmd_send(void *wmi_hdl,
  763. struct set_quiet_mode_params *param);
  764. QDF_STATUS wmi_unified_set_beacon_filter_cmd_send(void *wmi_hdl,
  765. struct set_beacon_filter_params *param);
  766. QDF_STATUS wmi_unified_remove_beacon_filter_cmd_send(void *wmi_hdl,
  767. struct remove_beacon_filter_params *param);
  768. QDF_STATUS wmi_unified_addba_clearresponse_cmd_send(void *wmi_hdl,
  769. uint8_t macaddr[IEEE80211_ADDR_LEN],
  770. struct addba_clearresponse_params *param);
  771. QDF_STATUS wmi_unified_addba_send_cmd_send(void *wmi_hdl,
  772. uint8_t macaddr[IEEE80211_ADDR_LEN],
  773. struct addba_send_params *param);
  774. QDF_STATUS wmi_unified_delba_send_cmd_send(void *wmi_hdl,
  775. uint8_t macaddr[IEEE80211_ADDR_LEN],
  776. struct delba_send_params *param);
  777. QDF_STATUS wmi_unified_addba_setresponse_cmd_send(void *wmi_hdl,
  778. uint8_t macaddr[IEEE80211_ADDR_LEN],
  779. struct addba_setresponse_params *param);
  780. QDF_STATUS wmi_unified_singleamsdu_cmd_send(void *wmi_hdl,
  781. uint8_t macaddr[IEEE80211_ADDR_LEN],
  782. struct singleamsdu_params *param);
  783. QDF_STATUS wmi_unified_set_qboost_param_cmd_send(void *wmi_hdl,
  784. uint8_t macaddr[IEEE80211_ADDR_LEN],
  785. struct set_qboost_params *param);
  786. QDF_STATUS wmi_unified_mu_scan_cmd_send(void *wmi_hdl,
  787. struct mu_scan_params *param);
  788. QDF_STATUS wmi_unified_lteu_config_cmd_send(void *wmi_hdl,
  789. struct lteu_config_params *param);
  790. QDF_STATUS wmi_unified_set_psmode_cmd_send(void *wmi_hdl,
  791. struct set_ps_mode_params *param);
  792. QDF_STATUS wmi_unified_init_cmd_send(void *wmi_hdl,
  793. target_resource_config *res_cfg,
  794. uint8_t num_mem_chunks,
  795. struct wmi_host_mem_chunk *mem_chunk);
  796. bool wmi_service_enabled(void *wmi_hdl, uint32_t service_id);
  797. QDF_STATUS wmi_save_service_bitmap(void *wmi_hdl, void *evt_buf);
  798. QDF_STATUS wmi_save_fw_version(void *wmi_hdl, void *evt_buf);
  799. QDF_STATUS wmi_get_target_cap_from_service_ready(void *wmi_hdl,
  800. void *evt_buf, target_capability_info *ev);
  801. QDF_STATUS wmi_extract_hal_reg_cap(void *wmi_hdl, void *evt_buf,
  802. TARGET_HAL_REG_CAPABILITIES *hal_reg_cap);
  803. host_mem_req *wmi_extract_host_mem_req_from_service_ready(void *wmi_hdl,
  804. void *evt_buf, uint8_t *num_entries);
  805. uint32_t wmi_ready_extract_init_status(void *wmi_hdl, void *ev);
  806. QDF_STATUS wmi_ready_extract_mac_addr(void *wmi_hdl,
  807. void *ev, uint8_t *macaddr);
  808. QDF_STATUS wmi_extract_fw_version(void *wmi_hdl,
  809. void *ev, struct wmi_host_fw_ver *fw_ver);
  810. QDF_STATUS wmi_extract_fw_abi_version(void *wmi_hdl,
  811. void *ev, struct wmi_host_fw_abi_ver *fw_ver);
  812. QDF_STATUS wmi_check_and_update_fw_version(void *wmi_hdl, void *ev);
  813. uint8_t *wmi_extract_dbglog_data_len(void *wmi_hdl,
  814. void *evt_b, uint16_t *len);
  815. QDF_STATUS wmi_send_ext_resource_config(void *wmi_hdl,
  816. wmi_host_ext_resource_config *ext_cfg);
  817. QDF_STATUS wmi_unified_nf_dbr_dbm_info_get_cmd_send(void *wmi_hdl);
  818. QDF_STATUS wmi_unified_packet_power_info_get_cmd_send(void *wmi_hdl,
  819. struct packet_power_info_params *param);
  820. QDF_STATUS wmi_unified_gpio_config_cmd_send(void *wmi_hdl,
  821. struct gpio_config_params *param);
  822. QDF_STATUS wmi_unified_gpio_output_cmd_send(void *wmi_hdl,
  823. struct gpio_output_params *param);
  824. QDF_STATUS wmi_unified_rtt_meas_req_test_cmd_send(void *wmi_hdl,
  825. struct rtt_meas_req_test_params *param);
  826. QDF_STATUS wmi_unified_rtt_meas_req_cmd_send(void *wmi_hdl,
  827. struct rtt_meas_req_params *param);
  828. QDF_STATUS wmi_unified_rtt_keepalive_req_cmd_send(void *wmi_hdl,
  829. struct rtt_keepalive_req_params *param);
  830. QDF_STATUS wmi_unified_lci_set_cmd_send(void *wmi_hdl,
  831. struct lci_set_params *param);
  832. QDF_STATUS wmi_unified_lcr_set_cmd_send(void *wmi_hdl,
  833. struct lcr_set_params *param);
  834. QDF_STATUS wmi_unified_send_periodic_chan_stats_config_cmd(void *wmi_hdl,
  835. struct periodic_chan_stats_params *param);
  836. QDF_STATUS
  837. wmi_send_atf_peer_request_cmd(void *wmi_hdl,
  838. struct atf_peer_request_params *param);
  839. QDF_STATUS
  840. wmi_send_set_atf_grouping_cmd(void *wmi_hdl,
  841. struct atf_grouping_params *param);
  842. /* Extract APIs */
  843. QDF_STATUS wmi_extract_wds_addr_event(void *wmi_hdl,
  844. void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);
  845. QDF_STATUS wmi_extract_dcs_interference_type(void *wmi_hdl,
  846. void *evt_buf, uint32_t *interference_type);
  847. QDF_STATUS wmi_extract_dcs_cw_int(void *wmi_hdl, void *evt_buf,
  848. wmi_host_ath_dcs_cw_int *cw_int);
  849. QDF_STATUS wmi_extract_dcs_im_tgt_stats(void *wmi_hdl, void *evt_buf,
  850. wmi_host_dcs_im_tgt_stats_t *wlan_stat);
  851. QDF_STATUS wmi_extract_fips_event_error_status(void *wmi_hdl, void *evt_buf,
  852. uint32_t *err_status);
  853. QDF_STATUS wmi_extract_fips_event_data(void *wmi_hdl, void *evt_buf,
  854. uint32_t *data_len, uint32_t **data);
  855. QDF_STATUS wmi_extract_vdev_start_resp(void *wmi_hdl, void *evt_buf,
  856. wmi_host_vdev_start_resp *vdev_rsp);
  857. QDF_STATUS wmi_extract_tbttoffset_update_params(void *wmi_hdl, void *evt_buf,
  858. uint32_t *vdev_map, uint32_t **tbttoffset_list);
  859. QDF_STATUS wmi_extract_mgmt_rx_params(void *wmi_hdl, void *evt_buf,
  860. wmi_host_mgmt_rx_hdr *hdr, uint8_t **bufp);
  861. QDF_STATUS wmi_extract_vdev_stopped_param(void *wmi_hdl, void *evt_buf,
  862. uint32_t *vdev_id);
  863. QDF_STATUS wmi_extract_vdev_roam_param(void *wmi_hdl, void *evt_buf,
  864. wmi_host_roam_event *ev);
  865. QDF_STATUS wmi_extract_vdev_scan_ev_param(void *wmi_hdl, void *evt_buf,
  866. wmi_host_scan_event *param);
  867. QDF_STATUS wmi_extract_mu_ev_param(void *wmi_hdl, void *evt_buf,
  868. wmi_host_mu_report_event *param);
  869. QDF_STATUS wmi_extract_mu_db_entry(void *wmi_hdl, void *evt_buf,
  870. uint8_t idx, wmi_host_mu_db_entry *param);
  871. QDF_STATUS wmi_extract_mumimo_tx_count_ev_param(void *wmi_hdl, void *evt_buf,
  872. wmi_host_peer_txmu_cnt_event *param);
  873. QDF_STATUS wmi_extract_peer_gid_userpos_list_ev_param(void *wmi_hdl,
  874. void *evt_buf, wmi_host_peer_gid_userpos_list_event *param);
  875. QDF_STATUS wmi_extract_pdev_caldata_version_check_ev_param(void *wmi_hdl,
  876. void *evt_buf, wmi_host_pdev_check_cal_version_event *param);
  877. QDF_STATUS wmi_extract_pdev_tpc_config_ev_param(void *wmi_hdl, void *evt_buf,
  878. wmi_host_pdev_tpc_config_event *param);
  879. QDF_STATUS wmi_extract_gpio_input_ev_param(void *wmi_hdl,
  880. void *evt_buf, uint32_t *gpio_num);
  881. QDF_STATUS wmi_extract_pdev_reserve_ast_ev_param(void *wmi_hdl,
  882. void *evt_buf, uint32_t *result);
  883. QDF_STATUS wmi_extract_nfcal_power_ev_param(void *wmi_hdl, void *evt_buf,
  884. wmi_host_pdev_nfcal_power_all_channels_event *param);
  885. QDF_STATUS wmi_extract_pdev_tpc_ev_param(void *wmi_hdl, void *evt_buf,
  886. wmi_host_pdev_tpc_event *param);
  887. QDF_STATUS wmi_extract_pdev_generic_buffer_ev_param(void *wmi_hdl,
  888. void *evt_buf,
  889. wmi_host_pdev_generic_buffer_event *param);
  890. QDF_STATUS wmi_extract_mgmt_tx_compl_param(void *wmi_hdl, void *evt_buf,
  891. wmi_host_mgmt_tx_compl_event *param);
  892. QDF_STATUS wmi_extract_swba_vdev_map(void *wmi_hdl, void *evt_buf,
  893. uint32_t *vdev_map);
  894. QDF_STATUS wmi_extract_swba_tim_info(void *wmi_hdl, void *evt_buf,
  895. uint32_t idx, wmi_host_tim_info *tim_info);
  896. QDF_STATUS wmi_extract_swba_noa_info(void *wmi_hdl, void *evt_buf,
  897. uint32_t idx, wmi_host_p2p_noa_info *p2p_desc);
  898. QDF_STATUS wmi_extract_peer_sta_ps_statechange_ev(void *wmi_hdl,
  899. void *evt_buf, wmi_host_peer_sta_ps_statechange_event *ev);
  900. QDF_STATUS wmi_extract_peer_sta_kickout_ev(void *wmi_hdl, void *evt_buf,
  901. wmi_host_peer_sta_kickout_event *ev);
  902. QDF_STATUS wmi_extract_peer_ratecode_list_ev(void *wmi_hdl, void *evt_buf,
  903. uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap);
  904. QDF_STATUS wmi_extract_bcnflt_stats(void *wmi_hdl, void *evt_buf,
  905. uint32_t index, wmi_host_bcnflt_stats *bcnflt_stats);
  906. QDF_STATUS wmi_extract_rtt_hdr(void *wmi_hdl, void *evt_buf,
  907. wmi_host_rtt_event_hdr *ev);
  908. QDF_STATUS wmi_extract_rtt_ev(void *wmi_hdl, void *evt_buf,
  909. wmi_host_rtt_meas_event *ev, uint8_t *hdump,
  910. uint16_t hdump_len);
  911. QDF_STATUS wmi_extract_rtt_error_report_ev(void *wmi_hdl, void *evt_buf,
  912. wmi_host_rtt_error_report_event *ev);
  913. QDF_STATUS wmi_extract_chan_stats(void *wmi_hdl, void *evt_buf,
  914. uint32_t index, wmi_host_chan_stats *chan_stats);
  915. QDF_STATUS wmi_extract_thermal_stats(void *wmi_hdl, void *evt_buf,
  916. uint32_t *temp, uint32_t *level);
  917. QDF_STATUS wmi_extract_thermal_level_stats(void *wmi_hdl, void *evt_buf,
  918. uint8_t idx, uint32_t *levelcount, uint32_t *dccount);
  919. QDF_STATUS wmi_extract_comb_phyerr(void *wmi_hdl, void *evt_buf,
  920. uint16_t datalen, uint16_t *buf_offset,
  921. wmi_host_phyerr_t *phyerr);
  922. QDF_STATUS wmi_extract_single_phyerr(void *wmi_hdl, void *evt_buf,
  923. uint16_t datalen, uint16_t *buf_offset,
  924. wmi_host_phyerr_t *phyerr);
  925. QDF_STATUS wmi_extract_composite_phyerr(void *wmi_hdl, void *evt_buf,
  926. uint16_t datalen, wmi_host_phyerr_t *phyerr);
  927. QDF_STATUS wmi_extract_profile_ctx(void *wmi_hdl, void *evt_buf,
  928. wmi_host_wlan_profile_ctx_t *profile_ctx);
  929. QDF_STATUS wmi_extract_profile_data(void *wmi_hdl, void *evt_buf, uint8_t idx,
  930. wmi_host_wlan_profile_t *profile_data);
  931. QDF_STATUS wmi_extract_chan_info_event(void *wmi_hdl, void *evt_buf,
  932. wmi_host_chan_info_event *chan_info);
  933. QDF_STATUS wmi_extract_channel_hopping_event(void *wmi_hdl, void *evt_buf,
  934. wmi_host_pdev_channel_hopping_event *ch_hopping);
  935. QDF_STATUS wmi_extract_stats_param(void *wmi_hdl, void *evt_buf,
  936. wmi_host_stats_event *stats_param);
  937. QDF_STATUS wmi_extract_pdev_stats(void *wmi_hdl, void *evt_buf,
  938. uint32_t index,
  939. wmi_host_pdev_stats *pdev_stats);
  940. QDF_STATUS wmi_extract_pdev_ext_stats(void *wmi_hdl, void *evt_buf,
  941. uint32_t index,
  942. wmi_host_pdev_ext_stats *pdev_ext_stats);
  943. QDF_STATUS wmi_extract_peer_extd_stats(void *wmi_hdl, void *evt_buf,
  944. uint32_t index,
  945. wmi_host_peer_extd_stats *peer_extd_stats);
  946. QDF_STATUS wmi_extract_bss_chan_info_event(void *wmi_hdl, void *evt_buf,
  947. wmi_host_pdev_bss_chan_info_event *bss_chan_info);
  948. QDF_STATUS wmi_extract_inst_rssi_stats_event(void *wmi_hdl, void *evt_buf,
  949. wmi_host_inst_stats_resp *inst_rssi_resp);
  950. QDF_STATUS wmi_extract_peer_stats(void *wmi_hdl, void *evt_buf,
  951. uint32_t index, wmi_host_peer_stats *peer_stats);
  952. QDF_STATUS wmi_extract_tx_data_traffic_ctrl_ev(void *wmi_hdl, void *evt_buf,
  953. wmi_host_tx_data_traffic_ctrl_event *ev);
  954. QDF_STATUS wmi_extract_atf_peer_stats_ev(void *wmi_hdl, void *evt_buf,
  955. wmi_host_atf_peer_stats_event *ev);
  956. QDF_STATUS wmi_extract_atf_token_info_ev(void *wmi_hdl, void *evt_buf,
  957. uint8_t idx, wmi_host_atf_peer_stats_info *atf_token_info);
  958. QDF_STATUS wmi_extract_vdev_stats(void *wmi_hdl, void *evt_buf,
  959. uint32_t index, wmi_host_vdev_stats *vdev_stats);
  960. QDF_STATUS wmi_extract_vdev_extd_stats(void *wmi_hdl, void *evt_buf,
  961. uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats);
  962. QDF_STATUS wmi_unified_send_power_dbg_cmd(void *wmi_hdl,
  963. struct wmi_power_dbg_params *param);
  964. QDF_STATUS wmi_unified_send_sar_limit_cmd(void *wmi_hdl,
  965. struct sar_limit_cmd_params *params);
  966. QDF_STATUS wmi_unified_send_adapt_dwelltime_params_cmd(void *wmi_hdl,
  967. struct wmi_adaptive_dwelltime_params *
  968. wmi_param);
  969. QDF_STATUS wmi_unified_fw_test_cmd(void *wmi_hdl,
  970. struct set_fwtest_params *wmi_fwtest);
  971. QDF_STATUS wmi_unified_peer_rx_reorder_queue_setup_send(void *wmi_hdl,
  972. struct rx_reorder_queue_setup_params *param);
  973. QDF_STATUS wmi_unified_peer_rx_reorder_queue_remove_send(void *wmi_hdl,
  974. struct rx_reorder_queue_remove_params *param);
  975. QDF_STATUS wmi_extract_service_ready_ext(void *wmi_hdl, uint8_t *evt_buf,
  976. struct wmi_host_service_ext_param *param);
  977. QDF_STATUS wmi_extract_hw_mode_cap_service_ready_ext(
  978. void *wmi_hdl,
  979. uint8_t *evt_buf, uint8_t hw_mode_idx,
  980. struct wmi_host_hw_mode_caps *param);
  981. QDF_STATUS wmi_extract_mac_phy_cap_service_ready_ext(
  982. void *wmi_hdl,
  983. uint8_t *evt_buf, uint8_t hw_mode_idx,
  984. struct wmi_host_mac_phy_caps *param);
  985. QDF_STATUS wmi_extract_reg_cap_service_ready_ext(
  986. void *wmi_hdl,
  987. uint8_t *evt_buf, uint8_t phy_idx,
  988. struct WMI_HOST_HAL_REG_CAPABILITIES_EXT *param);
  989. #endif /* _WMI_UNIFIED_API_H_ */