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