Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 1 | /* |
Kiran Kumar Lokere | 25531c4 | 2018-09-19 13:48:48 -0700 | [diff] [blame] | 2 | * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved. |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 3 | * |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 4 | * Permission to use, copy, modify, and/or distribute this software for |
| 5 | * any purpose with or without fee is hereby granted, provided that the |
| 6 | * above copyright notice and this permission notice appear in all |
| 7 | * copies. |
| 8 | * |
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 10 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 11 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 12 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 13 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 14 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 15 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 16 | * PERFORMANCE OF THIS SOFTWARE. |
| 17 | */ |
| 18 | |
| 19 | /* |
Govind Singh | 01dd33e | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 20 | * This file contains the API definitions for the Unified Wireless Module |
| 21 | * Interface (WMI). |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 22 | */ |
| 23 | |
| 24 | #ifndef _WMI_UNIFIED_API_H_ |
| 25 | #define _WMI_UNIFIED_API_H_ |
| 26 | |
| 27 | #include <osdep.h> |
Himanshu Agarwal | 810141a | 2016-07-19 15:41:51 +0530 | [diff] [blame] | 28 | #ifdef CONFIG_MCL |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 29 | #include "wmi.h" |
Himanshu Agarwal | 810141a | 2016-07-19 15:41:51 +0530 | [diff] [blame] | 30 | #endif |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 31 | #include "htc_api.h" |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 32 | #include "wmi_unified_param.h" |
Srinivas Pitla | c664572 | 2018-01-08 16:55:36 +0530 | [diff] [blame] | 33 | #include "service_ready_param.h" |
Mukul Sharma | 45223f3 | 2017-01-30 19:55:40 +0530 | [diff] [blame] | 34 | #include "wlan_objmgr_psoc_obj.h" |
Himanshu Agarwal | 009eee1 | 2017-01-05 14:23:18 +0530 | [diff] [blame] | 35 | #include "wlan_mgmt_txrx_utils_api.h" |
Wu Gao | dd58f63 | 2018-05-17 16:14:00 +0800 | [diff] [blame] | 36 | #ifdef WLAN_POWER_MANAGEMENT_OFFLOAD |
Mukul Sharma | cb5bf77 | 2017-02-25 01:50:47 +0530 | [diff] [blame] | 37 | #include "wmi_unified_pmo_api.h" |
| 38 | #endif |
Om Prakash Tripathi | 89db19b | 2017-02-25 15:53:30 +0530 | [diff] [blame] | 39 | #include "wlan_scan_public_structs.h" |
Nachiket Kukade | 88ae853 | 2017-12-15 12:36:58 +0530 | [diff] [blame] | 40 | #ifdef WLAN_FEATURE_DISA |
| 41 | #include "wlan_disa_public_struct.h" |
| 42 | #endif |
Rajeev Kumar Sirasanagandla | 6697085 | 2017-09-18 16:47:52 +0530 | [diff] [blame] | 43 | #ifdef WLAN_FEATURE_ACTION_OUI |
| 44 | #include "wlan_action_oui_public_struct.h" |
| 45 | #endif |
Himanshu Agarwal | b3c81ac | 2018-01-10 14:21:53 +0530 | [diff] [blame] | 46 | #ifdef WLAN_SUPPORT_GREEN_AP |
| 47 | #include "wlan_green_ap_api.h" |
| 48 | #endif |
Zhang Qian | 2e1a7bc | 2018-01-05 16:50:53 +0800 | [diff] [blame] | 49 | #ifdef WLAN_FEATURE_DSRC |
| 50 | #include "wlan_ocb_public_structs.h" |
| 51 | #endif |
Kiran Venkatappa | 99556ec | 2018-02-05 10:56:43 +0530 | [diff] [blame] | 52 | #ifdef WLAN_SUPPORT_TWT |
| 53 | #include "wmi_unified_twt_param.h" |
| 54 | #include "wmi_unified_twt_api.h" |
| 55 | #endif |
Naveen Rawat | 6880512 | 2017-12-14 13:24:31 -0800 | [diff] [blame] | 56 | |
Wen Gong | daa9515 | 2018-05-18 16:03:41 +0800 | [diff] [blame] | 57 | #ifdef FEATURE_WLAN_EXTSCAN |
| 58 | #include "wmi_unified_extscan_api.h" |
| 59 | #endif |
| 60 | |
Sravan Kumar Kairam | ea66b68 | 2018-02-15 23:28:34 +0530 | [diff] [blame] | 61 | #ifdef IPA_OFFLOAD |
| 62 | #include "wlan_ipa_public_struct.h" |
| 63 | #endif |
| 64 | |
Sathish Kumar | a8dcd50 | 2018-10-02 11:03:59 +0530 | [diff] [blame] | 65 | #ifdef WMI_SMART_ANT_SUPPORT |
| 66 | #include "wmi_unified_smart_ant_api.h" |
| 67 | #endif |
| 68 | |
| 69 | #ifdef WMI_DBR_SUPPORT |
| 70 | #include "wmi_unified_dbr_api.h" |
| 71 | #endif |
| 72 | |
| 73 | #ifdef WMI_ATF_SUPPORT |
| 74 | #include "wmi_unified_atf_api.h" |
| 75 | #endif |
| 76 | |
| 77 | #ifdef WMI_AP_SUPPORT |
| 78 | #include "wmi_unified_ap_api.h" |
| 79 | #endif |
| 80 | |
Qiwei Cai | 770c90f | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 81 | #ifdef WLAN_FEATURE_DSRC |
| 82 | #include "wmi_unified_ocb_api.h" |
| 83 | #endif |
| 84 | |
Nachiket Kukade | e2c9a74 | 2019-01-08 16:21:04 +0530 | [diff] [blame] | 85 | #ifdef WLAN_FEATURE_NAN |
Qiwei Cai | 770c90f | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 86 | #include "wmi_unified_nan_api.h" |
| 87 | #endif |
| 88 | |
| 89 | #ifdef CONVERGED_P2P_ENABLE |
| 90 | #include <wmi_unified_p2p_api.h> |
| 91 | #endif |
| 92 | |
| 93 | #ifdef WMI_ROAM_SUPPORT |
| 94 | #include "wmi_unified_roam_api.h" |
| 95 | #endif |
| 96 | |
| 97 | #ifdef WMI_CONCURRENCY_SUPPORT |
| 98 | #include "wmi_unified_concurrency_api.h" |
| 99 | #endif |
| 100 | |
| 101 | #ifdef WMI_STA_SUPPORT |
| 102 | #include "wmi_unified_sta_api.h" |
| 103 | #endif |
| 104 | |
Govind Singh | 236fc20 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 105 | typedef qdf_nbuf_t wmi_buf_t; |
| 106 | #define wmi_buf_data(_buf) qdf_nbuf_data(_buf) |
| 107 | |
| 108 | #define WMI_LOGD(args ...) \ |
| 109 | QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_DEBUG, ## args) |
| 110 | #define WMI_LOGI(args ...) \ |
| 111 | QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_INFO, ## args) |
| 112 | #define WMI_LOGW(args ...) \ |
| 113 | QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_WARN, ## args) |
| 114 | #define WMI_LOGE(args ...) \ |
| 115 | QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_ERROR, ## args) |
| 116 | #define WMI_LOGP(args ...) \ |
| 117 | QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_FATAL, ## args) |
| 118 | |
Sourav Mohapatra | 9a6ee7d | 2019-02-08 17:50:49 +0530 | [diff] [blame] | 119 | /* Number of bits to shift to combine 32 bit integer to 64 bit */ |
| 120 | #define WMI_LOWER_BITS_SHIFT_32 0x20 |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 121 | |
Arif Hussain | c5da01e | 2018-03-01 14:40:59 -0800 | [diff] [blame] | 122 | #define PHYERROR_MAX_BUFFER_LENGTH 0x7F000000 |
| 123 | |
Kiran Venkatappa | b5c5b53 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 124 | struct wmi_soc; |
Srinivas Girigowda | aafe28e | 2018-02-15 14:30:05 -0800 | [diff] [blame] | 125 | struct policy_mgr_dual_mac_config; |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 126 | /** |
Harprit Chhabada | 71c9846 | 2018-12-26 14:10:39 -0800 | [diff] [blame] | 127 | * struct wmi_rx_ops - handle to wmi rx ops |
| 128 | * @scn_handle: handle to scn |
| 129 | * @ev: event buffer |
| 130 | * @rx_ctx: rx execution context |
Govind Singh | 01dd33e | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 131 | * @wma_process_fw_event_handler_cbk: generic event handler callback |
| 132 | */ |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 133 | struct wmi_rx_ops { |
Govind Singh | 3f302ec | 2016-03-09 12:03:29 +0530 | [diff] [blame] | 134 | |
Harprit Chhabada | 71c9846 | 2018-12-26 14:10:39 -0800 | [diff] [blame] | 135 | int (*wma_process_fw_event_handler_cbk)(ol_scn_t scn_handle, |
| 136 | void *ev, |
| 137 | uint8_t rx_ctx); |
Govind Singh | 01dd33e | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 138 | }; |
| 139 | |
| 140 | /** |
| 141 | * enum wmi_target_type - type of supported wmi command |
| 142 | * @WMI_TLV_TARGET: tlv based target |
| 143 | * @WMI_NON_TLV_TARGET: non-tlv based target |
| 144 | * |
| 145 | */ |
| 146 | enum wmi_target_type { |
| 147 | WMI_TLV_TARGET, |
Pratik Gandhi | 6c8fdba | 2018-01-30 19:05:41 +0530 | [diff] [blame] | 148 | WMI_NON_TLV_TARGET, |
| 149 | WMI_MAX_TARGET_TYPE |
Govind Singh | 01dd33e | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 150 | }; |
| 151 | |
| 152 | /** |
Govind Singh | 3f302ec | 2016-03-09 12:03:29 +0530 | [diff] [blame] | 153 | * enum wmi_rx_exec_ctx - wmi rx execution context |
| 154 | * @WMI_RX_WORK_CTX: work queue context execution provided by WMI layer |
| 155 | * @WMI_RX_UMAC_CTX: execution context provided by umac layer |
| 156 | * |
| 157 | */ |
| 158 | enum wmi_rx_exec_ctx { |
| 159 | WMI_RX_WORK_CTX, |
| 160 | WMI_RX_UMAC_CTX |
| 161 | }; |
| 162 | |
| 163 | /** |
Chaithanya Garrepalli | 830d585 | 2017-12-01 14:55:26 +0530 | [diff] [blame] | 164 | * struct wmi_unified_attach_params - wmi init parameters |
Surya Prakash | 4e517d7 | 2019-04-29 10:13:44 +0530 | [diff] [blame] | 165 | * @osdev: NIC device |
| 166 | * @target_type: type of supported wmi command |
| 167 | * @use_cookie: flag to indicate cookie based allocation |
| 168 | * @is_async_ep: queueing interrupt or non-interrupt endpoint |
| 169 | * @rx_ops: handle to wmi ops |
| 170 | * @psoc: objmgr psoc |
| 171 | * @max_commands: max commands |
| 172 | * @soc_id: SoC device instance id |
Chaithanya Garrepalli | 830d585 | 2017-12-01 14:55:26 +0530 | [diff] [blame] | 173 | */ |
| 174 | struct wmi_unified_attach_params { |
| 175 | osdev_t osdev; |
| 176 | enum wmi_target_type target_type; |
| 177 | bool use_cookie; |
phadiman | e5a330a | 2018-11-13 12:04:07 +0530 | [diff] [blame] | 178 | bool is_async_ep; |
Chaithanya Garrepalli | 830d585 | 2017-12-01 14:55:26 +0530 | [diff] [blame] | 179 | struct wmi_rx_ops *rx_ops; |
| 180 | struct wlan_objmgr_psoc *psoc; |
| 181 | uint16_t max_commands; |
c_priys | b214c24 | 2018-06-12 16:53:51 +0530 | [diff] [blame] | 182 | uint32_t soc_id; |
Chaithanya Garrepalli | 830d585 | 2017-12-01 14:55:26 +0530 | [diff] [blame] | 183 | }; |
| 184 | |
| 185 | /** |
| 186 | * attach for unified WMI |
| 187 | * |
| 188 | * @param scn_handle : handle to SCN. |
| 189 | * @param params : attach params for WMI |
| 190 | * |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 191 | */ |
| 192 | void *wmi_unified_attach(void *scn_handle, |
Chaithanya Garrepalli | 830d585 | 2017-12-01 14:55:26 +0530 | [diff] [blame] | 193 | struct wmi_unified_attach_params *params); |
Mukul Sharma | 45223f3 | 2017-01-30 19:55:40 +0530 | [diff] [blame] | 194 | |
Govind Singh | 01dd33e | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 195 | |
Sandeep Puligilla | ac71f15 | 2016-06-13 15:42:55 -0700 | [diff] [blame] | 196 | |
Sandeep Puligilla | 489c719 | 2016-07-19 13:20:57 -0700 | [diff] [blame] | 197 | /** |
| 198 | * wmi_mgmt_cmd_record() - Wrapper function for mgmt command logging macro |
| 199 | * |
| 200 | * @wmi_handle: wmi handle |
| 201 | * @cmd: mgmt command |
| 202 | * @header: pointer to 802.11 header |
| 203 | * @vdev_id: vdev id |
| 204 | * @chanfreq: channel frequency |
| 205 | * |
| 206 | * Return: none |
| 207 | */ |
Himanshu Agarwal | 810141a | 2016-07-19 15:41:51 +0530 | [diff] [blame] | 208 | void wmi_mgmt_cmd_record(wmi_unified_t wmi_handle, uint32_t cmd, |
Sandeep Puligilla | 489c719 | 2016-07-19 13:20:57 -0700 | [diff] [blame] | 209 | void *header, uint32_t vdev_id, uint32_t chanfreq); |
Sandeep Puligilla | ac71f15 | 2016-06-13 15:42:55 -0700 | [diff] [blame] | 210 | |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 211 | /** |
| 212 | * detach for unified WMI |
| 213 | * |
| 214 | * @param wmi_handle : handle to WMI. |
| 215 | * @return void. |
| 216 | */ |
| 217 | void wmi_unified_detach(struct wmi_unified *wmi_handle); |
| 218 | |
gaurank kathpalia | 1435fba | 2018-02-21 18:58:29 +0530 | [diff] [blame] | 219 | /** |
| 220 | * API to sync time between host and firmware |
| 221 | * |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 222 | * @wmi_handle: handle to WMI. |
| 223 | * |
| 224 | * Return: none |
gaurank kathpalia | 1435fba | 2018-02-21 18:58:29 +0530 | [diff] [blame] | 225 | */ |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 226 | void wmi_send_time_stamp_sync_cmd_tlv(wmi_unified_t wmi_handle); |
gaurank kathpalia | 1435fba | 2018-02-21 18:58:29 +0530 | [diff] [blame] | 227 | |
Xun Luo | 9a863a4 | 2015-11-10 08:24:45 -0800 | [diff] [blame] | 228 | void |
| 229 | wmi_unified_remove_work(struct wmi_unified *wmi_handle); |
| 230 | |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 231 | /** |
| 232 | * generic function to allocate WMI buffer |
| 233 | * |
| 234 | * @param wmi_handle : handle to WMI. |
| 235 | * @param len : length of the buffer |
| 236 | * @return wmi_buf_t. |
| 237 | */ |
Shiva Krishna Pittala | b155431 | 2018-04-02 17:23:42 +0530 | [diff] [blame] | 238 | #ifdef NBUF_MEMORY_DEBUG |
Arif Hussain | 61847a9 | 2018-08-09 16:11:14 -0700 | [diff] [blame] | 239 | #define wmi_buf_alloc(h, l) wmi_buf_alloc_debug(h, l, __func__, __LINE__) |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 240 | wmi_buf_t |
Debasis Das | 78495ce | 2018-04-04 17:17:55 +0530 | [diff] [blame] | 241 | wmi_buf_alloc_debug(wmi_unified_t wmi_handle, uint32_t len, |
Arif Hussain | 61847a9 | 2018-08-09 16:11:14 -0700 | [diff] [blame] | 242 | const char *func_name, uint32_t line_num); |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 243 | #else |
Arif Hussain | 58189eb | 2018-07-19 14:15:36 -0700 | [diff] [blame] | 244 | /** |
| 245 | * wmi_buf_alloc() - generic function to allocate WMI buffer |
| 246 | * @wmi_handle: handle to WMI. |
| 247 | * @len: length of the buffer |
| 248 | * |
| 249 | * Return: return wmi_buf_t or null if memory alloc fails |
| 250 | */ |
| 251 | #define wmi_buf_alloc(wmi_handle, len) \ |
| 252 | wmi_buf_alloc_fl(wmi_handle, len, __func__, __LINE__) |
| 253 | |
| 254 | wmi_buf_t wmi_buf_alloc_fl(wmi_unified_t wmi_handle, uint32_t len, |
| 255 | const char *func, uint32_t line); |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 256 | #endif |
| 257 | |
| 258 | /** |
| 259 | * generic function frees WMI net buffer |
| 260 | * |
| 261 | * @param net_buf : Pointer ot net_buf to be freed |
| 262 | */ |
| 263 | void wmi_buf_free(wmi_buf_t net_buf); |
| 264 | |
| 265 | /** |
Arif Hussain | ffcaef4 | 2018-07-19 15:05:16 -0700 | [diff] [blame] | 266 | * wmi_unified_cmd_send() - generic function to send unified WMI command |
| 267 | * @wmi_handle: handle to WMI. |
| 268 | * @buf: wmi command buffer |
| 269 | * @buflen: wmi command buffer length |
| 270 | * @cmd_id: WMI cmd id |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 271 | * |
Arif Hussain | ffcaef4 | 2018-07-19 15:05:16 -0700 | [diff] [blame] | 272 | * Note, it is NOT safe to access buf after calling this function! |
| 273 | * |
| 274 | * Return: QDF_STATUS |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 275 | */ |
Arif Hussain | ffcaef4 | 2018-07-19 15:05:16 -0700 | [diff] [blame] | 276 | #define wmi_unified_cmd_send(wmi_handle, buf, buflen, cmd_id) \ |
| 277 | wmi_unified_cmd_send_fl(wmi_handle, buf, buflen, \ |
| 278 | cmd_id, __func__, __LINE__) |
| 279 | |
Houston Hoffman | e007aed | 2016-09-27 23:29:49 -0700 | [diff] [blame] | 280 | QDF_STATUS |
Arif Hussain | ffcaef4 | 2018-07-19 15:05:16 -0700 | [diff] [blame] | 281 | wmi_unified_cmd_send_fl(wmi_unified_t wmi_handle, wmi_buf_t buf, |
| 282 | uint32_t buflen, uint32_t cmd_id, |
| 283 | const char *func, uint32_t line); |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 284 | |
| 285 | /** |
Soumya Bhat | 8b71edb | 2017-03-22 14:41:01 +0530 | [diff] [blame] | 286 | * wmi_unified_register_event() - WMI event handler |
| 287 | * registration function for converged components |
| 288 | * |
| 289 | * @wmi_handle: handle to WMI. |
| 290 | * @event_id: WMI event ID |
| 291 | * @handler_func: Event handler call back function |
| 292 | * |
| 293 | * @return 0 on success and -ve on failure. |
| 294 | */ |
| 295 | int |
| 296 | wmi_unified_register_event(wmi_unified_t wmi_handle, |
| 297 | uint32_t event_id, |
| 298 | wmi_unified_event_handler handler_func); |
| 299 | |
| 300 | /** |
Govind Singh | 3f302ec | 2016-03-09 12:03:29 +0530 | [diff] [blame] | 301 | * wmi_unified_register_event_handler() - WMI event handler |
| 302 | * registration function |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 303 | * |
Govind Singh | 3f302ec | 2016-03-09 12:03:29 +0530 | [diff] [blame] | 304 | * @wmi_handle: handle to WMI. |
| 305 | * @event_id: WMI event ID |
| 306 | * @handler_func: Event handler call back function |
| 307 | * @rx_ctx: rx event processing context |
| 308 | * |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 309 | * @return 0 on success and -ve on failure. |
| 310 | */ |
| 311 | int |
| 312 | wmi_unified_register_event_handler(wmi_unified_t wmi_handle, |
Mukul Sharma | 396cef7 | 2017-11-03 19:26:54 +0530 | [diff] [blame] | 313 | wmi_conv_event_id event_id, |
Govind Singh | 3f302ec | 2016-03-09 12:03:29 +0530 | [diff] [blame] | 314 | wmi_unified_event_handler handler_func, |
| 315 | uint8_t rx_ctx); |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 316 | |
| 317 | /** |
Soumya Bhat | 169eff1 | 2017-03-27 12:26:56 +0530 | [diff] [blame] | 318 | * WMI event handler unregister function for converged componets |
| 319 | * |
| 320 | * @param wmi_handle : handle to WMI. |
| 321 | * @param event_id : WMI event ID |
| 322 | * @return 0 on success and -ve on failure. |
| 323 | */ |
| 324 | int |
| 325 | wmi_unified_unregister_event(wmi_unified_t wmi_handle, |
| 326 | uint32_t event_id); |
| 327 | |
| 328 | /** |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 329 | * WMI event handler unregister function |
| 330 | * |
| 331 | * @param wmi_handle : handle to WMI. |
| 332 | * @param event_id : WMI event ID |
| 333 | * @return 0 on success and -ve on failure. |
| 334 | */ |
| 335 | int |
| 336 | wmi_unified_unregister_event_handler(wmi_unified_t wmi_handle, |
Mukul Sharma | 396cef7 | 2017-11-03 19:26:54 +0530 | [diff] [blame] | 337 | wmi_conv_event_id event_id); |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 338 | |
| 339 | /** |
| 340 | * request wmi to connet its htc service. |
| 341 | * @param wmi_handle : handle to WMI. |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 342 | * @param htc_handle : handle to HTC. |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 343 | * @return void |
| 344 | */ |
Kiran Venkatappa | b5c5b53 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 345 | QDF_STATUS |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 346 | wmi_unified_connect_htc_service(struct wmi_unified *wmi_handle, |
| 347 | void *htc_handle); |
| 348 | |
| 349 | /* |
| 350 | * WMI API to verify the host has enough credits to suspend |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 351 | * @param wmi_handle : handle to WMI. |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 352 | */ |
| 353 | |
| 354 | int wmi_is_suspend_ready(wmi_unified_t wmi_handle); |
| 355 | |
| 356 | /** |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 357 | * WMI API to get updated host_credits |
| 358 | * @param wmi_handle : handle to WMI. |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 359 | */ |
| 360 | |
| 361 | int wmi_get_host_credits(wmi_unified_t wmi_handle); |
| 362 | |
| 363 | /** |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 364 | * WMI API to get WMI Pending Commands in the HTC queue |
| 365 | * @param wmi_handle : handle to WMI. |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 366 | */ |
| 367 | |
| 368 | int wmi_get_pending_cmds(wmi_unified_t wmi_handle); |
| 369 | |
| 370 | /** |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 371 | * WMI API to set target suspend state |
| 372 | * @param wmi_handle : handle to WMI. |
| 373 | * @param val : suspend state boolean |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 374 | */ |
Houston Hoffman | c5141b0 | 2015-11-18 02:36:30 -0800 | [diff] [blame] | 375 | void wmi_set_target_suspend(wmi_unified_t wmi_handle, bool val); |
| 376 | |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 377 | /** |
Ajit Pal Singh | eb5bf8c | 2019-03-28 19:23:40 +0530 | [diff] [blame] | 378 | * wmi_is_target_suspended() - WMI API to check target suspend state |
| 379 | * @wmi_handle: handle to WMI. |
| 380 | * |
| 381 | * WMI API to check target suspend state |
| 382 | * |
| 383 | * Return: true if target is suspended, else false. |
| 384 | */ |
| 385 | bool wmi_is_target_suspended(struct wmi_unified *wmi_handle); |
| 386 | |
| 387 | /** |
Sarada Prasanna Garnayak | 6249b43 | 2017-01-05 19:30:07 +0530 | [diff] [blame] | 388 | * WMI API to set bus suspend state |
| 389 | * @param wmi_handle: handle to WMI. |
| 390 | * @param val: suspend state boolean |
| 391 | */ |
| 392 | void wmi_set_is_wow_bus_suspended(wmi_unified_t wmi_handle, A_BOOL val); |
| 393 | |
| 394 | /** |
| 395 | * WMI API to set crash injection state |
| 396 | * @param wmi_handle: handle to WMI. |
| 397 | * @param val: crash injection state boolean |
| 398 | */ |
| 399 | void wmi_tag_crash_inject(wmi_unified_t wmi_handle, A_BOOL flag); |
| 400 | |
| 401 | /** |
Ravi Kumar Bokka | 0090e22 | 2016-11-09 18:07:56 +0530 | [diff] [blame] | 402 | * WMI API to set target assert |
| 403 | * @param wmi_handle: handle to WMI. |
| 404 | * @param val: target assert config value. |
| 405 | * |
| 406 | * Return: none. |
| 407 | */ |
| 408 | void wmi_set_tgt_assert(wmi_unified_t wmi_handle, bool val); |
| 409 | |
| 410 | /** |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 411 | * generic function to block unified WMI command |
| 412 | * @param wmi_handle : handle to WMI. |
| 413 | * @return 0 on success and -ve on failure. |
| 414 | */ |
| 415 | int |
| 416 | wmi_stop(wmi_unified_t wmi_handle); |
| 417 | |
| 418 | /** |
| 419 | * API to flush all the previous packets associated with the wmi endpoint |
| 420 | * |
| 421 | * @param wmi_handle : handle to WMI. |
| 422 | */ |
| 423 | void |
| 424 | wmi_flush_endpoint(wmi_unified_t wmi_handle); |
| 425 | |
| 426 | /** |
Kiran Venkatappa | 8dfac07 | 2017-05-10 16:24:51 +0530 | [diff] [blame] | 427 | * wmi_pdev_id_conversion_enable() - API to enable pdev_id conversion in WMI |
| 428 | * By default pdev_id conversion is not done in WMI. |
| 429 | * This API can be used enable conversion in WMI. |
| 430 | * @param wmi_handle : handle to WMI |
| 431 | * Return none |
| 432 | */ |
| 433 | void wmi_pdev_id_conversion_enable(wmi_unified_t wmi_handle); |
| 434 | |
| 435 | /** |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 436 | * API to handle wmi rx event after UMAC has taken care of execution |
| 437 | * context |
| 438 | * |
| 439 | * @param wmi_handle : handle to WMI. |
| 440 | * @param evt_buf : wmi event buffer |
| 441 | */ |
| 442 | void __wmi_control_rx(struct wmi_unified *wmi_handle, wmi_buf_t evt_buf); |
Houston Hoffman | c5141b0 | 2015-11-18 02:36:30 -0800 | [diff] [blame] | 443 | #ifdef FEATURE_RUNTIME_PM |
| 444 | void |
| 445 | wmi_set_runtime_pm_inprogress(wmi_unified_t wmi_handle, bool val); |
| 446 | bool wmi_get_runtime_pm_inprogress(wmi_unified_t wmi_handle); |
| 447 | #else |
| 448 | static inline void |
| 449 | wmi_set_runtime_pm_inprogress(wmi_unified_t wmi_handle, bool val) |
| 450 | { |
| 451 | return; |
| 452 | } |
| 453 | static inline bool wmi_get_runtime_pm_inprogress(wmi_unified_t wmi_handle) |
| 454 | { |
| 455 | return false; |
| 456 | } |
| 457 | #endif |
| 458 | |
Kiran Venkatappa | b5c5b53 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 459 | void *wmi_unified_get_soc_handle(struct wmi_unified *wmi_handle); |
| 460 | |
| 461 | void *wmi_unified_get_pdev_handle(struct wmi_soc *soc, uint32_t pdev_idx); |
| 462 | |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 463 | /** |
Govind Singh | 236fc20 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 464 | * UMAC Callback to process fw event. |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 465 | * @param wmi_handle : handle to WMI. |
| 466 | * @param evt_buf : wmi event buffer |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 467 | */ |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 468 | void wmi_process_fw_event(struct wmi_unified *wmi_handle, wmi_buf_t evt_buf); |
| 469 | uint16_t wmi_get_max_msg_len(wmi_unified_t wmi_handle); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 470 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 471 | /** |
| 472 | * wmi_unified_vdev_create_send() - send VDEV create command to fw |
| 473 | * @wmi_handle: wmi handle |
| 474 | * @param: pointer to hold vdev create parameter |
| 475 | * @macaddr: vdev mac address |
| 476 | * |
| 477 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 478 | */ |
| 479 | QDF_STATUS wmi_unified_vdev_create_send(wmi_unified_t wmi_handle, |
| 480 | uint8_t macaddr[QDF_MAC_ADDR_SIZE], |
| 481 | struct vdev_create_params *param); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 482 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 483 | /** |
| 484 | * wmi_unified_vdev_delete_send() - send VDEV delete command to fw |
| 485 | * @wmi_handle: wmi handle |
| 486 | * @if_id: vdev id |
| 487 | * |
| 488 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 489 | */ |
| 490 | QDF_STATUS wmi_unified_vdev_delete_send(wmi_unified_t wmi_handle, |
| 491 | uint8_t if_id); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 492 | |
Ashish Kumar Dhanotiya | c4fd271 | 2018-11-08 21:35:46 +0530 | [diff] [blame] | 493 | /** |
| 494 | * wmi_unified_vdev_nss_chain_params_send() - send VDEV nss chain params to fw |
| 495 | * @wmi_handle: wmi handle |
| 496 | * @vdev_id: vdev id |
| 497 | * @nss_chains_user_cfg: user configured params to send |
| 498 | * |
| 499 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 500 | */ |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 501 | QDF_STATUS |
| 502 | wmi_unified_vdev_nss_chain_params_send( |
| 503 | wmi_unified_t wmi_handle, |
| 504 | uint8_t vdev_id, |
| 505 | struct vdev_nss_chains *nss_chains_user_cfg); |
Ashish Kumar Dhanotiya | c4fd271 | 2018-11-08 21:35:46 +0530 | [diff] [blame] | 506 | |
Chaithanya Garrepalli | b265cca | 2018-01-18 14:19:41 +0530 | [diff] [blame] | 507 | /** |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 508 | * wmi_unified_vdev_stop_send() - send vdev stop command to fw |
| 509 | * @wmi_handle: wmi handle |
| 510 | * @vdev_id: vdev id |
Chaithanya Garrepalli | b265cca | 2018-01-18 14:19:41 +0530 | [diff] [blame] | 511 | * |
| 512 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 513 | */ |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 514 | QDF_STATUS wmi_unified_vdev_stop_send(wmi_unified_t wmi_handle, |
| 515 | uint8_t vdev_id); |
| 516 | |
| 517 | /** |
| 518 | * wmi_unified_vdev_up_send() - send vdev up command in fw |
| 519 | * @wmi_handle: wmi handle |
| 520 | * @bssid: bssid |
| 521 | * @params: pointer to hold vdev up parameter |
| 522 | * |
| 523 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 524 | */ |
| 525 | QDF_STATUS wmi_unified_vdev_up_send(wmi_unified_t wmi_handle, |
| 526 | uint8_t bssid[QDF_MAC_ADDR_SIZE], |
| 527 | struct vdev_up_params *params); |
| 528 | |
| 529 | /** |
| 530 | * wmi_unified_vdev_down_send() - send vdev down command to fw |
| 531 | * @wmi_handle: wmi handle |
| 532 | * @vdev_id: vdev id |
| 533 | * |
| 534 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 535 | */ |
| 536 | QDF_STATUS wmi_unified_vdev_down_send(wmi_unified_t wmi_handle, |
| 537 | uint8_t vdev_id); |
| 538 | |
| 539 | /** |
| 540 | * wmi_unified_vdev_start_send() - send vdev start command to fw |
| 541 | * @wmi_handle: wmi handle |
| 542 | * @vdev_id: vdev id |
| 543 | * |
| 544 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 545 | */ |
| 546 | QDF_STATUS wmi_unified_vdev_start_send(wmi_unified_t wmi_handle, |
| 547 | struct vdev_start_params *req); |
| 548 | |
| 549 | /** |
| 550 | * wmi_unified_vdev_set_nac_rssi_send() - send NAC_RSSI command to fw |
| 551 | * @wmi_handle: handle to WMI |
| 552 | * @req: pointer to hold nac rssi request data |
| 553 | * |
| 554 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 555 | */ |
| 556 | QDF_STATUS |
| 557 | wmi_unified_vdev_set_nac_rssi_send(wmi_unified_t wmi_handle, |
| 558 | struct vdev_scan_nac_rssi_params *req); |
Himanshu Agarwal | 915c270 | 2016-03-09 16:49:38 +0530 | [diff] [blame] | 559 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 560 | /** |
| 561 | * wmi_unified_hidden_ssid_vdev_restart_send() - restart vdev to set hidden ssid |
| 562 | * @wmi_handle: wmi handle |
| 563 | * @restart_params: vdev restart params |
| 564 | * |
| 565 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 566 | */ |
| 567 | QDF_STATUS |
| 568 | wmi_unified_hidden_ssid_vdev_restart_send( |
| 569 | wmi_unified_t wmi_handle, |
Himanshu Agarwal | 915c270 | 2016-03-09 16:49:38 +0530 | [diff] [blame] | 570 | struct hidden_ssid_vdev_restart_params *restart_params); |
| 571 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 572 | /** |
| 573 | * wmi_unified_vdev_set_param_send() - WMI vdev set parameter function |
| 574 | * @wmi_handle: handle to WMI. |
| 575 | * @macaddr: MAC address |
| 576 | * @param: pointer to hold vdev set parameter |
| 577 | * |
| 578 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 579 | */ |
| 580 | QDF_STATUS |
| 581 | wmi_unified_vdev_set_param_send(wmi_unified_t wmi_handle, |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 582 | struct vdev_set_params *param); |
| 583 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 584 | /** |
| 585 | * wmi_unified_sifs_trigger_send() - WMI vdev sifs trigger parameter function |
| 586 | * @wmi_handle: handle to WMI. |
| 587 | * @param: pointer to hold sifs trigger parameter |
| 588 | * |
| 589 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 590 | */ |
| 591 | QDF_STATUS wmi_unified_sifs_trigger_send(wmi_unified_t wmi_handle, |
narayan | a566dce | 2018-07-01 21:59:41 +0530 | [diff] [blame] | 592 | struct sifs_trigger_param *param); |
| 593 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 594 | /** |
| 595 | * wmi_unified_peer_delete_send() - send PEER delete command to fw |
| 596 | * @wmi_handle: wmi handle |
| 597 | * @peer_addr: peer mac addr |
| 598 | * @vdev_id: vdev id |
| 599 | * |
| 600 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 601 | */ |
| 602 | QDF_STATUS |
| 603 | wmi_unified_peer_delete_send(wmi_unified_t wmi_handle, |
| 604 | uint8_t peer_addr[QDF_MAC_ADDR_SIZE], |
| 605 | uint8_t vdev_id); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 606 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 607 | /** |
| 608 | * wmi_unified_peer_flush_tids_send() - flush peer tids packets in fw |
| 609 | * @wmi_handle: wmi handle |
| 610 | * @peer_addr: peer mac address |
| 611 | * @param: pointer to hold peer flush tid parameter |
| 612 | * |
| 613 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 614 | */ |
| 615 | QDF_STATUS |
| 616 | wmi_unified_peer_flush_tids_send(wmi_unified_t wmi_handle, |
| 617 | uint8_t peer_addr[QDF_MAC_ADDR_SIZE], |
| 618 | struct peer_flush_params *param); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 619 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 620 | /** |
Naga | 8e51722 | 2019-06-24 17:05:45 +0530 | [diff] [blame] | 621 | * wmi_unified_peer_delete_all_send() - send PEER delete all command to fw |
| 622 | * @wmi_hdl: wmi handle |
| 623 | * @param: pointer to hold peer delete all parameters |
| 624 | * |
| 625 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 626 | */ |
| 627 | QDF_STATUS wmi_unified_peer_delete_all_send( |
| 628 | wmi_unified_t wmi_hdl, |
| 629 | struct peer_delete_all_params *param); |
| 630 | |
| 631 | /** |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 632 | * wmi_set_peer_param() - set peer parameter in fw |
| 633 | * @wmi_handle: wmi handle |
| 634 | * @peer_addr: peer mac address |
| 635 | * @param: pointer to hold peer set parameter |
| 636 | * |
| 637 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 638 | */ |
| 639 | QDF_STATUS |
| 640 | wmi_set_peer_param_send(wmi_unified_t wmi_handle, |
| 641 | uint8_t peer_addr[QDF_MAC_ADDR_SIZE], |
| 642 | struct peer_set_params *param); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 643 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 644 | /** |
| 645 | * wmi_unified_peer_create_send() - send peer create command to fw |
| 646 | * @wmi_handle: wmi handle |
| 647 | * @peer_addr: peer mac address |
| 648 | * @peer_type: peer type |
| 649 | * @vdev_id: vdev id |
| 650 | * |
| 651 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 652 | */ |
| 653 | QDF_STATUS wmi_unified_peer_create_send(wmi_unified_t wmi_handle, |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 654 | struct peer_create_params *param); |
| 655 | |
Anirban Sirkhell | 0f2677d | 2018-12-21 12:06:49 +0530 | [diff] [blame] | 656 | QDF_STATUS wmi_unified_stats_request_send(wmi_unified_t wmi_handle, |
Srinivas Girigowda | 2751b6d | 2019-02-27 12:28:13 -0800 | [diff] [blame] | 657 | uint8_t macaddr[QDF_MAC_ADDR_SIZE], |
Anirban Sirkhell | 0f2677d | 2018-12-21 12:06:49 +0530 | [diff] [blame] | 658 | struct stats_request_params *param); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 659 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 660 | /** |
| 661 | * wmi_unified_green_ap_ps_send() - enable green ap powersave command |
| 662 | * @wmi_handle: wmi handle |
| 663 | * @value: value |
| 664 | * @pdev_id: pdev id to have radio context |
| 665 | * |
| 666 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 667 | */ |
| 668 | QDF_STATUS wmi_unified_green_ap_ps_send(wmi_unified_t wmi_handle, |
Himanshu Agarwal | b3c81ac | 2018-01-10 14:21:53 +0530 | [diff] [blame] | 669 | uint32_t value, uint8_t pdev_id); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 670 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 671 | /** |
| 672 | * wmi_unified_wow_enable_send() - WMI wow enable function |
| 673 | * @wmi_handle: handle to WMI. |
| 674 | * @param: pointer to hold wow enable parameter |
| 675 | * @mac_id: radio context |
| 676 | * |
| 677 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 678 | */ |
| 679 | QDF_STATUS wmi_unified_wow_enable_send(wmi_unified_t wmi_handle, |
| 680 | struct wow_cmd_params *param, |
| 681 | uint8_t mac_id); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 682 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 683 | /** |
| 684 | * wmi_unified_wow_wakeup_send() - WMI wow wakeup function |
| 685 | * @wmi_handle: handle to WMI. |
| 686 | * |
| 687 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 688 | */ |
| 689 | QDF_STATUS wmi_unified_wow_wakeup_send(wmi_unified_t wmi_handle); |
Jeff Johnson | 589ca09 | 2016-10-07 13:03:02 -0700 | [diff] [blame] | 690 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 691 | /** |
| 692 | * wmi_unified_wow_add_wakeup_event_send() - WMI wow wakeup function |
| 693 | * @wmi_handle: handle to WMI. |
| 694 | * @param: pointer to wow wakeup event parameter structure |
| 695 | * |
| 696 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 697 | */ |
| 698 | QDF_STATUS |
| 699 | wmi_unified_wow_add_wakeup_event_send(wmi_unified_t wmi_handle, |
| 700 | struct wow_add_wakeup_params *param); |
Jeff Johnson | 589ca09 | 2016-10-07 13:03:02 -0700 | [diff] [blame] | 701 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 702 | /** |
| 703 | * wmi_unified_wow_add_wakeup_pattern_send() - WMI wow wakeup pattern function |
| 704 | * @wmi_handle: handle to WMI. |
| 705 | * @param: pointer to wow wakeup pattern parameter structure |
| 706 | * |
| 707 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 708 | */ |
| 709 | QDF_STATUS |
| 710 | wmi_unified_wow_add_wakeup_pattern_send( |
| 711 | wmi_unified_t wmi_handle, |
Jeff Johnson | 589ca09 | 2016-10-07 13:03:02 -0700 | [diff] [blame] | 712 | struct wow_add_wakeup_pattern_params *param); |
| 713 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 714 | /** |
| 715 | * wmi_unified_wow_remove_wakeup_pattern_send() - wow wakeup pattern function |
| 716 | * @wmi_handle: handle to WMI. |
| 717 | * @param: pointer to wow wakeup pattern parameter structure |
| 718 | * |
| 719 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 720 | */ |
| 721 | QDF_STATUS |
| 722 | wmi_unified_wow_remove_wakeup_pattern_send( |
| 723 | wmi_unified_t wmi_handle, |
Jeff Johnson | 589ca09 | 2016-10-07 13:03:02 -0700 | [diff] [blame] | 724 | struct wow_remove_wakeup_pattern_params *param); |
| 725 | |
Vevek Venkatesan | 02c9164 | 2019-06-04 16:36:41 +0530 | [diff] [blame] | 726 | /** |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 727 | * wmi_unified_packet_log_enable_send() - WMI request stats function |
| 728 | * @wmi_handle : handle to WMI. |
| 729 | * @PKTLOG_EVENT : PKTLOG Event |
| 730 | * @mac_id : MAC id corresponds to pdev id |
Vevek Venkatesan | 02c9164 | 2019-06-04 16:36:41 +0530 | [diff] [blame] | 731 | * |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 732 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Vevek Venkatesan | 02c9164 | 2019-06-04 16:36:41 +0530 | [diff] [blame] | 733 | */ |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 734 | QDF_STATUS |
| 735 | wmi_unified_packet_log_enable_send(wmi_unified_t wmi_handle, |
| 736 | WMI_HOST_PKTLOG_EVENT PKTLOG_EVENT, |
| 737 | uint8_t mac_id); |
Keyur Parekh | c28f839 | 2018-11-21 02:50:56 -0800 | [diff] [blame] | 738 | |
| 739 | /** |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 740 | * wmi_unified_peer_based_pktlog_send() - WMI request enable peer |
| 741 | * based filtering |
| 742 | * @wmi_handle: handle to WMI. |
| 743 | * @macaddr: PEER mac address to be filtered |
| 744 | * @mac_id: Mac id |
| 745 | * @enb_dsb: Enable or Disable peer based pktlog |
| 746 | * filtering |
Keyur Parekh | c28f839 | 2018-11-21 02:50:56 -0800 | [diff] [blame] | 747 | * |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 748 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Keyur Parekh | c28f839 | 2018-11-21 02:50:56 -0800 | [diff] [blame] | 749 | */ |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 750 | QDF_STATUS wmi_unified_peer_based_pktlog_send(wmi_unified_t wmi_handle, |
Keyur Parekh | c28f839 | 2018-11-21 02:50:56 -0800 | [diff] [blame] | 751 | uint8_t *macaddr, |
| 752 | uint8_t mac_id, |
| 753 | uint8_t enb_dsb); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 754 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 755 | /** |
| 756 | * wmi_unified_packet_log_disable__send() - WMI pktlog disable function |
| 757 | * @wmi_handle: handle to WMI. |
| 758 | * @PKTLOG_EVENT: packet log event |
| 759 | * |
| 760 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 761 | */ |
| 762 | QDF_STATUS wmi_unified_packet_log_disable_send(wmi_unified_t wmi_handle, |
| 763 | uint8_t mac_id); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 764 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 765 | /** |
| 766 | * wmi_unified_suspend_send() - WMI suspend function |
| 767 | * @wmi_handle: handle to WMI. |
| 768 | * @param: pointer to hold suspend parameter |
| 769 | * @mac_id: radio context |
| 770 | * |
| 771 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 772 | */ |
| 773 | QDF_STATUS wmi_unified_suspend_send(wmi_unified_t wmi_handle, |
| 774 | struct suspend_params *param, |
| 775 | uint8_t mac_id); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 776 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 777 | /** |
| 778 | * wmi_unified_resume_send - WMI resume function |
| 779 | * @wmi_handle : handle to WMI. |
| 780 | * @mac_id: radio context |
| 781 | * |
| 782 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 783 | */ |
| 784 | QDF_STATUS wmi_unified_resume_send(wmi_unified_t wmi_handle, |
| 785 | uint8_t mac_id); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 786 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 787 | /** |
| 788 | * wmi_unified_pdev_param_send() - set pdev parameters |
| 789 | * @wmi_handle: wmi handle |
| 790 | * @param: pointer to pdev parameter |
| 791 | * @mac_id: radio context |
| 792 | * |
| 793 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures, |
| 794 | * errno on failure |
| 795 | */ |
Govind Singh | 236fc20 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 796 | QDF_STATUS |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 797 | wmi_unified_pdev_param_send(wmi_unified_t wmi_handle, |
| 798 | struct pdev_params *param, |
| 799 | uint8_t mac_id); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 800 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 801 | /** |
| 802 | * wmi_unified_beacon_tmpl_send_cmd() - WMI beacon send function |
| 803 | * @wmi_handle: handle to WMI. |
| 804 | * @macaddr: MAC address |
| 805 | * @param: pointer to hold beacon send cmd parameter |
| 806 | * |
| 807 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 808 | */ |
| 809 | QDF_STATUS |
| 810 | wmi_unified_beacon_tmpl_send_cmd(wmi_unified_t wmi_handle, |
| 811 | struct beacon_tmpl_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 812 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 813 | /** |
| 814 | * wmi_unified_peer_assoc_send() - WMI peer assoc function |
| 815 | * @wmi_handle: handle to WMI. |
| 816 | * @macaddr: MAC address |
| 817 | * @param: pointer to peer assoc parameter |
| 818 | * |
| 819 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 820 | */ |
| 821 | QDF_STATUS wmi_unified_peer_assoc_send(wmi_unified_t wmi_handle, |
| 822 | struct peer_assoc_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 823 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 824 | /** |
| 825 | * wmi_unified_sta_ps_cmd_send() - set sta powersave parameters |
| 826 | * @wmi_handle: wmi handle |
| 827 | * @peer_addr: peer mac address |
| 828 | * @param: pointer to sta_ps parameter structure |
| 829 | * |
| 830 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 831 | */ |
| 832 | QDF_STATUS wmi_unified_sta_ps_cmd_send(wmi_unified_t wmi_handle, |
| 833 | struct sta_ps_params *param); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 834 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 835 | /** |
| 836 | * wmi_unified_ap_ps_cmd_send() - set ap powersave parameters |
| 837 | * @wmi_handle: wmi handle |
| 838 | * @peer_addr: peer mac address |
| 839 | * @param: pointer to ap_ps parameter structure |
| 840 | * |
| 841 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 842 | */ |
| 843 | QDF_STATUS wmi_unified_ap_ps_cmd_send(wmi_unified_t wmi_handle, |
| 844 | uint8_t macaddr[QDF_MAC_ADDR_SIZE], |
| 845 | struct ap_ps_params *param); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 846 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 847 | /** |
| 848 | * wmi_unified_scan_start_cmd_send() - WMI scan start function |
| 849 | * @wmi_handle: handle to WMI. |
| 850 | * @macaddr: MAC address |
| 851 | * @param: pointer to hold scan start cmd parameter |
| 852 | * |
| 853 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 854 | */ |
| 855 | QDF_STATUS |
| 856 | wmi_unified_scan_start_cmd_send(wmi_unified_t wmi_handle, |
Om Prakash Tripathi | 89db19b | 2017-02-25 15:53:30 +0530 | [diff] [blame] | 857 | struct scan_req_params *param); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 858 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 859 | /** |
| 860 | * wmi_unified_scan_stop_cmd_send() - WMI scan start function |
| 861 | * @wmi_handle: handle to WMI. |
| 862 | * @macaddr: MAC address |
| 863 | * @param: pointer to hold scan start cmd parameter |
| 864 | * |
| 865 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 866 | */ |
| 867 | QDF_STATUS |
| 868 | wmi_unified_scan_stop_cmd_send(wmi_unified_t wmi_handle, |
| 869 | struct scan_cancel_param *param); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 870 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 871 | /** |
| 872 | * wmi_unified_scan_chan_list_cmd_send() - WMI scan channel list function |
| 873 | * @wmi_handle: handle to WMI. |
| 874 | * @macaddr: MAC address |
| 875 | * @param: pointer to hold scan channel list parameter |
| 876 | * |
| 877 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 878 | */ |
| 879 | QDF_STATUS |
| 880 | wmi_unified_scan_chan_list_cmd_send(wmi_unified_t wmi_handle, |
| 881 | struct scan_chan_list_params *param); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 882 | |
| 883 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 884 | /** |
| 885 | * wmi_crash_inject() - inject fw crash |
| 886 | * @wmi_handle: wmi handle |
| 887 | * @param: ponirt to crash inject parameter structure |
| 888 | * |
| 889 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 890 | */ |
| 891 | QDF_STATUS wmi_crash_inject(wmi_unified_t wmi_handle, |
| 892 | struct crash_inject *param); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 893 | |
Akshay Kosigi | f0c668f | 2019-06-12 12:10:12 +0530 | [diff] [blame] | 894 | /** |
| 895 | * wmi_unified_pdev_utf_cmd() - send utf command to fw |
| 896 | * @wmi_handle: wmi handle |
| 897 | * @param: pointer to pdev_utf_params |
| 898 | * @mac_id: mac id to have radio context |
| 899 | * |
| 900 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 901 | */ |
| 902 | QDF_STATUS wmi_unified_pdev_utf_cmd_send(wmi_unified_t wmi_handle, |
| 903 | struct pdev_utf_params *param, |
| 904 | uint8_t mac_id); |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 905 | |
Wen Gong | 583a3b1 | 2018-04-20 16:56:28 +0800 | [diff] [blame] | 906 | #ifdef FEATURE_FW_LOG_PARSING |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 907 | /** |
| 908 | * wmi_unified_dbglog_cmd_send() - set debug log level |
| 909 | * @wmi_handle: handle to WMI. |
| 910 | * @param: pointer to hold dbglog level parameter |
| 911 | * |
| 912 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 913 | */ |
| 914 | QDF_STATUS wmi_unified_dbglog_cmd_send(wmi_unified_t wmi_handle, |
Wen Gong | 583a3b1 | 2018-04-20 16:56:28 +0800 | [diff] [blame] | 915 | struct dbglog_params *param); |
| 916 | #else |
| 917 | static inline QDF_STATUS |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 918 | wmi_unified_dbglog_cmd_send(wmi_unified_t wmi_handle, |
Wen Gong | 583a3b1 | 2018-04-20 16:56:28 +0800 | [diff] [blame] | 919 | struct dbglog_params *param) |
| 920 | { |
| 921 | return QDF_STATUS_SUCCESS; |
| 922 | } |
| 923 | #endif |
Govind Singh | e9cda9a | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 924 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 925 | /** |
| 926 | * wmi_mgmt_unified_cmd_send() - management cmd over wmi layer |
| 927 | * @wmi_handle: handle to WMI. |
| 928 | * @param: pointer to hold mgmt cmd parameter |
| 929 | * |
| 930 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 931 | */ |
| 932 | QDF_STATUS wmi_mgmt_unified_cmd_send(wmi_unified_t wmi_handle, |
| 933 | struct wmi_mgmt_params *param); |
Govind Singh | 12438e6 | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 934 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 935 | /** |
| 936 | * wmi_offchan_data_tx_cmd_send() - Send offchan data tx cmd over wmi layer |
| 937 | * @wmi_handle: handle to WMI. |
| 938 | * @param: pointer to hold offchan data cmd parameter |
| 939 | * |
| 940 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 941 | */ |
| 942 | QDF_STATUS wmi_offchan_data_tx_cmd_send( |
| 943 | wmi_unified_t wmi_handle, |
| 944 | struct wmi_offchan_data_tx_params *param); |
Kiran Venkatappa | fa59ee7 | 2017-03-19 22:58:09 +0530 | [diff] [blame] | 945 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 946 | /** |
| 947 | * wmi_unified_modem_power_state() - set modem power state to fw |
| 948 | * @wmi_handle: wmi handle |
| 949 | * @param_value: parameter value |
| 950 | * |
| 951 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 952 | */ |
| 953 | QDF_STATUS wmi_unified_modem_power_state(wmi_unified_t wmi_handle, |
| 954 | uint32_t param_value); |
Govind Singh | 12438e6 | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 955 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 956 | /** |
| 957 | * wmi_unified_set_sta_ps_mode() - set sta powersave params in fw |
| 958 | * @wmi_handle: wmi handle |
| 959 | * @vdev_id: vdev id |
| 960 | * @val: value |
| 961 | * |
| 962 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure. |
| 963 | */ |
| 964 | QDF_STATUS wmi_unified_set_sta_ps_mode(wmi_unified_t wmi_handle, |
| 965 | uint32_t vdev_id, |
| 966 | uint8_t val); |
| 967 | |
| 968 | /** |
| 969 | * wmi_unified_set_sta_uapsd_auto_trig_cmd() - set uapsd auto trigger command |
| 970 | * @wmi_handle: wmi handle |
| 971 | * @param: uapsd cmd parameter strcture |
| 972 | * |
| 973 | * This function sets the trigger |
| 974 | * uapsd params such as service interval, delay interval |
| 975 | * and suspend interval which will be used by the firmware |
| 976 | * to send trigger frames periodically when there is no |
| 977 | * traffic on the transmit side. |
| 978 | * |
| 979 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure. |
| 980 | */ |
Govind Singh | 236fc20 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 981 | QDF_STATUS |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 982 | wmi_unified_set_sta_uapsd_auto_trig_cmd(wmi_unified_t wmi_handle, |
| 983 | struct sta_uapsd_trig_params *param); |
Govind Singh | 12438e6 | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 984 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 985 | /** |
| 986 | * wmi_get_temperature() - get pdev temperature req |
| 987 | * @wmi_handle: wmi handle |
| 988 | * |
| 989 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure. |
| 990 | */ |
| 991 | QDF_STATUS wmi_unified_get_temperature(wmi_unified_t wmi_handle); |
Govind Singh | 12438e6 | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 992 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 993 | /** |
| 994 | * wmi_set_smps_params() - set smps params |
| 995 | * @wmi_handle: wmi handle |
| 996 | * @vdev_id: vdev id |
| 997 | * @value: value |
| 998 | * |
| 999 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure. |
| 1000 | */ |
| 1001 | QDF_STATUS wmi_unified_set_smps_params(wmi_unified_t wmi_handle, |
| 1002 | uint8_t vdev_id, |
| 1003 | int value); |
Govind Singh | 12438e6 | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 1004 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1005 | /** |
| 1006 | * wmi_set_mimops() - set MIMO powersave |
| 1007 | * @wmi_handle: wmi handle |
| 1008 | * @vdev_id: vdev id |
| 1009 | * @value: value |
| 1010 | * |
| 1011 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure. |
| 1012 | */ |
| 1013 | QDF_STATUS wmi_unified_set_mimops(wmi_unified_t wmi_handle, |
| 1014 | uint8_t vdev_id, int value); |
Govind Singh | d0fd726 | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1015 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1016 | /** |
| 1017 | * wmi_unified_lro_config_cmd() - process the LRO config command |
| 1018 | * @wmi_handle: Pointer to wmi handle |
| 1019 | * @wmi_lro_cmd: Pointer to LRO configuration parameters |
| 1020 | * |
| 1021 | * This function sends down the LRO configuration parameters to |
| 1022 | * the firmware to enable LRO, sets the TCP flags and sets the |
| 1023 | * seed values for the toeplitz hash generation |
| 1024 | * |
| 1025 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1026 | */ |
| 1027 | QDF_STATUS |
| 1028 | wmi_unified_lro_config_cmd(wmi_unified_t wmi_handle, |
| 1029 | struct wmi_lro_config_cmd_t *wmi_lro_cmd); |
Govind Singh | 86b2818 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1030 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1031 | /** |
| 1032 | * wmi_unified_set_thermal_mgmt_cmd() - set thermal mgmt command to fw |
| 1033 | * @wmi_handle: Pointer to wmi handle |
| 1034 | * @thermal_info: Thermal command information |
| 1035 | * |
| 1036 | * This function sends the thermal management command |
| 1037 | * to the firmware |
| 1038 | * |
| 1039 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1040 | */ |
| 1041 | QDF_STATUS |
| 1042 | wmi_unified_set_thermal_mgmt_cmd(wmi_unified_t wmi_handle, |
| 1043 | struct thermal_cmd_params *thermal_info); |
Govind Singh | 86b2818 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1044 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1045 | /** |
| 1046 | * wmi_unified_peer_rate_report_cmd() - process the peer rate report command |
| 1047 | * @wmi_handle: Pointer to wmi handle |
| 1048 | * @rate_report_params: Pointer to peer rate report parameters |
| 1049 | * |
| 1050 | * |
| 1051 | * Return: QDF_STATUS_SUCCESS for success otherwise failure |
| 1052 | */ |
| 1053 | QDF_STATUS |
| 1054 | wmi_unified_peer_rate_report_cmd( |
| 1055 | wmi_unified_t wmi_handle, |
Poddar, Siddarth | 1f21bbb | 2016-04-28 15:49:11 +0530 | [diff] [blame] | 1056 | struct wmi_peer_rate_report_params *rate_report_params); |
| 1057 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1058 | /** |
| 1059 | * wmi_unified_process_update_edca_param() - update EDCA params |
| 1060 | * @wmi_handle: wmi handle |
| 1061 | * @vdev_id: vdev id. |
| 1062 | * @mu_edca_param: mu_edca_param. |
| 1063 | * @wmm_vparams: edca parameters |
| 1064 | * |
| 1065 | * This function updates EDCA parameters to the target |
| 1066 | * |
| 1067 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1068 | */ |
| 1069 | QDF_STATUS |
| 1070 | wmi_unified_process_update_edca_param( |
| 1071 | wmi_unified_t wmi_handle, |
| 1072 | uint8_t vdev_id, |
| 1073 | bool mu_edca_param, |
| 1074 | struct wmi_host_wme_vparams wmm_vparams[WMI_MAX_NUM_AC]); |
Govind Singh | fef95e2 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1075 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1076 | /** |
| 1077 | * wmi_unified_probe_rsp_tmpl_send_cmd() - send probe response template to fw |
| 1078 | * @wmi_handle: wmi handle |
| 1079 | * @vdev_id: vdev id |
| 1080 | * @probe_rsp_info: probe response info |
| 1081 | * |
| 1082 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1083 | */ |
| 1084 | QDF_STATUS |
| 1085 | wmi_unified_probe_rsp_tmpl_send_cmd( |
| 1086 | wmi_unified_t wmi_handle, |
| 1087 | uint8_t vdev_id, |
| 1088 | struct wmi_probe_resp_params *probe_rsp_info); |
Govind Singh | fef95e2 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1089 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1090 | /** |
| 1091 | * wmi_unified_setup_install_key_cmd - send key to install to fw |
| 1092 | * @wmi_handle: wmi handle |
| 1093 | * @key_params: key parameters |
| 1094 | * |
| 1095 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1096 | */ |
| 1097 | QDF_STATUS |
| 1098 | wmi_unified_setup_install_key_cmd(wmi_unified_t wmi_handle, |
| 1099 | struct set_key_params *key_params); |
Himanshu Agarwal | a41da1d | 2016-03-09 18:49:18 +0530 | [diff] [blame] | 1100 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1101 | /** |
| 1102 | * wmi_unified_p2p_go_set_beacon_ie_cmd() - set beacon IE for p2p go |
| 1103 | * @wmi_handle: wmi handle |
| 1104 | * @vdev_id: vdev id |
| 1105 | * @p2p_ie: p2p IE |
| 1106 | * |
| 1107 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1108 | */ |
| 1109 | QDF_STATUS wmi_unified_p2p_go_set_beacon_ie_cmd(wmi_unified_t wmi_hdl, |
| 1110 | uint32_t vdev_id, |
| 1111 | uint8_t *p2p_ie); |
Govind Singh | fef95e2 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1112 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1113 | /** |
| 1114 | * wmi_unified_scan_probe_setoui_cmd() - set scan probe OUI |
| 1115 | * @wmi_handle: wmi handle |
| 1116 | * @psetoui: OUI parameters |
| 1117 | * |
| 1118 | * set scan probe OUI parameters in firmware |
| 1119 | * |
| 1120 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1121 | */ |
| 1122 | QDF_STATUS wmi_unified_scan_probe_setoui_cmd(wmi_unified_t wmi_handle, |
| 1123 | struct scan_mac_oui *psetoui); |
Govind Singh | fef95e2 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1124 | |
Sravan Kumar Kairam | ea66b68 | 2018-02-15 23:28:34 +0530 | [diff] [blame] | 1125 | #ifdef IPA_OFFLOAD |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1126 | /** wmi_unified_ipa_offload_control_cmd() - ipa offload control parameter |
| 1127 | * @wmi_handle: wmi handle |
| 1128 | * @ipa_offload: ipa offload control parameter |
| 1129 | * |
| 1130 | * Returns: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures, |
| 1131 | * error number otherwise |
| 1132 | */ |
| 1133 | QDF_STATUS |
| 1134 | wmi_unified_ipa_offload_control_cmd( |
| 1135 | wmi_unified_t wmi_handle, |
Sravan Kumar Kairam | ea66b68 | 2018-02-15 23:28:34 +0530 | [diff] [blame] | 1136 | struct ipa_uc_offload_control_params *ipa_offload); |
| 1137 | #endif |
Govind Singh | fef95e2 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1138 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1139 | /** |
| 1140 | * wmi_unified_pno_stop_cmd() - PNO stop request |
| 1141 | * @wmi_handle: wmi handle |
| 1142 | * @vdev_id: vdev id |
| 1143 | * |
| 1144 | * This function request FW to stop ongoing PNO operation. |
| 1145 | * |
| 1146 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1147 | */ |
| 1148 | QDF_STATUS wmi_unified_pno_stop_cmd(wmi_unified_t wmi_handle, uint8_t vdev_id); |
Govind Singh | fef95e2 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1149 | |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1150 | #ifdef FEATURE_WLAN_SCAN_PNO |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1151 | /** |
| 1152 | * wmi_unified_pno_start_cmd() - PNO start request |
| 1153 | * @wmi_handle: wmi handle |
| 1154 | * @pno: PNO request |
| 1155 | * |
| 1156 | * This function request FW to start PNO request. |
| 1157 | * Request: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1158 | */ |
| 1159 | QDF_STATUS wmi_unified_pno_start_cmd(wmi_unified_t wmi_handle, |
| 1160 | struct pno_scan_req_params *pno); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1161 | #endif |
Govind Singh | fef95e2 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1162 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1163 | /** |
| 1164 | * wmi_unified_nlo_mawc_cmd() - NLO MAWC cmd configuration |
| 1165 | * @wmi_handle: wmi handle |
| 1166 | * @params: Configuration parameters |
| 1167 | * |
| 1168 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1169 | */ |
| 1170 | QDF_STATUS wmi_unified_nlo_mawc_cmd(wmi_unified_t wmi_handle, |
| 1171 | struct nlo_mawc_params *params); |
Varun Reddy Yeturu | 34a3746 | 2017-07-24 16:11:22 -0700 | [diff] [blame] | 1172 | |
Jeff Johnson | 012467b | 2019-03-04 14:25:10 -0800 | [diff] [blame] | 1173 | #ifdef WLAN_FEATURE_LINK_LAYER_STATS |
| 1174 | /** |
| 1175 | * wmi_unified_process_ll_stats_clear_cmd() - clear link layer stats |
| 1176 | * @wmi_handle: wmi handle |
| 1177 | * @clear_req: ll stats clear request command params |
| 1178 | * |
| 1179 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1180 | */ |
| 1181 | QDF_STATUS wmi_unified_process_ll_stats_clear_cmd(wmi_unified_t wmi_handle, |
| 1182 | const struct ll_stats_clear_params *clear_req); |
Govind Singh | fef95e2 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1183 | |
Jeff Johnson | 012467b | 2019-03-04 14:25:10 -0800 | [diff] [blame] | 1184 | /** |
| 1185 | * wmi_unified_process_ll_stats_set_cmd() - link layer stats set request |
| 1186 | * @wmi_handle: wmi handle |
| 1187 | * @set_req: ll stats set request command params |
| 1188 | * |
| 1189 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1190 | */ |
| 1191 | QDF_STATUS wmi_unified_process_ll_stats_set_cmd(wmi_unified_t wmi_handle, |
| 1192 | const struct ll_stats_set_params *set_req); |
Govind Singh | fef95e2 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1193 | |
Jeff Johnson | 012467b | 2019-03-04 14:25:10 -0800 | [diff] [blame] | 1194 | /** |
| 1195 | * wmi_unified_process_ll_stats_get_cmd() - link layer stats get request |
| 1196 | * @wmi_handle: wmi handle |
| 1197 | * @get_req: ll stats get request command params |
| 1198 | * |
| 1199 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1200 | */ |
| 1201 | QDF_STATUS wmi_unified_process_ll_stats_get_cmd(wmi_unified_t wmi_handle, |
| 1202 | const struct ll_stats_get_params *get_req); |
| 1203 | #endif /* WLAN_FEATURE_LINK_LAYER_STATS */ |
Govind Singh | fef95e2 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1204 | |
Padma, Santhosh Kumar | 6d2e862 | 2017-03-21 19:09:35 +0530 | [diff] [blame] | 1205 | /** |
| 1206 | * wmi_unified_congestion_request_cmd() - send request to fw to get CCA |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1207 | * @wmi_handle: wma handle |
Padma, Santhosh Kumar | 6d2e862 | 2017-03-21 19:09:35 +0530 | [diff] [blame] | 1208 | * @vdev_id: vdev id |
| 1209 | * |
| 1210 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1211 | */ |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1212 | QDF_STATUS wmi_unified_congestion_request_cmd(wmi_unified_t wmi_handle, |
| 1213 | uint8_t vdev_id); |
Padma, Santhosh Kumar | 6d2e862 | 2017-03-21 19:09:35 +0530 | [diff] [blame] | 1214 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1215 | /** |
| 1216 | * wmi_unified_snr_request_cmd() - send request to fw to get RSSI stats |
| 1217 | * @wmi_handle: wmi handle |
| 1218 | * @rssi_req: get RSSI request |
| 1219 | * |
| 1220 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1221 | */ |
| 1222 | QDF_STATUS wmi_unified_snr_request_cmd(wmi_unified_t wmi_handle); |
Govind Singh | 25729ce | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1223 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1224 | /** |
| 1225 | * wmi_unified_snr_cmd() - get RSSI from fw |
| 1226 | * @wmi_handle: wmi handle |
| 1227 | * @vdev_id: vdev id |
| 1228 | * |
| 1229 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1230 | */ |
| 1231 | QDF_STATUS wmi_unified_snr_cmd(wmi_unified_t wmi_handle, uint8_t vdev_id); |
Govind Singh | 25729ce | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1232 | |
Jeff Johnson | 6a00f1e | 2019-01-15 12:08:41 -0800 | [diff] [blame] | 1233 | /** |
| 1234 | * wmi_unified_link_status_req_cmd() - process link status request from UMAC |
| 1235 | * @wmi_handle: wmi handle |
| 1236 | * @params: get link status params |
| 1237 | * |
| 1238 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1239 | */ |
| 1240 | QDF_STATUS wmi_unified_link_status_req_cmd(wmi_unified_t wmi_handle, |
| 1241 | struct link_status_params *params); |
Govind Singh | 25729ce | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1242 | |
Himanshu Agarwal | b3c81ac | 2018-01-10 14:21:53 +0530 | [diff] [blame] | 1243 | #ifdef WLAN_SUPPORT_GREEN_AP |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1244 | /** |
| 1245 | * wmi_unified_egap_conf_params_cmd() - send wmi cmd of egap config params |
| 1246 | * @wmi_handle: wmi handler |
| 1247 | * @egap_params: pointer to egap_params |
| 1248 | * |
| 1249 | * Return: 0 for success, otherwise appropriate error code |
| 1250 | */ |
| 1251 | QDF_STATUS |
| 1252 | wmi_unified_egap_conf_params_cmd( |
| 1253 | wmi_unified_t wmi_handle, |
Himanshu Agarwal | b3c81ac | 2018-01-10 14:21:53 +0530 | [diff] [blame] | 1254 | struct wlan_green_ap_egap_params *egap_params); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1255 | #endif |
Govind Singh | 25729ce | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1256 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1257 | /** |
| 1258 | * wmi_unified_csa_offload_enable() - send CSA offload enable command |
| 1259 | * @wmi_handle: wmi handle |
| 1260 | * @vdev_id: vdev id |
| 1261 | * |
| 1262 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1263 | */ |
| 1264 | QDF_STATUS wmi_unified_csa_offload_enable(wmi_unified_t wmi_handle, |
| 1265 | uint8_t vdev_id); |
Govind Singh | 25729ce | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1266 | |
Naveen Rawat | 11d8203 | 2017-05-13 15:56:57 -0700 | [diff] [blame] | 1267 | #ifdef WLAN_FEATURE_CIF_CFR |
| 1268 | /** |
| 1269 | * wmi_unified_oem_dma_ring_cfg() - configure OEM DMA rings |
| 1270 | * @wmi_handle: wmi handle |
| 1271 | * @data_len: len of dma cfg req |
| 1272 | * @data: dma cfg req |
| 1273 | * |
| 1274 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1275 | */ |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1276 | QDF_STATUS |
| 1277 | wmi_unified_oem_dma_ring_cfg(wmi_unified_t wmi_handle, |
| 1278 | wmi_oem_dma_ring_cfg_req_fixed_param *cfg); |
Naveen Rawat | 11d8203 | 2017-05-13 15:56:57 -0700 | [diff] [blame] | 1279 | #endif |
| 1280 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1281 | /** |
Paul Zhang | 5e9e454 | 2019-06-23 20:14:54 +0800 | [diff] [blame] | 1282 | * wmi_unified_start_oem_data_cmd() - start oem data request to target |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1283 | * @wmi_handle: wmi handle |
Paul Zhang | 5e9e454 | 2019-06-23 20:14:54 +0800 | [diff] [blame] | 1284 | * @data_len: the length of @data |
| 1285 | * @data: the pointer to data buf |
| 1286 | * |
| 1287 | * This is legacy api for oem data request, using wmi command |
| 1288 | * WMI_OEM_REQ_CMDID. |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1289 | * |
| 1290 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1291 | */ |
| 1292 | QDF_STATUS wmi_unified_start_oem_data_cmd(wmi_unified_t wmi_handle, |
| 1293 | uint32_t data_len, |
| 1294 | uint8_t *data); |
Govind Singh | 25729ce | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1295 | |
Paul Zhang | 5e9e454 | 2019-06-23 20:14:54 +0800 | [diff] [blame] | 1296 | #ifdef FEATURE_OEM_DATA |
| 1297 | /** |
| 1298 | * wmi_unified_start_oemv2_data_cmd() - start oem data cmd to target |
| 1299 | * @wmi_handle: wmi handle |
| 1300 | * @params: oem data params |
| 1301 | * |
| 1302 | * This is common api for oem data, using wmi command WMI_OEM_DATA_CMDID. |
| 1303 | * |
| 1304 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1305 | */ |
| 1306 | QDF_STATUS wmi_unified_start_oemv2_data_cmd(wmi_unified_t wmi_handle, |
| 1307 | struct oem_data *params); |
| 1308 | #endif |
| 1309 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1310 | /** |
| 1311 | * wmi_unified_dfs_phyerr_filter_offload_en_cmd() - enable dfs phyerr filter |
| 1312 | * @wmi_handle: wmi handle |
| 1313 | * @dfs_phyerr_filter_offload: is dfs phyerr filter offload |
| 1314 | * |
| 1315 | * Send WMI_DFS_PHYERR_FILTER_ENA_CMDID or |
| 1316 | * WMI_DFS_PHYERR_FILTER_DIS_CMDID command |
| 1317 | * to firmware based on phyerr filtering |
| 1318 | * offload status. |
| 1319 | * |
| 1320 | * Return: 1 success, 0 failure |
| 1321 | */ |
| 1322 | QDF_STATUS |
| 1323 | wmi_unified_dfs_phyerr_filter_offload_en_cmd(wmi_unified_t wmi_handle, |
| 1324 | bool dfs_phyerr_filter_offload); |
Govind Singh | 25729ce | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1325 | |
Vevek Venkatesan | 02c9164 | 2019-06-04 16:36:41 +0530 | [diff] [blame] | 1326 | #if !defined(REMOVE_PKT_LOG) && defined(FEATURE_PKTLOG) |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1327 | /** |
| 1328 | * wmi_unified_pktlog_wmi_send_cmd() - send pktlog event command to target |
| 1329 | * @wmi_handle: wmi handle |
| 1330 | * @pktlog_event: pktlog event |
| 1331 | * @cmd_id: pktlog cmd id |
| 1332 | * @user_triggered: user triggered input for PKTLOG enable mode |
| 1333 | * |
| 1334 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1335 | */ |
| 1336 | QDF_STATUS wmi_unified_pktlog_wmi_send_cmd(wmi_unified_t wmi_handle, |
| 1337 | WMI_PKTLOG_EVENT pktlog_event, |
| 1338 | uint32_t cmd_id, |
| 1339 | uint8_t user_triggered); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1340 | #endif |
Govind Singh | 25729ce | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1341 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1342 | /** |
| 1343 | * wmi_unified_stats_ext_req_cmd() - request ext stats from fw |
| 1344 | * @wmi_handle: wmi handle |
| 1345 | * @preq: stats ext params |
| 1346 | * |
| 1347 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1348 | */ |
| 1349 | QDF_STATUS wmi_unified_stats_ext_req_cmd(wmi_unified_t wmi_handle, |
| 1350 | struct stats_ext_params *preq); |
Govind Singh | 25729ce | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1351 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1352 | /** |
| 1353 | * wmi_unified_process_dhcpserver_offload_cmd() - enable DHCP server offload |
| 1354 | * @wmi_handle: wmi handle |
| 1355 | * @pDhcpSrvOffloadInfo: DHCP server offload info |
| 1356 | * |
| 1357 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1358 | */ |
| 1359 | QDF_STATUS wmi_unified_process_dhcpserver_offload_cmd( |
| 1360 | wmi_unified_t wmi_handle, |
| 1361 | struct dhcp_offload_info_params *params); |
Govind Singh | 25729ce | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1362 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1363 | /** |
| 1364 | * wmi_unified_send_regdomain_info_to_fw_cmd() - send regdomain info to fw |
| 1365 | * @wmi_handle: wmi handle |
| 1366 | * @reg_dmn: reg domain |
| 1367 | * @regdmn2G: 2G reg domain |
| 1368 | * @regdmn5G: 5G reg domain |
| 1369 | * @ctl2G: 2G test limit |
| 1370 | * @ctl5G: 5G test limit |
| 1371 | * |
| 1372 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1373 | */ |
| 1374 | QDF_STATUS wmi_unified_send_regdomain_info_to_fw_cmd(wmi_unified_t wmi_handle, |
| 1375 | uint32_t reg_dmn, |
| 1376 | uint16_t regdmn2G, |
| 1377 | uint16_t regdmn5G, |
| 1378 | uint8_t ctl2G, |
| 1379 | uint8_t ctl5G); |
Govind Singh | 25729ce | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1380 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1381 | QDF_STATUS |
| 1382 | wmi_unified_process_fw_mem_dump_cmd(wmi_unified_t wmi_hdl, |
| 1383 | struct fw_dump_req_param *mem_dump_req); |
Govind Singh | 25729ce | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1384 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1385 | /** |
| 1386 | * wmi_unified_cfg_action_frm_tb_ppdu_cmd()-send action frame TB PPDU cfg to FW |
| 1387 | * @wmi_handle: Pointer to WMi handle |
| 1388 | * @cfg_info: Pointer to cfg msg |
| 1389 | * |
| 1390 | * This function sends action frame TB PPDU cfg to firmware |
| 1391 | * |
| 1392 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1393 | * |
| 1394 | */ |
| 1395 | QDF_STATUS |
| 1396 | wmi_unified_cfg_action_frm_tb_ppdu_cmd( |
| 1397 | wmi_unified_t wmi_handle, |
| 1398 | struct cfg_action_frm_tb_ppdu_param *cfg_info); |
Kiran Kumar Lokere | 7ec4659 | 2018-09-27 23:05:33 -0700 | [diff] [blame] | 1399 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1400 | /** |
| 1401 | * wmi_unified_save_fw_version_cmd() - save fw version |
| 1402 | * @wmi_handle: pointer to wmi handle |
| 1403 | * @evt_buf: Event buffer |
| 1404 | * |
| 1405 | * |
| 1406 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1407 | * |
| 1408 | */ |
| 1409 | QDF_STATUS wmi_unified_save_fw_version_cmd(wmi_unified_t wmi_handle, |
| 1410 | void *evt_buf); |
Govind Singh | b75690a | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 1411 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1412 | /** |
| 1413 | * wmi_unified_log_supported_evt_cmd() - Enable/Disable FW diag/log events |
| 1414 | * @wmi_handle: wmi handle |
| 1415 | * @event: Event received from FW |
| 1416 | * @len: Length of the event |
| 1417 | * |
| 1418 | * Enables the low frequency events and disables the high frequency |
| 1419 | * events. Bit 17 indicates if the event if low/high frequency. |
| 1420 | * 1 - high frequency, 0 - low frequency |
| 1421 | * |
| 1422 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures |
| 1423 | */ |
| 1424 | QDF_STATUS wmi_unified_log_supported_evt_cmd(wmi_unified_t wmi_handle, |
| 1425 | uint8_t *event, |
| 1426 | uint32_t len); |
Govind Singh | a2e792e | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 1427 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1428 | /** |
| 1429 | * wmi_unified_enable_specific_fw_logs_cmd() - Start/Stop logging of diag log id |
| 1430 | * @wmi_handle: wmi handle |
| 1431 | * @start_log: Start logging related parameters |
| 1432 | * |
| 1433 | * Send the command to the FW based on which specific logging of diag |
| 1434 | * event/log id can be started/stopped |
| 1435 | * |
| 1436 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1437 | */ |
| 1438 | QDF_STATUS |
| 1439 | wmi_unified_enable_specific_fw_logs_cmd(wmi_unified_t wmi_handle, |
| 1440 | struct wmi_wifi_start_log *start_log); |
Govind Singh | a2e792e | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 1441 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1442 | /** |
| 1443 | * wmi_unified_flush_logs_to_fw_cmd() - Send log flush command to FW |
| 1444 | * @wmi_handle: WMI handle |
| 1445 | * |
| 1446 | * This function is used to send the flush command to the FW, |
| 1447 | * that will flush the fw logs that are residue in the FW |
| 1448 | * |
| 1449 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1450 | */ |
| 1451 | QDF_STATUS wmi_unified_flush_logs_to_fw_cmd(wmi_unified_t wmi_handle); |
Govind Singh | a2e792e | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 1452 | |
Akshay Kosigi | c36e354 | 2019-06-13 11:37:51 +0530 | [diff] [blame] | 1453 | /** |
| 1454 | * wmi_unified_unit_test_cmd() - send unit test command to fw. |
| 1455 | * @wmi_handle: wmi handle |
| 1456 | * @wmi_utest: unit test command |
| 1457 | * |
| 1458 | * This function send unit test command to fw. |
| 1459 | * |
| 1460 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1461 | */ |
| 1462 | QDF_STATUS wmi_unified_unit_test_cmd(wmi_unified_t wmi_handle, |
| 1463 | struct wmi_unit_test_cmd *wmi_utest); |
Govind Singh | a2e792e | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 1464 | |
Nachiket Kukade | b29adc4 | 2018-05-25 14:52:55 +0530 | [diff] [blame] | 1465 | #ifdef FEATURE_WLAN_APF |
Dustin Brown | 4191d4a | 2017-01-13 15:24:07 -0800 | [diff] [blame] | 1466 | /** |
Nachiket Kukade | a52b818 | 2018-05-22 12:17:15 +0530 | [diff] [blame] | 1467 | * wmi_unified_set_active_apf_mode_cmd() - config active APF mode in FW |
Nachiket Kukade | b29adc4 | 2018-05-25 14:52:55 +0530 | [diff] [blame] | 1468 | * @wmi: the WMI handle |
Dustin Brown | 4191d4a | 2017-01-13 15:24:07 -0800 | [diff] [blame] | 1469 | * @vdev_id: the Id of the vdev to apply the configuration to |
Nachiket Kukade | a52b818 | 2018-05-22 12:17:15 +0530 | [diff] [blame] | 1470 | * @ucast_mode: the active APF mode to configure for unicast packets |
| 1471 | * @mcast_bcast_mode: the active APF mode to configure for multicast/broadcast |
Dustin Brown | 4191d4a | 2017-01-13 15:24:07 -0800 | [diff] [blame] | 1472 | * packets |
| 1473 | */ |
Nachiket Kukade | a52b818 | 2018-05-22 12:17:15 +0530 | [diff] [blame] | 1474 | QDF_STATUS |
Nachiket Kukade | b29adc4 | 2018-05-25 14:52:55 +0530 | [diff] [blame] | 1475 | wmi_unified_set_active_apf_mode_cmd(wmi_unified_t wmi, uint8_t vdev_id, |
Nachiket Kukade | a52b818 | 2018-05-22 12:17:15 +0530 | [diff] [blame] | 1476 | enum wmi_host_active_apf_mode ucast_mode, |
| 1477 | enum wmi_host_active_apf_mode |
| 1478 | mcast_bcast_mode); |
Dustin Brown | 4191d4a | 2017-01-13 15:24:07 -0800 | [diff] [blame] | 1479 | |
Nachiket Kukade | b29adc4 | 2018-05-25 14:52:55 +0530 | [diff] [blame] | 1480 | /** |
| 1481 | * wmi_unified_send_apf_enable_cmd() - send apf enable/disable cmd |
| 1482 | * @wmi: wmi handle |
| 1483 | * @vdev_id: VDEV id |
| 1484 | * @enable: true: enable, false: disable |
| 1485 | * |
| 1486 | * This function passes the apf enable command to fw |
| 1487 | * |
| 1488 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1489 | */ |
| 1490 | QDF_STATUS wmi_unified_send_apf_enable_cmd(wmi_unified_t wmi, |
| 1491 | uint32_t vdev_id, bool enable); |
| 1492 | |
| 1493 | /** |
| 1494 | * wmi_unified_send_apf_write_work_memory_cmd() - send cmd to write into the APF |
| 1495 | * work memory. |
| 1496 | * @wmi: wmi handle |
| 1497 | * @write_params: parameters and buffer pointer for the write |
| 1498 | * |
| 1499 | * This function passes the write apf work mem command to fw |
| 1500 | * |
| 1501 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1502 | */ |
| 1503 | QDF_STATUS wmi_unified_send_apf_write_work_memory_cmd(wmi_unified_t wmi, |
| 1504 | struct wmi_apf_write_memory_params *write_params); |
| 1505 | |
| 1506 | /** |
| 1507 | * wmi_unified_send_apf_read_work_memory_cmd() - send cmd to read part of APF |
| 1508 | * work memory |
| 1509 | * @wmi: wmi handle |
| 1510 | * @read_params: contains relative address and length to read from |
| 1511 | * |
| 1512 | * This function passes the read apf work mem command to fw |
| 1513 | * |
| 1514 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1515 | */ |
| 1516 | QDF_STATUS wmi_unified_send_apf_read_work_memory_cmd(wmi_unified_t wmi, |
| 1517 | struct wmi_apf_read_memory_params *read_params); |
| 1518 | |
| 1519 | /** |
| 1520 | * wmi_extract_apf_read_memory_resp_event() - exctract read mem resp event |
| 1521 | * @wmi: wmi handle |
| 1522 | * @evt_buf: Pointer to the event buffer |
| 1523 | * @resp: pointer to memory to extract event parameters into |
| 1524 | * |
| 1525 | * This function exctracts read mem response event into the given structure ptr |
| 1526 | * |
| 1527 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1528 | */ |
| 1529 | QDF_STATUS |
| 1530 | wmi_extract_apf_read_memory_resp_event(wmi_unified_t wmi, void *evt_buf, |
| 1531 | struct wmi_apf_read_memory_resp_event_params |
| 1532 | *read_mem_evt); |
| 1533 | #endif /* FEATURE_WLAN_APF */ |
| 1534 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1535 | /** |
| 1536 | * wmi_send_get_user_position_cmd() - send get user position command to fw |
| 1537 | * @wmi_handle: wmi handle |
| 1538 | * @value: user pos value |
| 1539 | * |
| 1540 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1541 | */ |
| 1542 | QDF_STATUS |
| 1543 | wmi_send_get_user_position_cmd(wmi_unified_t wmi_handle, uint32_t value); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1544 | |
Jeevan Kukkalli | e48dc35 | 2017-06-16 18:07:28 +0530 | [diff] [blame] | 1545 | /** |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1546 | * wmi_send_get_peer_mumimo_tx_count_cmd() - send get mumio tx count |
| 1547 | * command to fw |
| 1548 | * @wmi_handle: wmi handle |
| 1549 | * @value: user pos value |
Jeevan Kukkalli | e48dc35 | 2017-06-16 18:07:28 +0530 | [diff] [blame] | 1550 | * |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1551 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Jeevan Kukkalli | e48dc35 | 2017-06-16 18:07:28 +0530 | [diff] [blame] | 1552 | */ |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1553 | QDF_STATUS |
| 1554 | wmi_send_get_peer_mumimo_tx_count_cmd(wmi_unified_t wmi_handle, |
| 1555 | uint32_t value); |
Jeevan Kukkalli | e48dc35 | 2017-06-16 18:07:28 +0530 | [diff] [blame] | 1556 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1557 | /** |
| 1558 | * wmi_send_reset_peer_mumimo_tx_count_cmd() - send reset peer mumimo |
| 1559 | * tx count to fw |
| 1560 | * @wmi_handle: wmi handle |
| 1561 | * @value: reset tx count value |
| 1562 | * |
| 1563 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1564 | */ |
| 1565 | QDF_STATUS |
| 1566 | wmi_send_reset_peer_mumimo_tx_count_cmd(wmi_unified_t wmi_handle, |
| 1567 | uint32_t value); |
Jeevan Kukkalli | e48dc35 | 2017-06-16 18:07:28 +0530 | [diff] [blame] | 1568 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1569 | /* |
| 1570 | * wmi_unified_send_btcoex_wlan_priority_cmd() - send btcoex priority commands |
| 1571 | * @wmi_handle: wmi handle |
| 1572 | * @param: wmi btcoex cfg params |
| 1573 | * |
| 1574 | * Send WMI_BTCOEX_CFG_CMDID parameters to fw. |
| 1575 | * |
| 1576 | * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error |
| 1577 | */ |
| 1578 | QDF_STATUS |
| 1579 | wmi_unified_send_btcoex_wlan_priority_cmd(wmi_unified_t wmi_handle, |
| 1580 | struct btcoex_cfg_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1581 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1582 | /** |
| 1583 | * wmi_unified_send_btcoex_duty_cycle_cmd() - send btcoex duty cycle commands |
| 1584 | * @wmi_handle: wmi handle |
| 1585 | * @param: wmi btcoex cfg params |
| 1586 | * |
| 1587 | * Send WMI_BTCOEX_CFG_CMDID parameters to fw. |
| 1588 | * |
| 1589 | * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error |
| 1590 | */ |
| 1591 | QDF_STATUS |
| 1592 | wmi_unified_send_btcoex_duty_cycle_cmd(wmi_unified_t wmi_handle, |
| 1593 | struct btcoex_cfg_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1594 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1595 | /** |
| 1596 | * wmi_unified_send_coex_ver_cfg_cmd() - send coex ver cfg command |
| 1597 | * @wmi_handle: wmi handle |
| 1598 | * @param: wmi coex ver cfg params |
| 1599 | * |
| 1600 | * Send WMI_COEX_VERSION_CFG_CMID parameters to fw. |
| 1601 | * |
| 1602 | * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error |
| 1603 | */ |
| 1604 | QDF_STATUS |
| 1605 | wmi_unified_send_coex_ver_cfg_cmd(wmi_unified_t wmi_handle, |
| 1606 | coex_ver_cfg_t *param); |
| 1607 | |
| 1608 | /** |
| 1609 | * wmi_unified_send_coex_config_cmd() - send coex ver cfg command |
| 1610 | * @wmi_handle: wmi handle |
| 1611 | * @param: wmi coex cfg cmd params |
| 1612 | * |
| 1613 | * Send WMI_COEX_CFG_CMD parameters to fw. |
| 1614 | * |
| 1615 | * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error |
| 1616 | */ |
| 1617 | QDF_STATUS |
| 1618 | wmi_unified_send_coex_config_cmd(wmi_unified_t wmi_handle, |
| 1619 | struct coex_config_params *param); |
| 1620 | |
| 1621 | /** |
| 1622 | * wmi_unified_pdev_fips_cmd_send() - WMI pdev fips cmd function |
| 1623 | * @wmi_handle: handle to WMI. |
| 1624 | * @param: pointer to hold pdev fips param |
| 1625 | * |
| 1626 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1627 | */ |
| 1628 | QDF_STATUS |
| 1629 | wmi_unified_pdev_fips_cmd_send(wmi_unified_t wmi_handle, |
| 1630 | struct fips_params *param); |
| 1631 | |
| 1632 | /** |
| 1633 | * wmi_unified_wlan_profile_enable_cmd_send() - WMI wlan profile enable |
| 1634 | * cmd function |
| 1635 | * @wmi_handle: handle to WMI. |
| 1636 | * @param: pointer to hold wlan profile param |
| 1637 | * |
| 1638 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1639 | */ |
| 1640 | QDF_STATUS |
| 1641 | wmi_unified_wlan_profile_enable_cmd_send(wmi_unified_t wmi_handle, |
| 1642 | struct wlan_profile_params *param); |
| 1643 | |
| 1644 | /** |
| 1645 | * wmi_unified_wlan_profile_trigger_cmd_send() - WMI wlan profile trigger |
| 1646 | * cmd function |
| 1647 | * @wmi_handle: handle to WMI. |
| 1648 | * @param: pointer to hold wlan profile param |
| 1649 | * |
| 1650 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1651 | */ |
| 1652 | QDF_STATUS |
| 1653 | wmi_unified_wlan_profile_trigger_cmd_send(wmi_unified_t wmi_handle, |
| 1654 | struct wlan_profile_params *param); |
| 1655 | |
| 1656 | /** |
| 1657 | * wmi_unified_set_chan_cmd_send() - WMI set channel cmd function |
| 1658 | * @wmi_handle: handle to WMI. |
| 1659 | * @param: pointer to hold channel param |
| 1660 | * |
| 1661 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1662 | */ |
| 1663 | QDF_STATUS |
| 1664 | wmi_unified_set_chan_cmd_send(wmi_unified_t wmi_handle, |
| 1665 | struct channel_param *param); |
| 1666 | |
| 1667 | /** |
| 1668 | * wmi_unified_set_ratepwr_table_cmd_send() - WMI ratepwr table cmd function |
| 1669 | * @wmi_handle: handle to WMI. |
| 1670 | * @param: pointer to hold ratepwr table param |
| 1671 | * |
| 1672 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1673 | */ |
| 1674 | QDF_STATUS |
| 1675 | wmi_unified_set_ratepwr_table_cmd_send(wmi_unified_t wmi_handle, |
| 1676 | struct ratepwr_table_params *param); |
| 1677 | |
| 1678 | /** |
| 1679 | * wmi_unified_get_ratepwr_table_cmd_send() - WMI ratepwr table cmd function |
| 1680 | * @wmi_handle: handle to WMI. |
| 1681 | * |
| 1682 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1683 | */ |
| 1684 | QDF_STATUS wmi_unified_get_ratepwr_table_cmd_send(wmi_unified_t wmi_handle); |
| 1685 | |
| 1686 | /** |
| 1687 | * wmi_unified_set_ratepwr_chainmsk_cmd_send() - WMI ratepwr |
| 1688 | * chainmsk cmd function |
| 1689 | * @wmi_handle: handle to WMI. |
| 1690 | * @param: pointer to hold ratepwr chainmsk param |
| 1691 | * |
| 1692 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1693 | */ |
| 1694 | QDF_STATUS |
| 1695 | wmi_unified_set_ratepwr_chainmsk_cmd_send(wmi_unified_t wmi_handle, |
| 1696 | struct ratepwr_chainmsk_params |
| 1697 | *param); |
| 1698 | |
| 1699 | /** |
| 1700 | * wmi_unified_set_macaddr_cmd_send() - WMI set macaddr cmd function |
| 1701 | * @wmi_handle: handle to WMI. |
| 1702 | * @param: pointer to hold macaddr param |
| 1703 | * |
| 1704 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1705 | */ |
| 1706 | QDF_STATUS wmi_unified_set_macaddr_cmd_send(wmi_unified_t wmi_handle, |
| 1707 | struct macaddr_params *param); |
| 1708 | |
| 1709 | /** |
| 1710 | * wmi_unified_pdev_scan_start_cmd_send() - WMI pdev scan start cmd function |
| 1711 | * @wmi_handle: handle to WMI. |
| 1712 | * |
| 1713 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1714 | */ |
| 1715 | QDF_STATUS wmi_unified_pdev_scan_start_cmd_send(wmi_unified_t wmi_handle); |
| 1716 | |
| 1717 | /** |
| 1718 | * wmi_unified_pdev_scan_end_cmd_send() - WMI pdev scan end cmd function |
| 1719 | * @wmi_handle: handle to WMI. |
| 1720 | * |
| 1721 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1722 | */ |
| 1723 | QDF_STATUS wmi_unified_pdev_scan_end_cmd_send(wmi_unified_t wmi_handle); |
| 1724 | |
| 1725 | /** |
| 1726 | * wmi_unified_set_acparams_cmd_send() - WMI set acparams cmd function |
| 1727 | * @wmi_handle: handle to WMI. |
| 1728 | * @param: pointer to hold acparams param |
| 1729 | * |
| 1730 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1731 | */ |
| 1732 | QDF_STATUS |
| 1733 | wmi_unified_set_acparams_cmd_send(wmi_unified_t wmi_handle, |
| 1734 | struct acparams_params *param); |
| 1735 | |
| 1736 | /** |
| 1737 | * wmi_unified_set_vap_dscp_tid_map_cmd_send() - WMI set vap dscp |
| 1738 | * tid map cmd function |
| 1739 | * @wmi_handle: handle to WMI. |
| 1740 | * @param: pointer to hold dscp param |
| 1741 | * |
| 1742 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1743 | */ |
| 1744 | QDF_STATUS |
| 1745 | wmi_unified_set_vap_dscp_tid_map_cmd_send( |
| 1746 | wmi_unified_t wmi_handle, |
| 1747 | struct vap_dscp_tid_map_params *param); |
| 1748 | |
| 1749 | /** |
| 1750 | * wmi_unified_proxy_ast_reserve_cmd_send() - WMI proxy ast |
| 1751 | * reserve cmd function |
| 1752 | * @wmi_handle: handle to WMI. |
| 1753 | * @param: pointer to hold ast param |
| 1754 | * |
| 1755 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1756 | */ |
| 1757 | QDF_STATUS |
| 1758 | wmi_unified_proxy_ast_reserve_cmd_send(wmi_unified_t wmi_handle, |
| 1759 | struct proxy_ast_reserve_params *param); |
| 1760 | |
| 1761 | /** |
| 1762 | * wmi_unified_set_bridge_mac_addr_cmd_send() - WMI set bridge mac |
| 1763 | * addr cmd function |
| 1764 | * @wmi_handle: handle to WMI. |
| 1765 | * @param: pointer to hold bridge mac addr param |
| 1766 | * |
| 1767 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1768 | */ |
| 1769 | QDF_STATUS wmi_unified_set_bridge_mac_addr_cmd_send( |
| 1770 | wmi_unified_t wmi_handle, |
| 1771 | struct set_bridge_mac_addr_params *param); |
| 1772 | |
| 1773 | /** |
| 1774 | * wmi_unified_phyerr_enable_cmd_send() - WMI phyerr enable cmd function |
| 1775 | * @wmi_handle: handle to WMI. |
| 1776 | * @param: pointer to hold phyerr enable param |
| 1777 | * |
| 1778 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1779 | */ |
| 1780 | QDF_STATUS wmi_unified_phyerr_enable_cmd_send(wmi_unified_t wmi_handle); |
| 1781 | |
| 1782 | /** |
| 1783 | * wmi_unified_phyerr_disable_cmd_send() - WMI phyerr disable cmd function |
| 1784 | * @wmi_handle: handle to WMI. |
| 1785 | * @param: pointer to hold phyerr disable param |
| 1786 | * |
| 1787 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1788 | */ |
| 1789 | QDF_STATUS wmi_unified_phyerr_disable_cmd_send(wmi_unified_t wmi_handle); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1790 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 1791 | /** |
| 1792 | * wmi_unified_smart_ant_enable_tx_feedback_cmd_send() - |
| 1793 | * WMI set tx antenna function |
| 1794 | * @wmi_handle: handle to WMI. |
| 1795 | * @param: pointer to hold antenna param |
| 1796 | * |
| 1797 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1798 | */ |
| 1799 | QDF_STATUS wmi_unified_smart_ant_enable_tx_feedback_cmd_send( |
| 1800 | wmi_unified_t wmi_handle, |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1801 | struct smart_ant_enable_tx_feedback_params *param); |
| 1802 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 1803 | /** |
| 1804 | * wmi_unified_vdev_spectral_configure_cmd_send() - |
| 1805 | * WMI set spectral config function |
| 1806 | * @wmi_handle: handle to WMI. |
| 1807 | * @param: pointer to hold spectral config param |
| 1808 | * |
| 1809 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1810 | */ |
| 1811 | QDF_STATUS wmi_unified_vdev_spectral_configure_cmd_send( |
| 1812 | wmi_unified_t wmi_handle, |
| 1813 | struct vdev_spectral_configure_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1814 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 1815 | /** |
| 1816 | * wmi_unified_vdev_spectral_enable_cmd_send() - WMI enable spectral function |
| 1817 | * @wmi_handle: handle to WMI. |
| 1818 | * @param: pointer to hold enable spectral param |
| 1819 | * |
| 1820 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1821 | */ |
| 1822 | QDF_STATUS wmi_unified_vdev_spectral_enable_cmd_send( |
| 1823 | wmi_unified_t wmi_handle, |
| 1824 | struct vdev_spectral_enable_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1825 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1826 | /** |
| 1827 | * wmi_unified_bss_chan_info_request_cmd_send() - WMI bss chan info |
| 1828 | * request function |
| 1829 | * @wmi_handle: handle to WMI. |
| 1830 | * @param: pointer to hold chan info param |
| 1831 | * |
| 1832 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1833 | */ |
| 1834 | QDF_STATUS wmi_unified_bss_chan_info_request_cmd_send( |
| 1835 | wmi_unified_t wmi_handle, |
| 1836 | struct bss_chan_info_request_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1837 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 1838 | /** |
| 1839 | * wmi_unified_thermal_mitigation_param_cmd_send() - |
| 1840 | * WMI thermal mitigation function |
| 1841 | * @wmi_handle: handle to WMI. |
| 1842 | * @param: pointer to hold thermal mitigation param |
| 1843 | * |
| 1844 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1845 | */ |
| 1846 | QDF_STATUS wmi_unified_thermal_mitigation_param_cmd_send( |
| 1847 | wmi_unified_t wmi_handle, |
| 1848 | struct thermal_mitigation_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1849 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 1850 | /** |
| 1851 | * wmi_unified_vdev_set_fwtest_param_cmd_send() - WMI set fwtest function |
| 1852 | * @wmi_handle: handle to WMI. |
| 1853 | * @param: pointer to hold fwtest param |
| 1854 | * |
| 1855 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1856 | */ |
| 1857 | QDF_STATUS wmi_unified_vdev_set_fwtest_param_cmd_send( |
| 1858 | wmi_unified_t wmi_handle, |
| 1859 | struct set_fwtest_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1860 | |
Sathish Kumar | fd134e4 | 2017-11-08 14:49:58 +0530 | [diff] [blame] | 1861 | /** |
| 1862 | * wmi_unified_vdev_set_custom_aggr_size_cmd_send() - WMI set custom aggr |
| 1863 | * size command |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 1864 | * @wmi_handle: handle to WMI. |
| 1865 | * @param: pointer to hold custom aggr size param |
Sathish Kumar | fd134e4 | 2017-11-08 14:49:58 +0530 | [diff] [blame] | 1866 | * |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 1867 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Sathish Kumar | fd134e4 | 2017-11-08 14:49:58 +0530 | [diff] [blame] | 1868 | */ |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 1869 | QDF_STATUS wmi_unified_vdev_set_custom_aggr_size_cmd_send( |
| 1870 | wmi_unified_t wmi_handle, |
| 1871 | struct set_custom_aggr_size_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1872 | |
Venkateswara Swamy Bandaru | 3ef1844 | 2017-12-22 17:16:19 +0530 | [diff] [blame] | 1873 | /** |
| 1874 | * wmi_unified_vdev_set_qdepth_thresh_cmd_send() - WMI set qdepth threshold |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 1875 | * @wmi_handle: handle to WMI. |
| 1876 | * @param: pointer to hold set qdepth thresh param |
Venkateswara Swamy Bandaru | 3ef1844 | 2017-12-22 17:16:19 +0530 | [diff] [blame] | 1877 | * |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 1878 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Venkateswara Swamy Bandaru | 3ef1844 | 2017-12-22 17:16:19 +0530 | [diff] [blame] | 1879 | */ |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 1880 | QDF_STATUS wmi_unified_vdev_set_qdepth_thresh_cmd_send( |
| 1881 | wmi_unified_t wmi_handle, |
| 1882 | struct set_qdepth_thresh_params *param); |
Venkateswara Swamy Bandaru | 3ef1844 | 2017-12-22 17:16:19 +0530 | [diff] [blame] | 1883 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1884 | /** |
| 1885 | * wmi_unified_pdev_set_regdomain_params_cmd_send() - WMI set regdomain |
| 1886 | * function |
| 1887 | * @wmi_handle: handle to WMI. |
| 1888 | * @param: pointer to hold regdomain param |
| 1889 | * |
| 1890 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1891 | */ |
| 1892 | QDF_STATUS wmi_unified_pdev_set_regdomain_cmd_send( |
| 1893 | wmi_unified_t wmi_handle, |
| 1894 | struct pdev_set_regdomain_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1895 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1896 | /** |
| 1897 | * wmi_unified_set_beacon_filter_cmd_send() - WMI set beacon filter function |
| 1898 | * @wmi_handle: handle to WMI. |
| 1899 | * @param: pointer to hold beacon filter param |
| 1900 | * |
| 1901 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1902 | */ |
| 1903 | QDF_STATUS wmi_unified_set_beacon_filter_cmd_send( |
| 1904 | wmi_unified_t wmi_handle, |
| 1905 | struct set_beacon_filter_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1906 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1907 | /** |
| 1908 | * wmi_unified_remove_beacon_filter_cmd_send() - WMI set beacon filter function |
| 1909 | * @wmi_handle: handle to WMI. |
| 1910 | * @param: pointer to hold beacon filter param |
| 1911 | * |
| 1912 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1913 | */ |
| 1914 | QDF_STATUS wmi_unified_remove_beacon_filter_cmd_send( |
| 1915 | wmi_unified_t wmi_handle, |
| 1916 | struct remove_beacon_filter_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1917 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1918 | /** |
| 1919 | * wmi_unified_addba_clearresponse_cmd_send() - WMI addba resp cmd function |
| 1920 | * @wmi_handle: handle to WMI. |
| 1921 | * @macaddr: MAC address |
| 1922 | * @param: pointer to hold addba resp parameter |
| 1923 | * |
| 1924 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1925 | */ |
| 1926 | QDF_STATUS wmi_unified_addba_clearresponse_cmd_send( |
| 1927 | wmi_unified_t wmi_handle, |
| 1928 | uint8_t macaddr[QDF_MAC_ADDR_SIZE], |
| 1929 | struct addba_clearresponse_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1930 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1931 | /** |
| 1932 | * wmi_unified_addba_send_cmd_send() - WMI addba send function |
| 1933 | * @wmi_handle: handle to WMI. |
| 1934 | * @macaddr: MAC address |
| 1935 | * @param: pointer to hold addba parameter |
| 1936 | * |
| 1937 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1938 | */ |
| 1939 | QDF_STATUS |
| 1940 | wmi_unified_addba_send_cmd_send(wmi_unified_t wmi_handle, |
Srinivas Girigowda | 2751b6d | 2019-02-27 12:28:13 -0800 | [diff] [blame] | 1941 | uint8_t macaddr[QDF_MAC_ADDR_SIZE], |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1942 | struct addba_send_params *param); |
| 1943 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1944 | /** |
| 1945 | * wmi_unified_delba_send_cmd_send() - WMI delba cmd function |
| 1946 | * @wmi_handle: handle to WMI. |
| 1947 | * @macaddr: MAC address |
| 1948 | * @param: pointer to hold delba parameter |
| 1949 | * |
| 1950 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1951 | */ |
| 1952 | QDF_STATUS |
| 1953 | wmi_unified_delba_send_cmd_send(wmi_unified_t wmi_handle, |
Srinivas Girigowda | 2751b6d | 2019-02-27 12:28:13 -0800 | [diff] [blame] | 1954 | uint8_t macaddr[QDF_MAC_ADDR_SIZE], |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1955 | struct delba_send_params *param); |
| 1956 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1957 | /** |
| 1958 | * wmi_unified_addba_setresponse_cmd_send() - WMI addba set resp cmd function |
| 1959 | * @wmi_handle: handle to WMI. |
| 1960 | * @macaddr: MAC address |
| 1961 | * @param: pointer to hold addba set resp parameter |
| 1962 | * |
| 1963 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1964 | */ |
| 1965 | QDF_STATUS |
| 1966 | wmi_unified_addba_setresponse_cmd_send(wmi_unified_t wmi_handle, |
| 1967 | uint8_t macaddr[QDF_MAC_ADDR_SIZE], |
| 1968 | struct addba_setresponse_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1969 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1970 | /** |
| 1971 | * wmi_unified_singleamsdu_cmd_send() - WMI singleamsdu function |
| 1972 | * @wmi_handle: handle to WMI. |
| 1973 | * @macaddr: MAC address |
| 1974 | * @param: pointer to hold singleamsdu parameter |
| 1975 | * |
| 1976 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1977 | */ |
| 1978 | QDF_STATUS |
| 1979 | wmi_unified_singleamsdu_cmd_send(wmi_unified_t wmi_handle, |
| 1980 | uint8_t macaddr[QDF_MAC_ADDR_SIZE], |
| 1981 | struct singleamsdu_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1982 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1983 | /** |
| 1984 | * wmi_unified_mu_scan_cmd_send() - WMI set mu scan function |
| 1985 | * @wmi_handle: handle to WMI. |
| 1986 | * @param: pointer to hold mu scan param |
| 1987 | * |
| 1988 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 1989 | */ |
| 1990 | QDF_STATUS |
| 1991 | wmi_unified_mu_scan_cmd_send(wmi_unified_t wmi_handle, |
| 1992 | struct mu_scan_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1993 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 1994 | /** |
| 1995 | * wmi_unified_lteu_config_cmd_send() - WMI set mu scan function |
| 1996 | * @wmi_handle: handle to WMI. |
| 1997 | * @param: pointer to hold mu scan param |
| 1998 | * |
| 1999 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2000 | */ |
| 2001 | QDF_STATUS |
| 2002 | wmi_unified_lteu_config_cmd_send(wmi_unified_t wmi_handle, |
| 2003 | struct lteu_config_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2004 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 2005 | /** |
| 2006 | * wmi_unified_set_psmode_cmd_send() - WMI set mu scan function |
| 2007 | * @wmi_handle: handle to WMI. |
| 2008 | * @param: pointer to hold mu scan param |
| 2009 | * |
| 2010 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2011 | */ |
| 2012 | QDF_STATUS |
| 2013 | wmi_unified_set_psmode_cmd_send(wmi_unified_t wmi_handle, |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2014 | struct set_ps_mode_params *param); |
| 2015 | |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 2016 | /** |
| 2017 | * wmi_unified_init_cmd_send() - send initialization cmd to fw |
| 2018 | * @wmi_handle: wmi handle |
| 2019 | * @param: pointer to wmi init param |
| 2020 | * |
| 2021 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2022 | */ |
| 2023 | QDF_STATUS |
| 2024 | wmi_unified_init_cmd_send(wmi_unified_t wmi_handle, |
| 2025 | struct wmi_init_cmd_param *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2026 | |
| 2027 | bool wmi_service_enabled(void *wmi_hdl, uint32_t service_id); |
| 2028 | |
Kiran Venkatappa | 482bc5e | 2017-09-01 17:02:34 +0530 | [diff] [blame] | 2029 | /** |
| 2030 | * wmi_save_service_bitmap() - save service bitmap |
| 2031 | * @wmi_handle: wmi handle |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 2032 | * @evt_buf: pointer to event buffer |
| 2033 | * @bitmap_buf: bitmap buffer |
Kiran Venkatappa | 482bc5e | 2017-09-01 17:02:34 +0530 | [diff] [blame] | 2034 | * |
| 2035 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS failure code |
| 2036 | */ |
Himanshu Batra | 9173c91 | 2019-06-20 12:14:43 +0530 | [diff] [blame] | 2037 | QDF_STATUS wmi_save_service_bitmap(wmi_unified_t wmi_handle, void *evt_buf, |
Rajeev Kumar | 22d1abf | 2017-02-12 02:12:17 -0800 | [diff] [blame] | 2038 | void *bitmap_buf); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2039 | |
Kiran Venkatappa | 482bc5e | 2017-09-01 17:02:34 +0530 | [diff] [blame] | 2040 | /** |
| 2041 | * wmi_save_ext_service_bitmap() - save extended service bitmap |
| 2042 | * @wmi_handle: wmi handle |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2043 | * @evt_buf: pointer to event buffer |
Kiran Venkatappa | 482bc5e | 2017-09-01 17:02:34 +0530 | [diff] [blame] | 2044 | * |
| 2045 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS failure code |
| 2046 | */ |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2047 | QDF_STATUS wmi_save_ext_service_bitmap(wmi_unified_t wmi_handle, void *evt_buf, |
| 2048 | void *bitmap_buf); |
Kiran Venkatappa | 482bc5e | 2017-09-01 17:02:34 +0530 | [diff] [blame] | 2049 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2050 | /** |
| 2051 | * wmi_save_fw_version() - Save fw version |
| 2052 | * @wmi_handle: wmi handle |
| 2053 | * @evt_buf: pointer to event buffer |
| 2054 | * |
| 2055 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2056 | */ |
| 2057 | QDF_STATUS wmi_save_fw_version(wmi_unified_t wmi_handle, void *evt_buf); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2058 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2059 | /** |
| 2060 | * wmi_get_target_cap_from_service_ready() - extract service ready event |
| 2061 | * @wmi_handle: wmi handle |
| 2062 | * @evt_buf: pointer to received event buffer |
| 2063 | * @ev: pointer to hold target capability information extracted from even |
| 2064 | * |
| 2065 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2066 | */ |
| 2067 | QDF_STATUS wmi_get_target_cap_from_service_ready( |
| 2068 | wmi_unified_t wmi_handle, void *evt_buf, |
| 2069 | struct wlan_psoc_target_capability_info *ev); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2070 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2071 | /** |
| 2072 | * wmi_extract_hal_reg_cap() - extract HAL registered capabilities |
| 2073 | * @wmi_handle: wmi handle |
| 2074 | * @evt_buf: Pointer to event buffer |
| 2075 | * @hal_reg_cap: pointer to hold HAL reg capabilities |
| 2076 | * |
| 2077 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2078 | */ |
| 2079 | QDF_STATUS |
| 2080 | wmi_extract_hal_reg_cap(wmi_unified_t wmi_handle, void *evt_buf, |
Rajeev Kumar | d7673a3 | 2017-02-03 00:39:49 -0800 | [diff] [blame] | 2081 | struct wlan_psoc_hal_reg_capability *hal_reg_cap); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2082 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2083 | /** |
| 2084 | * wmi_extract_host_mem_req_from_service_ready() - Extract host memory |
| 2085 | * request event |
| 2086 | * @wmi_handle: wmi handle |
| 2087 | * @evt_buf: pointer to event buffer |
| 2088 | * @num_entries: pointer to hold number of entries requested |
| 2089 | * |
| 2090 | * Return: Number of entries requested |
| 2091 | */ |
| 2092 | host_mem_req *wmi_extract_host_mem_req_from_service_ready( |
| 2093 | wmi_unified_t wmi_handle, |
| 2094 | void *evt_buf, uint8_t *num_entries); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2095 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2096 | /** |
| 2097 | * wmi_ready_extract_init_status() - Extract init status from ready event |
| 2098 | * @wmi_handle: wmi handle |
| 2099 | * @ev: Pointer to event buffer |
| 2100 | * |
| 2101 | * Return: ready status |
| 2102 | */ |
| 2103 | uint32_t wmi_ready_extract_init_status(wmi_unified_t wmi_handle, void *ev); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2104 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2105 | /** |
| 2106 | * wmi_ready_extract_mac_addr() - extract mac address from ready event |
| 2107 | * @wmi_handle: wmi handle |
| 2108 | * @ev: pointer to event buffer |
| 2109 | * @macaddr: Pointer to hold MAC address |
| 2110 | * |
| 2111 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2112 | */ |
| 2113 | QDF_STATUS wmi_ready_extract_mac_addr(wmi_unified_t wmi_handle, |
| 2114 | void *ev, uint8_t *macaddr); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2115 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2116 | /** |
| 2117 | * wmi_ready_extract_mac_addr() - extract MAC address list from ready event |
| 2118 | * @wmi_handle: wmi handle |
| 2119 | * @ev: pointer to event buffer |
| 2120 | * @num_mac_addr: Pointer to number of entries |
| 2121 | * |
| 2122 | * Return: address to start of mac addr list |
| 2123 | */ |
| 2124 | wmi_host_mac_addr |
| 2125 | *wmi_ready_extract_mac_addr_list(wmi_unified_t wmi_handle, void *ev, |
| 2126 | uint8_t *num_mac_addr); |
Manoj Ekbote | 7c2444c | 2017-07-09 23:28:56 -0700 | [diff] [blame] | 2127 | |
Kiran Venkatappa | 276e8d5 | 2017-11-10 20:50:12 +0530 | [diff] [blame] | 2128 | /** |
| 2129 | * wmi_extract_ready_params() - Extract data from ready event apart from |
| 2130 | * status, macaddr and version. |
| 2131 | * @wmi_handle: Pointer to WMI handle. |
| 2132 | * @evt_buf: Pointer to Ready event buffer. |
| 2133 | * @ev_param: Pointer to host defined struct to copy the data from event. |
| 2134 | * |
| 2135 | * Return: QDF_STATUS_SUCCESS on success. |
| 2136 | */ |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2137 | QDF_STATUS wmi_extract_ready_event_params( |
| 2138 | wmi_unified_t wmi_handle, void *evt_buf, |
| 2139 | struct wmi_host_ready_ev_param *ev_param); |
Kiran Venkatappa | 276e8d5 | 2017-11-10 20:50:12 +0530 | [diff] [blame] | 2140 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2141 | /** |
| 2142 | * wmi_extract_fw_version() - extract fw version |
| 2143 | * @wmi_handle: wmi handle |
| 2144 | * @ev: pointer to event buffer |
| 2145 | * @fw_ver: Pointer to hold fw version |
| 2146 | * |
| 2147 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2148 | */ |
| 2149 | QDF_STATUS wmi_extract_fw_version(wmi_unified_t wmi_handle, void *ev, |
| 2150 | struct wmi_host_fw_ver *fw_ver); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2151 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2152 | /** |
| 2153 | * wmi_extract_fw_abi_version() - extract fw abi version |
| 2154 | * @wmi_handle: wmi handle |
| 2155 | * @ev: Pointer to event buffer |
| 2156 | * @fw_ver: Pointer to hold fw abi version |
| 2157 | * |
| 2158 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2159 | */ |
| 2160 | QDF_STATUS wmi_extract_fw_abi_version(wmi_unified_t wmi_handle, void *ev, |
| 2161 | struct wmi_host_fw_abi_ver *fw_ver); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2162 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2163 | /** |
| 2164 | * wmi_check_and_update_fw_version() - Ready and fw version check |
| 2165 | * @wmi_handle: wmi handle |
| 2166 | * @ev: pointer to event buffer |
| 2167 | * |
| 2168 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2169 | */ |
| 2170 | QDF_STATUS wmi_check_and_update_fw_version(wmi_unified_t wmi_handle, void *ev); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2171 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2172 | /** |
| 2173 | * wmi_extract_dbglog_data_len() - extract debuglog data length |
| 2174 | * @wmi_handle: wmi handle |
| 2175 | * @evt_b: pointer to event buffer |
| 2176 | * @len: length of buffer |
| 2177 | * |
| 2178 | * Return: length |
| 2179 | */ |
| 2180 | uint8_t *wmi_extract_dbglog_data_len(wmi_unified_t wmi_handle, |
| 2181 | void *evt_b, uint32_t *len); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2182 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2183 | /** |
| 2184 | * wmi_send_ext_resource_config() - send extended resource configuration |
| 2185 | * @wmi_handle: wmi handle |
| 2186 | * @ext_cfg: pointer to extended resource configuration |
| 2187 | * |
| 2188 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2189 | */ |
| 2190 | QDF_STATUS wmi_send_ext_resource_config(wmi_unified_t wmi_handle, |
| 2191 | wmi_host_ext_resource_config *ext_cfg); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2192 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2193 | /** |
| 2194 | * wmi_unified_rtt_meas_req_test_cmd_send() - WMI rtt meas req test function |
| 2195 | * @wmi_handle: handle to WMI. |
| 2196 | * @param: pointer to hold rtt meas req test param |
| 2197 | * |
| 2198 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2199 | */ |
| 2200 | QDF_STATUS |
| 2201 | wmi_unified_rtt_meas_req_test_cmd_send(wmi_unified_t wmi_handle, |
| 2202 | struct rtt_meas_req_test_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2203 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2204 | /** |
| 2205 | * wmi_unified_rtt_meas_req_cmd_send() - WMI rtt meas req function |
| 2206 | * @wmi_handle: handle to WMI. |
| 2207 | * @param: pointer to hold rtt meas req param |
| 2208 | * |
| 2209 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2210 | */ |
| 2211 | QDF_STATUS |
| 2212 | wmi_unified_rtt_meas_req_cmd_send(wmi_unified_t wmi_handle, |
| 2213 | struct rtt_meas_req_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2214 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2215 | /** |
| 2216 | * wmi_unified_rtt_keepalive_req_cmd_send() - WMI rtt meas req test function |
| 2217 | * @wmi_handle: handle to WMI. |
| 2218 | * @param: pointer to hold rtt meas req test param |
| 2219 | * |
| 2220 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2221 | */ |
| 2222 | QDF_STATUS |
| 2223 | wmi_unified_rtt_keepalive_req_cmd_send(wmi_unified_t wmi_handle, |
| 2224 | struct rtt_keepalive_req_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2225 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2226 | /** |
| 2227 | * wmi_unified_lci_set_cmd_send() - WMI lci set function |
| 2228 | * @wmi_handle: handle to WMI. |
| 2229 | * @param: pointer to hold lci param |
| 2230 | * |
| 2231 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2232 | */ |
| 2233 | QDF_STATUS wmi_unified_lci_set_cmd_send(wmi_unified_t wmi_handle, |
| 2234 | struct lci_set_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2235 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2236 | /** |
| 2237 | * wmi_unified_lcr_set_cmd_send() - WMI lcr set function |
| 2238 | * @wmi_handle: handle to WMI. |
| 2239 | * @param: pointer to hold lcr param |
| 2240 | * |
| 2241 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2242 | */ |
| 2243 | QDF_STATUS wmi_unified_lcr_set_cmd_send(wmi_unified_t wmi_handle, |
| 2244 | struct lcr_set_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2245 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2246 | /** |
| 2247 | * wmi_unified_send_periodic_chan_stats_config_cmd() - send periodic chan |
| 2248 | * stats cmd to fw |
| 2249 | * @wmi_handle: wmi handle |
| 2250 | * @param: pointer to hold periodic chan stats param |
| 2251 | * |
| 2252 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2253 | */ |
| 2254 | QDF_STATUS wmi_unified_send_periodic_chan_stats_config_cmd( |
| 2255 | wmi_unified_t wmi_handle, |
| 2256 | struct periodic_chan_stats_params *param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2257 | |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2258 | /* Extract APIs */ |
| 2259 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2260 | /** |
| 2261 | * wmi_extract_fips_event_data() - extract fips event data |
| 2262 | * @wmi_handle: wmi handle |
| 2263 | * @evt_buf: pointer to event buffer |
| 2264 | * @param: pointer to FIPS event param |
| 2265 | * |
| 2266 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2267 | */ |
Anirban Sirkhell | d01ccdf | 2017-08-25 16:01:50 +0530 | [diff] [blame] | 2268 | QDF_STATUS |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2269 | wmi_extract_fips_event_data(wmi_unified_t wmi_handle, void *evt_buf, |
| 2270 | struct wmi_host_fips_event_param *param); |
| 2271 | |
| 2272 | /** |
| 2273 | * wmi_extract_mgmt_rx_params() - extract management rx params from event |
| 2274 | * @wmi_handle: wmi handle |
| 2275 | * @evt_buf: pointer to event buffer |
| 2276 | * @hdr: Pointer to hold header |
| 2277 | * @bufp: Pointer to hold pointer to rx param buffer |
| 2278 | * |
| 2279 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2280 | */ |
| 2281 | QDF_STATUS |
| 2282 | wmi_extract_mgmt_rx_params(wmi_unified_t wmi_handle, void *evt_buf, |
| 2283 | struct mgmt_rx_event_params *hdr, uint8_t **bufp); |
| 2284 | |
| 2285 | /** |
| 2286 | * wmi_extract_vdev_roam_param() - extract vdev roam param from event |
| 2287 | * @wmi_handle: wmi handle |
| 2288 | * @evt_buf: pointer to event buffer |
| 2289 | * @ev: Pointer to hold roam param |
| 2290 | * |
| 2291 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2292 | */ |
| 2293 | QDF_STATUS |
| 2294 | wmi_extract_vdev_roam_param(wmi_unified_t wmi_handle, void *evt_buf, |
| 2295 | wmi_host_roam_event *ev); |
| 2296 | |
| 2297 | /** |
| 2298 | * wmi_extract_vdev_scan_ev_param() - extract vdev scan param from event |
| 2299 | * @wmi_handle: wmi handle |
| 2300 | * @evt_buf: pointer to event buffer |
| 2301 | * @param: Pointer to hold vdev scan param |
| 2302 | * |
| 2303 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2304 | */ |
| 2305 | QDF_STATUS |
| 2306 | wmi_extract_vdev_scan_ev_param(wmi_unified_t wmi_handle, void *evt_buf, |
| 2307 | struct scan_event *param); |
| 2308 | |
| 2309 | /** |
| 2310 | * wmi_extract_mu_ev_param() - extract mu param from event |
| 2311 | * @wmi_handle: wmi handle |
| 2312 | * @evt_buf: pointer to event buffer |
| 2313 | * @param: Pointer to hold mu report |
| 2314 | * |
| 2315 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2316 | */ |
| 2317 | QDF_STATUS |
| 2318 | wmi_extract_mu_ev_param(wmi_unified_t wmi_handle, void *evt_buf, |
| 2319 | wmi_host_mu_report_event *param); |
| 2320 | |
| 2321 | /** |
| 2322 | * wmi_extract_mu_db_entry() - extract mu db entry from event |
| 2323 | * @wmi_handle: wmi handle |
| 2324 | * @evt_buf: pointer to event buffer |
| 2325 | * @idx: index |
| 2326 | * @param: Pointer to hold mu db entry |
| 2327 | * |
| 2328 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2329 | */ |
| 2330 | QDF_STATUS |
| 2331 | wmi_extract_mu_db_entry(wmi_unified_t wmi_handle, void *evt_buf, |
| 2332 | uint8_t idx, wmi_host_mu_db_entry *param); |
| 2333 | |
| 2334 | /** |
| 2335 | * wmi_extract_mumimo_tx_count_ev_param() - extract mumimo tx count from event |
| 2336 | * @wmi_handle: wmi handle |
| 2337 | * @evt_buf: pointer to event buffer |
| 2338 | * @param: Pointer to hold mumimo tx count |
| 2339 | * |
| 2340 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2341 | */ |
| 2342 | QDF_STATUS |
| 2343 | wmi_extract_mumimo_tx_count_ev_param(wmi_unified_t wmi_handle, void *evt_buf, |
| 2344 | wmi_host_peer_txmu_cnt_event *param); |
| 2345 | |
| 2346 | /** |
| 2347 | * wmi_extract_peer_gid_userpos_list_ev_param() - extract peer userpos list |
| 2348 | * from event |
| 2349 | * @wmi_handle: wmi handle |
| 2350 | * @evt_buf: pointer to event buffer |
| 2351 | * @param: Pointer to hold peer gid userposition list |
| 2352 | * |
| 2353 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2354 | */ |
| 2355 | QDF_STATUS |
| 2356 | wmi_extract_peer_gid_userpos_list_ev_param( |
| 2357 | wmi_unified_t wmi_handle, |
| 2358 | void *evt_buf, |
| 2359 | wmi_host_peer_gid_userpos_list_event *param); |
| 2360 | |
| 2361 | /** |
| 2362 | * wmi_extract_esp_estimate_ev_param() - extract air time from event |
| 2363 | * @wmi_handle: wmi handle |
| 2364 | * @evt_buf: pointer to event buffer |
| 2365 | * @param: Pointer to hold esp event |
| 2366 | * |
| 2367 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2368 | */ |
| 2369 | QDF_STATUS |
| 2370 | wmi_extract_esp_estimate_ev_param(wmi_unified_t wmi_handle, void *evt_buf, |
Anirban Sirkhell | d01ccdf | 2017-08-25 16:01:50 +0530 | [diff] [blame] | 2371 | struct esp_estimation_event *param); |
| 2372 | |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2373 | /** |
| 2374 | * wmi_extract_gpio_input_ev_param() - extract gpio input param from event |
| 2375 | * @wmi_handle: wmi handle |
| 2376 | * @evt_buf: pointer to event buffer |
| 2377 | * @gpio_num: Pointer to hold gpio number |
| 2378 | * |
| 2379 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2380 | */ |
| 2381 | QDF_STATUS wmi_extract_gpio_input_ev_param(wmi_unified_t wmi_handle, |
| 2382 | void *evt_buf, uint32_t *gpio_num); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2383 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2384 | /** |
| 2385 | * wmi_extract_pdev_reserve_ast_ev_param() - extract reserve ast entry |
| 2386 | * param from event |
| 2387 | * @wmi_handle: wmi handle |
| 2388 | * @evt_buf: pointer to event buffer |
| 2389 | * @param: Pointer to hold reserve ast entry param |
| 2390 | * |
| 2391 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2392 | */ |
| 2393 | QDF_STATUS wmi_extract_pdev_reserve_ast_ev_param( |
| 2394 | wmi_unified_t wmi_handle, void *evt_buf, |
| 2395 | struct wmi_host_proxy_ast_reserve_param *param); |
| 2396 | /** |
| 2397 | * wmi_extract_pdev_generic_buffer_ev_param() - extract pdev generic buffer |
| 2398 | * from event |
| 2399 | * @wmi_handle: wmi handle |
| 2400 | * @evt_buf: pointer to event buffer |
| 2401 | * @param: Pointer to generic buffer param |
| 2402 | * |
| 2403 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2404 | */ |
| 2405 | QDF_STATUS wmi_extract_pdev_generic_buffer_ev_param( |
| 2406 | wmi_unified_t wmi_handle, void *evt_buf, |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2407 | wmi_host_pdev_generic_buffer_event *param); |
| 2408 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2409 | /** |
| 2410 | * wmi_extract_peer_ratecode_list_ev() - extract peer ratecode from event |
| 2411 | * @wmi_handle: wmi handle |
| 2412 | * @evt_buf: pointer to event buffer |
| 2413 | * @peer_mac: Pointer to hold peer mac address |
| 2414 | * @rate_cap: Pointer to hold ratecode |
| 2415 | * |
| 2416 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2417 | */ |
| 2418 | QDF_STATUS wmi_extract_peer_ratecode_list_ev( |
| 2419 | wmi_unified_t wmi_handle, void *evt_buf, |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2420 | uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap); |
| 2421 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2422 | /** |
| 2423 | * wmi_extract_bcnflt_stats() - extract bcn fault stats from event |
| 2424 | * @wmi_handle: wmi handle |
| 2425 | * @evt_buf: pointer to event buffer |
| 2426 | * @index: Index into bcn fault stats |
| 2427 | * @bcnflt_stats: Pointer to hold bcn fault stats |
| 2428 | * |
| 2429 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2430 | */ |
| 2431 | QDF_STATUS wmi_extract_bcnflt_stats( |
| 2432 | wmi_unified_t wmi_handle, void *evt_buf, |
| 2433 | uint32_t index, wmi_host_bcnflt_stats *bcnflt_stats); |
Jeff Johnson | 589ca09 | 2016-10-07 13:03:02 -0700 | [diff] [blame] | 2434 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2435 | /** |
| 2436 | * wmi_extract_rtt_hdr() - extract rtt header from event |
| 2437 | * @wmi_handle: wmi handle |
| 2438 | * @evt_buf: pointer to event buffer |
| 2439 | * @ev: Pointer to hold rtt header |
| 2440 | * |
| 2441 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2442 | */ |
| 2443 | QDF_STATUS wmi_extract_rtt_hdr(wmi_unified_t wmi_handle, void *evt_buf, |
| 2444 | wmi_host_rtt_event_hdr *ev); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2445 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2446 | /** |
| 2447 | * wmi_extract_rtt_ev() - extract rtt event |
| 2448 | * @wmi_handle: wmi handle |
| 2449 | * @evt_buf: Pointer to event buffer |
| 2450 | * @ev: Pointer to hold rtt event |
| 2451 | * @hdump: Pointer to hold hex dump |
| 2452 | * @hdump_len: hex dump length |
| 2453 | * |
| 2454 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2455 | */ |
| 2456 | QDF_STATUS wmi_extract_rtt_ev(wmi_unified_t wmi_handle, void *evt_buf, |
| 2457 | wmi_host_rtt_meas_event *ev, |
| 2458 | uint8_t *hdump, uint16_t hdump_len); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2459 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2460 | /** |
| 2461 | * wmi_extract_rtt_error_report_ev() - extract rtt error report from event |
| 2462 | * @wmi_handle: wmi handle |
| 2463 | * @evt_buf: pointer to event buffer |
| 2464 | * @ev: Pointer to hold rtt error report |
| 2465 | * |
| 2466 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2467 | */ |
| 2468 | QDF_STATUS |
| 2469 | wmi_extract_rtt_error_report_ev(wmi_unified_t wmi_handle, void *evt_buf, |
| 2470 | wmi_host_rtt_error_report_event *ev); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2471 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2472 | /** |
| 2473 | * wmi_extract_chan_stats() - extract chan stats from event |
| 2474 | * @wmi_handle: wmi handle |
| 2475 | * @evt_buf: pointer to event buffer |
| 2476 | * @index: Index into chan stats |
| 2477 | * @chan_stats: Pointer to hold chan stats |
| 2478 | * |
| 2479 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2480 | */ |
| 2481 | QDF_STATUS |
| 2482 | wmi_extract_chan_stats(wmi_unified_t wmi_handle, void *evt_buf, |
| 2483 | uint32_t index, wmi_host_chan_stats *chan_stats); |
Jeff Johnson | 589ca09 | 2016-10-07 13:03:02 -0700 | [diff] [blame] | 2484 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2485 | /** |
| 2486 | * wmi_extract_thermal_stats() - extract thermal stats from event |
| 2487 | * @wmi_handle: wmi handle |
| 2488 | * @evt_buf: Pointer to event buffer |
| 2489 | * @temp: Pointer to hold extracted temperature |
| 2490 | * @level: Pointer to hold extracted level |
| 2491 | * @pdev_id: Pointer to hold extracted pdev_id |
| 2492 | * |
| 2493 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2494 | */ |
| 2495 | QDF_STATUS wmi_extract_thermal_stats(wmi_unified_t wmi_handle, void *evt_buf, |
| 2496 | uint32_t *temp, uint32_t *level, |
| 2497 | uint32_t *pdev_id); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2498 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2499 | /** |
| 2500 | * wmi_extract_thermal_level_stats() - extract thermal level stats from |
| 2501 | * event |
| 2502 | * @wmi_handle: wmi handle |
| 2503 | * @evt_buf: pointer to event buffer |
| 2504 | * @idx: Index to level stats |
| 2505 | * @levelcount: Pointer to hold levelcount |
| 2506 | * @dccount: Pointer to hold dccount |
| 2507 | * |
| 2508 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2509 | */ |
| 2510 | QDF_STATUS |
| 2511 | wmi_extract_thermal_level_stats(wmi_unified_t wmi_handle, void *evt_buf, |
| 2512 | uint8_t idx, uint32_t *levelcount, |
| 2513 | uint32_t *dccount); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2514 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2515 | /** |
| 2516 | * wmi_extract_comb_phyerr() - extract comb phy error from event |
| 2517 | * @wmi_handle: wmi handle |
| 2518 | * @evt_buf: pointer to event buffer |
| 2519 | * @datalen: data length of event buffer |
| 2520 | * @buf_offset: Pointer to hold value of current event buffer offset |
| 2521 | * post extraction |
| 2522 | * @phyerr: Pointer to hold phyerr |
| 2523 | * |
| 2524 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2525 | */ |
| 2526 | QDF_STATUS |
| 2527 | wmi_extract_comb_phyerr(wmi_unified_t wmi_handle, void *evt_buf, |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2528 | uint16_t datalen, uint16_t *buf_offset, |
| 2529 | wmi_host_phyerr_t *phyerr); |
| 2530 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2531 | /** |
| 2532 | * wmi_extract_single_phyerr() - extract single phy error from event |
| 2533 | * @wmi_handle: wmi handle |
| 2534 | * @evt_buf: pointer to event buffer |
| 2535 | * @datalen: data length of event buffer |
| 2536 | * @buf_offset: Pointer to hold value of current event buffer offset |
| 2537 | * post extraction |
| 2538 | * @phyerr: Pointer to hold phyerr |
| 2539 | * |
| 2540 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2541 | */ |
| 2542 | QDF_STATUS |
| 2543 | wmi_extract_single_phyerr(wmi_unified_t wmi_handle, void *evt_buf, |
| 2544 | uint16_t datalen, uint16_t *buf_offset, |
| 2545 | wmi_host_phyerr_t *phyerr); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2546 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2547 | /** |
| 2548 | * wmi_extract_composite_phyerr() - extract composite phy error from event |
| 2549 | * @wmi_handle: wmi handle |
| 2550 | * @evt_buf: pointer to event buffer |
| 2551 | * @datalen: Length of event buffer |
| 2552 | * @phyerr: Pointer to hold phy error |
| 2553 | * |
| 2554 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2555 | */ |
| 2556 | QDF_STATUS |
| 2557 | wmi_extract_composite_phyerr(wmi_unified_t wmi_handle, void *evt_buf, |
| 2558 | uint16_t datalen, wmi_host_phyerr_t *phyerr); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2559 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2560 | /** |
| 2561 | * wmi_extract_profile_ctx() - extract profile context from event |
| 2562 | * @wmi_handle: wmi handle |
| 2563 | * @evt_buf: pointer to event buffer |
| 2564 | * @profile_ctx: Pointer to hold profile context |
| 2565 | * |
| 2566 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2567 | */ |
| 2568 | QDF_STATUS |
| 2569 | wmi_extract_profile_ctx(wmi_unified_t wmi_handle, void *evt_buf, |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2570 | wmi_host_wlan_profile_ctx_t *profile_ctx); |
| 2571 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2572 | /** |
| 2573 | * wmi_extract_profile_data() - extract profile data from event |
| 2574 | * @wmi_handle: wmi handle |
| 2575 | * @evt_buf: pointer to event buffer |
| 2576 | * @idx: index of profile data |
| 2577 | * @profile_data: Pointer to hold profile data |
| 2578 | * |
| 2579 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2580 | */ |
| 2581 | QDF_STATUS |
| 2582 | wmi_extract_profile_data(wmi_unified_t wmi_handle, void *evt_buf, uint8_t idx, |
| 2583 | wmi_host_wlan_profile_t *profile_data); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2584 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2585 | /** |
| 2586 | * wmi_extract_stats_param() - extract all stats count from event |
| 2587 | * @wmi_handle: wmi handle |
| 2588 | * @evt_buf: pointer to event buffer |
| 2589 | * @stats_param: Pointer to hold stats count |
| 2590 | * |
| 2591 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2592 | */ |
| 2593 | QDF_STATUS |
| 2594 | wmi_extract_stats_param(wmi_unified_t wmi_handle, void *evt_buf, |
| 2595 | wmi_host_stats_event *stats_param); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2596 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2597 | /** |
| 2598 | * wmi_extract_pdev_stats() - extract pdev stats from event |
| 2599 | * @wmi_handle: wmi handle |
| 2600 | * @evt_buf: pointer to event buffer |
| 2601 | * @index: Index into pdev stats |
| 2602 | * @pdev_stats: Pointer to hold pdev stats |
| 2603 | * |
| 2604 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2605 | */ |
| 2606 | QDF_STATUS |
| 2607 | wmi_extract_pdev_stats(wmi_unified_t wmi_handle, void *evt_buf, |
| 2608 | uint32_t index, wmi_host_pdev_stats *pdev_stats); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2609 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2610 | /** |
| 2611 | * extract_unit_test() - extract unit test from event |
| 2612 | * @wmi_handle: wmi handle |
| 2613 | * @evt_buf: pointer to event buffer |
| 2614 | * @unit_test: Pointer to hold unit-test header |
| 2615 | * @maxspace: The amount of space in evt_buf |
| 2616 | * |
| 2617 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2618 | */ |
| 2619 | QDF_STATUS |
| 2620 | wmi_extract_unit_test(wmi_unified_t wmi_handle, void *evt_buf, |
| 2621 | wmi_unit_test_event *unit_test, uint32_t maxspace); |
Adil Saeed Musthafa | 65dabe4 | 2017-08-23 17:32:11 -0700 | [diff] [blame] | 2622 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2623 | /** |
| 2624 | * wmi_extract_pdev_ext_stats() - extract extended pdev stats from event |
| 2625 | * @wmi_handle: wmi handle |
| 2626 | * @evt_buf: pointer to event buffer |
| 2627 | * @index: Index into extended pdev stats |
| 2628 | * @pdev_ext_stats: Pointer to hold extended pdev stats |
| 2629 | * |
| 2630 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2631 | */ |
| 2632 | QDF_STATUS |
| 2633 | wmi_extract_pdev_ext_stats(wmi_unified_t wmi_handle, void *evt_buf, |
| 2634 | uint32_t index, |
| 2635 | wmi_host_pdev_ext_stats *pdev_ext_stats); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2636 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2637 | /** |
| 2638 | * wmi_extract_peer_extd_stats() - extract extended peer stats from event |
| 2639 | * @wmi_handle: wmi handle |
| 2640 | * @evt_buf: pointer to event buffer |
| 2641 | * @index: Index into extended peer stats |
| 2642 | * @peer_extd_stats: Pointer to hold extended peer stats |
| 2643 | * |
| 2644 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2645 | */ |
| 2646 | QDF_STATUS |
| 2647 | wmi_extract_peer_extd_stats(wmi_unified_t wmi_handle, void *evt_buf, |
| 2648 | uint32_t index, |
| 2649 | wmi_host_peer_extd_stats *peer_extd_stats); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2650 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2651 | /** |
| 2652 | * wmi_extract_peer_adv_stats() - extract advance (extd2) peer stats from event |
| 2653 | * @wmi_handle: wmi handle |
| 2654 | * @evt_buf: pointer to event buffer |
| 2655 | * @peer_adv_stats: Pointer to hold extended peer stats |
| 2656 | * |
| 2657 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2658 | */ |
| 2659 | QDF_STATUS wmi_extract_peer_adv_stats( |
| 2660 | wmi_unified_t wmi_handle, void *evt_buf, |
| 2661 | struct wmi_host_peer_adv_stats *peer_adv_stats); |
Sourav Mohapatra | 9a6ee7d | 2019-02-08 17:50:49 +0530 | [diff] [blame] | 2662 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2663 | /** |
| 2664 | * wmi_extract_bss_chan_info_event() - extract bss channel information |
| 2665 | * from event |
| 2666 | * @wmi_handle: wmi handle |
| 2667 | * @evt_buf: pointer to event buffer |
| 2668 | * @bss_chan_info: Pointer to hold bss channel information |
| 2669 | * |
| 2670 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2671 | */ |
| 2672 | QDF_STATUS wmi_extract_bss_chan_info_event( |
| 2673 | wmi_unified_t wmi_handle, void *evt_buf, |
| 2674 | wmi_host_pdev_bss_chan_info_event *bss_chan_info); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2675 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2676 | /** |
| 2677 | * wmi_extract_peer_stats() - extract peer stats from event |
| 2678 | * @wmi_handle: wmi handle |
| 2679 | * @evt_buf: pointer to event buffer |
| 2680 | * @index: Index into peer stats |
| 2681 | * @peer_stats: Pointer to hold peer stats |
| 2682 | * |
| 2683 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2684 | */ |
| 2685 | QDF_STATUS |
| 2686 | wmi_extract_peer_stats(wmi_unified_t wmi_handle, void *evt_buf, |
| 2687 | uint32_t index, wmi_host_peer_stats *peer_stats); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2688 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2689 | /** |
| 2690 | * wmi_extract_tx_data_traffic_ctrl_ev() - extract tx data traffic control |
| 2691 | * from event |
| 2692 | * @wmi_handle: wmi handle |
| 2693 | * @evt_buf: pointer to event buffer |
| 2694 | * @ev: Pointer to hold data traffic control |
| 2695 | * |
| 2696 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2697 | */ |
| 2698 | QDF_STATUS |
| 2699 | wmi_extract_tx_data_traffic_ctrl_ev(wmi_unified_t wmi_handle, void *evt_buf, |
| 2700 | wmi_host_tx_data_traffic_ctrl_event *ev); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2701 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2702 | /** |
| 2703 | * wmi_extract_vdev_stats() - extract vdev stats from event |
| 2704 | * @wmi_handle: wmi handle |
| 2705 | * @evt_buf: pointer to event buffer |
| 2706 | * @index: Index into vdev stats |
| 2707 | * @vdev_stats: Pointer to hold vdev stats |
| 2708 | * |
| 2709 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2710 | */ |
| 2711 | QDF_STATUS |
| 2712 | wmi_extract_vdev_stats(wmi_unified_t wmi_handle, void *evt_buf, |
| 2713 | uint32_t index, wmi_host_vdev_stats *vdev_stats); |
Govind Singh | a5e18c4 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2714 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2715 | /** |
| 2716 | * wmi_extract_per_chain_rssi_stats() - extract rssi stats from event |
| 2717 | * @wmi_handle: wmi handle |
| 2718 | * @evt_buf: pointer to event buffer |
| 2719 | * @index: Index into rssi stats |
| 2720 | * @rssi_stats: Pointer to hold rssi stats |
| 2721 | * |
| 2722 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2723 | */ |
| 2724 | QDF_STATUS wmi_extract_per_chain_rssi_stats( |
| 2725 | wmi_unified_t wmi_handle, void *evt_buf, |
| 2726 | uint32_t index, |
| 2727 | struct wmi_host_per_chain_rssi_stats *rssi_stats); |
Naveen Rawat | 97a913a | 2018-04-12 08:17:55 -0700 | [diff] [blame] | 2728 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2729 | /** |
| 2730 | * wmi_extract_vdev_extd_stats() - extract extended vdev stats from event |
| 2731 | * @wmi_handle: wmi handle |
| 2732 | * @evt_buf: pointer to event buffer |
| 2733 | * @index: Index into extended vdev stats |
| 2734 | * @vdev_extd_stats: Pointer to hold extended vdev stats |
| 2735 | * |
| 2736 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2737 | */ |
| 2738 | QDF_STATUS |
| 2739 | wmi_extract_vdev_extd_stats(wmi_unified_t wmi_handle, void *evt_buf, |
| 2740 | uint32_t index, |
| 2741 | wmi_host_vdev_extd_stats *vdev_extd_stats); |
Govind Singh | 2a56c22 | 2016-05-02 17:59:24 +0530 | [diff] [blame] | 2742 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2743 | /** |
| 2744 | * wmi_extract_bcn_stats() - extract beacon stats from event |
| 2745 | * @wmi_handle: wmi handle |
| 2746 | * @evt_buf: pointer to event buffer |
| 2747 | * @index: Index into beacon stats |
| 2748 | * @vdev_bcn_stats: Pointer to hold beacon stats |
| 2749 | * |
| 2750 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2751 | */ |
| 2752 | QDF_STATUS |
| 2753 | wmi_extract_bcn_stats(wmi_unified_t wmi_handle, void *evt_buf, |
| 2754 | uint32_t index, wmi_host_bcn_stats *vdev_bcn_stats); |
Gurumoorthi Gnanasambandhan | 2b51b57 | 2017-11-06 22:04:17 +0530 | [diff] [blame] | 2755 | |
Chaithanya Garrepalli | b265cca | 2018-01-18 14:19:41 +0530 | [diff] [blame] | 2756 | /** |
| 2757 | * wmi_extract_vdev_nac_rssi_stats() - extract NAC_RSSI stats from event |
| 2758 | * @wmi_handle: wmi handle |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2759 | * @evt_buf: pointer to event buffer |
| 2760 | * @vdev_extd_stats: Pointer to hold nac rssi stats |
Chaithanya Garrepalli | b265cca | 2018-01-18 14:19:41 +0530 | [diff] [blame] | 2761 | * |
| 2762 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2763 | */ |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2764 | QDF_STATUS wmi_extract_vdev_nac_rssi_stats( |
| 2765 | wmi_unified_t wmi_handle, void *evt_buf, |
Chaithanya Garrepalli | b265cca | 2018-01-18 14:19:41 +0530 | [diff] [blame] | 2766 | struct wmi_host_vdev_nac_rssi_event *vdev_nac_rssi_stats); |
| 2767 | |
Uraj Sasan | ff4f2d2 | 2018-09-20 09:39:49 +0530 | [diff] [blame] | 2768 | /** |
| 2769 | * wmi_extract_peer_retry_stats() - extract peer retry stats from event |
| 2770 | * @wmi_handle: wmi handle |
| 2771 | * @evt_buf: pointer to event buffer |
| 2772 | * @index: Index into peer retry stats |
| 2773 | * @peer_retry_stats: Pointer to hold peer retry stats |
| 2774 | * |
| 2775 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2776 | */ |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2777 | QDF_STATUS wmi_extract_peer_retry_stats( |
| 2778 | wmi_unified_t wmi_handle, void *evt_buf, |
Uraj Sasan | ff4f2d2 | 2018-09-20 09:39:49 +0530 | [diff] [blame] | 2779 | uint32_t index, struct wmi_host_peer_retry_stats *peer_retry_stats); |
| 2780 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2781 | /** |
| 2782 | * wmi_unified_send_power_dbg_cmd() - send power debug commands |
| 2783 | * @wmi_handle: wmi handle |
| 2784 | * @param: wmi power debug parameter |
| 2785 | * |
| 2786 | * Send WMI_POWER_DEBUG_CMDID parameters to fw. |
| 2787 | * |
| 2788 | * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error |
| 2789 | */ |
| 2790 | QDF_STATUS wmi_unified_send_power_dbg_cmd(wmi_unified_t wmi_handle, |
| 2791 | struct wmi_power_dbg_params *param); |
Sathish Kumar | 6938efe | 2017-02-27 10:35:40 +0530 | [diff] [blame] | 2792 | |
Jeff Johnson | 15ca1af | 2017-12-14 15:50:16 -0800 | [diff] [blame] | 2793 | /** |
Kabilan Kannan | 762ad5d | 2018-06-21 16:55:47 -0700 | [diff] [blame] | 2794 | * wmi_extract_sar_cap_service_ready_ext() - extract SAR cap from |
| 2795 | * FW service ready event |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2796 | * @wmi_handle: wmi handle |
Kabilan Kannan | 762ad5d | 2018-06-21 16:55:47 -0700 | [diff] [blame] | 2797 | * @evt_buf: event buffer received from firmware |
| 2798 | * @ext_param: extended target info |
| 2799 | * |
| 2800 | * Return: QDF_STATUS_SUCCESS for success or error code |
| 2801 | */ |
| 2802 | QDF_STATUS wmi_extract_sar_cap_service_ready_ext( |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2803 | wmi_unified_t wmi_handle, |
Kabilan Kannan | 762ad5d | 2018-06-21 16:55:47 -0700 | [diff] [blame] | 2804 | uint8_t *evt_buf, |
| 2805 | struct wlan_psoc_host_service_ext_param *ext_param); |
| 2806 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2807 | /** |
| 2808 | * wmi_unified_fw_test_cmd() - send fw test command to fw. |
| 2809 | * @wmi_handle: wmi handle |
| 2810 | * @wmi_fwtest: fw test command |
| 2811 | * |
| 2812 | * This function sends fw test command to fw. |
| 2813 | * |
| 2814 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2815 | */ |
| 2816 | QDF_STATUS wmi_unified_fw_test_cmd(wmi_unified_t wmi_handle, |
Anurag Chouhan | e6d4b28 | 2016-07-22 20:19:54 +0530 | [diff] [blame] | 2817 | struct set_fwtest_params *wmi_fwtest); |
| 2818 | |
Leo Chang | e34fbde | 2016-09-28 13:43:36 -0700 | [diff] [blame] | 2819 | QDF_STATUS wmi_unified_peer_rx_reorder_queue_setup_send(void *wmi_hdl, |
| 2820 | struct rx_reorder_queue_setup_params *param); |
| 2821 | QDF_STATUS wmi_unified_peer_rx_reorder_queue_remove_send(void *wmi_hdl, |
| 2822 | struct rx_reorder_queue_remove_params *param); |
Kiran Venkatappa | 3a41533 | 2016-08-10 23:55:40 +0530 | [diff] [blame] | 2823 | |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2824 | /* |
| 2825 | * wmi_extract_service_ready_ext() - extract extended service ready |
| 2826 | * @wmi_handle: wmi handle |
| 2827 | * @param: wmi power debug parameter |
| 2828 | * |
| 2829 | * |
| 2830 | * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error |
| 2831 | */ |
| 2832 | QDF_STATUS wmi_extract_service_ready_ext( |
| 2833 | wmi_unified_t wmi_handle, uint8_t *evt_buf, |
Rajeev Kumar | d7673a3 | 2017-02-03 00:39:49 -0800 | [diff] [blame] | 2834 | struct wlan_psoc_host_service_ext_param *param); |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2835 | |
| 2836 | /** |
| 2837 | * wmi_extract_hw_mode_cap_service_ready_ext() - |
| 2838 | * extract HW mode cap from service ready event |
| 2839 | * @wmi_handle: wmi handle |
| 2840 | * @evt_buf: pointer to event buffer |
| 2841 | * @hw_mode_idx: hw mode idx should be less than num_mode |
| 2842 | * @param: Pointer to hold evt buf |
| 2843 | * |
| 2844 | * Return: QDF_STATUS_SUCCESS for success or error code |
| 2845 | */ |
Kiran Venkatappa | 3a41533 | 2016-08-10 23:55:40 +0530 | [diff] [blame] | 2846 | QDF_STATUS wmi_extract_hw_mode_cap_service_ready_ext( |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2847 | wmi_unified_t wmi_handle, |
Kiran Venkatappa | 3a41533 | 2016-08-10 23:55:40 +0530 | [diff] [blame] | 2848 | uint8_t *evt_buf, uint8_t hw_mode_idx, |
Rajeev Kumar | d7673a3 | 2017-02-03 00:39:49 -0800 | [diff] [blame] | 2849 | struct wlan_psoc_host_hw_mode_caps *param); |
Himanshu Batra | 6abe4be | 2019-06-20 12:28:26 +0530 | [diff] [blame^] | 2850 | |
Kiran Venkatappa | 3a41533 | 2016-08-10 23:55:40 +0530 | [diff] [blame] | 2851 | QDF_STATUS wmi_extract_mac_phy_cap_service_ready_ext( |
| 2852 | void *wmi_hdl, |
Kiran Venkatappa | df17b07 | 2016-12-26 15:38:06 +0530 | [diff] [blame] | 2853 | uint8_t *evt_buf, |
| 2854 | uint8_t hw_mode_id, |
| 2855 | uint8_t phy_id, |
Rajeev Kumar | d7673a3 | 2017-02-03 00:39:49 -0800 | [diff] [blame] | 2856 | struct wlan_psoc_host_mac_phy_caps *param); |
Himanshu Batra | 29bc991 | 2019-06-20 12:19:39 +0530 | [diff] [blame] | 2857 | |
| 2858 | /** |
| 2859 | * wmi_extract_reg_cap_service_ready_ext() - |
| 2860 | * extract REG cap from service ready event |
| 2861 | * @wmi_handle: wmi handle |
| 2862 | * @evt_buf: pointer to event buffer |
| 2863 | * @phy_idx: phy idx should be less than num_mode |
| 2864 | * @param: Pointer to hold evt buf |
| 2865 | * |
| 2866 | * Return: QDF_STATUS_SUCCESS for success or error code |
| 2867 | */ |
| 2868 | QDF_STATUS |
| 2869 | wmi_extract_reg_cap_service_ready_ext( |
| 2870 | wmi_unified_t wmi_handle, |
Kiran Venkatappa | 3a41533 | 2016-08-10 23:55:40 +0530 | [diff] [blame] | 2871 | uint8_t *evt_buf, uint8_t phy_idx, |
Rajeev Kumar | d7673a3 | 2017-02-03 00:39:49 -0800 | [diff] [blame] | 2872 | struct wlan_psoc_host_hal_reg_capabilities_ext *param); |
Sathish Kumar | 85da7c5 | 2017-11-17 17:30:41 +0530 | [diff] [blame] | 2873 | |
| 2874 | /** |
| 2875 | * wmi_extract_dbr_ring_cap_service_ready_ext: Extract direct buffer rx |
| 2876 | * capability received through |
| 2877 | * extended service ready event |
| 2878 | * @wmi_hdl: WMI handle |
| 2879 | * @evt_buf: Event buffer |
| 2880 | * @idx: Index of the module for which capability is received |
| 2881 | * @param: Pointer to direct buffer rx ring cap struct |
| 2882 | * |
| 2883 | * Return: QDF status of operation |
| 2884 | */ |
| 2885 | QDF_STATUS wmi_extract_dbr_ring_cap_service_ready_ext( |
| 2886 | void *wmi_hdl, |
| 2887 | uint8_t *evt_buf, uint8_t idx, |
| 2888 | struct wlan_psoc_host_dbr_ring_caps *param); |
| 2889 | |
Edayilliam Jayadev | d4b7e3b | 2018-08-09 13:50:18 +0530 | [diff] [blame] | 2890 | /** |
| 2891 | * wmi_extract_spectral_scaling_params_service_ready_ext: Extract Spectral |
| 2892 | * scaling params received through |
| 2893 | * extended service ready event |
| 2894 | * @wmi_hdl: WMI handle |
| 2895 | * @evt_buf: Event buffer |
| 2896 | * @idx: Index |
| 2897 | * @param: Pointer to Spectral scaling params |
| 2898 | * |
| 2899 | * Return: QDF status of operation |
| 2900 | */ |
| 2901 | QDF_STATUS wmi_extract_spectral_scaling_params_service_ready_ext( |
| 2902 | void *wmi_hdl, |
| 2903 | uint8_t *evt_buf, uint8_t idx, |
| 2904 | struct wlan_psoc_host_spectral_scaling_params *param); |
| 2905 | |
Sathish Kumar | 3541df9 | 2017-01-24 17:51:26 +0530 | [diff] [blame] | 2906 | QDF_STATUS wmi_extract_pdev_utf_event(void *wmi_hdl, |
| 2907 | uint8_t *evt_buf, |
| 2908 | struct wmi_host_pdev_utf_event *param); |
Vijay Pamidipati | da06116 | 2017-01-17 12:53:05 +0530 | [diff] [blame] | 2909 | |
Kiran Venkatappa | c186571 | 2017-02-28 14:19:17 +0530 | [diff] [blame] | 2910 | QDF_STATUS wmi_extract_pdev_qvit_event(void *wmi_hdl, |
| 2911 | uint8_t *evt_buf, |
| 2912 | struct wmi_host_pdev_qvit_event *param); |
| 2913 | |
Aditya Sathish | ce928dc | 2019-05-09 11:18:43 +0530 | [diff] [blame] | 2914 | #ifdef WLAN_SUPPORT_RF_CHARACTERIZATION |
| 2915 | /** |
| 2916 | * wmi_extract_rf_characterziation_entries - Extract RF characterization metrics |
| 2917 | * received through extended service ready event. |
| 2918 | * @wmi_hdl: WMI handle |
| 2919 | * @evt_buf: Event buffer |
| 2920 | * @rf_characterization_entries: Pointer to RF characterization metrics |
| 2921 | * |
| 2922 | * Return: QDF status of operation |
| 2923 | */ |
| 2924 | QDF_STATUS wmi_extract_rf_characterization_entries(wmi_unified_t wmi_hdl, |
| 2925 | uint8_t *evt_buf, |
| 2926 | struct wlan_psoc_host_rf_characterization_entry *rf_characterization_entries); |
| 2927 | #endif |
| 2928 | |
Vikram Kandukuri | d4aa277 | 2017-03-07 18:40:13 +0530 | [diff] [blame] | 2929 | QDF_STATUS wmi_extract_chainmask_tables(void *wmi_hdl, uint8_t *evt_buf, |
| 2930 | struct wlan_psoc_host_chainmask_table *chainmask_table); |
Arif Hussain | fc86d5e | 2017-01-07 18:21:55 -0800 | [diff] [blame] | 2931 | /** |
| 2932 | * wmi_unified_dfs_phyerr_offload_en_cmd() - enable dfs phyerr offload |
| 2933 | * @wmi_handle: wmi handle |
| 2934 | * @pdev_id: pdev id |
| 2935 | * |
| 2936 | * Return: QDF_STATUS |
| 2937 | */ |
| 2938 | QDF_STATUS wmi_unified_dfs_phyerr_offload_en_cmd(void *wmi_hdl, |
| 2939 | uint32_t pdev_id); |
| 2940 | |
| 2941 | /** |
| 2942 | * wmi_unified_dfs_phyerr_offload_dis_cmd() - disable dfs phyerr offload |
| 2943 | * @wmi_handle: wmi handle |
| 2944 | * @pdev_id: pdev id |
| 2945 | * |
| 2946 | * Return: QDF_STATUS |
| 2947 | */ |
| 2948 | QDF_STATUS wmi_unified_dfs_phyerr_offload_dis_cmd(void *wmi_hdl, |
| 2949 | uint32_t pdev_id); |
Dustin Brown | 536064a | 2017-04-03 17:00:07 -0700 | [diff] [blame] | 2950 | |
Shaakir Mohamed | 9ff68da | 2019-02-22 11:16:16 -0800 | [diff] [blame] | 2951 | #ifdef QCA_SUPPORT_AGILE_DFS |
| 2952 | /** |
| 2953 | * wmi_unified_send_vdev_adfs_ch_cfg_cmd() - send adfs channel config command |
| 2954 | * @wmi_handle: wmi handle |
| 2955 | * @vdev_adfs_ch_cfg_params: adfs channel config params |
| 2956 | * |
| 2957 | * Return: QDF_STATUS |
| 2958 | */ |
| 2959 | QDF_STATUS |
| 2960 | wmi_unified_send_vdev_adfs_ch_cfg_cmd(void *wmi_hdl, |
| 2961 | struct vdev_adfs_ch_cfg_params *param); |
| 2962 | |
| 2963 | /** |
| 2964 | * wmi_unified_send_vdev_adfs_ocac_abort_cmd() - send adfs o-cac abort command |
| 2965 | * @wmi_handle: wmi handle |
| 2966 | * @vdev_adfs_abort_params: adfs channel o-cac abort params |
| 2967 | * |
| 2968 | * Return: QDF_STATUS |
| 2969 | */ |
| 2970 | QDF_STATUS |
| 2971 | wmi_unified_send_vdev_adfs_ocac_abort_cmd(void *wmi_hdl, |
| 2972 | struct vdev_adfs_abort_params *param); |
| 2973 | #endif |
| 2974 | |
Kiran Kumar Lokere | a843634 | 2017-04-24 00:56:03 -0700 | [diff] [blame] | 2975 | QDF_STATUS wmi_unified_set_country_cmd_send(void *wmi_hdl, |
| 2976 | struct set_country *param); |
Rajeev Kumar Sirasanagandla | 6697085 | 2017-09-18 16:47:52 +0530 | [diff] [blame] | 2977 | |
| 2978 | #ifdef WLAN_FEATURE_ACTION_OUI |
| 2979 | /** |
| 2980 | * wmi_unified_send_action_oui_cmd() - send action oui cmd to fw |
| 2981 | * @wmi_hdl: wma handle |
| 2982 | * @req: wmi action oui message to be send |
| 2983 | * |
| 2984 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2985 | */ |
| 2986 | QDF_STATUS |
| 2987 | wmi_unified_send_action_oui_cmd(void *wmi_hdl, |
| 2988 | struct action_oui_request *req); |
| 2989 | #endif /* WLAN_FEATURE_ACTION_OUI */ |
| 2990 | |
Rajeev Kumar Sirasanagandla | b851d10 | 2016-11-22 21:28:54 +0530 | [diff] [blame] | 2991 | /** |
| 2992 | * wmi_unified_send_request_get_rcpi_cmd() - command to request rcpi value |
| 2993 | * @wmi_hdl: wma handle |
| 2994 | * @get_rcpi_param: rcpi params |
| 2995 | * |
| 2996 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 2997 | */ |
| 2998 | QDF_STATUS wmi_unified_send_request_get_rcpi_cmd(void *wmi_hdl, |
| 2999 | struct rcpi_req *get_rcpi_param); |
| 3000 | |
| 3001 | /** |
| 3002 | * wmi_extract_rcpi_response_event - api to extract RCPI event params |
| 3003 | * @wmi_handle: wma handle |
| 3004 | * @evt_buf: pointer to event buffer |
| 3005 | * @res: pointer to hold rcpi response from firmware |
| 3006 | * |
| 3007 | * Return: QDF_STATUS_SUCCESS for successful event parse |
| 3008 | * else QDF_STATUS_E_INVAL or QDF_STATUS_E_FAILURE |
| 3009 | */ |
| 3010 | QDF_STATUS wmi_extract_rcpi_response_event(void *wmi_hdl, void *evt_buf, |
| 3011 | struct rcpi_res *res); |
| 3012 | |
Dustin Brown | 536064a | 2017-04-03 17:00:07 -0700 | [diff] [blame] | 3013 | #ifdef WMI_INTERFACE_EVENT_LOGGING |
| 3014 | void wmi_print_cmd_log(wmi_unified_t wmi, uint32_t count, |
| 3015 | qdf_abstract_print *print, void *print_priv); |
| 3016 | |
| 3017 | void wmi_print_cmd_tx_cmp_log(wmi_unified_t wmi, uint32_t count, |
| 3018 | qdf_abstract_print *print, void *print_priv); |
| 3019 | |
| 3020 | void wmi_print_mgmt_cmd_log(wmi_unified_t wmi, uint32_t count, |
| 3021 | qdf_abstract_print *print, void *print_priv); |
| 3022 | |
| 3023 | void wmi_print_mgmt_cmd_tx_cmp_log(wmi_unified_t wmi, uint32_t count, |
| 3024 | qdf_abstract_print *print, void *print_priv); |
| 3025 | |
| 3026 | void wmi_print_event_log(wmi_unified_t wmi, uint32_t count, |
| 3027 | qdf_abstract_print *print, void *print_priv); |
| 3028 | |
| 3029 | void wmi_print_rx_event_log(wmi_unified_t wmi, uint32_t count, |
| 3030 | qdf_abstract_print *print, void *print_priv); |
| 3031 | |
| 3032 | void wmi_print_mgmt_event_log(wmi_unified_t wmi, uint32_t count, |
| 3033 | qdf_abstract_print *print, void *print_priv); |
Kiran Kumar Lokere | a843634 | 2017-04-24 00:56:03 -0700 | [diff] [blame] | 3034 | |
Dustin Brown | 536064a | 2017-04-03 17:00:07 -0700 | [diff] [blame] | 3035 | #endif /* WMI_INTERFACE_EVENT_LOGGING */ |
| 3036 | |
Kiran Venkatappa | 084aff4 | 2017-11-08 19:32:23 +0530 | [diff] [blame] | 3037 | /** |
Rathees kumar Chinannan | cd61d59 | 2017-11-22 17:03:57 +0530 | [diff] [blame] | 3038 | * wmi_unified_send_wds_entry_list_cmd() - WMI function to get list of |
| 3039 | * wds entries from FW |
Arif Hussain | a9e4986 | 2017-12-27 16:23:45 -0800 | [diff] [blame] | 3040 | * @wmi_hdl: wmi handle |
Rathees kumar Chinannan | cd61d59 | 2017-11-22 17:03:57 +0530 | [diff] [blame] | 3041 | * |
| 3042 | * Send WMI_PDEV_WDS_ENTRY_LIST_CMDID parameters to fw. |
| 3043 | * |
| 3044 | * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error |
| 3045 | */ |
| 3046 | |
| 3047 | QDF_STATUS wmi_unified_send_dump_wds_table_cmd(void *wmi_hdl); |
| 3048 | |
| 3049 | /** |
| 3050 | * wmi_extract_wds_entry - api to extract wds entry |
Arif Hussain | a9e4986 | 2017-12-27 16:23:45 -0800 | [diff] [blame] | 3051 | * @wmi_hdl: wmi handle |
Rathees kumar Chinannan | cd61d59 | 2017-11-22 17:03:57 +0530 | [diff] [blame] | 3052 | * @evt_buf: pointer to event buffer |
| 3053 | * @wds_entry: wds entry |
| 3054 | * @idx: index to point wds entry in event buffer |
| 3055 | * |
| 3056 | * Return: QDF_STATUS_SUCCESS for successful event parse |
| 3057 | * else QDF_STATUS_E_INVAL or QDF_STATUS_E_FAILURE |
| 3058 | */ |
| 3059 | |
| 3060 | QDF_STATUS wmi_extract_wds_entry(void *wmi_hdl, uint8_t *evt_buf, |
| 3061 | struct wdsentry *wds_entry, u_int32_t idx); |
Naveen Rawat | 6880512 | 2017-12-14 13:24:31 -0800 | [diff] [blame] | 3062 | |
Arif Hussain | a9e4986 | 2017-12-27 16:23:45 -0800 | [diff] [blame] | 3063 | /** |
| 3064 | * wmi_unified_send_obss_detection_cfg_cmd() - WMI function to send obss |
| 3065 | * detection configuration to FW. |
| 3066 | * @wmi_hdl: wmi handle |
| 3067 | * @cfg: obss detection configuration |
| 3068 | * |
| 3069 | * Send WMI_SAP_OBSS_DETECTION_CFG_CMDID parameters to fw. |
| 3070 | * |
| 3071 | * Return: QDF_STATUS |
| 3072 | */ |
| 3073 | |
| 3074 | QDF_STATUS wmi_unified_send_obss_detection_cfg_cmd(void *wmi_hdl, |
| 3075 | struct wmi_obss_detection_cfg_param *cfg); |
Arif Hussain | c116a01 | 2018-01-12 13:15:04 -0800 | [diff] [blame] | 3076 | |
| 3077 | /** |
| 3078 | * wmi_unified_extract_obss_detection_info() - WMI function to extract obss |
| 3079 | * detection info from FW. |
| 3080 | * @wmi_hdl: wmi handle |
| 3081 | * @data: event data from firmware |
| 3082 | * @info: Pointer to hold obss detection info |
| 3083 | * |
| 3084 | * This function is used to extract obss info from firmware. |
| 3085 | * |
| 3086 | * Return: QDF_STATUS |
| 3087 | */ |
| 3088 | |
| 3089 | QDF_STATUS wmi_unified_extract_obss_detection_info(void *wmi_hdl, |
| 3090 | uint8_t *data, |
| 3091 | struct wmi_obss_detect_info |
| 3092 | *info); |
| 3093 | |
Himanshu Agarwal | c4cec66 | 2018-01-24 22:24:17 +0530 | [diff] [blame] | 3094 | #ifdef WLAN_SUPPORT_GREEN_AP |
| 3095 | QDF_STATUS wmi_extract_green_ap_egap_status_info( |
| 3096 | void *wmi_hdl, uint8_t *evt_buf, |
| 3097 | struct wlan_green_ap_egap_status_info *egap_status_info_params); |
| 3098 | #endif |
| 3099 | |
Vignesh Viswanathan | 26fc2e1 | 2018-01-18 19:06:40 +0530 | [diff] [blame] | 3100 | /** |
Rajeev Kumar Sirasanagandla | 61a090c | 2018-03-02 21:12:16 +0530 | [diff] [blame] | 3101 | * wmi_unified_send_roam_scan_stats_cmd() - Wrapper to request roam scan stats |
| 3102 | * @wmi_hdl: wmi handle |
| 3103 | * @params: request params |
| 3104 | * |
| 3105 | * This function is used to send the roam scan stats request command to |
| 3106 | * firmware. |
| 3107 | * |
| 3108 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3109 | */ |
| 3110 | QDF_STATUS |
| 3111 | wmi_unified_send_roam_scan_stats_cmd(void *wmi_hdl, |
| 3112 | struct wmi_roam_scan_stats_req *params); |
| 3113 | |
| 3114 | /** |
| 3115 | * wmi_extract_roam_scan_stats_res_evt() - API to extract roam scan stats res |
| 3116 | * @wmi: wmi handle |
| 3117 | * @evt_buf: pointer to the event buffer |
| 3118 | * @vdev_id: output pointer to hold vdev id |
| 3119 | * @res_param: output pointer to hold extracted memory |
| 3120 | * |
| 3121 | * Return: QDF_STATUS |
| 3122 | */ |
| 3123 | QDF_STATUS |
| 3124 | wmi_extract_roam_scan_stats_res_evt(wmi_unified_t wmi, void *evt_buf, |
| 3125 | uint32_t *vdev_id, |
| 3126 | struct wmi_roam_scan_stats_res **res_param); |
Gyanranjan Hazarika | 584a187 | 2018-10-04 11:26:20 -0700 | [diff] [blame] | 3127 | |
| 3128 | /** |
| 3129 | * wmi_extract_offload_bcn_tx_status_evt() - API to extract bcn tx status event |
| 3130 | * @wmi: wmi handle |
| 3131 | * @evt_buf: pointer to the event buffer |
| 3132 | * @vdev_id: output pointer to hold vdev id |
| 3133 | * @tx_status: output pointer to hold bcn tx status |
| 3134 | * |
| 3135 | * Return: QDF_STATUS |
| 3136 | */ |
| 3137 | QDF_STATUS |
| 3138 | wmi_extract_offload_bcn_tx_status_evt(void *wmi_hdl, void *evt_buf, |
| 3139 | uint32_t *vdev_id, uint32_t *tx_status); |
Naveen Rawat | 2a5dc61 | 2018-02-02 15:13:05 -0800 | [diff] [blame] | 3140 | |
Naveen Rawat | caca8b0 | 2018-02-02 15:18:33 -0800 | [diff] [blame] | 3141 | /* wmi_get_ch_width_from_phy_mode() - convert phy mode to channel width |
| 3142 | * @wmi_hdl: wmi handle |
| 3143 | * @phymode: phy mode |
| 3144 | * |
| 3145 | * Return: wmi channel width |
| 3146 | */ |
| 3147 | wmi_host_channel_width wmi_get_ch_width_from_phy_mode(void *wmi_hdl, |
| 3148 | WMI_HOST_WLAN_PHY_MODE phymode); |
| 3149 | |
Naveen Rawat | 0e634fa | 2018-04-13 16:38:36 -0700 | [diff] [blame] | 3150 | #ifdef QCA_SUPPORT_CP_STATS |
| 3151 | /** |
| 3152 | * wmi_extract_cca_stats() - api to extract congestion stats from event buffer |
| 3153 | * @wmi_handle: wma handle |
| 3154 | * @evt_buf: event buffer |
| 3155 | * @datalen: length of buffer |
| 3156 | * @stats: buffer to populated after stats extraction |
| 3157 | * |
| 3158 | * Return: status of operation |
| 3159 | */ |
| 3160 | QDF_STATUS wmi_extract_cca_stats(wmi_unified_t wmi_handle, void *evt_buf, |
| 3161 | struct wmi_host_congestion_stats *stats); |
| 3162 | #endif /* QCA_SUPPORT_CP_STATS */ |
| 3163 | |
Shashikala Prabhu | 9951d56 | 2018-05-16 10:08:09 +0530 | [diff] [blame] | 3164 | #if defined(WLAN_DFS_PARTIAL_OFFLOAD) && defined(HOST_DFS_SPOOF_TEST) |
| 3165 | /** |
| 3166 | * wmi_unified_dfs_send_avg_params_cmd() - send average radar parameters cmd. |
| 3167 | * @wmi_hdl: wmi handle |
| 3168 | * @params: radar found params |
| 3169 | * |
| 3170 | * This function passes the average radar parameters to fw |
| 3171 | * |
| 3172 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3173 | */ |
| 3174 | QDF_STATUS |
| 3175 | wmi_unified_dfs_send_avg_params_cmd(void *wmi_hdl, |
| 3176 | struct dfs_radar_found_params *params); |
| 3177 | |
| 3178 | /** |
| 3179 | * wmi_extract_dfs_status_from_fw() - extract host dfs status from fw. |
| 3180 | * @wmi_hdl: wmi handle |
| 3181 | * @evt_buf: pointer to event buffer |
| 3182 | * @dfs_status_check: pointer to the host dfs status |
| 3183 | * |
| 3184 | * This function extracts the result of host dfs from fw |
| 3185 | * |
| 3186 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3187 | */ |
| 3188 | QDF_STATUS wmi_extract_dfs_status_from_fw(void *wmi_hdl, void *evt_buf, |
| 3189 | uint32_t *dfs_status_check); |
| 3190 | #endif |
c_cgodav | b69942b | 2017-02-13 10:14:42 +0530 | [diff] [blame] | 3191 | #ifdef OL_ATH_SMART_LOGGING |
| 3192 | /** |
| 3193 | * wmi_unified_send_smart_logging_enable_cmd() - send smart logging enable cmd |
| 3194 | * @wmi_hdl: wmi handle |
| 3195 | * @params: enable/disable |
| 3196 | * |
| 3197 | * This function enables/disable the smart logging feature |
| 3198 | * |
| 3199 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3200 | */ |
| 3201 | QDF_STATUS wmi_unified_send_smart_logging_enable_cmd(void *wmi_hdl, |
| 3202 | uint32_t param); |
| 3203 | |
| 3204 | /** |
| 3205 | * wmi_unified_send_smart_logging_fatal_cmd() - send smart logging fatal cmd |
| 3206 | * @wmi_hdl: wmi handle |
| 3207 | * @param: Fatal event |
| 3208 | * |
| 3209 | * This function sends the smart log fatal events to the FW |
| 3210 | * |
| 3211 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3212 | */ |
| 3213 | QDF_STATUS wmi_unified_send_smart_logging_fatal_cmd |
| 3214 | (void *wmi_hdl, |
| 3215 | struct wmi_debug_fatal_events *param); |
| 3216 | |
| 3217 | /** |
| 3218 | * wmi_extract_smartlog_ev() - extract smartlog event info from event |
| 3219 | * @wmi_handle: wmi handle |
| 3220 | * @param evt_buf: pointer to event buffer |
| 3221 | * @param ev: Pointer to hold fatal events |
| 3222 | * |
| 3223 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3224 | */ |
| 3225 | QDF_STATUS wmi_extract_smartlog_ev |
| 3226 | (void *wmi_hdl, void *evt_buf, |
| 3227 | struct wmi_debug_fatal_events *ev); |
Amar Singhal | dbff0cc | 2018-06-26 16:45:54 -0700 | [diff] [blame] | 3228 | |
c_cgodav | b69942b | 2017-02-13 10:14:42 +0530 | [diff] [blame] | 3229 | #endif /* OL_ATH_SMART_LOGGING */ |
Amar Singhal | dbff0cc | 2018-06-26 16:45:54 -0700 | [diff] [blame] | 3230 | |
Harprit Chhabada | 71c9846 | 2018-12-26 14:10:39 -0800 | [diff] [blame] | 3231 | /** |
| 3232 | * wmi_process_fw_event_worker_thread_ctx() - process in worker thread context |
| 3233 | * @wmi_handle: handle to wmi |
| 3234 | * @evt_buf: pointer to event buffer |
| 3235 | * |
| 3236 | * Event process by below function will be in worker thread context. |
| 3237 | * Use this method for events which are not critical and not |
| 3238 | * handled in protocol stack. |
| 3239 | * |
| 3240 | * Return: none |
| 3241 | */ |
Amar Singhal | dbff0cc | 2018-06-26 16:45:54 -0700 | [diff] [blame] | 3242 | void wmi_process_fw_event_worker_thread_ctx(struct wmi_unified *wmi_handle, |
Harprit Chhabada | 71c9846 | 2018-12-26 14:10:39 -0800 | [diff] [blame] | 3243 | void *evt_buf); |
Amar Singhal | dbff0cc | 2018-06-26 16:45:54 -0700 | [diff] [blame] | 3244 | |
Alok Singh | 1ae17d8 | 2018-09-20 16:07:28 +0530 | [diff] [blame] | 3245 | /** |
| 3246 | * wmi_extract_ctl_failsafe_check_ev_param() - extract ctl failsafe |
| 3247 | * status from event |
| 3248 | * @wmi_handle: wmi handle |
| 3249 | * @param evt_buf: pointer to event buffer |
| 3250 | * @param ev: Pointer to hold ctl status |
| 3251 | * |
| 3252 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3253 | */ |
| 3254 | QDF_STATUS |
| 3255 | wmi_extract_ctl_failsafe_check_ev_param(void *wmi_hdl, |
| 3256 | void *evt_buf, |
| 3257 | struct wmi_host_pdev_ctl_failsafe_event |
| 3258 | *param); |
| 3259 | |
Pratik Gandhi | 3bc1616 | 2018-09-17 16:47:12 +0530 | [diff] [blame] | 3260 | #ifdef OBSS_PD |
| 3261 | /** |
Arif Hussain | e1a66b5 | 2018-10-17 18:48:29 -0700 | [diff] [blame] | 3262 | * wmi_unified_send_obss_spatial_reuse_set_cmd() - send obss pd offset |
Pratik Gandhi | 3bc1616 | 2018-09-17 16:47:12 +0530 | [diff] [blame] | 3263 | * @wmi_handle: wmi handle |
Arif Hussain | e1a66b5 | 2018-10-17 18:48:29 -0700 | [diff] [blame] | 3264 | * @oobss_spatial_reuse_param: Pointer to obsspd min max offset |
Pratik Gandhi | 3bc1616 | 2018-09-17 16:47:12 +0530 | [diff] [blame] | 3265 | * |
| 3266 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3267 | */ |
| 3268 | QDF_STATUS wmi_unified_send_obss_spatial_reuse_set_cmd(void *wmi_handle, |
| 3269 | struct wmi_host_obss_spatial_reuse_set_param *obss_spatial_reuse_param); |
Arif Hussain | e1a66b5 | 2018-10-17 18:48:29 -0700 | [diff] [blame] | 3270 | |
| 3271 | /** |
| 3272 | * wmi_unified_send_obss_spatial_reuse_set_def_thresh_cmd() - send def thresh |
| 3273 | * @wmi_handle: wmi handle |
| 3274 | * @thresh: Pointer to def thresh |
| 3275 | * |
| 3276 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3277 | */ |
| 3278 | QDF_STATUS wmi_unified_send_obss_spatial_reuse_set_def_thresh_cmd(void *wmi_hdl, |
| 3279 | struct wmi_host_obss_spatial_reuse_set_def_thresh *thresh); |
| 3280 | |
Pratik Gandhi | 3bc1616 | 2018-09-17 16:47:12 +0530 | [diff] [blame] | 3281 | #endif /* OBSS_PD */ |
Shashikala Prabhu | 70da943 | 2018-09-24 13:54:23 +0530 | [diff] [blame] | 3282 | |
| 3283 | /** |
| 3284 | * wmi_convert_pdev_id_host_to_target() - Convert pdev_id from host to target |
| 3285 | * defines. For legacy there is not conversion required. Just return pdev_id as |
| 3286 | * it is. |
| 3287 | * @wmi_hdl: wmi handle |
| 3288 | * @host_pdev_id: host pdev_id to be converted. |
| 3289 | * @target_pdev_id: Output target pdev id. |
| 3290 | * |
| 3291 | * Return: QDF_STATUS |
| 3292 | */ |
| 3293 | QDF_STATUS wmi_convert_pdev_id_host_to_target(void *wmi_hdl, |
| 3294 | uint32_t host_pdev_id, |
| 3295 | uint32_t *target_pdev_id); |
Qiwei Cai | 770c90f | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 3296 | |
| 3297 | /** |
| 3298 | * wmi_unified_send_bss_color_change_enable_cmd() - WMI function to send bss |
| 3299 | * color change enable to FW. |
| 3300 | * @wmi_hdl: wmi handle |
| 3301 | * @vdev_id: vdev ID |
| 3302 | * @enable: enable or disable color change handeling within firmware |
| 3303 | * |
| 3304 | * Send WMI_BSS_COLOR_CHANGE_ENABLE_CMDID parameters to fw, |
| 3305 | * thereby firmware updates bss color when AP announces bss color change. |
| 3306 | * |
| 3307 | * Return: QDF_STATUS |
| 3308 | */ |
| 3309 | QDF_STATUS wmi_unified_send_bss_color_change_enable_cmd(void *wmi_hdl, |
| 3310 | uint32_t vdev_id, |
| 3311 | bool enable); |
| 3312 | |
| 3313 | /** |
| 3314 | * wmi_unified_send_obss_color_collision_cfg_cmd() - WMI function to send bss |
| 3315 | * color collision detection configuration to FW. |
| 3316 | * @wmi_hdl: wmi handle |
| 3317 | * @cfg: obss color collision detection configuration |
| 3318 | * |
| 3319 | * Send WMI_OBSS_COLOR_COLLISION_DET_CONFIG_CMDID parameters to fw. |
| 3320 | * |
| 3321 | * Return: QDF_STATUS |
| 3322 | */ |
| 3323 | QDF_STATUS wmi_unified_send_obss_color_collision_cfg_cmd(void *wmi_hdl, |
| 3324 | struct wmi_obss_color_collision_cfg_param *cfg); |
| 3325 | |
| 3326 | /** |
| 3327 | * wmi_unified_extract_obss_color_collision_info() - WMI function to extract |
| 3328 | * obss color collision info from FW. |
| 3329 | * @wmi_hdl: wmi handle |
| 3330 | * @data: event data from firmware |
| 3331 | * @info: Pointer to hold bss color collision info |
| 3332 | * |
| 3333 | * This function is used to extract bss collision info from firmware. |
| 3334 | * |
| 3335 | * Return: QDF_STATUS |
| 3336 | */ |
| 3337 | QDF_STATUS wmi_unified_extract_obss_color_collision_info(void *wmi_hdl, |
| 3338 | uint8_t *data, struct wmi_obss_color_collision_info *info); |
| 3339 | |
Kiran Kumar Lokere | 25531c4 | 2018-09-19 13:48:48 -0700 | [diff] [blame] | 3340 | #ifdef CRYPTO_SET_KEY_CONVERGED |
| 3341 | /** |
| 3342 | * wlan_crypto_cipher_to_wmi_cipher() - Convert crypto cipher to WMI cipher |
| 3343 | * @crypto_cipher: cipher type in crypto format |
| 3344 | * |
| 3345 | * Return: cipher type in WMI cipher type |
| 3346 | */ |
| 3347 | uint8_t wlan_crypto_cipher_to_wmi_cipher( |
| 3348 | enum wlan_crypto_cipher_type crypto_cipher); |
| 3349 | |
| 3350 | /** |
| 3351 | * wlan_crypto_cipher_to_cdp_sec_type() - Convert crypto cipher to CDP type |
| 3352 | * @crypto_cipher: cipher type in crypto format |
| 3353 | * |
| 3354 | * Return: security type in cdp_sec_type data format type |
| 3355 | */ |
| 3356 | enum cdp_sec_type wlan_crypto_cipher_to_cdp_sec_type( |
| 3357 | enum wlan_crypto_cipher_type crypto_cipher); |
| 3358 | |
| 3359 | #endif |
Abhiram Jogadenu | 975303c | 2019-01-23 11:55:10 +0530 | [diff] [blame] | 3360 | |
Arun Kumar Khandavalli | ac6e126 | 2019-03-10 16:32:21 +0530 | [diff] [blame] | 3361 | /** |
| 3362 | * wmi_unified_send_mws_coex_req_cmd() - WMI function to send coex req cmd |
| 3363 | * @wmi_hdl: wmi handle |
| 3364 | * @vdev_id: Vdev Id |
| 3365 | * @cmd_id: Coex cmd for which info is required |
| 3366 | * |
| 3367 | * Send wmi coex command to fw. |
| 3368 | * |
| 3369 | * Return: QDF_STATUS |
| 3370 | */ |
| 3371 | QDF_STATUS wmi_unified_send_mws_coex_req_cmd(struct wmi_unified *wmi_handle, |
| 3372 | uint32_t vdev_id, uint32_t cmd_id); |
| 3373 | |
Pragaspathi Thilagaraj | 9582515 | 2019-04-16 02:28:24 +0530 | [diff] [blame] | 3374 | /** |
| 3375 | * wmi_unified_send_idle_trigger_monitor() - send idle trigger monitor command |
| 3376 | * @wmi_handle: WMI handle |
| 3377 | * @val: idle trigger monitor value - 1 for idle monitor on, 0 for idle monitor |
| 3378 | * off |
| 3379 | * |
| 3380 | * Return: QDF_STATUS_SUCCESS if success, else returns proper error code. |
| 3381 | */ |
| 3382 | QDF_STATUS |
| 3383 | wmi_unified_send_idle_trigger_monitor(wmi_unified_t wmi_handle, uint8_t val); |
| 3384 | |
Abhiram Jogadenu | 975303c | 2019-01-23 11:55:10 +0530 | [diff] [blame] | 3385 | #ifdef WLAN_CFR_ENABLE |
| 3386 | /** |
| 3387 | * wmi_unified_send_peer_cfr_capture_cmd() - WMI function to start CFR capture |
| 3388 | * for a peer |
| 3389 | * @wmi_hdl: WMI handle |
| 3390 | * @param: configuration params for capture |
| 3391 | * |
| 3392 | * Return: QDF_STATUS_SUCCESS if success, else returns proper error code. |
| 3393 | */ |
| 3394 | QDF_STATUS |
| 3395 | wmi_unified_send_peer_cfr_capture_cmd(void *wmi_hdl, |
| 3396 | struct peer_cfr_params *param); |
Abhiram Jogadenu | c528145 | 2019-02-14 16:21:09 +0530 | [diff] [blame] | 3397 | /** |
| 3398 | * wmi_extract_cfr_peer_tx_event_param() - WMI function to extract cfr tx event |
| 3399 | * for a peer |
| 3400 | * @wmi_hdl: WMI handle |
| 3401 | * @evt_buf: Buffer holding event data |
| 3402 | * @peer_tx_event: pointer to hold tx event data |
| 3403 | * |
| 3404 | * Return: QDF_STATUS_SUCCESS if success, else returns proper error code. |
| 3405 | */ |
| 3406 | QDF_STATUS |
| 3407 | wmi_extract_cfr_peer_tx_event_param(void *wmi_hdl, void *evt_buf, |
| 3408 | wmi_cfr_peer_tx_event_param *peer_tx_event); |
Pragaspathi Thilagaraj | 9582515 | 2019-04-16 02:28:24 +0530 | [diff] [blame] | 3409 | |
Abhiram Jogadenu | 975303c | 2019-01-23 11:55:10 +0530 | [diff] [blame] | 3410 | #endif /* WLAN_CFR_ENABLE */ |
Abhiram Jogadenu | 94748b3 | 2019-06-04 16:46:34 +0530 | [diff] [blame] | 3411 | |
| 3412 | #ifdef WIFI_POS_CONVERGED |
| 3413 | /** |
| 3414 | * wmi_extract_oem_response_param() - WMI function to extract OEM response param |
| 3415 | * @wmi_hdl: WMI handle |
| 3416 | * @resp_buf: Buffer holding response data |
| 3417 | * @oem_resp_param: zero-filled structure pointer to hold oem response data |
| 3418 | * |
| 3419 | * Return: QDF_STATUS_SUCCESS if success, else returns proper error code. |
| 3420 | */ |
| 3421 | QDF_STATUS |
| 3422 | wmi_extract_oem_response_param(wmi_unified_t wmi_hdl, void *resp_buf, |
| 3423 | struct wmi_oem_response_param *oem_resp_param); |
| 3424 | #endif /* WIFI_POS_CONVERGED */ |
Prakash Dhavali | d5c9f1c | 2015-11-08 19:04:44 -0800 | [diff] [blame] | 3425 | #endif /* _WMI_UNIFIED_API_H_ */ |