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