Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1 | /* |
Naveen Rawat | 79a787c | 2017-12-14 13:24:31 -0800 | [diff] [blame] | 2 | * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved. |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 3 | * |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 4 | * Permission to use, copy, modify, and/or distribute this software for |
| 5 | * any purpose with or without fee is hereby granted, provided that the |
| 6 | * above copyright notice and this permission notice appear in all |
| 7 | * copies. |
| 8 | * |
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 10 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 11 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 12 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 13 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 14 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 15 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 16 | * PERFORMANCE OF THIS SOFTWARE. |
| 17 | */ |
| 18 | |
| 19 | /* |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 20 | * This file contains the API definitions for the Unified Wireless |
| 21 | * Module Interface (WMI). |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 22 | */ |
| 23 | #ifndef _WMI_UNIFIED_PRIV_H_ |
| 24 | #define _WMI_UNIFIED_PRIV_H_ |
| 25 | #include <osdep.h> |
Govind Singh | b83edbc | 2017-03-21 13:02:00 +0530 | [diff] [blame] | 26 | #include "wmi_unified_api.h" |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 27 | #include "wmi_unified_param.h" |
Om Prakash Tripathi | 91452bf | 2017-02-25 15:53:30 +0530 | [diff] [blame] | 28 | #include "wlan_scan_ucfg_api.h" |
Govind Singh | b83edbc | 2017-03-21 13:02:00 +0530 | [diff] [blame] | 29 | #ifdef CONFIG_MCL |
| 30 | #include <wmi_unified.h> |
| 31 | #endif |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 32 | #include "qdf_atomic.h" |
Rakshith Suresh Patkar | 35fe7b0 | 2018-09-12 16:51:30 +0530 | [diff] [blame] | 33 | #include <wbuff.h> |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 34 | |
Arif Hussain | e542fe1 | 2017-04-09 01:03:19 -0700 | [diff] [blame] | 35 | #ifdef DFS_COMPONENT_ENABLE |
| 36 | #include <wlan_dfs_public_struct.h> |
| 37 | #endif |
Govind Singh | e25a274 | 2017-11-21 10:53:40 +0530 | [diff] [blame] | 38 | #include <qdf_threads.h> |
Himanshu Agarwal | 0d578ff | 2018-01-10 14:21:53 +0530 | [diff] [blame] | 39 | #ifdef WLAN_SUPPORT_GREEN_AP |
| 40 | #include "wlan_green_ap_api.h" |
| 41 | #endif |
Arif Hussain | e542fe1 | 2017-04-09 01:03:19 -0700 | [diff] [blame] | 42 | |
Naveen Rawat | 79a787c | 2017-12-14 13:24:31 -0800 | [diff] [blame] | 43 | #ifdef WLAN_FEATURE_NAN_CONVERGENCE |
| 44 | #include "nan_public_structs.h" |
| 45 | #endif |
| 46 | |
Kiran Venkatappa | 2d881fd | 2018-02-05 10:56:43 +0530 | [diff] [blame] | 47 | #ifdef WLAN_SUPPORT_TWT |
| 48 | #include "wmi_unified_twt_param.h" |
| 49 | #endif |
| 50 | |
Sathish Kumar | 637da89 | 2018-10-02 11:03:59 +0530 | [diff] [blame] | 51 | #ifdef WMI_SMART_ANT_SUPPORT |
| 52 | #include "wmi_unified_smart_ant_param.h" |
| 53 | #endif |
| 54 | |
| 55 | #ifdef WMI_DBR_SUPPORT |
| 56 | #include "wmi_unified_dbr_param.h" |
| 57 | #endif |
| 58 | |
| 59 | #ifdef WMI_ATF_SUPPORT |
| 60 | #include "wmi_unified_atf_param.h" |
| 61 | #endif |
| 62 | |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 63 | #define WMI_UNIFIED_MAX_EVENT 0x100 |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 64 | |
Venkat Karthik Kantamneni | 6c00386 | 2018-05-21 19:13:02 +0530 | [diff] [blame] | 65 | #ifdef WMI_EXT_DBG |
| 66 | |
| 67 | #define WMI_EXT_DBG_DIR "WMI_EXT_DBG" |
| 68 | #define WMI_EXT_DBG_FILE "wmi_log" |
| 69 | #define WMI_EXT_DBG_FILE_PERM (QDF_FILE_USR_READ | \ |
| 70 | QDF_FILE_GRP_READ | \ |
| 71 | QDF_FILE_OTH_READ) |
| 72 | #define WMI_EXT_DBG_QUEUE_SIZE 1024 |
| 73 | #define WMI_EXT_DBG_DUMP_ROW_SIZE 16 |
| 74 | #define WMI_EXT_DBG_DUMP_GROUP_SIZE 1 |
| 75 | |
| 76 | /** |
| 77 | * enum WMI_MSG_TYPE - WMI message types |
| 78 | * @ WMI_MSG_TYPE_CMD - Message is of type WMI command |
| 79 | * @ WMI_MSG_TYPE_EVENT - Message is of type WMI event |
| 80 | */ |
| 81 | enum WMI_MSG_TYPE { |
| 82 | WMI_MSG_TYPE_CMD = 0, |
| 83 | WMI_MSG_TYPE_EVENT, |
| 84 | }; |
| 85 | |
| 86 | /** |
| 87 | * struct wmi_ext_dbg_msg - WMI command/event msg details |
| 88 | * @ node - qdf list node of wmi messages |
| 89 | * @ len - command/event message length |
| 90 | * @ ts - Time of WMI command/event handling |
| 91 | * @ WMI_MSG_TYPE - message type |
| 92 | * @ bug - command/event buffer |
| 93 | */ |
| 94 | struct wmi_ext_dbg_msg { |
| 95 | qdf_list_node_t node; |
| 96 | uint32_t len; |
| 97 | uint64_t ts; |
| 98 | enum WMI_MSG_TYPE type; |
| 99 | uint8_t buf[0]; |
| 100 | }; |
| 101 | #endif /*WMI_EXT_DBG */ |
| 102 | |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 103 | #ifdef WMI_INTERFACE_EVENT_LOGGING |
| 104 | |
Nirav Shah | e83f214 | 2018-06-01 16:32:28 +0530 | [diff] [blame] | 105 | #ifndef WMI_EVENT_DEBUG_MAX_ENTRY |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 106 | #define WMI_EVENT_DEBUG_MAX_ENTRY (1024) |
Nirav Shah | e83f214 | 2018-06-01 16:32:28 +0530 | [diff] [blame] | 107 | #endif |
| 108 | |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 109 | #define WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH (16) |
Nirav Shah | e83f214 | 2018-06-01 16:32:28 +0530 | [diff] [blame] | 110 | |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 111 | /* wmi_mgmt commands */ |
Nirav Shah | e83f214 | 2018-06-01 16:32:28 +0530 | [diff] [blame] | 112 | #ifndef WMI_MGMT_EVENT_DEBUG_MAX_ENTRY |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 113 | #define WMI_MGMT_EVENT_DEBUG_MAX_ENTRY (256) |
Nirav Shah | e83f214 | 2018-06-01 16:32:28 +0530 | [diff] [blame] | 114 | #endif |
Rajeev Kumar | 9024c71 | 2018-09-19 13:02:23 -0700 | [diff] [blame] | 115 | /* wmi diag rx events max buffer */ |
| 116 | #ifndef WMI_DIAG_RX_EVENT_DEBUG_MAX_ENTRY |
| 117 | #define WMI_DIAG_RX_EVENT_DEBUG_MAX_ENTRY (256) |
| 118 | #endif |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 119 | |
Arif Hussain | 7aee544 | 2018-07-19 14:15:36 -0700 | [diff] [blame] | 120 | #define wmi_alert(params...) QDF_TRACE_FATAL(QDF_MODULE_ID_WMI, ## params) |
| 121 | #define wmi_err(params...) QDF_TRACE_ERROR(QDF_MODULE_ID_WMI, ## params) |
| 122 | #define wmi_warn(params...) QDF_TRACE_WARN(QDF_MODULE_ID_WMI, ## params) |
| 123 | #define wmi_info(params...) QDF_TRACE_INFO(QDF_MODULE_ID_WMI, ## params) |
| 124 | #define wmi_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_WMI, ## params) |
| 125 | |
| 126 | #define wmi_nofl_alert(params...) \ |
| 127 | QDF_TRACE_FATAL_NO_FL(QDF_MODULE_ID_WMI, ## params) |
| 128 | #define wmi_nofl_err(params...) \ |
| 129 | QDF_TRACE_ERROR_NO_FL(QDF_MODULE_ID_WMI, ## params) |
| 130 | #define wmi_nofl_warn(params...) \ |
| 131 | QDF_TRACE_WARN_NO_FL(QDF_MODULE_ID_WMI, ## params) |
| 132 | #define wmi_nofl_info(params...) \ |
| 133 | QDF_TRACE_INFO_NO_FL(QDF_MODULE_ID_WMI, ## params) |
| 134 | #define wmi_nofl_debug(params...) \ |
| 135 | QDF_TRACE_DEBUG_NO_FL(QDF_MODULE_ID_WMI, ## params) |
| 136 | |
Jingxiang Ge | 41c96c5 | 2018-09-25 15:12:45 +0800 | [diff] [blame] | 137 | #define wmi_alert_rl(params...) QDF_TRACE_FATAL_RL(QDF_MODULE_ID_WMI, params) |
| 138 | #define wmi_err_rl(params...) QDF_TRACE_ERROR_RL(QDF_MODULE_ID_WMI, params) |
| 139 | #define wmi_warn_rl(params...) QDF_TRACE_WARN_RL(QDF_MODULE_ID_WMI, params) |
| 140 | #define wmi_info_rl(params...) QDF_TRACE_INFO_RL(QDF_MODULE_ID_WMI, params) |
| 141 | #define wmi_debug_rl(params...) QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_WMI, params) |
| 142 | |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 143 | /** |
| 144 | * struct wmi_command_debug - WMI command log buffer data type |
| 145 | * @ command - Store WMI Command id |
| 146 | * @ data - Stores WMI command data |
| 147 | * @ time - Time of WMI command handling |
| 148 | */ |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 149 | struct wmi_command_debug { |
| 150 | uint32_t command; |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 151 | /*16 bytes of WMI cmd excluding TLV and WMI headers */ |
| 152 | uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)]; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 153 | uint64_t time; |
| 154 | }; |
| 155 | |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 156 | /** |
| 157 | * struct wmi_event_debug - WMI event log buffer data type |
| 158 | * @ command - Store WMI Event id |
| 159 | * @ data - Stores WMI Event data |
| 160 | * @ time - Time of WMI Event handling |
| 161 | */ |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 162 | struct wmi_event_debug { |
| 163 | uint32_t event; |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 164 | /*16 bytes of WMI event data excluding TLV header */ |
| 165 | uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)]; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 166 | uint64_t time; |
| 167 | }; |
| 168 | |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 169 | /** |
Sandeep Puligilla | 38a294f | 2016-06-13 15:42:55 -0700 | [diff] [blame] | 170 | * struct wmi_command_header - Type for accessing frame data |
| 171 | * @ type - 802.11 Frame type |
| 172 | * @ subType - 802.11 Frame subtype |
| 173 | * @ protVer - 802.11 Version |
| 174 | */ |
| 175 | struct wmi_command_header { |
| 176 | #ifndef ANI_LITTLE_BIT_ENDIAN |
| 177 | |
| 178 | uint32_t sub_type:4; |
| 179 | uint32_t type:2; |
| 180 | uint32_t prot_ver:2; |
| 181 | |
| 182 | #else |
| 183 | |
| 184 | uint32_t prot_ver:2; |
| 185 | uint32_t type:2; |
| 186 | uint32_t sub_type:4; |
| 187 | |
| 188 | #endif |
| 189 | }; |
| 190 | |
| 191 | /** |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 192 | * struct wmi_log_buf_t - WMI log buffer information type |
| 193 | * @buf - Refernce to WMI log buffer |
| 194 | * @ length - length of buffer |
| 195 | * @ buf_tail_idx - Tail index of buffer |
| 196 | * @ p_buf_tail_idx - refernce to buffer tail index. It is added to accommodate |
| 197 | * unified design since MCL uses global variable for buffer tail index |
Dustin Brown | e58fbc7 | 2017-04-03 17:00:07 -0700 | [diff] [blame] | 198 | * @ size - the size of the buffer in number of entries |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 199 | */ |
| 200 | struct wmi_log_buf_t { |
| 201 | void *buf; |
| 202 | uint32_t length; |
| 203 | uint32_t buf_tail_idx; |
| 204 | uint32_t *p_buf_tail_idx; |
Dustin Brown | e58fbc7 | 2017-04-03 17:00:07 -0700 | [diff] [blame] | 205 | uint32_t size; |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 206 | }; |
| 207 | |
| 208 | /** |
| 209 | * struct wmi_debug_log_info - Meta data to hold information of all buffers |
| 210 | * used for WMI logging |
| 211 | * @wmi_command_log_buf_info - Buffer info for WMI Command log |
| 212 | * @wmi_command_tx_cmp_log_buf_info - Buffer info for WMI Command Tx completion |
| 213 | * log |
| 214 | * @wmi_event_log_buf_info - Buffer info for WMI Event log |
| 215 | * @wmi_rx_event_log_buf_info - Buffer info for WMI event received log |
| 216 | * @wmi_mgmt_command_log_buf_info - Buffer info for WMI Management Command log |
| 217 | * @wmi_mgmt_command_tx_cmp_log_buf_info - Buffer info for WMI Management |
| 218 | * Command Tx completion log |
| 219 | * @wmi_mgmt_event_log_buf_info - Buffer info for WMI Management event log |
Rajeev Kumar | 9024c71 | 2018-09-19 13:02:23 -0700 | [diff] [blame] | 220 | * @wmi_diag_event_log_buf_info - Buffer info for WMI diag event log |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 221 | * @wmi_record_lock - Lock WMI recording |
| 222 | * @wmi_logging_enable - Enable/Disable state for WMI logging |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 223 | * @wmi_id_to_name - Function refernce to API to convert Command id to |
| 224 | * string name |
| 225 | * @wmi_log_debugfs_dir - refernce to debugfs directory |
| 226 | */ |
| 227 | struct wmi_debug_log_info { |
| 228 | struct wmi_log_buf_t wmi_command_log_buf_info; |
| 229 | struct wmi_log_buf_t wmi_command_tx_cmp_log_buf_info; |
| 230 | |
| 231 | struct wmi_log_buf_t wmi_event_log_buf_info; |
| 232 | struct wmi_log_buf_t wmi_rx_event_log_buf_info; |
| 233 | |
| 234 | struct wmi_log_buf_t wmi_mgmt_command_log_buf_info; |
| 235 | struct wmi_log_buf_t wmi_mgmt_command_tx_cmp_log_buf_info; |
| 236 | struct wmi_log_buf_t wmi_mgmt_event_log_buf_info; |
Rajeev Kumar | 9024c71 | 2018-09-19 13:02:23 -0700 | [diff] [blame] | 237 | struct wmi_log_buf_t wmi_diag_event_log_buf_info; |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 238 | |
| 239 | qdf_spinlock_t wmi_record_lock; |
| 240 | bool wmi_logging_enable; |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 241 | struct dentry *wmi_log_debugfs_dir; |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 242 | }; |
| 243 | |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 244 | #endif /*WMI_INTERFACE_EVENT_LOGGING */ |
| 245 | |
| 246 | #ifdef WLAN_OPEN_SOURCE |
| 247 | struct fwdebug { |
| 248 | struct sk_buff_head fwlog_queue; |
| 249 | struct completion fwlog_completion; |
| 250 | A_BOOL fwlog_open; |
| 251 | }; |
| 252 | #endif /* WLAN_OPEN_SOURCE */ |
| 253 | |
Govind Singh | e25a274 | 2017-11-21 10:53:40 +0530 | [diff] [blame] | 254 | /** |
| 255 | * struct wmi_wq_dbg_info - WMI WQ debug info |
| 256 | * @ wd_msg_type_id - wmi event id |
| 257 | * @ wmi_wq - WMI workqueue struct |
| 258 | * @ task - WMI workqueue task struct |
| 259 | */ |
| 260 | struct wmi_wq_dbg_info { |
Surabhi Vishnoi | 2f9ae34 | 2017-11-29 15:07:10 +0530 | [diff] [blame] | 261 | uint32_t wd_msg_type_id; |
Govind Singh | e25a274 | 2017-11-21 10:53:40 +0530 | [diff] [blame] | 262 | qdf_workqueue_t *wmi_wq; |
| 263 | qdf_thread_t *task; |
| 264 | }; |
| 265 | |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 266 | struct wmi_ops { |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 267 | QDF_STATUS (*send_vdev_create_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 268 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 269 | struct vdev_create_params *param); |
| 270 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 271 | QDF_STATUS (*send_vdev_delete_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 272 | uint8_t if_id); |
| 273 | |
Ashish Kumar Dhanotiya | 023b42f | 2018-11-08 21:35:46 +0530 | [diff] [blame] | 274 | QDF_STATUS (*send_vdev_nss_chain_params_cmd)(wmi_unified_t wmi_handle, |
| 275 | uint8_t vdev_id, |
gaurank kathpalia | 2f28121 | 2018-11-14 13:54:05 +0530 | [diff] [blame] | 276 | struct vdev_nss_chains *user_cfg); |
Ashish Kumar Dhanotiya | 023b42f | 2018-11-08 21:35:46 +0530 | [diff] [blame] | 277 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 278 | QDF_STATUS (*send_vdev_stop_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 279 | uint8_t vdev_id); |
| 280 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 281 | QDF_STATUS (*send_vdev_down_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 282 | uint8_t vdev_id); |
| 283 | |
Himanshu Agarwal | 7e4f4bc | 2016-03-09 16:49:38 +0530 | [diff] [blame] | 284 | QDF_STATUS (*send_vdev_start_cmd)(wmi_unified_t wmi, |
| 285 | struct vdev_start_params *req); |
| 286 | |
Chaithanya Garrepalli | 140a053 | 2018-01-18 14:19:41 +0530 | [diff] [blame] | 287 | QDF_STATUS (*send_vdev_set_nac_rssi_cmd)(wmi_unified_t wmi, |
| 288 | struct vdev_scan_nac_rssi_params *req); |
| 289 | |
Himanshu Agarwal | 7e4f4bc | 2016-03-09 16:49:38 +0530 | [diff] [blame] | 290 | QDF_STATUS (*send_hidden_ssid_vdev_restart_cmd)(wmi_unified_t wmi_handle, |
| 291 | struct hidden_ssid_vdev_restart_params *restart_params); |
| 292 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 293 | QDF_STATUS (*send_peer_flush_tids_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 294 | uint8_t peer_addr[IEEE80211_ADDR_LEN], |
| 295 | struct peer_flush_params *param); |
| 296 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 297 | QDF_STATUS (*send_peer_delete_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 298 | uint8_t peer_addr[IEEE80211_ADDR_LEN], |
| 299 | uint8_t vdev_id); |
| 300 | |
Alok Kumar | 0691db3 | 2018-12-06 19:51:22 +0530 | [diff] [blame] | 301 | QDF_STATUS |
| 302 | (*send_peer_unmap_conf_cmd)(wmi_unified_t wmi, |
| 303 | uint8_t vdev_id, |
| 304 | uint32_t peer_id_cnt, |
| 305 | uint16_t *peer_id_list); |
| 306 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 307 | QDF_STATUS (*send_peer_param_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 308 | uint8_t peer_addr[IEEE80211_ADDR_LEN], |
| 309 | struct peer_set_params *param); |
| 310 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 311 | QDF_STATUS (*send_vdev_up_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 312 | uint8_t bssid[IEEE80211_ADDR_LEN], |
| 313 | struct vdev_up_params *params); |
| 314 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 315 | QDF_STATUS (*send_peer_create_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 316 | struct peer_create_params *param); |
| 317 | |
Himanshu Agarwal | 0d578ff | 2018-01-10 14:21:53 +0530 | [diff] [blame] | 318 | #ifdef WLAN_SUPPORT_GREEN_AP |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 319 | QDF_STATUS (*send_green_ap_ps_cmd)(wmi_unified_t wmi_handle, |
Himanshu Agarwal | 0d578ff | 2018-01-10 14:21:53 +0530 | [diff] [blame] | 320 | uint32_t value, uint8_t pdev_id); |
Himanshu Agarwal | 3f5d65a | 2018-01-24 22:24:17 +0530 | [diff] [blame] | 321 | |
| 322 | QDF_STATUS (*extract_green_ap_egap_status_info)( |
| 323 | uint8_t *evt_buf, |
| 324 | struct wlan_green_ap_egap_status_info *egap_status_info_params); |
Himanshu Agarwal | 0d578ff | 2018-01-10 14:21:53 +0530 | [diff] [blame] | 325 | #endif |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 326 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 327 | QDF_STATUS |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 328 | (*send_pdev_utf_cmd)(wmi_unified_t wmi_handle, |
| 329 | struct pdev_utf_params *param, |
| 330 | uint8_t mac_id); |
| 331 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 332 | QDF_STATUS |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 333 | (*send_pdev_param_cmd)(wmi_unified_t wmi_handle, |
| 334 | struct pdev_params *param, |
| 335 | uint8_t mac_id); |
| 336 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 337 | QDF_STATUS (*send_suspend_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 338 | struct suspend_params *param, |
| 339 | uint8_t mac_id); |
| 340 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 341 | QDF_STATUS (*send_resume_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 342 | uint8_t mac_id); |
| 343 | |
Will Huang | 5325c7c | 2017-11-17 13:19:16 +0800 | [diff] [blame] | 344 | #ifdef FEATURE_WLAN_D0WOW |
| 345 | QDF_STATUS (*send_d0wow_enable_cmd)(wmi_unified_t wmi_handle, |
| 346 | uint8_t mac_id); |
| 347 | QDF_STATUS (*send_d0wow_disable_cmd)(wmi_unified_t wmi_handle, |
| 348 | uint8_t mac_id); |
| 349 | #endif |
| 350 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 351 | QDF_STATUS (*send_wow_enable_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 352 | struct wow_cmd_params *param, |
| 353 | uint8_t mac_id); |
| 354 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 355 | 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] | 356 | uint8_t *peer_addr, |
| 357 | struct ap_ps_params *param); |
| 358 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 359 | 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] | 360 | struct sta_ps_params *param); |
| 361 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 362 | QDF_STATUS (*send_crash_inject_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 363 | struct crash_inject *param); |
| 364 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 365 | QDF_STATUS |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 366 | (*send_dbglog_cmd)(wmi_unified_t wmi_handle, |
| 367 | struct dbglog_params *dbglog_param); |
| 368 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 369 | QDF_STATUS (*send_vdev_set_param_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 370 | struct vdev_set_params *param); |
| 371 | |
narayan | e1b4466 | 2018-07-01 21:59:41 +0530 | [diff] [blame] | 372 | QDF_STATUS (*send_vdev_sifs_trigger_cmd)(wmi_unified_t wmi_handle, |
| 373 | struct sifs_trigger_param *param); |
| 374 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 375 | QDF_STATUS (*send_stats_request_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 376 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 377 | struct stats_request_params *param); |
| 378 | |
Govind Singh | fa201d9 | 2016-06-08 19:40:11 +0530 | [diff] [blame] | 379 | #ifdef CONFIG_WIN |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 380 | QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle, |
Keyur Parekh | 483138e | 2017-05-07 08:54:47 -0700 | [diff] [blame] | 381 | WMI_HOST_PKTLOG_EVENT PKTLOG_EVENT, uint8_t mac_id); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 382 | #else |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 383 | QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 384 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 385 | struct packet_enable_params *param); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 386 | #endif |
| 387 | |
Keyur Parekh | 483138e | 2017-05-07 08:54:47 -0700 | [diff] [blame] | 388 | QDF_STATUS (*send_packet_log_disable_cmd)(wmi_unified_t wmi_handle, |
| 389 | uint8_t mac_id); |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 390 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 391 | QDF_STATUS (*send_beacon_send_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 392 | struct beacon_params *param); |
| 393 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 394 | QDF_STATUS (*send_beacon_tmpl_send_cmd)(wmi_unified_t wmi_handle, |
| 395 | struct beacon_tmpl_params *param); |
| 396 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 397 | QDF_STATUS (*send_peer_assoc_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 398 | struct peer_assoc_params *param); |
| 399 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 400 | QDF_STATUS (*send_scan_start_cmd)(wmi_unified_t wmi_handle, |
Om Prakash Tripathi | 91452bf | 2017-02-25 15:53:30 +0530 | [diff] [blame] | 401 | struct scan_req_params *param); |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 402 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 403 | QDF_STATUS (*send_scan_stop_cmd)(wmi_unified_t wmi_handle, |
Om Prakash Tripathi | 91452bf | 2017-02-25 15:53:30 +0530 | [diff] [blame] | 404 | struct scan_cancel_param *param); |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 405 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 406 | QDF_STATUS (*send_scan_chan_list_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 407 | struct scan_chan_list_params *param); |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 408 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 409 | QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 410 | struct wmi_mgmt_params *param); |
| 411 | |
Kiran Venkatappa | 25c4702 | 2017-03-19 22:58:09 +0530 | [diff] [blame] | 412 | QDF_STATUS (*send_offchan_data_tx_cmd)(wmi_unified_t wmi_handle, |
| 413 | struct wmi_offchan_data_tx_params *param); |
| 414 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 415 | QDF_STATUS (*send_modem_power_state_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 416 | uint32_t param_value); |
| 417 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 418 | 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] | 419 | uint32_t vdev_id, uint8_t val); |
| 420 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 421 | QDF_STATUS (*send_get_temperature_cmd)(wmi_unified_t wmi_handle); |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 422 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 423 | #ifdef CONVERGED_P2P_ENABLE |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 424 | 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] | 425 | struct p2p_ps_params *oppps); |
| 426 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 427 | 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] | 428 | struct p2p_ps_params *noa); |
| 429 | |
Rachit Kankane | 54c543f | 2018-07-31 16:26:38 +0530 | [diff] [blame] | 430 | #ifdef FEATURE_P2P_LISTEN_OFFLOAD |
Wu Gao | 07ba6b4 | 2017-03-13 20:17:34 +0800 | [diff] [blame] | 431 | QDF_STATUS (*send_p2p_lo_start_cmd)(wmi_unified_t wmi_handle, |
| 432 | struct p2p_lo_start *param); |
| 433 | |
| 434 | QDF_STATUS (*send_p2p_lo_stop_cmd)(wmi_unified_t wmi_handle, |
| 435 | uint8_t vdev_id); |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 436 | #endif /* FEATURE_P2P_LISTEN_OFFLOAD */ |
| 437 | #endif /* CONVERGED_P2P_ENABLE */ |
Wu Gao | 07ba6b4 | 2017-03-13 20:17:34 +0800 | [diff] [blame] | 438 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 439 | QDF_STATUS (*send_set_smps_params_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 440 | uint8_t vdev_id, |
| 441 | int value); |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 442 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 443 | QDF_STATUS (*send_set_mimops_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 444 | uint8_t vdev_id, int value); |
| 445 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 446 | 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] | 447 | struct sta_uapsd_trig_params *param); |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 448 | |
Zhang Qian | 74a66aa | 2018-01-05 16:50:53 +0800 | [diff] [blame] | 449 | #ifdef WLAN_FEATURE_DSRC |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 450 | 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] | 451 | struct ocb_utc_param *utc); |
| 452 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 453 | 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] | 454 | uint8_t vdev_id); |
| 455 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 456 | 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] | 457 | struct ocb_timing_advert_param *timing_advert); |
| 458 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 459 | 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] | 460 | struct ocb_timing_advert_param *timing_advert); |
| 461 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 462 | QDF_STATUS (*send_dcc_get_stats_cmd)(wmi_unified_t wmi_handle, |
Zhang Qian | 74a66aa | 2018-01-05 16:50:53 +0800 | [diff] [blame] | 463 | struct ocb_dcc_get_stats_param *get_stats_param); |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 464 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 465 | QDF_STATUS (*send_dcc_clear_stats_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 466 | uint32_t vdev_id, uint32_t dcc_stats_bitmap); |
| 467 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 468 | QDF_STATUS (*send_dcc_update_ndl_cmd)(wmi_unified_t wmi_handle, |
Zhang Qian | 74a66aa | 2018-01-05 16:50:53 +0800 | [diff] [blame] | 469 | struct ocb_dcc_update_ndl_param *update_ndl_param); |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 470 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 471 | QDF_STATUS (*send_ocb_set_config_cmd)(wmi_unified_t wmi_handle, |
Zhang Qian | 74a66aa | 2018-01-05 16:50:53 +0800 | [diff] [blame] | 472 | struct ocb_config *config); |
| 473 | QDF_STATUS (*extract_ocb_chan_config_resp)(wmi_unified_t wmi_hdl, |
| 474 | void *evt_buf, |
| 475 | uint32_t *status); |
| 476 | QDF_STATUS (*extract_ocb_tsf_timer)(wmi_unified_t wmi_hdl, |
| 477 | void *evt_buf, |
| 478 | struct ocb_get_tsf_timer_response *resp); |
| 479 | QDF_STATUS (*extract_dcc_update_ndl_resp)(wmi_unified_t wmi_hdl, |
| 480 | void *evt_buf, struct ocb_dcc_update_ndl_response *resp); |
| 481 | QDF_STATUS (*extract_dcc_stats)(wmi_unified_t wmi_hdl, |
| 482 | void *evt_buf, |
| 483 | struct ocb_dcc_get_stats_response **response); |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 484 | #endif /* WLAN_FEATURE_DSRC */ |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 485 | QDF_STATUS (*send_lro_config_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 9bad000 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 486 | struct wmi_lro_config_cmd_t *wmi_lro_cmd); |
| 487 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 488 | QDF_STATUS (*send_set_thermal_mgmt_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 9bad000 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 489 | struct thermal_cmd_params *thermal_info); |
| 490 | |
Poddar, Siddarth | 794b996 | 2016-04-28 15:49:11 +0530 | [diff] [blame] | 491 | QDF_STATUS (*send_peer_rate_report_cmd)(wmi_unified_t wmi_handle, |
| 492 | struct wmi_peer_rate_report_params *rate_report_params); |
| 493 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 494 | #ifdef WMI_CONCURRENCY_SUPPORT |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 495 | QDF_STATUS (*send_set_mcc_channel_time_quota_cmd) |
Govind Singh | 9bad000 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 496 | (wmi_unified_t wmi_handle, |
| 497 | uint32_t adapter_1_chan_freq, |
| 498 | uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq); |
| 499 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 500 | QDF_STATUS (*send_set_mcc_channel_time_latency_cmd) |
Govind Singh | 9bad000 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 501 | (wmi_unified_t wmi_handle, |
| 502 | uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency); |
| 503 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 504 | QDF_STATUS (*send_set_enable_disable_mcc_adaptive_scheduler_cmd)( |
Govind Singh | 608e889 | 2016-04-16 19:24:23 -0700 | [diff] [blame] | 505 | wmi_unified_t wmi_handle, uint32_t mcc_adaptive_scheduler, |
| 506 | uint32_t pdev_id); |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 507 | #endif /* WMI_CONCURRENCY_SUPPORT */ |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 508 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 509 | QDF_STATUS (*send_p2p_go_set_beacon_ie_cmd)(wmi_unified_t wmi_handle, |
Vivek | 7346528 | 2018-03-22 23:27:21 +0530 | [diff] [blame] | 510 | uint32_t vdev_id, uint8_t *p2p_ie); |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 511 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 512 | 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] | 513 | uint8_t vdev_id, |
Krunal Soni | 36f17d4 | 2017-11-14 15:42:48 -0800 | [diff] [blame] | 514 | struct wmi_probe_resp_params *probe_rsp_info); |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 515 | |
Himanshu Agarwal | 9efd9bf | 2016-03-09 18:49:18 +0530 | [diff] [blame] | 516 | QDF_STATUS (*send_setup_install_key_cmd)(wmi_unified_t wmi_handle, |
| 517 | struct set_key_params *key_params); |
| 518 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 519 | 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] | 520 | struct wifi_passpoint_req_param *req); |
Himanshu Agarwal | 5f2d048 | 2016-03-09 15:25:44 +0530 | [diff] [blame] | 521 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 522 | #ifdef WMI_ROAM_SUPPORT |
| 523 | #ifdef FEATURE_LFR_SUBNET_DETECTION |
| 524 | QDF_STATUS (*send_set_gateway_params_cmd)(wmi_unified_t wmi_handle, |
| 525 | struct gateway_update_req_param *req); |
| 526 | #endif /* FEATURE_LFR_SUBNET_DETECTION */ |
| 527 | |
| 528 | #ifdef FEATURE_RSSI_MONITOR |
| 529 | QDF_STATUS (*send_set_rssi_monitoring_cmd)(wmi_unified_t wmi_handle, |
| 530 | struct rssi_monitor_param *req); |
| 531 | #endif /* FEATURE_RSSI_MONITOR */ |
| 532 | |
Himanshu Agarwal | 5f2d048 | 2016-03-09 15:25:44 +0530 | [diff] [blame] | 533 | QDF_STATUS (*send_roam_scan_offload_rssi_thresh_cmd)(wmi_unified_t wmi_handle, |
| 534 | struct roam_offload_scan_rssi_params *roam_req); |
| 535 | |
Varun Reddy Yeturu | 4cae429 | 2017-07-20 09:45:01 -0700 | [diff] [blame] | 536 | QDF_STATUS (*send_roam_mawc_params_cmd)(wmi_unified_t wmi_handle, |
| 537 | struct wmi_mawc_roam_params *params); |
| 538 | |
Himanshu Agarwal | 5f2d048 | 2016-03-09 15:25:44 +0530 | [diff] [blame] | 539 | QDF_STATUS (*send_roam_scan_filter_cmd)(wmi_unified_t wmi_handle, |
| 540 | struct roam_scan_filter_params *roam_req); |
| 541 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 542 | QDF_STATUS (*send_roam_scan_offload_mode_cmd)(wmi_unified_t wmi_handle, |
| 543 | wmi_start_scan_cmd_fixed_param *scan_cmd_fp, |
| 544 | struct roam_offload_scan_params *roam_req); |
| 545 | |
| 546 | QDF_STATUS (*send_roam_scan_offload_ap_profile_cmd)(wmi_unified_t wmi_handle, |
| 547 | struct ap_profile_params *ap_profile); |
| 548 | |
| 549 | QDF_STATUS (*send_roam_scan_offload_cmd)(wmi_unified_t wmi_handle, |
| 550 | uint32_t command, uint32_t vdev_id); |
| 551 | |
| 552 | QDF_STATUS (*send_roam_scan_offload_scan_period_cmd)(wmi_unified_t wmi_handle, |
| 553 | uint32_t scan_period, |
| 554 | uint32_t scan_age, |
| 555 | uint32_t vdev_id); |
| 556 | |
| 557 | QDF_STATUS (*send_roam_scan_offload_chan_list_cmd)(wmi_unified_t wmi_handle, |
| 558 | uint8_t chan_count, |
| 559 | uint32_t *chan_list, |
| 560 | uint8_t list_type, uint32_t vdev_id); |
| 561 | |
| 562 | QDF_STATUS (*send_roam_scan_offload_rssi_change_cmd)(wmi_unified_t wmi_handle, |
| 563 | uint32_t vdev_id, |
| 564 | int32_t rssi_change_thresh, |
| 565 | uint32_t bcn_rssi_weight, |
| 566 | uint32_t hirssi_delay_btw_scans); |
| 567 | |
| 568 | QDF_STATUS (*send_per_roam_config_cmd)(wmi_unified_t wmi_handle, |
| 569 | struct wmi_per_roam_config_req *req_buf); |
| 570 | |
| 571 | QDF_STATUS (*send_offload_11k_cmd)(wmi_unified_t wmi_handle, |
| 572 | struct wmi_11k_offload_params *params); |
| 573 | |
| 574 | QDF_STATUS (*send_invoke_neighbor_report_cmd)(wmi_unified_t wmi_handle, |
| 575 | struct wmi_invoke_neighbor_report_params *params); |
| 576 | |
| 577 | QDF_STATUS (*send_btm_config)(wmi_unified_t wmi_handle, |
| 578 | struct wmi_btm_config *params); |
| 579 | |
| 580 | QDF_STATUS (*send_limit_off_chan_cmd)(wmi_unified_t wmi_handle, |
| 581 | struct wmi_limit_off_chan_param *limit_off_chan_param); |
| 582 | |
| 583 | #ifdef WLAN_FEATURE_FILS_SK |
Vignesh Viswanathan | 90cd774 | 2017-09-25 14:36:38 +0530 | [diff] [blame] | 584 | QDF_STATUS (*send_roam_scan_hlp_cmd) (wmi_unified_t wmi_handle, |
| 585 | struct hlp_params *params); |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 586 | #endif /* WLAN_FEATURE_FILS_SK */ |
| 587 | |
| 588 | #ifdef FEATURE_WLAN_ESE |
| 589 | QDF_STATUS (*send_plm_stop_cmd)(wmi_unified_t wmi_handle, |
| 590 | const struct plm_req_params *plm); |
| 591 | |
| 592 | QDF_STATUS (*send_plm_start_cmd)(wmi_unified_t wmi_handle, |
| 593 | const struct plm_req_params *plm, |
| 594 | uint32_t *gchannel_list); |
| 595 | #endif /* FEATURE_WLAN_ESE */ |
| 596 | |
| 597 | #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
| 598 | QDF_STATUS (*send_set_ric_req_cmd)(wmi_unified_t wmi_handle, void *msg, |
| 599 | uint8_t is_add_ts); |
| 600 | |
| 601 | QDF_STATUS (*send_process_roam_synch_complete_cmd)(wmi_unified_t wmi_handle, |
| 602 | uint8_t vdev_id); |
| 603 | |
| 604 | QDF_STATUS (*send_roam_invoke_cmd)(wmi_unified_t wmi_handle, |
| 605 | struct wmi_roam_invoke_cmd *roaminvoke, |
| 606 | uint32_t ch_hz); |
| 607 | #endif /* WLAN_FEATURE_ROAM_OFFLOAD */ |
| 608 | #endif /* WMI_ROAM_SUPPORT */ |
| 609 | |
| 610 | QDF_STATUS (*send_scan_probe_setoui_cmd)(wmi_unified_t wmi_handle, |
| 611 | struct scan_mac_oui *psetoui); |
Vignesh Viswanathan | 90cd774 | 2017-09-25 14:36:38 +0530 | [diff] [blame] | 612 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 613 | 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] | 614 | struct wifi_passpoint_req_param *req); |
| 615 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 616 | QDF_STATUS (*send_set_epno_network_list_cmd)(wmi_unified_t wmi_handle, |
Jeff Johnson | 1660357 | 2018-07-12 21:59:18 -0700 | [diff] [blame] | 617 | struct wifi_enhanced_pno_params *req); |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 618 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 619 | QDF_STATUS (*send_extscan_get_capabilities_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 620 | struct extscan_capabilities_params *pgetcapab); |
| 621 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 622 | 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] | 623 | struct extscan_cached_result_params *pcached_results); |
| 624 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 625 | 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] | 626 | struct extscan_capabilities_reset_params *reset_req); |
| 627 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 628 | 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] | 629 | struct extscan_set_sig_changereq_params * |
| 630 | psigchange); |
| 631 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 632 | 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] | 633 | struct extscan_bssid_hotlist_reset_params *photlist_reset); |
| 634 | |
Jeff Johnson | 5d2803d | 2018-07-13 19:10:50 -0700 | [diff] [blame] | 635 | QDF_STATUS (*send_extscan_start_hotlist_monitor_cmd)(wmi_unified_t wmi_handle, |
| 636 | struct extscan_bssid_hotlist_set_params *params); |
| 637 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 638 | QDF_STATUS (*send_stop_extscan_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 639 | struct extscan_stop_req_params *pstopcmd); |
| 640 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 641 | QDF_STATUS (*send_start_extscan_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 642 | struct wifi_scan_cmd_req_params *pstart); |
| 643 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 644 | QDF_STATUS (*send_csa_offload_enable_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 645 | uint8_t vdev_id); |
| 646 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 647 | 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] | 648 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 649 | QDF_STATUS (*send_pno_start_cmd)(wmi_unified_t wmi_handle, |
Abhishek Singh | d418466 | 2017-03-03 22:09:07 +0530 | [diff] [blame] | 650 | struct pno_scan_req_params *pno); |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 651 | |
Varun Reddy Yeturu | 4fa519b | 2017-07-24 16:11:22 -0700 | [diff] [blame] | 652 | QDF_STATUS (*send_nlo_mawc_cmd)(wmi_unified_t wmi_handle, |
| 653 | struct nlo_mawc_params *params); |
| 654 | |
Sravan Kumar Kairam | dcb5f80 | 2018-02-15 23:28:34 +0530 | [diff] [blame] | 655 | #ifdef IPA_OFFLOAD |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 656 | QDF_STATUS (*send_ipa_offload_control_cmd)(wmi_unified_t wmi_handle, |
Sravan Kumar Kairam | dcb5f80 | 2018-02-15 23:28:34 +0530 | [diff] [blame] | 657 | struct ipa_uc_offload_control_params *ipa_offload); |
| 658 | #endif |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 659 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 660 | QDF_STATUS (*send_process_ll_stats_clear_cmd) |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 661 | (wmi_unified_t wmi_handle, |
| 662 | const struct ll_stats_clear_params *clear_req, |
| 663 | uint8_t addr[IEEE80211_ADDR_LEN]); |
| 664 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 665 | QDF_STATUS (*send_process_ll_stats_set_cmd) |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 666 | (wmi_unified_t wmi_handle, const struct ll_stats_set_params *set_req); |
| 667 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 668 | QDF_STATUS (*send_process_ll_stats_get_cmd) |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 669 | (wmi_unified_t wmi_handle, const struct ll_stats_get_params *get_req, |
| 670 | uint8_t addr[IEEE80211_ADDR_LEN]); |
| 671 | |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 672 | |
Padma, Santhosh Kumar | d326190 | 2017-03-21 19:09:35 +0530 | [diff] [blame] | 673 | QDF_STATUS (*send_congestion_cmd)(wmi_unified_t wmi_handle, |
Vivek | 7346528 | 2018-03-22 23:27:21 +0530 | [diff] [blame] | 674 | uint8_t vdev_id); |
Padma, Santhosh Kumar | d326190 | 2017-03-21 19:09:35 +0530 | [diff] [blame] | 675 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 676 | QDF_STATUS (*send_snr_request_cmd)(wmi_unified_t wmi_handle); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 677 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 678 | 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] | 679 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 680 | QDF_STATUS (*send_link_status_req_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 681 | struct link_status_params *link_status); |
Wu Gao | 2a3bc05 | 2018-05-17 16:14:00 +0800 | [diff] [blame] | 682 | #ifdef WLAN_POWER_MANAGEMENT_OFFLOAD |
Mukul Sharma | ba196f5 | 2017-02-25 01:50:47 +0530 | [diff] [blame] | 683 | QDF_STATUS (*send_add_wow_wakeup_event_cmd)(wmi_unified_t wmi_handle, |
| 684 | uint32_t vdev_id, |
Ravi Kumar Bokka | e3e852e | 2017-03-23 17:20:31 +0530 | [diff] [blame] | 685 | uint32_t *bitmap, |
Mukul Sharma | ba196f5 | 2017-02-25 01:50:47 +0530 | [diff] [blame] | 686 | bool enable); |
| 687 | |
| 688 | QDF_STATUS (*send_wow_patterns_to_fw_cmd)(wmi_unified_t wmi_handle, |
| 689 | uint8_t vdev_id, uint8_t ptrn_id, |
| 690 | const uint8_t *ptrn, uint8_t ptrn_len, |
| 691 | uint8_t ptrn_offset, const uint8_t *mask, |
| 692 | uint8_t mask_len, bool user, |
| 693 | uint8_t default_patterns); |
| 694 | |
| 695 | QDF_STATUS (*send_enable_arp_ns_offload_cmd)(wmi_unified_t wmi_handle, |
| 696 | struct pmo_arp_offload_params *arp_offload_req, |
| 697 | struct pmo_ns_offload_params *ns_offload_req, |
| 698 | uint8_t vdev_id); |
| 699 | |
Dustin Brown | 27a3a92 | 2017-05-12 14:01:44 -0700 | [diff] [blame] | 700 | QDF_STATUS (*send_conf_hw_filter_cmd)(wmi_unified_t wmi, |
| 701 | struct pmo_hw_filter_params *req); |
Ravi Kumar Bokka | 998a6ea | 2017-03-23 15:22:51 +0530 | [diff] [blame] | 702 | |
Mukul Sharma | ba196f5 | 2017-02-25 01:50:47 +0530 | [diff] [blame] | 703 | QDF_STATUS (*send_enable_enhance_multicast_offload_cmd)( |
| 704 | wmi_unified_t wmi_handle, |
| 705 | uint8_t vdev_id, bool action); |
| 706 | |
| 707 | QDF_STATUS (*send_add_clear_mcbc_filter_cmd)(wmi_unified_t wmi_handle, |
| 708 | uint8_t vdev_id, |
| 709 | struct qdf_mac_addr multicast_addr, |
| 710 | bool clearList); |
| 711 | |
Poddar, Siddarth | 4ef4d7b | 2017-09-28 17:14:01 +0530 | [diff] [blame] | 712 | QDF_STATUS (*send_multiple_add_clear_mcbc_filter_cmd)(wmi_unified_t wmi_handle, |
| 713 | uint8_t vdev_id, |
| 714 | struct pmo_mcast_filter_params *filter_param); |
| 715 | |
Mukul Sharma | ba196f5 | 2017-02-25 01:50:47 +0530 | [diff] [blame] | 716 | QDF_STATUS (*send_gtk_offload_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id, |
| 717 | struct pmo_gtk_req *params, |
| 718 | bool enable_offload, |
| 719 | uint32_t gtk_offload_opcode); |
| 720 | |
| 721 | QDF_STATUS (*send_process_gtk_offload_getinfo_cmd)(wmi_unified_t wmi_handle, |
| 722 | uint8_t vdev_id, |
| 723 | uint64_t offload_req_opcode); |
| 724 | |
| 725 | QDF_STATUS (*send_wow_sta_ra_filter_cmd)(wmi_unified_t wmi_handle, |
| 726 | uint8_t vdev_id, uint8_t default_pattern, |
| 727 | uint16_t rate_limit_interval); |
| 728 | |
| 729 | QDF_STATUS (*send_action_frame_patterns_cmd)(wmi_unified_t wmi_handle, |
| 730 | struct pmo_action_wakeup_set_params *action_params); |
| 731 | |
| 732 | QDF_STATUS (*extract_gtk_rsp_event)(wmi_unified_t wmi_handle, |
| 733 | void *evt_buf, |
| 734 | struct pmo_gtk_rsp_params *gtk_rsp_param, uint32_t len); |
| 735 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 736 | QDF_STATUS (*send_wow_delete_pattern_cmd)(wmi_unified_t wmi_handle, |
| 737 | uint8_t ptrn_id, |
| 738 | uint8_t vdev_id); |
| 739 | |
| 740 | QDF_STATUS (*send_host_wakeup_ind_to_fw_cmd)(wmi_unified_t wmi_handle); |
| 741 | |
| 742 | QDF_STATUS (*send_wow_timer_pattern_cmd)(wmi_unified_t wmi_handle, |
| 743 | uint8_t vdev_id, uint32_t cookie, uint32_t time); |
| 744 | #ifdef FEATURE_WLAN_LPHB |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 745 | QDF_STATUS (*send_lphb_config_hbenable_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 746 | wmi_hb_set_enable_cmd_fixed_param *params); |
| 747 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 748 | 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] | 749 | wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req); |
| 750 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 751 | 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] | 752 | wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp); |
| 753 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 754 | 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] | 755 | wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req); |
| 756 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 757 | 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] | 758 | wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req); |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 759 | #endif /* FEATURE_WLAN_LPHB */ |
Rachit Kankane | fcb0cdc | 2018-08-01 14:23:55 +0530 | [diff] [blame] | 760 | #ifdef WLAN_FEATURE_PACKET_FILTERING |
Ravi Kumar Bokka | 26800cc | 2017-04-20 17:14:33 +0530 | [diff] [blame] | 761 | QDF_STATUS (*send_enable_disable_packet_filter_cmd)(wmi_unified_t wmi_handle, |
| 762 | uint8_t vdev_id, bool enable); |
| 763 | |
| 764 | QDF_STATUS (*send_config_packet_filter_cmd)(wmi_unified_t wmi_handle, |
| 765 | uint8_t vdev_id, struct pmo_rcv_pkt_fltr_cfg *rcv_filter_param, |
| 766 | uint8_t filter_id, bool enable); |
Rachit Kankane | fcb0cdc | 2018-08-01 14:23:55 +0530 | [diff] [blame] | 767 | #endif |
Wu Gao | 2a3bc05 | 2018-05-17 16:14:00 +0800 | [diff] [blame] | 768 | #endif /* end of WLAN_POWER_MANAGEMENT_OFFLOAD */ |
Mukul Sharma | ba196f5 | 2017-02-25 01:50:47 +0530 | [diff] [blame] | 769 | #ifdef CONFIG_MCL |
Govind Singh | fa201d9 | 2016-06-08 19:40:11 +0530 | [diff] [blame] | 770 | QDF_STATUS (*send_bcn_buf_ll_cmd)(wmi_unified_t wmi_handle, |
| 771 | wmi_bcn_send_from_host_cmd_fixed_param * param); |
| 772 | |
Govind Singh | fa201d9 | 2016-06-08 19:40:11 +0530 | [diff] [blame] | 773 | QDF_STATUS (*send_pktlog_wmi_send_cmd)(wmi_unified_t wmi_handle, |
| 774 | WMI_PKTLOG_EVENT pktlog_event, |
Nirav Shah | 9d1f1ac | 2016-07-27 19:06:13 +0530 | [diff] [blame] | 775 | WMI_CMD_ID cmd_id, uint8_t user_triggered); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 776 | #endif |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 777 | |
Himanshu Agarwal | 0d578ff | 2018-01-10 14:21:53 +0530 | [diff] [blame] | 778 | #ifdef WLAN_SUPPORT_GREEN_AP |
| 779 | QDF_STATUS (*send_egap_conf_params_cmd)(wmi_unified_t wmi_handle, |
| 780 | struct wlan_green_ap_egap_params *egap_params); |
| 781 | #endif |
| 782 | |
Naveen Rawat | 90bc8fd | 2017-05-13 15:56:57 -0700 | [diff] [blame] | 783 | #ifdef WLAN_FEATURE_CIF_CFR |
| 784 | QDF_STATUS (*send_oem_dma_cfg_cmd)(wmi_unified_t wmi_handle, |
| 785 | wmi_oem_dma_ring_cfg_req_fixed_param *cfg); |
| 786 | #endif |
| 787 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 788 | 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] | 789 | uint32_t data_len, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 790 | uint8_t *data); |
| 791 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 792 | QDF_STATUS |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 793 | (*send_dfs_phyerr_filter_offload_en_cmd)(wmi_unified_t wmi_handle, |
| 794 | bool dfs_phyerr_filter_offload); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 795 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 796 | QDF_STATUS (*send_bss_color_change_enable_cmd)(wmi_unified_t wmi_handle, |
| 797 | uint32_t vdev_id, |
| 798 | bool enable); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 799 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 800 | QDF_STATUS (*send_obss_color_collision_cfg_cmd)(wmi_unified_t wmi_handle, |
| 801 | struct wmi_obss_color_collision_cfg_param *cfg); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 802 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 803 | QDF_STATUS (*extract_obss_color_collision_info)(uint8_t *evt_buf, |
| 804 | struct wmi_obss_color_collision_info *info); |
| 805 | |
Keyur Parekh | b35a30a | 2018-11-21 02:50:56 -0800 | [diff] [blame] | 806 | QDF_STATUS (*send_peer_based_pktlog_cmd)(wmi_unified_t wmi_handle, |
| 807 | uint8_t *macaddr, |
| 808 | uint8_t mac_id, |
| 809 | uint8_t enb_dsb); |
| 810 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 811 | #ifdef WMI_STA_SUPPORT |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 812 | 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] | 813 | uint8_t ac); |
| 814 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 815 | QDF_STATUS (*send_aggr_qos_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 816 | struct aggr_add_ts_param *aggr_qos_rsp_msg); |
| 817 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 818 | QDF_STATUS (*send_add_ts_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 819 | struct add_ts_param *msg); |
| 820 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 821 | 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] | 822 | struct periodic_tx_pattern * |
| 823 | pAddPeriodicTxPtrnParams, |
| 824 | uint8_t vdev_id); |
| 825 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 826 | 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] | 827 | uint8_t vdev_id, |
| 828 | uint8_t pattern_id); |
| 829 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 830 | 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] | 831 | uint32_t timer_val); |
| 832 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 833 | #ifdef WLAN_FEATURE_NAN |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 834 | QDF_STATUS (*send_nan_req_cmd)(wmi_unified_t wmi_handle, |
Nachiket Kukade | 9daf211 | 2018-11-08 18:19:51 +0530 | [diff] [blame] | 835 | struct nan_msg_params *nan_req); |
| 836 | |
| 837 | QDF_STATUS (*send_nan_disable_req_cmd)(wmi_unified_t wmi_handle, |
| 838 | struct nan_disable_req *nan_msg); |
| 839 | |
| 840 | QDF_STATUS (*extract_nan_event_rsp)(wmi_unified_t wmi_handle, void *evt_buf, |
| 841 | struct nan_event_params *evt_params, |
| 842 | uint8_t **msg_buf); |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 843 | #endif |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 844 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 845 | 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] | 846 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 847 | QDF_STATUS (*send_process_set_ie_info_cmd)(wmi_unified_t wmi_handle, |
| 848 | struct vdev_ie_info_param *ie_info); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 849 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 850 | QDF_STATUS (*send_set_base_macaddr_indicate_cmd)(wmi_unified_t wmi_handle, |
| 851 | uint8_t *custom_addr); |
| 852 | |
| 853 | QDF_STATUS (*send_pdev_set_pcl_cmd)(wmi_unified_t wmi_handle, |
| 854 | struct wmi_pcl_chan_weights *msg); |
| 855 | |
| 856 | QDF_STATUS (*send_pdev_set_hw_mode_cmd)(wmi_unified_t wmi_handle, |
| 857 | uint32_t hw_mode_index); |
| 858 | |
| 859 | #ifdef WLAN_POLICY_MGR_ENABLE |
| 860 | QDF_STATUS (*send_pdev_set_dual_mac_config_cmd)(wmi_unified_t wmi_handle, |
| 861 | struct policy_mgr_dual_mac_config *msg); |
| 862 | #endif |
| 863 | |
| 864 | QDF_STATUS (*send_set_led_flashing_cmd)(wmi_unified_t wmi_handle, |
| 865 | struct flashing_req_params *flashing); |
| 866 | |
| 867 | QDF_STATUS (*send_set_arp_stats_req_cmd)(wmi_unified_t wmi_handle, |
| 868 | struct set_arp_stats *req_buf); |
| 869 | |
| 870 | QDF_STATUS (*send_get_arp_stats_req_cmd)(wmi_unified_t wmi_handle, |
| 871 | struct get_arp_stats *req_buf); |
| 872 | |
| 873 | QDF_STATUS (*send_set_del_pmkid_cache_cmd) (wmi_unified_t wmi_handle, |
| 874 | struct wmi_unified_pmk_cache *req_buf); |
| 875 | |
| 876 | QDF_STATUS (*send_adapt_dwelltime_params_cmd)(wmi_unified_t wmi_handle, |
| 877 | struct wmi_adaptive_dwelltime_params *dwelltime_params); |
| 878 | |
| 879 | QDF_STATUS (*send_dbs_scan_sel_params_cmd)(wmi_unified_t wmi_handle, |
| 880 | struct wmi_dbs_scan_sel_params *dbs_scan_params); |
| 881 | |
| 882 | QDF_STATUS (*send_vdev_set_gtx_cfg_cmd)(wmi_unified_t wmi_handle, |
| 883 | uint32_t if_id, |
| 884 | struct wmi_gtx_config *gtx_info); |
| 885 | |
| 886 | QDF_STATUS (*send_set_sta_keep_alive_cmd)(wmi_unified_t wmi_handle, |
| 887 | struct sta_params *params); |
| 888 | |
| 889 | QDF_STATUS (*send_set_sta_sa_query_param_cmd)(wmi_unified_t wmi_handle, |
| 890 | uint8_t vdev_id, uint32_t max_retries, |
| 891 | uint32_t retry_interval); |
| 892 | |
| 893 | QDF_STATUS (*send_fw_profiling_cmd)(wmi_unified_t wmi_handle, |
| 894 | uint32_t cmd, uint32_t value1, uint32_t value2); |
| 895 | |
| 896 | QDF_STATUS (*send_nat_keepalive_en_cmd)(wmi_unified_t wmi_handle, |
| 897 | uint8_t vdev_id); |
| 898 | |
| 899 | QDF_STATUS (*send_process_dhcp_ind_cmd)(wmi_unified_t wmi_handle, |
| 900 | wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind); |
| 901 | |
| 902 | QDF_STATUS (*send_get_link_speed_cmd)(wmi_unified_t wmi_handle, |
| 903 | wmi_mac_addr peer_macaddr); |
| 904 | |
| 905 | QDF_STATUS (*send_wlm_latency_level_cmd)(wmi_unified_t wmi_handle, |
| 906 | struct wlm_latency_level_param *param); |
| 907 | |
| 908 | QDF_STATUS (*send_sar_limit_cmd)(wmi_unified_t wmi_handle, |
| 909 | struct sar_limit_cmd_params *params); |
| 910 | |
| 911 | QDF_STATUS (*get_sar_limit_cmd)(wmi_unified_t wmi_handle); |
| 912 | |
| 913 | QDF_STATUS (*extract_sar_limit_event)(wmi_unified_t wmi_handle, |
| 914 | uint8_t *evt_buf, |
| 915 | struct sar_limit_event *event); |
| 916 | |
| 917 | QDF_STATUS (*extract_sar2_result_event)(void *handle, |
| 918 | uint8_t *event, |
| 919 | uint32_t len); |
| 920 | |
| 921 | #ifdef WLAN_FEATURE_DISA |
| 922 | QDF_STATUS (*send_encrypt_decrypt_send_cmd)(wmi_unified_t wmi_handle, |
| 923 | struct disa_encrypt_decrypt_req_params *params); |
| 924 | |
| 925 | QDF_STATUS (*extract_encrypt_decrypt_resp_event)(wmi_unified_t wmi_handle, |
| 926 | void *evt_buf, |
| 927 | struct disa_encrypt_decrypt_resp_params *resp); |
| 928 | #endif |
| 929 | |
| 930 | #ifdef CONVERGED_TDLS_ENABLE |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 931 | 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] | 932 | struct tdls_channel_switch_params *chan_switch_params); |
| 933 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 934 | 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] | 935 | void *tdls_param, uint8_t tdls_state); |
| 936 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 937 | QDF_STATUS (*send_update_tdls_peer_state_cmd)(wmi_unified_t wmi_handle, |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 938 | struct tdls_peer_state_params *peerStateParams, |
| 939 | uint32_t *ch_mhz); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 940 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 941 | QDF_STATUS (*extract_vdev_tdls_ev_param)(wmi_unified_t wmi_handle, |
| 942 | void *evt_buf, struct tdls_event_info *param); |
| 943 | #endif /* CONVERGED_TDLS_ENABLE */ |
| 944 | #endif /* WMI_STA_SUPPORT */ |
| 945 | |
| 946 | QDF_STATUS (*send_stats_ext_req_cmd)(wmi_unified_t wmi_handle, |
| 947 | struct stats_ext_params *preq); |
| 948 | |
| 949 | #ifdef WLAN_FEATURE_EXTWOW_SUPPORT |
| 950 | QDF_STATUS (*send_enable_ext_wow_cmd)(wmi_unified_t wmi_handle, |
| 951 | struct ext_wow_params *params); |
| 952 | |
| 953 | QDF_STATUS (*send_set_app_type2_params_in_fw_cmd)(wmi_unified_t wmi_handle, |
| 954 | struct app_type2_params *appType2Params); |
| 955 | |
| 956 | QDF_STATUS (*send_app_type1_params_in_fw_cmd)(wmi_unified_t wmi_handle, |
| 957 | struct app_type1_params *app_type1_params); |
| 958 | #endif /* WLAN_FEATURE_EXTWOW_SUPPORT */ |
| 959 | |
| 960 | QDF_STATUS (*send_process_dhcpserver_offload_cmd)(wmi_unified_t wmi_handle, |
| 961 | struct dhcp_offload_info_params *params); |
| 962 | |
| 963 | QDF_STATUS (*send_regdomain_info_to_fw_cmd)(wmi_unified_t wmi_handle, |
| 964 | uint32_t reg_dmn, uint16_t regdmn2G, |
| 965 | uint16_t regdmn5G, uint8_t ctl2G, |
| 966 | uint8_t ctl5G); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 967 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 968 | 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] | 969 | struct fw_dump_req_param *mem_dump_req); |
| 970 | |
Kiran Kumar Lokere | a523bc5 | 2018-09-27 23:05:33 -0700 | [diff] [blame] | 971 | QDF_STATUS (*send_cfg_action_frm_tb_ppdu_cmd)(wmi_unified_t wmi_handle, |
| 972 | struct cfg_action_frm_tb_ppdu_param *cfg_info); |
| 973 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 974 | 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] | 975 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 976 | 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] | 977 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 978 | QDF_STATUS (*send_log_supported_evt_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 979 | uint8_t *event, |
| 980 | uint32_t len); |
| 981 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 982 | 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] | 983 | struct wmi_wifi_start_log *start_log); |
| 984 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 985 | 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] | 986 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 987 | QDF_STATUS (*send_set_ssid_hotlist_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 988 | struct ssid_hotlist_request_params *request); |
| 989 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 990 | QDF_STATUS (*send_unit_test_cmd)(wmi_unified_t wmi_handle, |
Anurag Chouhan | 4d41be7 | 2016-07-22 20:19:54 +0530 | [diff] [blame] | 991 | struct wmi_unit_test_cmd *wmi_utest); |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 992 | |
Nachiket Kukade | 74cce66 | 2018-05-25 14:52:55 +0530 | [diff] [blame] | 993 | #ifdef FEATURE_WLAN_APF |
Nachiket Kukade | e8ce862 | 2018-05-22 12:17:15 +0530 | [diff] [blame] | 994 | QDF_STATUS |
| 995 | (*send_set_active_apf_mode_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id, |
| 996 | enum wmi_host_active_apf_mode ucast_mode, |
| 997 | enum wmi_host_active_apf_mode mcast_bcast_mode); |
Dustin Brown | 4def316 | 2017-01-13 15:24:07 -0800 | [diff] [blame] | 998 | |
Nachiket Kukade | 74cce66 | 2018-05-25 14:52:55 +0530 | [diff] [blame] | 999 | QDF_STATUS (*send_apf_enable_cmd)(wmi_unified_t wmi_handle, uint32_t vdev_id, |
| 1000 | bool enable); |
| 1001 | |
| 1002 | QDF_STATUS (*send_apf_write_work_memory_cmd)(wmi_unified_t wmi_handle, |
| 1003 | struct wmi_apf_write_memory_params *apf_write_params); |
| 1004 | |
| 1005 | QDF_STATUS (*send_apf_read_work_memory_cmd)(wmi_unified_t wmi_handle, |
| 1006 | struct wmi_apf_read_memory_params *apf_read_params); |
| 1007 | |
| 1008 | QDF_STATUS (*extract_apf_read_memory_resp_event)(wmi_unified_t wmi_handle, |
| 1009 | void *evt_buf, |
| 1010 | struct wmi_apf_read_memory_resp_event_params *resp); |
| 1011 | #endif /* FEATURE_WLAN_APF */ |
| 1012 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1013 | QDF_STATUS (*send_pdev_get_tpc_config_cmd)(wmi_unified_t wmi_handle, |
| 1014 | uint32_t param); |
| 1015 | |
Sathish Kumar | 637da89 | 2018-10-02 11:03:59 +0530 | [diff] [blame] | 1016 | #ifdef WMI_ATF_SUPPORT |
Sathish Kumar | 50232d7 | 2016-08-09 16:50:46 +0530 | [diff] [blame] | 1017 | QDF_STATUS (*send_set_bwf_cmd)(wmi_unified_t wmi_handle, |
| 1018 | struct set_bwf_params *param); |
Sathish Kumar | 637da89 | 2018-10-02 11:03:59 +0530 | [diff] [blame] | 1019 | #endif |
Sathish Kumar | 50232d7 | 2016-08-09 16:50:46 +0530 | [diff] [blame] | 1020 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1021 | QDF_STATUS (*send_pdev_fips_cmd)(wmi_unified_t wmi_handle, |
| 1022 | struct fips_params *param); |
| 1023 | |
| 1024 | QDF_STATUS (*send_wlan_profile_enable_cmd)(wmi_unified_t wmi_handle, |
| 1025 | struct wlan_profile_params *param); |
| 1026 | |
| 1027 | QDF_STATUS (*send_wlan_profile_trigger_cmd)(wmi_unified_t wmi_handle, |
| 1028 | struct wlan_profile_params *param); |
| 1029 | |
| 1030 | QDF_STATUS (*send_pdev_set_chan_cmd)(wmi_unified_t wmi_handle, |
| 1031 | struct channel_param *param); |
| 1032 | |
| 1033 | QDF_STATUS (*send_set_ht_ie_cmd)(wmi_unified_t wmi_handle, |
| 1034 | struct ht_ie_params *param); |
| 1035 | |
| 1036 | QDF_STATUS (*send_set_vht_ie_cmd)(wmi_unified_t wmi_handle, |
| 1037 | struct vht_ie_params *param); |
| 1038 | |
| 1039 | QDF_STATUS (*send_wmm_update_cmd)(wmi_unified_t wmi_handle, |
| 1040 | struct wmm_update_params *param); |
| 1041 | |
Vikram Kandukuri | d2e7580 | 2017-06-01 16:47:51 +0530 | [diff] [blame] | 1042 | QDF_STATUS (*send_process_update_edca_param_cmd)(wmi_unified_t wmi_handle, |
Kiran Kumar Lokere | af132c1 | 2018-04-06 16:56:47 -0700 | [diff] [blame] | 1043 | uint8_t vdev_id, bool mu_edca_param, |
Vikram Kandukuri | d2e7580 | 2017-06-01 16:47:51 +0530 | [diff] [blame] | 1044 | struct wmi_host_wme_vparams wmm_vparams[WMI_MAX_NUM_AC]); |
| 1045 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1046 | QDF_STATUS (*send_set_ratepwr_table_cmd)(wmi_unified_t wmi_handle, |
| 1047 | struct ratepwr_table_params *param); |
| 1048 | |
| 1049 | QDF_STATUS (*send_get_ratepwr_table_cmd)(wmi_unified_t wmi_handle); |
| 1050 | |
| 1051 | QDF_STATUS (*send_set_ctl_table_cmd)(wmi_unified_t wmi_handle, |
| 1052 | struct ctl_table_params *param); |
| 1053 | |
| 1054 | QDF_STATUS (*send_set_mimogain_table_cmd)(wmi_unified_t wmi_handle, |
| 1055 | struct mimogain_table_params *param); |
| 1056 | |
| 1057 | QDF_STATUS (*send_set_ratepwr_chainmsk_cmd)(wmi_unified_t wmi_handle, |
| 1058 | struct ratepwr_chainmsk_params *param); |
| 1059 | |
| 1060 | QDF_STATUS (*send_set_macaddr_cmd)(wmi_unified_t wmi_handle, |
| 1061 | struct macaddr_params *param); |
| 1062 | |
| 1063 | QDF_STATUS (*send_pdev_scan_start_cmd)(wmi_unified_t wmi_handle); |
| 1064 | |
| 1065 | QDF_STATUS (*send_pdev_scan_end_cmd)(wmi_unified_t wmi_handle); |
| 1066 | |
| 1067 | QDF_STATUS (*send_set_acparams_cmd)(wmi_unified_t wmi_handle, |
| 1068 | struct acparams_params *param); |
| 1069 | |
| 1070 | QDF_STATUS (*send_set_vap_dscp_tid_map_cmd)(wmi_unified_t wmi_handle, |
| 1071 | struct vap_dscp_tid_map_params *param); |
| 1072 | |
| 1073 | QDF_STATUS (*send_proxy_ast_reserve_cmd)(wmi_unified_t wmi_handle, |
| 1074 | struct proxy_ast_reserve_params *param); |
| 1075 | |
| 1076 | QDF_STATUS (*send_pdev_qvit_cmd)(wmi_unified_t wmi_handle, |
| 1077 | struct pdev_qvit_params *param); |
| 1078 | |
| 1079 | QDF_STATUS (*send_mcast_group_update_cmd)(wmi_unified_t wmi_handle, |
| 1080 | struct mcast_group_update_params *param); |
| 1081 | |
| 1082 | QDF_STATUS (*send_peer_add_wds_entry_cmd)(wmi_unified_t wmi_handle, |
| 1083 | struct peer_add_wds_entry_params *param); |
| 1084 | |
| 1085 | QDF_STATUS (*send_peer_del_wds_entry_cmd)(wmi_unified_t wmi_handle, |
| 1086 | struct peer_del_wds_entry_params *param); |
| 1087 | |
Jeevan Kukkalli | 28e8a16 | 2017-06-16 18:07:28 +0530 | [diff] [blame] | 1088 | QDF_STATUS (*send_set_bridge_mac_addr_cmd)(wmi_unified_t wmi_handle, |
| 1089 | struct set_bridge_mac_addr_params *param); |
| 1090 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1091 | QDF_STATUS (*send_peer_update_wds_entry_cmd)(wmi_unified_t wmi_handle, |
| 1092 | struct peer_update_wds_entry_params *param); |
| 1093 | |
| 1094 | QDF_STATUS (*send_phyerr_enable_cmd)(wmi_unified_t wmi_handle); |
| 1095 | |
| 1096 | QDF_STATUS (*send_phyerr_disable_cmd)(wmi_unified_t wmi_handle); |
| 1097 | |
Sathish Kumar | 637da89 | 2018-10-02 11:03:59 +0530 | [diff] [blame] | 1098 | #ifdef WMI_SMART_ANT_SUPPORT |
| 1099 | QDF_STATUS (*send_set_ant_switch_tbl_cmd)(wmi_unified_t wmi_handle, |
| 1100 | struct ant_switch_tbl_params *param); |
| 1101 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1102 | QDF_STATUS (*send_smart_ant_enable_cmd)(wmi_unified_t wmi_handle, |
| 1103 | struct smart_ant_enable_params *param); |
| 1104 | |
| 1105 | QDF_STATUS (*send_smart_ant_set_rx_ant_cmd)(wmi_unified_t wmi_handle, |
| 1106 | struct smart_ant_rx_ant_params *param); |
| 1107 | |
| 1108 | QDF_STATUS (*send_smart_ant_set_tx_ant_cmd)(wmi_unified_t wmi_handle, |
| 1109 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 1110 | struct smart_ant_tx_ant_params *param); |
| 1111 | |
| 1112 | QDF_STATUS (*send_smart_ant_set_training_info_cmd)(wmi_unified_t wmi_handle, |
| 1113 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 1114 | struct smart_ant_training_info_params *param); |
| 1115 | |
| 1116 | QDF_STATUS (*send_smart_ant_set_node_config_cmd)(wmi_unified_t wmi_handle, |
| 1117 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 1118 | struct smart_ant_node_config_params *param); |
Sathish Kumar | 637da89 | 2018-10-02 11:03:59 +0530 | [diff] [blame] | 1119 | #endif |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1120 | |
| 1121 | QDF_STATUS (*send_smart_ant_enable_tx_feedback_cmd)(wmi_unified_t wmi_handle, |
| 1122 | struct smart_ant_enable_tx_feedback_params *param); |
| 1123 | |
| 1124 | QDF_STATUS (*send_vdev_spectral_configure_cmd)(wmi_unified_t wmi_handle, |
| 1125 | struct vdev_spectral_configure_params *param); |
| 1126 | |
| 1127 | QDF_STATUS (*send_vdev_spectral_enable_cmd)(wmi_unified_t wmi_handle, |
| 1128 | struct vdev_spectral_enable_params *param); |
| 1129 | |
| 1130 | QDF_STATUS (*send_bss_chan_info_request_cmd)(wmi_unified_t wmi_handle, |
| 1131 | struct bss_chan_info_request_params *param); |
| 1132 | |
| 1133 | QDF_STATUS (*send_thermal_mitigation_param_cmd)(wmi_unified_t wmi_handle, |
| 1134 | struct thermal_mitigation_params *param); |
| 1135 | |
| 1136 | QDF_STATUS (*send_vdev_set_neighbour_rx_cmd)(wmi_unified_t wmi_handle, |
| 1137 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 1138 | struct set_neighbour_rx_params *param); |
| 1139 | |
| 1140 | QDF_STATUS (*send_vdev_set_fwtest_param_cmd)(wmi_unified_t wmi_handle, |
| 1141 | struct set_fwtest_params *param); |
| 1142 | |
| 1143 | QDF_STATUS (*send_vdev_config_ratemask_cmd)(wmi_unified_t wmi_handle, |
| 1144 | struct config_ratemask_params *param); |
| 1145 | |
Sathish Kumar | 6190e77 | 2017-11-08 14:49:58 +0530 | [diff] [blame] | 1146 | QDF_STATUS (*send_vdev_set_custom_aggr_size_cmd)(wmi_unified_t wmi_handle, |
| 1147 | struct set_custom_aggr_size_params *param); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1148 | |
Venkateswara Swamy Bandaru | 81f40dc | 2017-12-22 17:16:19 +0530 | [diff] [blame] | 1149 | QDF_STATUS (*send_vdev_set_qdepth_thresh_cmd)(wmi_unified_t wmi_handle, |
| 1150 | struct set_qdepth_thresh_params *param); |
| 1151 | |
Aditya Sathish | f47172a | 2018-10-15 22:44:58 +0530 | [diff] [blame] | 1152 | QDF_STATUS (*send_peer_chan_width_switch_cmd)(wmi_unified_t wmi_handle, |
| 1153 | struct peer_chan_width_switch_params *param); |
| 1154 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1155 | QDF_STATUS (*send_wow_wakeup_cmd)(wmi_unified_t wmi_handle); |
| 1156 | |
| 1157 | QDF_STATUS (*send_wow_add_wakeup_event_cmd)(wmi_unified_t wmi_handle, |
| 1158 | struct wow_add_wakeup_params *param); |
| 1159 | |
| 1160 | QDF_STATUS (*send_wow_add_wakeup_pattern_cmd)(wmi_unified_t wmi_handle, |
| 1161 | struct wow_add_wakeup_pattern_params *param); |
| 1162 | |
| 1163 | QDF_STATUS (*send_wow_remove_wakeup_pattern_cmd)(wmi_unified_t wmi_handle, |
| 1164 | struct wow_remove_wakeup_pattern_params *param); |
| 1165 | |
| 1166 | QDF_STATUS (*send_pdev_set_regdomain_cmd)(wmi_unified_t wmi_handle, |
| 1167 | struct pdev_set_regdomain_params *param); |
| 1168 | |
| 1169 | QDF_STATUS (*send_set_quiet_mode_cmd)(wmi_unified_t wmi_handle, |
| 1170 | struct set_quiet_mode_params *param); |
| 1171 | |
Abhiram Jogadenu | e0883af | 2018-10-16 16:16:41 +0530 | [diff] [blame] | 1172 | QDF_STATUS (*send_set_bcn_offload_quiet_mode_cmd)(wmi_unified_t wmi_handle, |
| 1173 | struct set_bcn_offload_quiet_mode_params *param); |
| 1174 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1175 | QDF_STATUS (*send_set_beacon_filter_cmd)(wmi_unified_t wmi_handle, |
| 1176 | struct set_beacon_filter_params *param); |
| 1177 | |
| 1178 | QDF_STATUS (*send_remove_beacon_filter_cmd)(wmi_unified_t wmi_handle, |
| 1179 | struct remove_beacon_filter_params *param); |
| 1180 | /* |
| 1181 | QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle, |
| 1182 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 1183 | struct mgmt_params *param); |
| 1184 | */ |
| 1185 | |
| 1186 | QDF_STATUS (*send_addba_clearresponse_cmd)(wmi_unified_t wmi_handle, |
| 1187 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 1188 | struct addba_clearresponse_params *param); |
| 1189 | |
| 1190 | QDF_STATUS (*send_addba_send_cmd)(wmi_unified_t wmi_handle, |
| 1191 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 1192 | struct addba_send_params *param); |
| 1193 | |
| 1194 | QDF_STATUS (*send_delba_send_cmd)(wmi_unified_t wmi_handle, |
| 1195 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 1196 | struct delba_send_params *param); |
| 1197 | |
| 1198 | QDF_STATUS (*send_addba_setresponse_cmd)(wmi_unified_t wmi_handle, |
| 1199 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 1200 | struct addba_setresponse_params *param); |
| 1201 | |
| 1202 | QDF_STATUS (*send_singleamsdu_cmd)(wmi_unified_t wmi_handle, |
| 1203 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 1204 | struct singleamsdu_params *param); |
| 1205 | |
| 1206 | QDF_STATUS (*send_set_qboost_param_cmd)(wmi_unified_t wmi_handle, |
| 1207 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 1208 | struct set_qboost_params *param); |
| 1209 | |
| 1210 | QDF_STATUS (*send_mu_scan_cmd)(wmi_unified_t wmi_handle, |
| 1211 | struct mu_scan_params *param); |
| 1212 | |
| 1213 | QDF_STATUS (*send_lteu_config_cmd)(wmi_unified_t wmi_handle, |
| 1214 | struct lteu_config_params *param); |
| 1215 | |
| 1216 | QDF_STATUS (*send_set_ps_mode_cmd)(wmi_unified_t wmi_handle, |
| 1217 | struct set_ps_mode_params *param); |
Kiran Venkatappa | 34bea52 | 2017-09-01 17:02:34 +0530 | [diff] [blame] | 1218 | QDF_STATUS (*save_service_bitmap)(wmi_unified_t wmi_handle, |
| 1219 | void *evt_buf, void *bitmap_buf); |
| 1220 | QDF_STATUS (*save_ext_service_bitmap)(wmi_unified_t wmi_handle, |
Rajeev Kumar | 5d8497b | 2017-02-12 02:12:17 -0800 | [diff] [blame] | 1221 | void *evt_buf, void *bitmap_buf); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1222 | bool (*is_service_enabled)(wmi_unified_t wmi_handle, |
| 1223 | uint32_t service_id); |
| 1224 | 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] | 1225 | void *evt_buf, struct wlan_psoc_target_capability_info *ev); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1226 | |
| 1227 | QDF_STATUS (*extract_fw_version)(wmi_unified_t wmi_handle, |
| 1228 | void *ev, struct wmi_host_fw_ver *fw_ver); |
| 1229 | |
| 1230 | QDF_STATUS (*extract_fw_abi_version)(wmi_unified_t wmi_handle, |
| 1231 | void *ev, struct wmi_host_fw_abi_ver *fw_ver); |
| 1232 | |
| 1233 | 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] | 1234 | struct wlan_psoc_hal_reg_capability *hal_reg_cap); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1235 | |
| 1236 | host_mem_req * (*extract_host_mem_req)(wmi_unified_t wmi_handle, |
| 1237 | void *evt_buf, uint8_t *num_entries); |
| 1238 | |
| 1239 | QDF_STATUS (*init_cmd_send)(wmi_unified_t wmi_handle, |
Kiran Venkatappa | af1dae3 | 2016-12-23 19:58:54 +0530 | [diff] [blame] | 1240 | struct wmi_init_cmd_param *param); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1241 | |
| 1242 | QDF_STATUS (*save_fw_version)(wmi_unified_t wmi_handle, void *evt_buf); |
| 1243 | uint32_t (*ready_extract_init_status)(wmi_unified_t wmi_hdl, void *ev); |
| 1244 | QDF_STATUS (*ready_extract_mac_addr)(wmi_unified_t wmi_hdl, void *ev, |
| 1245 | uint8_t *macaddr); |
Manoj Ekbote | 6649639 | 2017-07-09 23:28:56 -0700 | [diff] [blame] | 1246 | wmi_host_mac_addr * (*ready_extract_mac_addr_list)(wmi_unified_t wmi_hdl, |
| 1247 | void *ev, uint8_t *num_mac_addr); |
Kiran Venkatappa | a40870a | 2017-11-10 20:50:12 +0530 | [diff] [blame] | 1248 | QDF_STATUS (*extract_ready_event_params)(wmi_unified_t wmi_handle, |
| 1249 | void *evt_buf, struct wmi_host_ready_ev_param *ev_param); |
Manoj Ekbote | 6649639 | 2017-07-09 23:28:56 -0700 | [diff] [blame] | 1250 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1251 | QDF_STATUS (*check_and_update_fw_version)(wmi_unified_t wmi_hdl, void *ev); |
| 1252 | 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] | 1253 | uint32_t *len); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1254 | QDF_STATUS (*send_ext_resource_config)(wmi_unified_t wmi_handle, |
| 1255 | wmi_host_ext_resource_config *ext_cfg); |
| 1256 | |
nobelj | d9c2dc8 | 2018-01-25 16:35:36 -0800 | [diff] [blame] | 1257 | QDF_STATUS (*send_nf_dbr_dbm_info_get_cmd)(wmi_unified_t wmi_handle, |
| 1258 | uint8_t mac_id); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1259 | |
| 1260 | QDF_STATUS (*send_packet_power_info_get_cmd)(wmi_unified_t wmi_handle, |
| 1261 | struct packet_power_info_params *param); |
| 1262 | |
| 1263 | QDF_STATUS (*send_gpio_config_cmd)(wmi_unified_t wmi_handle, |
| 1264 | struct gpio_config_params *param); |
| 1265 | |
| 1266 | QDF_STATUS (*send_gpio_output_cmd)(wmi_unified_t wmi_handle, |
| 1267 | struct gpio_output_params *param); |
| 1268 | |
| 1269 | QDF_STATUS (*send_rtt_meas_req_test_cmd)(wmi_unified_t wmi_handle, |
| 1270 | struct rtt_meas_req_test_params *param); |
| 1271 | |
| 1272 | QDF_STATUS (*send_rtt_meas_req_cmd)(wmi_unified_t wmi_handle, |
| 1273 | struct rtt_meas_req_params *param); |
| 1274 | |
| 1275 | QDF_STATUS (*send_rtt_keepalive_req_cmd)(wmi_unified_t wmi_handle, |
| 1276 | struct rtt_keepalive_req_params *param); |
| 1277 | |
| 1278 | QDF_STATUS (*send_lci_set_cmd)(wmi_unified_t wmi_handle, |
| 1279 | struct lci_set_params *param); |
| 1280 | |
| 1281 | QDF_STATUS (*send_lcr_set_cmd)(wmi_unified_t wmi_handle, |
| 1282 | struct lcr_set_params *param); |
| 1283 | |
| 1284 | QDF_STATUS (*send_periodic_chan_stats_config_cmd)(wmi_unified_t wmi_handle, |
| 1285 | struct periodic_chan_stats_params *param); |
| 1286 | |
Jeffin Mammen | ff8ae5a | 2018-07-24 14:20:08 +0530 | [diff] [blame] | 1287 | #ifdef WLAN_ATF_ENABLE |
| 1288 | QDF_STATUS (*send_set_atf_cmd)(wmi_unified_t wmi_handle, |
| 1289 | struct set_atf_params *param); |
| 1290 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1291 | QDF_STATUS |
| 1292 | (*send_atf_peer_request_cmd)(wmi_unified_t wmi_handle, |
Jeffin Mammen | ff8ae5a | 2018-07-24 14:20:08 +0530 | [diff] [blame] | 1293 | struct atf_peer_request_params *param); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1294 | |
| 1295 | QDF_STATUS |
| 1296 | (*send_set_atf_grouping_cmd)(wmi_unified_t wmi_handle, |
Jeffin Mammen | ff8ae5a | 2018-07-24 14:20:08 +0530 | [diff] [blame] | 1297 | struct atf_grouping_params *param); |
| 1298 | |
| 1299 | QDF_STATUS |
| 1300 | (*send_set_atf_group_ac_cmd)(wmi_unified_t wmi_handle, |
| 1301 | struct atf_group_ac_params *param); |
| 1302 | |
| 1303 | QDF_STATUS (*extract_atf_peer_stats_ev)(wmi_unified_t wmi_handle, |
| 1304 | void *evt_buf, |
| 1305 | wmi_host_atf_peer_stats_event *ev); |
| 1306 | |
| 1307 | QDF_STATUS (*extract_atf_token_info_ev)(wmi_unified_t wmi_handle, |
| 1308 | void *evt_buf, uint8_t idx, |
| 1309 | wmi_host_atf_peer_stats_info *atf_info); |
| 1310 | #endif |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1311 | |
Sathish Kumar | 7e2eaed | 2016-11-14 17:44:29 +0530 | [diff] [blame] | 1312 | QDF_STATUS (*send_get_user_position_cmd)(wmi_unified_t wmi_handle, |
| 1313 | uint32_t value); |
| 1314 | |
| 1315 | QDF_STATUS |
| 1316 | (*send_reset_peer_mumimo_tx_count_cmd)(wmi_unified_t wmi_handle, |
| 1317 | uint32_t value); |
| 1318 | |
| 1319 | QDF_STATUS (*send_get_peer_mumimo_tx_count_cmd)(wmi_unified_t wmi_handle, |
| 1320 | uint32_t value); |
| 1321 | |
| 1322 | QDF_STATUS |
| 1323 | (*send_pdev_caldata_version_check_cmd)(wmi_unified_t wmi_handle, |
| 1324 | uint32_t value); |
| 1325 | |
| 1326 | QDF_STATUS |
Sathish Kumar | 7e566c5 | 2016-11-10 15:30:22 +0530 | [diff] [blame] | 1327 | (*send_btcoex_wlan_priority_cmd)(wmi_unified_t wmi_handle, |
| 1328 | struct btcoex_cfg_params *param); |
| 1329 | |
| 1330 | QDF_STATUS |
Kiran Kumar Lokere | a7e488b | 2017-04-26 19:51:29 -0700 | [diff] [blame] | 1331 | (*send_start_11d_scan_cmd)(wmi_unified_t wmi_handle, |
| 1332 | struct reg_start_11d_scan_req *param); |
| 1333 | |
| 1334 | QDF_STATUS |
| 1335 | (*send_stop_11d_scan_cmd)(wmi_unified_t wmi_handle, |
| 1336 | struct reg_stop_11d_scan_req *param); |
| 1337 | |
| 1338 | QDF_STATUS |
Sathish Kumar | 7e566c5 | 2016-11-10 15:30:22 +0530 | [diff] [blame] | 1339 | (*send_btcoex_duty_cycle_cmd)(wmi_unified_t wmi_handle, |
| 1340 | struct btcoex_cfg_params *param); |
Sathish Kumar | 7e2eaed | 2016-11-14 17:44:29 +0530 | [diff] [blame] | 1341 | |
Sathish Kumar | 612d0c2 | 2017-01-19 14:57:37 +0530 | [diff] [blame] | 1342 | QDF_STATUS |
| 1343 | (*send_coex_ver_cfg_cmd)(wmi_unified_t wmi_handle, coex_ver_cfg_t *param); |
| 1344 | |
Sathish Kumar | 125754e | 2017-04-24 11:36:00 +0530 | [diff] [blame] | 1345 | QDF_STATUS |
| 1346 | (*send_coex_config_cmd)(wmi_unified_t wmi_handle, |
| 1347 | struct coex_config_params *param); |
| 1348 | |
Kiran Venkatappa | f9b1de3 | 2017-11-08 19:32:23 +0530 | [diff] [blame] | 1349 | QDF_STATUS (*send_bcn_offload_control_cmd)(wmi_unified_t wmi_handle, |
| 1350 | struct bcn_offload_control *bcn_ctrl_param); |
c_cgodav | a5eb9a2 | 2017-02-13 10:14:42 +0530 | [diff] [blame] | 1351 | #ifdef OL_ATH_SMART_LOGGING |
| 1352 | QDF_STATUS |
| 1353 | (*send_smart_logging_enable_cmd)(wmi_unified_t wmi_handle, uint32_t param); |
Kiran Venkatappa | f9b1de3 | 2017-11-08 19:32:23 +0530 | [diff] [blame] | 1354 | |
c_cgodav | a5eb9a2 | 2017-02-13 10:14:42 +0530 | [diff] [blame] | 1355 | QDF_STATUS |
| 1356 | (*send_smart_logging_fatal_cmd)(wmi_unified_t wmi_handle, |
| 1357 | struct wmi_debug_fatal_events *param); |
| 1358 | #endif /* OL_ATH_SMART_LOGGING */ |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1359 | QDF_STATUS (*extract_wds_addr_event)(wmi_unified_t wmi_handle, |
| 1360 | void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev); |
| 1361 | |
| 1362 | QDF_STATUS (*extract_dcs_interference_type)(wmi_unified_t wmi_handle, |
Kiran Venkatappa | 9b7a959 | 2016-12-29 18:09:32 +0530 | [diff] [blame] | 1363 | void *evt_buf, struct wmi_host_dcs_interference_param *param); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1364 | |
| 1365 | QDF_STATUS (*extract_dcs_cw_int)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1366 | wmi_host_ath_dcs_cw_int *cw_int); |
| 1367 | |
| 1368 | QDF_STATUS (*extract_dcs_im_tgt_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1369 | wmi_host_dcs_im_tgt_stats_t *wlan_stat); |
| 1370 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1371 | QDF_STATUS (*extract_fips_event_data)(wmi_unified_t wmi_handle, |
Kiran Venkatappa | 9f5fcc0 | 2016-12-29 22:07:14 +0530 | [diff] [blame] | 1372 | void *evt_buf, struct wmi_host_fips_event_param *param); |
| 1373 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1374 | QDF_STATUS (*extract_vdev_start_resp)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1375 | wmi_host_vdev_start_resp *vdev_rsp); |
| 1376 | |
Om Prakash Tripathi | 105b04b | 2017-11-24 16:53:07 +0530 | [diff] [blame] | 1377 | QDF_STATUS (*extract_vdev_delete_resp)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1378 | struct wmi_host_vdev_delete_resp *delete_rsp); |
| 1379 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1380 | QDF_STATUS (*extract_tbttoffset_update_params)(void *wmi_hdl, void *evt_buf, |
Sathish Kumar | 744fbf7 | 2017-05-17 18:05:15 +0530 | [diff] [blame] | 1381 | uint8_t idx, struct tbttoffset_params *tbtt_param); |
| 1382 | |
| 1383 | QDF_STATUS (*extract_ext_tbttoffset_update_params)(void *wmi_hdl, void *evt_buf, |
| 1384 | uint8_t idx, struct tbttoffset_params *tbtt_param); |
| 1385 | |
| 1386 | QDF_STATUS (*extract_tbttoffset_num_vdevs)(void *wmi_hdl, void *evt_buf, |
| 1387 | uint32_t *num_vdevs); |
| 1388 | |
| 1389 | QDF_STATUS (*extract_ext_tbttoffset_num_vdevs)(void *wmi_hdl, void *evt_buf, |
| 1390 | uint32_t *num_vdevs); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1391 | |
| 1392 | 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] | 1393 | struct mgmt_rx_event_params *hdr, uint8_t **bufp); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1394 | |
| 1395 | QDF_STATUS (*extract_vdev_stopped_param)(wmi_unified_t wmi_handle, |
| 1396 | void *evt_buf, uint32_t *vdev_id); |
| 1397 | |
| 1398 | QDF_STATUS (*extract_vdev_roam_param)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1399 | wmi_host_roam_event *param); |
| 1400 | |
| 1401 | 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] | 1402 | void *evt_buf, struct scan_event *param); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1403 | |
| 1404 | QDF_STATUS (*extract_mu_ev_param)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1405 | wmi_host_mu_report_event *param); |
| 1406 | |
Sathish Kumar | 7e2eaed | 2016-11-14 17:44:29 +0530 | [diff] [blame] | 1407 | QDF_STATUS (*extract_mu_db_entry)(wmi_unified_t wmi_hdl, void *evt_buf, |
| 1408 | uint8_t idx, wmi_host_mu_db_entry *param); |
| 1409 | |
| 1410 | QDF_STATUS (*extract_mumimo_tx_count_ev_param)(wmi_unified_t wmi_handle, |
| 1411 | void *evt_buf, wmi_host_peer_txmu_cnt_event *param); |
| 1412 | |
| 1413 | QDF_STATUS (*extract_peer_gid_userpos_list_ev_param)(wmi_unified_t wmi_handle, |
| 1414 | void *evt_buf, wmi_host_peer_gid_userpos_list_event *param); |
| 1415 | |
Anirban Sirkhell | 08c0193 | 2017-08-25 16:01:50 +0530 | [diff] [blame] | 1416 | QDF_STATUS |
| 1417 | (*extract_esp_estimation_ev_param)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1418 | struct esp_estimation_event *param); |
| 1419 | |
Sathish Kumar | 7e2eaed | 2016-11-14 17:44:29 +0530 | [diff] [blame] | 1420 | QDF_STATUS (*extract_pdev_caldata_version_check_ev_param)( |
| 1421 | wmi_unified_t wmi_handle, |
| 1422 | void *evt_buf, wmi_host_pdev_check_cal_version_event *param); |
| 1423 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1424 | QDF_STATUS (*extract_pdev_tpc_config_ev_param)(wmi_unified_t wmi_handle, |
| 1425 | void *evt_buf, wmi_host_pdev_tpc_config_event *param); |
| 1426 | |
| 1427 | QDF_STATUS (*extract_gpio_input_ev_param)(wmi_unified_t wmi_handle, |
| 1428 | void *evt_buf, uint32_t *gpio_num); |
| 1429 | |
| 1430 | 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] | 1431 | void *evt_buf, struct wmi_host_proxy_ast_reserve_param *param); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1432 | |
| 1433 | QDF_STATUS (*extract_nfcal_power_ev_param)(wmi_unified_t wmi_handle, |
| 1434 | void *evt_buf, |
| 1435 | wmi_host_pdev_nfcal_power_all_channels_event *param); |
| 1436 | |
| 1437 | QDF_STATUS (*extract_pdev_tpc_ev_param)(wmi_unified_t wmi_handle, |
| 1438 | void *evt_buf, wmi_host_pdev_tpc_event *param); |
| 1439 | |
| 1440 | QDF_STATUS (*extract_pdev_generic_buffer_ev_param)(wmi_unified_t wmi_handle, |
| 1441 | void *evt_buf, wmi_host_pdev_generic_buffer_event *param); |
| 1442 | |
| 1443 | QDF_STATUS (*extract_mgmt_tx_compl_param)(wmi_unified_t wmi_handle, |
| 1444 | void *evt_buf, wmi_host_mgmt_tx_compl_event *param); |
| 1445 | |
Kiran Venkatappa | 25c4702 | 2017-03-19 22:58:09 +0530 | [diff] [blame] | 1446 | QDF_STATUS (*extract_offchan_data_tx_compl_param)(wmi_unified_t wmi_handle, |
| 1447 | void *evt_buf, |
| 1448 | struct wmi_host_offchan_data_tx_compl_event *param); |
| 1449 | |
Sathish Kumar | 907a746 | 2017-02-27 10:35:40 +0530 | [diff] [blame] | 1450 | QDF_STATUS (*extract_pdev_csa_switch_count_status)(wmi_unified_t wmi_handle, |
| 1451 | void *evt_buf, struct pdev_csa_switch_count_status *param); |
| 1452 | |
Sathish Kumar | 744fbf7 | 2017-05-17 18:05:15 +0530 | [diff] [blame] | 1453 | QDF_STATUS (*extract_swba_num_vdevs)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1454 | uint32_t *num_vdevs); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1455 | |
| 1456 | QDF_STATUS (*extract_swba_tim_info)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1457 | uint32_t idx, wmi_host_tim_info *tim_info); |
| 1458 | |
| 1459 | QDF_STATUS (*extract_swba_noa_info)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1460 | uint32_t idx, wmi_host_p2p_noa_info *p2p_desc); |
| 1461 | |
Wu Gao | 07ba6b4 | 2017-03-13 20:17:34 +0800 | [diff] [blame] | 1462 | #ifdef CONVERGED_P2P_ENABLE |
Rachit Kankane | 54c543f | 2018-07-31 16:26:38 +0530 | [diff] [blame] | 1463 | #ifdef FEATURE_P2P_LISTEN_OFFLOAD |
Wu Gao | 07ba6b4 | 2017-03-13 20:17:34 +0800 | [diff] [blame] | 1464 | QDF_STATUS (*extract_p2p_lo_stop_ev_param)(wmi_unified_t wmi_handle, |
| 1465 | void *evt_buf, struct p2p_lo_event *param); |
Rachit Kankane | 54c543f | 2018-07-31 16:26:38 +0530 | [diff] [blame] | 1466 | #endif |
Wu Gao | 07ba6b4 | 2017-03-13 20:17:34 +0800 | [diff] [blame] | 1467 | |
| 1468 | QDF_STATUS (*extract_p2p_noa_ev_param)(wmi_unified_t wmi_handle, |
| 1469 | void *evt_buf, struct p2p_noa_info *param); |
Liangwei Dong | 59b8ac9 | 2018-09-19 23:35:14 -0400 | [diff] [blame] | 1470 | |
| 1471 | QDF_STATUS (*set_mac_addr_rx_filter)(wmi_unified_t wmi_handle, |
| 1472 | struct p2p_set_mac_filter *param); |
| 1473 | QDF_STATUS |
| 1474 | (*extract_mac_addr_rx_filter_evt_param)(wmi_unified_t wmi_handle, |
| 1475 | void *evt_buf, |
| 1476 | struct p2p_set_mac_filter_evt *param); |
Wu Gao | 07ba6b4 | 2017-03-13 20:17:34 +0800 | [diff] [blame] | 1477 | #endif |
| 1478 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1479 | QDF_STATUS (*extract_peer_sta_ps_statechange_ev)(wmi_unified_t wmi_handle, |
| 1480 | void *evt_buf, wmi_host_peer_sta_ps_statechange_event *ev); |
| 1481 | |
| 1482 | QDF_STATUS (*extract_peer_sta_kickout_ev)(wmi_unified_t wmi_handle, |
| 1483 | void *evt_buf, wmi_host_peer_sta_kickout_event *ev); |
| 1484 | |
| 1485 | QDF_STATUS (*extract_peer_ratecode_list_ev)(wmi_unified_t wmi_handle, |
| 1486 | void *evt_buf, uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap); |
| 1487 | |
| 1488 | QDF_STATUS (*extract_comb_phyerr)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1489 | uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr); |
| 1490 | |
| 1491 | QDF_STATUS (*extract_single_phyerr)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1492 | uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr); |
| 1493 | |
| 1494 | QDF_STATUS (*extract_composite_phyerr)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1495 | uint16_t datalen, wmi_host_phyerr_t *phyerr); |
| 1496 | |
| 1497 | QDF_STATUS (*extract_rtt_hdr)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1498 | wmi_host_rtt_event_hdr *ev); |
| 1499 | |
| 1500 | QDF_STATUS (*extract_rtt_ev)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1501 | wmi_host_rtt_meas_event *ev, uint8_t *hdump, uint16_t hdump_len); |
| 1502 | |
| 1503 | QDF_STATUS (*extract_rtt_error_report_ev)(wmi_unified_t wmi_handle, |
| 1504 | void *evt_buf, wmi_host_rtt_error_report_event *ev); |
| 1505 | |
| 1506 | QDF_STATUS (*extract_all_stats_count)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1507 | wmi_host_stats_event *stats_param); |
| 1508 | |
| 1509 | QDF_STATUS (*extract_pdev_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1510 | uint32_t index, wmi_host_pdev_stats *pdev_stats); |
| 1511 | |
Adil Saeed Musthafa | 0b6c760 | 2017-08-23 17:32:11 -0700 | [diff] [blame] | 1512 | QDF_STATUS (*extract_unit_test)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1513 | wmi_unit_test_event *unit_test, uint32_t maxspace); |
| 1514 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1515 | QDF_STATUS (*extract_pdev_ext_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1516 | uint32_t index, wmi_host_pdev_ext_stats *pdev_ext_stats); |
| 1517 | |
| 1518 | QDF_STATUS (*extract_vdev_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1519 | uint32_t index, wmi_host_vdev_stats *vdev_stats); |
| 1520 | |
Naveen Rawat | 9734fa9 | 2018-04-12 08:17:55 -0700 | [diff] [blame] | 1521 | QDF_STATUS (*extract_per_chain_rssi_stats)(wmi_unified_t wmi_handle, |
| 1522 | void *evt_buf, uint32_t index, |
| 1523 | struct wmi_host_per_chain_rssi_stats *rssi_stats); |
| 1524 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1525 | QDF_STATUS (*extract_peer_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1526 | uint32_t index, wmi_host_peer_stats *peer_stats); |
| 1527 | |
| 1528 | QDF_STATUS (*extract_bcnflt_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1529 | uint32_t index, wmi_host_bcnflt_stats *bcnflt_stats); |
| 1530 | |
| 1531 | QDF_STATUS (*extract_peer_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1532 | uint32_t index, wmi_host_peer_extd_stats *peer_extd_stats); |
| 1533 | |
Uraj Sasan | 2d0a3e5 | 2018-09-20 09:39:49 +0530 | [diff] [blame] | 1534 | QDF_STATUS (*extract_peer_retry_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1535 | uint32_t index, |
| 1536 | struct wmi_host_peer_retry_stats *peer_retry_stats); |
| 1537 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1538 | QDF_STATUS (*extract_chan_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1539 | uint32_t index, wmi_host_chan_stats *chan_stats); |
| 1540 | |
| 1541 | 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] | 1542 | uint32_t *temp, uint32_t *level, uint32_t *pdev_id); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1543 | |
| 1544 | QDF_STATUS (*extract_thermal_level_stats)(wmi_unified_t wmi_handle, |
| 1545 | void *evt_buf, uint8_t idx, uint32_t *levelcount, |
| 1546 | uint32_t *dccount); |
| 1547 | |
| 1548 | QDF_STATUS (*extract_profile_ctx)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1549 | wmi_host_wlan_profile_ctx_t *profile_ctx); |
| 1550 | |
| 1551 | 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] | 1552 | uint8_t idx, |
| 1553 | wmi_host_wlan_profile_t *profile_data); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1554 | |
| 1555 | QDF_STATUS (*extract_chan_info_event)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1556 | wmi_host_chan_info_event *chan_info); |
| 1557 | |
| 1558 | QDF_STATUS (*extract_channel_hopping_event)(wmi_unified_t wmi_handle, |
| 1559 | void *evt_buf, |
| 1560 | wmi_host_pdev_channel_hopping_event *ch_hopping); |
| 1561 | |
| 1562 | QDF_STATUS (*extract_bss_chan_info_event)(wmi_unified_t wmi_handle, |
| 1563 | void *evt_buf, |
| 1564 | wmi_host_pdev_bss_chan_info_event *bss_chan_info); |
| 1565 | |
| 1566 | QDF_STATUS (*extract_inst_rssi_stats_event)(wmi_unified_t wmi_handle, |
| 1567 | void *evt_buf, wmi_host_inst_stats_resp *inst_rssi_resp); |
| 1568 | |
| 1569 | QDF_STATUS (*extract_tx_data_traffic_ctrl_ev)(wmi_unified_t wmi_handle, |
| 1570 | void *evt_buf, wmi_host_tx_data_traffic_ctrl_event *ev); |
| 1571 | |
| 1572 | QDF_STATUS (*extract_vdev_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1573 | uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats); |
Govind Singh | c10bde8 | 2016-05-02 17:59:24 +0530 | [diff] [blame] | 1574 | |
Chaithanya Garrepalli | 140a053 | 2018-01-18 14:19:41 +0530 | [diff] [blame] | 1575 | QDF_STATUS (*extract_vdev_nac_rssi_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1576 | struct wmi_host_vdev_nac_rssi_event *vdev_nac_rssi_stats); |
| 1577 | |
Gurumoorthi Gnanasambandhan | 1897755 | 2017-11-06 22:04:17 +0530 | [diff] [blame] | 1578 | QDF_STATUS (*extract_bcn_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1579 | uint32_t index, wmi_host_bcn_stats *bcn_stats); |
| 1580 | |
c_cgodav | a5eb9a2 | 2017-02-13 10:14:42 +0530 | [diff] [blame] | 1581 | #ifdef OL_ATH_SMART_LOGGING |
| 1582 | QDF_STATUS (*extract_smartlog_event)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1583 | struct wmi_debug_fatal_events *event); |
| 1584 | #endif /* OL_ATH_SMART_LOGGING */ |
Govind Singh | c10bde8 | 2016-05-02 17:59:24 +0530 | [diff] [blame] | 1585 | QDF_STATUS (*send_power_dbg_cmd)(wmi_unified_t wmi_handle, |
| 1586 | struct wmi_power_dbg_params *param); |
Gupta, Kapil | 7b76800 | 2016-04-25 19:14:19 +0530 | [diff] [blame] | 1587 | |
Sathish Kumar | 907a746 | 2017-02-27 10:35:40 +0530 | [diff] [blame] | 1588 | QDF_STATUS (*send_multiple_vdev_restart_req_cmd)(wmi_unified_t wmi_handle, |
| 1589 | struct multiple_vdev_restart_params *param); |
| 1590 | |
Anurag Chouhan | 4d41be7 | 2016-07-22 20:19:54 +0530 | [diff] [blame] | 1591 | QDF_STATUS (*send_fw_test_cmd)(wmi_unified_t wmi_handle, |
| 1592 | struct set_fwtest_params *wmi_fwtest); |
Padma, Santhosh Kumar | 7352405 | 2016-09-11 18:24:59 +0530 | [diff] [blame] | 1593 | |
Rajeev Kumar Sirasanagandla | 9d7a69f | 2017-09-18 16:47:52 +0530 | [diff] [blame] | 1594 | #ifdef WLAN_FEATURE_ACTION_OUI |
| 1595 | QDF_STATUS (*send_action_oui_cmd)(wmi_unified_t wmi_handle, |
| 1596 | struct action_oui_request *req); |
| 1597 | #endif /* WLAN_FEATURE_ACTION_OUI */ |
| 1598 | |
Leo Chang | 8184e9c | 2016-09-28 13:43:36 -0700 | [diff] [blame] | 1599 | QDF_STATUS (*send_peer_rx_reorder_queue_setup_cmd)(wmi_unified_t wmi_handle, |
| 1600 | struct rx_reorder_queue_setup_params *param); |
| 1601 | |
| 1602 | QDF_STATUS (*send_peer_rx_reorder_queue_remove_cmd)(wmi_unified_t wmi_handle, |
| 1603 | struct rx_reorder_queue_remove_params *param); |
Kiran Venkatappa | 9c71b36 | 2016-08-10 23:55:40 +0530 | [diff] [blame] | 1604 | |
| 1605 | QDF_STATUS (*extract_service_ready_ext)(wmi_unified_t wmi_handle, |
| 1606 | uint8_t *evt_buf, |
Rajeev Kumar | 0b6b285 | 2017-02-03 00:39:49 -0800 | [diff] [blame] | 1607 | struct wlan_psoc_host_service_ext_param *param); |
Kiran Venkatappa | 9c71b36 | 2016-08-10 23:55:40 +0530 | [diff] [blame] | 1608 | |
| 1609 | QDF_STATUS (*extract_hw_mode_cap_service_ready_ext)( |
| 1610 | wmi_unified_t wmi_handle, |
| 1611 | uint8_t *evt_buf, uint8_t hw_mode_idx, |
Rajeev Kumar | 0b6b285 | 2017-02-03 00:39:49 -0800 | [diff] [blame] | 1612 | struct wlan_psoc_host_hw_mode_caps *param); |
Kiran Venkatappa | 9c71b36 | 2016-08-10 23:55:40 +0530 | [diff] [blame] | 1613 | |
| 1614 | QDF_STATUS (*extract_mac_phy_cap_service_ready_ext)( |
| 1615 | wmi_unified_t wmi_handle, |
Kiran Venkatappa | 176fe6c | 2016-12-26 15:38:06 +0530 | [diff] [blame] | 1616 | uint8_t *evt_buf, |
| 1617 | uint8_t hw_mode_id, |
| 1618 | uint8_t phy_id, |
Rajeev Kumar | 0b6b285 | 2017-02-03 00:39:49 -0800 | [diff] [blame] | 1619 | struct wlan_psoc_host_mac_phy_caps *param); |
Kiran Venkatappa | 9c71b36 | 2016-08-10 23:55:40 +0530 | [diff] [blame] | 1620 | |
| 1621 | QDF_STATUS (*extract_reg_cap_service_ready_ext)( |
| 1622 | wmi_unified_t wmi_handle, |
| 1623 | uint8_t *evt_buf, uint8_t phy_idx, |
Rajeev Kumar | 0b6b285 | 2017-02-03 00:39:49 -0800 | [diff] [blame] | 1624 | struct wlan_psoc_host_hal_reg_capabilities_ext *param); |
Sathish Kumar | 617535c | 2017-01-24 17:51:26 +0530 | [diff] [blame] | 1625 | |
Sathish Kumar | 3d3cf4f | 2017-11-17 17:30:41 +0530 | [diff] [blame] | 1626 | QDF_STATUS (*extract_dbr_ring_cap_service_ready_ext)( |
| 1627 | wmi_unified_t wmi_handle, |
| 1628 | uint8_t *evt_buf, uint8_t idx, |
| 1629 | struct wlan_psoc_host_dbr_ring_caps *param); |
| 1630 | |
Kabilan Kannan | a348b62 | 2018-06-21 16:55:47 -0700 | [diff] [blame] | 1631 | QDF_STATUS (*extract_sar_cap_service_ready_ext)( |
| 1632 | wmi_unified_t wmi_handle, |
| 1633 | uint8_t *evt_buf, |
| 1634 | struct wlan_psoc_host_service_ext_param *ext_param); |
| 1635 | |
Sathish Kumar | 637da89 | 2018-10-02 11:03:59 +0530 | [diff] [blame] | 1636 | #ifdef WMI_DBR_SUPPORT |
| 1637 | QDF_STATUS (*send_dbr_cfg_cmd)(wmi_unified_t wmi_handle, |
| 1638 | struct direct_buf_rx_cfg_req *cfg); |
| 1639 | |
Sathish Kumar | 3d3cf4f | 2017-11-17 17:30:41 +0530 | [diff] [blame] | 1640 | QDF_STATUS (*extract_dbr_buf_release_fixed)( |
| 1641 | wmi_unified_t wmi_handle, |
| 1642 | uint8_t *evt_buf, |
| 1643 | struct direct_buf_rx_rsp *param); |
| 1644 | |
| 1645 | QDF_STATUS (*extract_dbr_buf_release_entry)( |
| 1646 | wmi_unified_t wmi_handle, |
| 1647 | uint8_t *evt_buf, uint8_t idx, |
| 1648 | struct direct_buf_rx_entry *param); |
| 1649 | |
Edayilliam Jayadev | 42ce0e4 | 2018-04-06 16:37:17 +0530 | [diff] [blame] | 1650 | QDF_STATUS (*extract_dbr_buf_metadata)( |
| 1651 | wmi_unified_t wmi_handle, |
| 1652 | uint8_t *evt_buf, uint8_t idx, |
| 1653 | struct direct_buf_rx_metadata *param); |
Sathish Kumar | 637da89 | 2018-10-02 11:03:59 +0530 | [diff] [blame] | 1654 | #endif |
Edayilliam Jayadev | 42ce0e4 | 2018-04-06 16:37:17 +0530 | [diff] [blame] | 1655 | |
Sathish Kumar | 617535c | 2017-01-24 17:51:26 +0530 | [diff] [blame] | 1656 | QDF_STATUS (*extract_pdev_utf_event)(wmi_unified_t wmi_hdl, |
| 1657 | uint8_t *evt_buf, |
| 1658 | struct wmi_host_pdev_utf_event *param); |
| 1659 | |
Kiran Venkatappa | 3d51498 | 2017-02-28 14:19:17 +0530 | [diff] [blame] | 1660 | QDF_STATUS (*extract_pdev_qvit_event)(wmi_unified_t wmi_hdl, |
| 1661 | uint8_t *evt_buf, |
| 1662 | struct wmi_host_pdev_qvit_event *param); |
| 1663 | |
Sarada Prasanna Garnayak | d49444c | 2017-01-05 19:30:07 +0530 | [diff] [blame] | 1664 | uint16_t (*wmi_set_htc_tx_tag)(wmi_unified_t wmi_handle, |
| 1665 | wmi_buf_t buf, uint32_t cmd_id); |
Vijay Pamidipati | add0ba7 | 2017-01-17 12:53:05 +0530 | [diff] [blame] | 1666 | |
| 1667 | QDF_STATUS (*extract_peer_delete_response_event)( |
| 1668 | wmi_unified_t wmi_handle, |
| 1669 | void *evt_buf, |
| 1670 | struct wmi_host_peer_delete_response_event *param); |
Kiran Venkatappa | 929dd29 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 1671 | |
| 1672 | bool (*is_management_record)(uint32_t cmd_id); |
Rajeev Kumar | 9024c71 | 2018-09-19 13:02:23 -0700 | [diff] [blame] | 1673 | bool (*is_diag_event)(uint32_t event_id); |
Kiran Venkatappa | 929dd29 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 1674 | uint8_t *(*wmi_id_to_name)(uint32_t cmd_id); |
Arif Hussain | 85604fb | 2017-01-07 18:21:55 -0800 | [diff] [blame] | 1675 | QDF_STATUS (*send_dfs_phyerr_offload_en_cmd)(wmi_unified_t wmi_handle, |
| 1676 | uint32_t pdev_id); |
| 1677 | QDF_STATUS (*send_dfs_phyerr_offload_dis_cmd)(wmi_unified_t wmi_handle, |
| 1678 | uint32_t pdev_id); |
Baila, Shashikala Prabhu | 6bad197 | 2017-03-17 10:21:14 +0530 | [diff] [blame] | 1679 | QDF_STATUS (*extract_reg_chan_list_update_event)(wmi_unified_t wmi_handle, |
| 1680 | uint8_t *evt_buf, |
| 1681 | struct cur_regulatory_info |
| 1682 | *reg_info, |
| 1683 | uint32_t len); |
Kiran Kumar Lokere | a7e488b | 2017-04-26 19:51:29 -0700 | [diff] [blame] | 1684 | |
| 1685 | QDF_STATUS (*extract_reg_11d_new_country_event)(wmi_unified_t wmi_handle, |
| 1686 | uint8_t *evt_buf, |
| 1687 | struct reg_11d_new_country *reg_11d_country, |
| 1688 | uint32_t len); |
| 1689 | |
Kiran Kumar Lokere | 82ec577 | 2017-06-30 19:13:02 -0700 | [diff] [blame] | 1690 | QDF_STATUS (*extract_reg_ch_avoid_event)(wmi_unified_t wmi_handle, |
| 1691 | uint8_t *evt_buf, |
| 1692 | struct ch_avoid_ind_type *ch_avoid_event, |
| 1693 | uint32_t len); |
| 1694 | |
Vikram Kandukuri | c83feb6 | 2017-03-07 18:40:13 +0530 | [diff] [blame] | 1695 | QDF_STATUS (*extract_chainmask_tables)(wmi_unified_t wmi_handle, |
| 1696 | uint8_t *evt_buf, |
| 1697 | struct wlan_psoc_host_chainmask_table *chainmask_table); |
Arif Hussain | e542fe1 | 2017-04-09 01:03:19 -0700 | [diff] [blame] | 1698 | |
Rajeev Kumar Sirasanagandla | cddf6fe | 2016-11-22 21:28:54 +0530 | [diff] [blame] | 1699 | QDF_STATUS (*send_get_rcpi_cmd)(wmi_unified_t wmi_handle, |
| 1700 | struct rcpi_req *get_rcpi_param); |
| 1701 | |
| 1702 | QDF_STATUS (*extract_rcpi_response_event)(wmi_unified_t wmi_handle, |
| 1703 | void *evt_buf, |
| 1704 | struct rcpi_res *res); |
| 1705 | |
Arif Hussain | e542fe1 | 2017-04-09 01:03:19 -0700 | [diff] [blame] | 1706 | QDF_STATUS (*extract_dfs_cac_complete_event)(wmi_unified_t wmi_handle, |
| 1707 | uint8_t *evt_buf, |
| 1708 | uint32_t *vdev_id, |
| 1709 | uint32_t len); |
| 1710 | QDF_STATUS (*extract_dfs_radar_detection_event)(wmi_unified_t wmi_handle, |
| 1711 | uint8_t *evt_buf, |
| 1712 | struct radar_found_info *radar_found, |
| 1713 | uint32_t len); |
bings | 9d09a01 | 2017-12-18 16:56:53 +0800 | [diff] [blame] | 1714 | QDF_STATUS (*extract_wlan_radar_event_info)(wmi_unified_t wmi_handle, |
| 1715 | uint8_t *evt_buf, |
| 1716 | struct radar_event_info *wlan_radar_event, |
| 1717 | uint32_t len); |
Wen Gong | e36b84a | 2018-04-11 17:59:03 +0800 | [diff] [blame] | 1718 | |
Kiran Kumar Lokere | e70e605 | 2017-04-24 00:56:03 -0700 | [diff] [blame] | 1719 | QDF_STATUS (*send_set_country_cmd)(wmi_unified_t wmi_handle, |
| 1720 | struct set_country *param); |
Kiran Venkatappa | 4934104 | 2017-05-10 16:24:51 +0530 | [diff] [blame] | 1721 | |
| 1722 | uint32_t (*convert_pdev_id_host_to_target)(uint32_t pdev_id); |
| 1723 | uint32_t (*convert_pdev_id_target_to_host)(uint32_t pdev_id); |
| 1724 | |
Rajeev Kumar Sirasanagandla | 96b0893 | 2018-11-28 15:25:42 +0530 | [diff] [blame] | 1725 | /* |
| 1726 | * For MCL, convert_pdev_id_host_to_target returns legacy pdev id value. |
| 1727 | * But in converged firmware, WMI_SET_CURRENT_COUNTRY_CMDID expects target |
| 1728 | * mapping of pdev_id to give only one WMI_REG_CHAN_LIST_CC_EVENTID. |
| 1729 | * wmi_pdev_id_conversion_enable cannot be used since it overwrites |
| 1730 | * convert_pdev_id_host_to_target which effects legacy cases. |
| 1731 | * Below two commands: convert_host_pdev_id_to_target and |
| 1732 | * convert_target_pdev_id_to_host should be used for any WMI |
| 1733 | * command/event where FW expects target/host mapping of pdev_id respectively. |
| 1734 | */ |
| 1735 | uint32_t (*convert_host_pdev_id_to_target)(uint32_t pdev_id); |
| 1736 | uint32_t (*convert_target_pdev_id_to_host)(uint32_t pdev_id); |
| 1737 | |
Abhijit Pradhan | 01e3d84 | 2017-06-29 12:32:20 +0530 | [diff] [blame] | 1738 | QDF_STATUS (*send_user_country_code_cmd)(wmi_unified_t wmi_handle, |
| 1739 | uint8_t pdev_id, struct cc_regdmn_s *rd); |
Naveen Rawat | 7f70d66 | 2017-10-26 18:50:19 -0700 | [diff] [blame] | 1740 | |
Rathees kumar Chinannan | aff64b0 | 2017-11-22 17:03:57 +0530 | [diff] [blame] | 1741 | QDF_STATUS (*send_wds_entry_list_cmd)(wmi_unified_t wmi_handle); |
| 1742 | QDF_STATUS (*extract_wds_entry)(wmi_unified_t wmi_handle, |
| 1743 | uint8_t *evt_buf, |
| 1744 | struct wdsentry *wds_entry, |
| 1745 | u_int32_t idx); |
Naveen Rawat | 79a787c | 2017-12-14 13:24:31 -0800 | [diff] [blame] | 1746 | |
| 1747 | #ifdef WLAN_FEATURE_NAN_CONVERGENCE |
| 1748 | QDF_STATUS (*send_ndp_initiator_req_cmd)(wmi_unified_t wmi_handle, |
| 1749 | struct nan_datapath_initiator_req *req); |
| 1750 | QDF_STATUS (*send_ndp_responder_req_cmd)(wmi_unified_t wmi_handle, |
| 1751 | struct nan_datapath_responder_req *req); |
| 1752 | QDF_STATUS (*send_ndp_end_req_cmd)(wmi_unified_t wmi_handle, |
| 1753 | struct nan_datapath_end_req *req); |
| 1754 | |
| 1755 | QDF_STATUS (*extract_ndp_initiator_rsp)(wmi_unified_t wmi_handle, |
Naveen Rawat | 1d095b0 | 2018-02-02 15:13:05 -0800 | [diff] [blame] | 1756 | uint8_t *data, struct nan_datapath_initiator_rsp *rsp); |
Naveen Rawat | 79a787c | 2017-12-14 13:24:31 -0800 | [diff] [blame] | 1757 | QDF_STATUS (*extract_ndp_ind)(wmi_unified_t wmi_handle, |
Naveen Rawat | 1d095b0 | 2018-02-02 15:13:05 -0800 | [diff] [blame] | 1758 | uint8_t *data, struct nan_datapath_indication_event *ind); |
Naveen Rawat | 79a787c | 2017-12-14 13:24:31 -0800 | [diff] [blame] | 1759 | QDF_STATUS (*extract_ndp_confirm)(wmi_unified_t wmi_handle, |
Naveen Rawat | 1d095b0 | 2018-02-02 15:13:05 -0800 | [diff] [blame] | 1760 | uint8_t *data, struct nan_datapath_confirm_event *ev); |
Naveen Rawat | 79a787c | 2017-12-14 13:24:31 -0800 | [diff] [blame] | 1761 | QDF_STATUS (*extract_ndp_responder_rsp)(wmi_unified_t wmi_handle, |
Naveen Rawat | 1d095b0 | 2018-02-02 15:13:05 -0800 | [diff] [blame] | 1762 | uint8_t *data, struct nan_datapath_responder_rsp *rsp); |
Naveen Rawat | 79a787c | 2017-12-14 13:24:31 -0800 | [diff] [blame] | 1763 | QDF_STATUS (*extract_ndp_end_rsp)(wmi_unified_t wmi_handle, |
Naveen Rawat | 1d095b0 | 2018-02-02 15:13:05 -0800 | [diff] [blame] | 1764 | uint8_t *data, struct nan_datapath_end_rsp_event *rsp); |
Naveen Rawat | 79a787c | 2017-12-14 13:24:31 -0800 | [diff] [blame] | 1765 | QDF_STATUS (*extract_ndp_end_ind)(wmi_unified_t wmi_handle, |
| 1766 | uint8_t *data, struct nan_datapath_end_indication_event **ind); |
Naveen Rawat | 76cbf2f | 2018-01-09 17:54:41 -0800 | [diff] [blame] | 1767 | QDF_STATUS (*extract_ndp_sch_update)(wmi_unified_t wmi_handle, |
| 1768 | uint8_t *data, struct nan_datapath_sch_update_event *ind); |
Naveen Rawat | 1d095b0 | 2018-02-02 15:13:05 -0800 | [diff] [blame] | 1769 | #endif /* WLAN_FEATURE_NAN_CONVERGENCE */ |
| 1770 | |
Arif Hussain | 2cfde1d | 2017-12-27 16:23:45 -0800 | [diff] [blame] | 1771 | QDF_STATUS (*send_obss_detection_cfg_cmd)(wmi_unified_t wmi_handle, |
| 1772 | struct wmi_obss_detection_cfg_param *obss_cfg_param); |
Arif Hussain | f9f26b5 | 2018-01-12 13:15:04 -0800 | [diff] [blame] | 1773 | QDF_STATUS (*extract_obss_detection_info)(uint8_t *evt_buf, |
| 1774 | struct wmi_obss_detect_info *info); |
Subrat Mishra | 7c9427e | 2017-09-27 14:41:20 +0530 | [diff] [blame] | 1775 | |
| 1776 | #ifdef WLAN_SUPPORT_FILS |
| 1777 | QDF_STATUS (*send_vdev_fils_enable_cmd)(wmi_unified_t wmi_handle, |
| 1778 | struct config_fils_params *param); |
| 1779 | QDF_STATUS (*extract_swfda_vdev_id)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1780 | uint32_t *vdev_id); |
| 1781 | QDF_STATUS (*send_fils_discovery_send_cmd)(wmi_unified_t wmi_handle, |
| 1782 | struct fd_params *param); |
| 1783 | #endif /* WLAN_SUPPORT_FILS */ |
Rajeev Kumar Sirasanagandla | dfa2486 | 2018-03-02 21:12:16 +0530 | [diff] [blame] | 1784 | |
| 1785 | QDF_STATUS |
| 1786 | (*send_roam_scan_stats_cmd)(wmi_unified_t wmi_handle, |
| 1787 | struct wmi_roam_scan_stats_req *params); |
| 1788 | |
| 1789 | QDF_STATUS |
| 1790 | (*extract_roam_scan_stats_res_evt)(wmi_unified_t wmi_handle, |
| 1791 | void *evt_buf, |
| 1792 | uint32_t *vdev_id, |
| 1793 | struct wmi_roam_scan_stats_res **res_param); |
Gyanranjan Hazarika | 97b1c5a | 2018-10-04 11:26:20 -0700 | [diff] [blame] | 1794 | QDF_STATUS |
| 1795 | (*extract_offload_bcn_tx_status_evt)(wmi_unified_t wmi_handle, |
| 1796 | void *evt_buf, uint32_t *vdev_id, |
| 1797 | uint32_t *tx_status); |
Rajeev Kumar Sirasanagandla | dfa2486 | 2018-03-02 21:12:16 +0530 | [diff] [blame] | 1798 | |
Pratik Gandhi | 073fa00 | 2018-01-30 19:05:41 +0530 | [diff] [blame] | 1799 | void (*wmi_pdev_id_conversion_enable)(wmi_unified_t wmi_handle); |
gaurank kathpalia | a2a2c71 | 2018-02-21 18:58:29 +0530 | [diff] [blame] | 1800 | void (*send_time_stamp_sync_cmd)(wmi_unified_t wmi_handle); |
Vivek | 7346528 | 2018-03-22 23:27:21 +0530 | [diff] [blame] | 1801 | void (*wmi_free_allocated_event)(uint32_t cmd_event_id, |
Pratik Gandhi | 073fa00 | 2018-01-30 19:05:41 +0530 | [diff] [blame] | 1802 | void **wmi_cmd_struct_ptr); |
| 1803 | int (*wmi_check_and_pad_event)(void *os_handle, void *param_struc_ptr, |
Vivek | 7346528 | 2018-03-22 23:27:21 +0530 | [diff] [blame] | 1804 | uint32_t param_buf_len, |
| 1805 | uint32_t wmi_cmd_event_id, |
Pratik Gandhi | 073fa00 | 2018-01-30 19:05:41 +0530 | [diff] [blame] | 1806 | void **wmi_cmd_struct_ptr); |
| 1807 | int (*wmi_check_command_params)(void *os_handle, void *param_struc_ptr, |
Vivek | 7346528 | 2018-03-22 23:27:21 +0530 | [diff] [blame] | 1808 | uint32_t param_buf_len, |
| 1809 | uint32_t wmi_cmd_event_id); |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 1810 | |
Kiran Venkatappa | 2d881fd | 2018-02-05 10:56:43 +0530 | [diff] [blame] | 1811 | #ifdef WLAN_SUPPORT_TWT |
| 1812 | QDF_STATUS (*send_twt_enable_cmd)(wmi_unified_t wmi_handle, |
| 1813 | struct wmi_twt_enable_param *params); |
| 1814 | |
| 1815 | QDF_STATUS (*send_twt_disable_cmd)(wmi_unified_t wmi_handle, |
| 1816 | struct wmi_twt_disable_param *params); |
| 1817 | |
| 1818 | QDF_STATUS (*send_twt_add_dialog_cmd)(wmi_unified_t wmi_handle, |
| 1819 | struct wmi_twt_add_dialog_param *params); |
| 1820 | |
| 1821 | QDF_STATUS (*send_twt_del_dialog_cmd)(wmi_unified_t wmi_handle, |
| 1822 | struct wmi_twt_del_dialog_param *params); |
| 1823 | |
| 1824 | QDF_STATUS (*send_twt_pause_dialog_cmd)(wmi_unified_t wmi_handle, |
| 1825 | struct wmi_twt_pause_dialog_cmd_param *params); |
| 1826 | |
| 1827 | QDF_STATUS (*send_twt_resume_dialog_cmd)(wmi_unified_t wmi_handle, |
| 1828 | struct wmi_twt_resume_dialog_cmd_param *params); |
| 1829 | |
| 1830 | QDF_STATUS (*extract_twt_enable_comp_event)(wmi_unified_t wmi_handle, |
| 1831 | uint8_t *evt_buf, |
| 1832 | struct wmi_twt_enable_complete_event_param *params); |
| 1833 | |
| 1834 | QDF_STATUS (*extract_twt_disable_comp_event)(wmi_unified_t wmi_handle, |
| 1835 | uint8_t *evt_buf, |
| 1836 | struct wmi_twt_disable_complete_event *params); |
| 1837 | |
| 1838 | QDF_STATUS (*extract_twt_add_dialog_comp_event)(wmi_unified_t wmi_handle, |
| 1839 | uint8_t *evt_buf, |
| 1840 | struct wmi_twt_add_dialog_complete_event_param *params); |
| 1841 | |
| 1842 | QDF_STATUS (*extract_twt_del_dialog_comp_event)(wmi_unified_t wmi_handle, |
| 1843 | uint8_t *evt_buf, |
| 1844 | struct wmi_twt_del_dialog_complete_event_param *params); |
| 1845 | |
| 1846 | QDF_STATUS (*extract_twt_pause_dialog_comp_event)(wmi_unified_t wmi_handle, |
| 1847 | uint8_t *evt_buf, |
| 1848 | struct wmi_twt_pause_dialog_complete_event_param *params); |
| 1849 | |
| 1850 | QDF_STATUS (*extract_twt_resume_dialog_comp_event)(wmi_unified_t wmi_handle, |
| 1851 | uint8_t *evt_buf, |
| 1852 | struct wmi_twt_resume_dialog_complete_event_param *params); |
| 1853 | #endif |
Naveen Rawat | 96afb7f | 2018-04-13 16:38:36 -0700 | [diff] [blame] | 1854 | |
| 1855 | #ifdef QCA_SUPPORT_CP_STATS |
| 1856 | QDF_STATUS (*extract_cca_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1857 | struct wmi_host_congestion_stats *stats); |
| 1858 | #endif /* QCA_SUPPORT_CP_STATS */ |
Shashikala Prabhu | 6c90a3e | 2018-05-16 10:08:09 +0530 | [diff] [blame] | 1859 | |
| 1860 | #if defined(WLAN_DFS_PARTIAL_OFFLOAD) && defined(HOST_DFS_SPOOF_TEST) |
| 1861 | QDF_STATUS (*send_dfs_average_radar_params_cmd)( |
| 1862 | wmi_unified_t wmi_handle, |
| 1863 | struct dfs_radar_found_params *params); |
| 1864 | |
| 1865 | QDF_STATUS (*extract_dfs_status_from_fw)(wmi_unified_t wmi_handle, |
| 1866 | void *evt_buf, |
| 1867 | uint32_t *dfs_status_check); |
| 1868 | #endif |
Pratik Gandhi | 13b34f8 | 2018-09-17 16:47:12 +0530 | [diff] [blame] | 1869 | |
| 1870 | #ifdef OBSS_PD |
| 1871 | QDF_STATUS (*send_obss_spatial_reuse_set)(wmi_unified_t wmi_handle, |
| 1872 | struct wmi_host_obss_spatial_reuse_set_param |
| 1873 | *obss_spatial_reuse_param); |
Arif Hussain | 1b0db05 | 2018-10-17 18:48:29 -0700 | [diff] [blame] | 1874 | |
| 1875 | QDF_STATUS (*send_obss_spatial_reuse_set_def_thresh)(wmi_unified_t wmi_handle, |
| 1876 | struct wmi_host_obss_spatial_reuse_set_def_thresh |
| 1877 | *obss_spatial_reuse_param); |
Pratik Gandhi | 13b34f8 | 2018-09-17 16:47:12 +0530 | [diff] [blame] | 1878 | #endif |
Alok Singh | a31a11a | 2018-09-20 16:07:28 +0530 | [diff] [blame] | 1879 | |
| 1880 | QDF_STATUS |
| 1881 | (*extract_ctl_failsafe_check_ev_param)( |
| 1882 | wmi_unified_t wmi_handle, |
| 1883 | void *evt_buf, |
| 1884 | struct wmi_host_pdev_ctl_failsafe_event *param); |
Rathees kumar Chinannan | 4abc069 | 2018-11-22 18:39:06 +0530 | [diff] [blame] | 1885 | |
| 1886 | QDF_STATUS (*send_peer_del_all_wds_entries_cmd)(wmi_unified_t wmi_handle, |
| 1887 | struct peer_del_all_wds_entries_params *param); |
| 1888 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1889 | }; |
| 1890 | |
Mukul Sharma | 36d159b | 2017-01-30 19:55:40 +0530 | [diff] [blame] | 1891 | /* Forward declartion for psoc*/ |
| 1892 | struct wlan_objmgr_psoc; |
| 1893 | |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1894 | /** |
| 1895 | * struct wmi_init_cmd - Saved wmi INIT command |
| 1896 | * @buf: Buffer containing the wmi INIT command |
| 1897 | * @buf_len: Length of the buffer |
| 1898 | */ |
Govind Singh | ec0bdef | 2016-03-16 16:27:50 +0530 | [diff] [blame] | 1899 | struct wmi_cmd_init { |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1900 | wmi_buf_t buf; |
| 1901 | uint32_t buf_len; |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 1902 | }; |
| 1903 | |
Kiran Venkatappa | 153c835 | 2017-10-11 22:56:45 +0530 | [diff] [blame] | 1904 | /** |
| 1905 | * @abi_version_0: WMI Major and Minor versions |
| 1906 | * @abi_version_1: WMI change revision |
| 1907 | * @abi_version_ns_0: ABI version namespace first four dwords |
| 1908 | * @abi_version_ns_1: ABI version namespace second four dwords |
| 1909 | * @abi_version_ns_2: ABI version namespace third four dwords |
| 1910 | * @abi_version_ns_3: ABI version namespace fourth four dwords |
| 1911 | */ |
| 1912 | struct wmi_host_abi_version { |
| 1913 | uint32_t abi_version_0; |
| 1914 | uint32_t abi_version_1; |
| 1915 | uint32_t abi_version_ns_0; |
| 1916 | uint32_t abi_version_ns_1; |
| 1917 | uint32_t abi_version_ns_2; |
| 1918 | uint32_t abi_version_ns_3; |
| 1919 | }; |
| 1920 | |
c_priys | cc79b35 | 2018-06-12 16:53:51 +0530 | [diff] [blame] | 1921 | #define NUM_DEBUG_INFOS 9 |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1922 | struct wmi_unified { |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1923 | void *scn_handle; /* handle to device */ |
Govind Singh | 6ad6ada | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 1924 | osdev_t osdev; /* handle to use OS-independent services */ |
Rakshith Suresh Patkar | 35fe7b0 | 2018-09-12 16:51:30 +0530 | [diff] [blame] | 1925 | struct wbuff_mod_handle *wbuff_handle; /* handle to wbuff */ |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1926 | qdf_atomic_t pending_cmds; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1927 | HTC_ENDPOINT_ID wmi_endpoint_id; |
| 1928 | uint16_t max_msg_len; |
Kiran Venkatappa | 929dd29 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 1929 | uint32_t *event_id; |
| 1930 | wmi_unified_event_handler *event_handler; |
| 1931 | enum wmi_rx_exec_ctx *ctx; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1932 | void *htc_handle; |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1933 | qdf_spinlock_t eventq_lock; |
| 1934 | qdf_nbuf_queue_t event_queue; |
Rajeev Kumar | a0f4e93 | 2017-03-29 17:14:14 -0700 | [diff] [blame] | 1935 | qdf_work_t rx_event_work; |
| 1936 | qdf_workqueue_t *wmi_rx_work_queue; |
Govind Singh | 6ad6ada | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 1937 | int wmi_stop_in_progress; |
Kiran Venkatappa | 153c835 | 2017-10-11 22:56:45 +0530 | [diff] [blame] | 1938 | struct wmi_host_abi_version fw_abi_version; |
| 1939 | struct wmi_host_abi_version final_abi_vers; |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1940 | uint32_t num_of_diag_events_logs; |
| 1941 | uint32_t *events_logs_list; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1942 | #ifdef WLAN_OPEN_SOURCE |
| 1943 | struct fwdebug dbglog; |
| 1944 | struct dentry *debugfs_phy; |
| 1945 | #endif /* WLAN_OPEN_SOURCE */ |
| 1946 | |
| 1947 | #ifdef WMI_INTERFACE_EVENT_LOGGING |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 1948 | struct wmi_debug_log_info log_info; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1949 | #endif /*WMI_INTERFACE_EVENT_LOGGING */ |
| 1950 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1951 | qdf_atomic_t is_target_suspended; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1952 | |
| 1953 | #ifdef FEATURE_RUNTIME_PM |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1954 | qdf_atomic_t runtime_pm_inprogress; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1955 | #endif |
Sarada Prasanna Garnayak | d49444c | 2017-01-05 19:30:07 +0530 | [diff] [blame] | 1956 | qdf_atomic_t is_wow_bus_suspended; |
| 1957 | bool tag_crash_inject; |
Ravi Kumar Bokka | df1f3ea | 2016-11-09 18:07:56 +0530 | [diff] [blame] | 1958 | bool tgt_force_assert_enable; |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1959 | enum wmi_target_type target_type; |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 1960 | struct wmi_rx_ops rx_ops; |
| 1961 | struct wmi_ops *ops; |
Govind Singh | 6ad6ada | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 1962 | bool use_cookie; |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1963 | bool wmi_stopinprogress; |
Soumya Bhat | 49a8481 | 2017-03-22 14:41:01 +0530 | [diff] [blame] | 1964 | uint32_t *wmi_events; |
Kiran Venkatappa | 9da7e04 | 2016-08-09 22:52:35 +0530 | [diff] [blame] | 1965 | #ifndef CONFIG_MCL |
Kiran Venkatappa | 929dd29 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 1966 | uint32_t *pdev_param; |
| 1967 | uint32_t *vdev_param; |
Kiran Venkatappa | 929dd29 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 1968 | #endif |
Sourav Mohapatra | 0e1c2a8 | 2017-12-03 11:44:44 +0530 | [diff] [blame] | 1969 | uint32_t *services; |
Kiran Venkatappa | 929dd29 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 1970 | struct wmi_soc *soc; |
Chaithanya Garrepalli | 0974401 | 2017-12-01 14:55:26 +0530 | [diff] [blame] | 1971 | uint16_t wmi_max_cmds; |
c_priys | cc79b35 | 2018-06-12 16:53:51 +0530 | [diff] [blame] | 1972 | struct dentry *debugfs_de[NUM_DEBUG_INFOS]; |
Venkat Karthik Kantamneni | 6c00386 | 2018-05-21 19:13:02 +0530 | [diff] [blame] | 1973 | #ifdef WMI_EXT_DBG |
| 1974 | int wmi_ext_dbg_msg_queue_size; |
| 1975 | qdf_list_t wmi_ext_dbg_msg_queue; |
| 1976 | qdf_spinlock_t wmi_ext_dbg_msg_queue_lock; |
| 1977 | qdf_dentry_t wmi_ext_dbg_dentry; |
| 1978 | #endif /*WMI_EXT_DBG*/ |
Kiran Venkatappa | 929dd29 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 1979 | }; |
| 1980 | |
| 1981 | #define WMI_MAX_RADIOS 3 |
| 1982 | struct wmi_soc { |
| 1983 | struct wlan_objmgr_psoc *wmi_psoc; |
| 1984 | void *scn_handle; /* handle to device */ |
| 1985 | qdf_atomic_t num_pdevs; |
| 1986 | enum wmi_target_type target_type; |
phadiman | 00c636f | 2018-11-13 12:04:07 +0530 | [diff] [blame] | 1987 | bool is_async_ep; |
Kiran Venkatappa | 929dd29 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 1988 | void *htc_handle; |
| 1989 | uint32_t event_id[WMI_UNIFIED_MAX_EVENT]; |
| 1990 | wmi_unified_event_handler event_handler[WMI_UNIFIED_MAX_EVENT]; |
Kiran Venkatappa | 129bd1a | 2017-03-20 20:38:44 +0530 | [diff] [blame] | 1991 | uint32_t max_event_idx; |
Kiran Venkatappa | 929dd29 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 1992 | enum wmi_rx_exec_ctx ctx[WMI_UNIFIED_MAX_EVENT]; |
Kiran Venkatappa | 129bd1a | 2017-03-20 20:38:44 +0530 | [diff] [blame] | 1993 | qdf_spinlock_t ctx_lock; |
Kiran Venkatappa | 929dd29 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 1994 | struct wmi_unified *wmi_pdev[WMI_MAX_RADIOS]; |
| 1995 | HTC_ENDPOINT_ID wmi_endpoint_id[WMI_MAX_RADIOS]; |
| 1996 | uint16_t max_msg_len[WMI_MAX_RADIOS]; |
| 1997 | struct wmi_ops *ops; |
Pratik Gandhi | 2675a27 | 2018-02-05 17:22:41 +0530 | [diff] [blame] | 1998 | const uint32_t *svc_ids; |
Soumya Bhat | 49a8481 | 2017-03-22 14:41:01 +0530 | [diff] [blame] | 1999 | uint32_t wmi_events[wmi_events_max]; |
Jeff Johnson | 951133e | 2018-05-06 16:25:49 -0700 | [diff] [blame] | 2000 | /* WMI service bitmap received from target */ |
Kiran Venkatappa | 34bea52 | 2017-09-01 17:02:34 +0530 | [diff] [blame] | 2001 | uint32_t *wmi_service_bitmap; |
| 2002 | uint32_t *wmi_ext_service_bitmap; |
| 2003 | #ifndef CONFIG_MCL |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2004 | uint32_t pdev_param[wmi_pdev_param_max]; |
| 2005 | uint32_t vdev_param[wmi_vdev_param_max]; |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2006 | #endif |
Sourav Mohapatra | 0e1c2a8 | 2017-12-03 11:44:44 +0530 | [diff] [blame] | 2007 | uint32_t services[wmi_services_max]; |
Chaithanya Garrepalli | 0974401 | 2017-12-01 14:55:26 +0530 | [diff] [blame] | 2008 | uint16_t wmi_max_cmds; |
c_priys | cc79b35 | 2018-06-12 16:53:51 +0530 | [diff] [blame] | 2009 | uint32_t soc_idx; |
Pratik Gandhi | 3b07202 | 2018-10-10 12:12:32 +0530 | [diff] [blame] | 2010 | #ifdef WMI_INTERFACE_EVENT_LOGGING |
| 2011 | uint32_t buf_offset_command; |
| 2012 | uint32_t buf_offset_event; |
| 2013 | #endif /*WMI_INTERFACE_EVENT_LOGGING */ |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 2014 | }; |
Kiran Venkatappa | 929dd29 | 2017-02-10 16:57:59 +0530 | [diff] [blame] | 2015 | |
Qiwei Cai | 3690d3b | 2018-09-13 16:17:46 +0800 | [diff] [blame] | 2016 | /** |
| 2017 | * wmi_mtrace() - Wrappper function for qdf_mtrace api |
| 2018 | * @message_id: 32-Bit Wmi message ID |
| 2019 | * @vdev_id: Vdev ID |
| 2020 | * @data: Actual message contents |
| 2021 | * |
| 2022 | * This function converts the 32-bit WMI message ID in 15-bit message ID |
| 2023 | * format for qdf_mtrace as in qdf_mtrace message there are only 15 |
| 2024 | * bits reserved for message ID. |
| 2025 | * out of these 15-bits, 8-bits (From MSB) specifies the WMI_GRP_ID |
| 2026 | * and remaining 7-bits specifies the actual WMI command. With this |
| 2027 | * notation there can be maximum 256 groups and each group can have |
| 2028 | * max 128 commands can be supported. |
| 2029 | * |
| 2030 | * Return: None |
| 2031 | */ |
| 2032 | void wmi_mtrace(uint32_t message_id, uint16_t vdev_id, uint32_t data); |
| 2033 | |
Pratik Gandhi | 073fa00 | 2018-01-30 19:05:41 +0530 | [diff] [blame] | 2034 | void wmi_unified_register_module(enum wmi_target_type target_type, |
| 2035 | void (*wmi_attach)(wmi_unified_t wmi_handle)); |
| 2036 | void wmi_tlv_init(void); |
| 2037 | void wmi_non_tlv_init(void); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2038 | #ifdef WMI_NON_TLV_SUPPORT |
Jeff Johnson | f445f5c | 2018-05-12 14:22:00 -0700 | [diff] [blame] | 2039 | /* ONLY_NON_TLV_TARGET:TLV attach dummy function definition for case when |
Govind Singh | fa201d9 | 2016-06-08 19:40:11 +0530 | [diff] [blame] | 2040 | * driver supports only NON-TLV target (WIN mainline) */ |
Aditya Sathish | 10fa477 | 2018-07-02 17:31:55 +0530 | [diff] [blame] | 2041 | #define wmi_tlv_attach(x) qdf_print("TLV Unavailable") |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2042 | #else |
| 2043 | void wmi_tlv_attach(wmi_unified_t wmi_handle); |
| 2044 | #endif |
| 2045 | void wmi_non_tlv_attach(wmi_unified_t wmi_handle); |
Govind Singh | 53c7ac8 | 2016-03-28 22:02:42 +0530 | [diff] [blame] | 2046 | |
Wen Gong | 5b1429d | 2018-05-18 16:03:41 +0800 | [diff] [blame] | 2047 | #ifdef FEATURE_WLAN_EXTSCAN |
| 2048 | void wmi_extscan_attach_tlv(struct wmi_unified *wmi_handle); |
| 2049 | #else |
| 2050 | static inline void wmi_extscan_attach_tlv(struct wmi_unified *wmi_handle) |
| 2051 | { |
| 2052 | } |
| 2053 | #endif |
| 2054 | |
Sathish Kumar | 637da89 | 2018-10-02 11:03:59 +0530 | [diff] [blame] | 2055 | #ifdef WMI_SMART_ANT_SUPPORT |
| 2056 | void wmi_smart_ant_attach_tlv(struct wmi_unified *wmi_handle); |
| 2057 | #else |
| 2058 | static inline void wmi_smart_ant_attach_tlv(struct wmi_unified *wmi_handle) |
| 2059 | { |
| 2060 | } |
| 2061 | #endif |
| 2062 | |
| 2063 | #ifdef WMI_DBR_SUPPORT |
| 2064 | void wmi_dbr_attach_tlv(struct wmi_unified *wmi_handle); |
| 2065 | #else |
| 2066 | static inline void wmi_dbr_attach_tlv(struct wmi_unified *wmi_handle) |
| 2067 | { |
| 2068 | } |
| 2069 | #endif |
| 2070 | |
| 2071 | #ifdef WMI_ATF_SUPPORT |
| 2072 | void wmi_atf_attach_tlv(struct wmi_unified *wmi_handle); |
| 2073 | #else |
| 2074 | static inline void wmi_atf_attach_tlv(struct wmi_unified *wmi_handle) |
| 2075 | { |
| 2076 | } |
| 2077 | #endif |
| 2078 | |
| 2079 | #ifdef WMI_AP_SUPPORT |
| 2080 | void wmi_ap_attach_tlv(struct wmi_unified *wmi_handle); |
| 2081 | #else |
| 2082 | static inline void wmi_ap_attach_tlv(struct wmi_unified *wmi_handle) |
| 2083 | { |
| 2084 | } |
| 2085 | #endif |
| 2086 | |
Qiwei Cai | 1f36626 | 2018-09-17 19:17:13 +0800 | [diff] [blame] | 2087 | #ifdef WLAN_FEATURE_DSRC |
| 2088 | void wmi_ocb_attach_tlv(wmi_unified_t wmi_handle); |
| 2089 | #else |
| 2090 | static inline void wmi_ocb_attach_tlv(wmi_unified_t wmi_handle) |
| 2091 | { |
| 2092 | } |
| 2093 | #endif |
| 2094 | |
| 2095 | #ifdef WLAN_FEATURE_NAN_CONVERGENCE |
| 2096 | void wmi_nan_attach_tlv(wmi_unified_t wmi_handle); |
| 2097 | #else |
| 2098 | static inline void wmi_nan_attach_tlv(wmi_unified_t wmi_handle) |
| 2099 | { |
| 2100 | } |
| 2101 | #endif |
| 2102 | |
| 2103 | #ifdef FEATURE_P2P_LISTEN_OFFLOAD |
| 2104 | void wmi_p2p_listen_offload_attach_tlv(wmi_unified_t wmi_handle); |
| 2105 | #else |
| 2106 | static inline |
| 2107 | void wmi_p2p_listen_offload_attach_tlv(wmi_unified_t wmi_handle) |
| 2108 | { |
| 2109 | } |
| 2110 | #endif |
| 2111 | |
| 2112 | #ifdef CONVERGED_P2P_ENABLE |
| 2113 | void wmi_p2p_attach_tlv(wmi_unified_t wmi_handle); |
| 2114 | #else |
| 2115 | static inline void wmi_p2p_attach_tlv(struct wmi_unified *wmi_handle) |
| 2116 | { |
| 2117 | } |
| 2118 | #endif |
| 2119 | |
| 2120 | #ifdef FEATURE_LFR_SUBNET_DETECTION |
| 2121 | void wmi_lfr_subnet_detection_attach_tlv(wmi_unified_t wmi_handle); |
| 2122 | #else |
| 2123 | static inline |
| 2124 | void wmi_lfr_subnet_detection_attach_tlv(struct wmi_unified *wmi_handle) |
| 2125 | { |
| 2126 | } |
| 2127 | #endif |
| 2128 | |
| 2129 | #ifdef FEATURE_RSSI_MONITOR |
| 2130 | void wmi_rssi_monitor_attach_tlv(wmi_unified_t wmi_handle); |
| 2131 | #else |
| 2132 | static inline |
| 2133 | void wmi_rssi_monitor_attach_tlv(struct wmi_unified *wmi_handle) |
| 2134 | { |
| 2135 | } |
| 2136 | #endif |
| 2137 | |
| 2138 | #ifdef FEATURE_WLAN_ESE |
| 2139 | void wmi_ese_attach_tlv(wmi_unified_t wmi_handle); |
| 2140 | #else |
| 2141 | static inline void wmi_ese_attach_tlv(struct wmi_unified *wmi_handle) |
| 2142 | { |
| 2143 | } |
| 2144 | #endif |
| 2145 | |
| 2146 | #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
| 2147 | void wmi_roam_offload_attach_tlv(wmi_unified_t wmi_handle); |
| 2148 | #else |
| 2149 | static inline |
| 2150 | void wmi_roam_offload_attach_tlv(struct wmi_unified *wmi_handle) |
| 2151 | { |
| 2152 | } |
| 2153 | #endif |
| 2154 | |
| 2155 | #ifdef WLAN_FEATURE_FILS_SK |
| 2156 | void wmi_fils_sk_attach_tlv(wmi_unified_t wmi_handle); |
| 2157 | #else |
| 2158 | static inline void wmi_fils_sk_attach_tlv(struct wmi_unified *wmi_handle) |
| 2159 | { |
| 2160 | } |
| 2161 | #endif |
| 2162 | |
| 2163 | #ifdef WMI_ROAM_SUPPORT |
| 2164 | void wmi_roam_attach_tlv(struct wmi_unified *wmi_handle); |
| 2165 | #else |
| 2166 | static inline void wmi_roam_attach_tlv(struct wmi_unified *wmi_handle) |
| 2167 | { |
| 2168 | } |
| 2169 | #endif |
| 2170 | |
| 2171 | #ifdef WMI_CONCURRENCY_SUPPORT |
| 2172 | void wmi_concurrency_attach_tlv(struct wmi_unified *wmi_handle); |
| 2173 | #else |
| 2174 | static inline void wmi_concurrency_attach_tlv(struct wmi_unified *wmi_handle) |
| 2175 | { |
| 2176 | } |
| 2177 | #endif |
| 2178 | |
| 2179 | #ifdef FEATURE_WLAN_D0WOW |
| 2180 | void wmi_d0wow_attach_tlv(struct wmi_unified *wmi_handle); |
| 2181 | #else |
| 2182 | static inline void wmi_d0wow_attach_tlv(struct wmi_unified *wmi_handle) |
| 2183 | { |
| 2184 | } |
| 2185 | #endif |
| 2186 | |
| 2187 | #ifdef FEATURE_WLAN_RA_FILTERING |
| 2188 | void wmi_ra_filtering_attach_tlv(struct wmi_unified *wmi_handle); |
| 2189 | #else |
| 2190 | static inline |
| 2191 | void wmi_ra_filtering_attach_tlv(struct wmi_unified *wmi_handle) |
| 2192 | { |
| 2193 | } |
| 2194 | #endif |
| 2195 | |
| 2196 | #ifdef FEATURE_WLAN_LPHB |
| 2197 | void wmi_lphb_attach_tlv(struct wmi_unified *wmi_handle); |
| 2198 | #else |
| 2199 | static inline void wmi_lphb_attach_tlv(struct wmi_unified *wmi_handle) |
| 2200 | { |
| 2201 | } |
| 2202 | #endif |
| 2203 | |
| 2204 | #ifdef WLAN_FEATURE_PACKET_FILTERING |
| 2205 | void wmi_packet_filtering_attach_tlv(struct wmi_unified *wmi_handle); |
| 2206 | #else |
| 2207 | static inline |
| 2208 | void wmi_packet_filtering_attach_tlv(struct wmi_unified *wmi_handle) |
| 2209 | { |
| 2210 | } |
| 2211 | #endif |
| 2212 | |
| 2213 | #ifdef WLAN_FEATURE_EXTWOW_SUPPORT |
| 2214 | void wmi_extwow_attach_tlv(struct wmi_unified *wmi_handle); |
| 2215 | #else |
| 2216 | static inline void wmi_extwow_attach_tlv(struct wmi_unified *wmi_handle) |
| 2217 | { |
| 2218 | } |
| 2219 | #endif |
| 2220 | |
| 2221 | #ifdef WLAN_POWER_MANAGEMENT_OFFLOAD |
| 2222 | void wmi_pmo_attach_tlv(struct wmi_unified *wmi_handle); |
| 2223 | #else |
| 2224 | static inline void wmi_pmo_attach_tlv(struct wmi_unified *wmi_handle) |
| 2225 | { |
| 2226 | } |
| 2227 | #endif |
| 2228 | |
| 2229 | #ifdef CONVERGED_TDLS_ENABLE |
| 2230 | void wmi_tdls_attach_tlv(struct wmi_unified *wmi_handle); |
| 2231 | #else |
| 2232 | static inline void wmi_tdls_attach_tlv(struct wmi_unified *wmi_handle) |
| 2233 | { |
| 2234 | } |
| 2235 | #endif |
| 2236 | |
| 2237 | #ifdef WLAN_FEATURE_DISA |
| 2238 | void wmi_disa_attach_tlv(struct wmi_unified *wmi_handle); |
| 2239 | #else |
| 2240 | static inline void wmi_disa_attach_tlv(struct wmi_unified *wmi_handle) |
| 2241 | { |
| 2242 | } |
| 2243 | #endif |
| 2244 | |
| 2245 | #ifdef WLAN_POLICY_MGR_ENABLE |
| 2246 | void wmi_policy_mgr_attach_tlv(struct wmi_unified *wmi_handle); |
| 2247 | #else |
| 2248 | static inline |
| 2249 | void wmi_policy_mgr_attach_tlv(struct wmi_unified *wmi_handle) |
| 2250 | { |
| 2251 | } |
| 2252 | #endif |
| 2253 | |
| 2254 | #ifdef WMI_STA_SUPPORT |
| 2255 | void wmi_sta_attach_tlv(struct wmi_unified *wmi_handle); |
| 2256 | #else |
| 2257 | static inline void wmi_sta_attach_tlv(struct wmi_unified *wmi_handle) |
| 2258 | { |
| 2259 | } |
| 2260 | #endif |
| 2261 | |
Govind Singh | 53c7ac8 | 2016-03-28 22:02:42 +0530 | [diff] [blame] | 2262 | /** |
| 2263 | * wmi_align() - provides word aligned parameter |
| 2264 | * @param: parameter to be aligned |
| 2265 | * |
| 2266 | * Return: word aligned parameter |
| 2267 | */ |
| 2268 | static inline uint32_t wmi_align(uint32_t param) |
| 2269 | { |
| 2270 | return roundup(param, sizeof(uint32_t)); |
| 2271 | } |
Sathish Kumar | 744fbf7 | 2017-05-17 18:05:15 +0530 | [diff] [blame] | 2272 | |
| 2273 | /** |
| 2274 | * wmi_vdev_map_to_vdev_id() - Provides vdev id corresponding to idx |
| 2275 | * from vdev map |
| 2276 | * @vdev_map: Bitmask containing information of active vdev ids |
| 2277 | * @idx: Index referring to the i'th bit set from LSB in vdev map |
| 2278 | * |
| 2279 | * This API returns the vdev id for the i'th bit set from LSB in vdev map. |
| 2280 | * Index runs through 1 from maximum number of vdevs set in the vdev map |
| 2281 | * |
| 2282 | * Return: vdev id of the vdev object |
| 2283 | */ |
| 2284 | static inline uint32_t wmi_vdev_map_to_vdev_id(uint32_t vdev_map, |
| 2285 | uint32_t idx) |
| 2286 | { |
| 2287 | uint32_t vdev_count = 0, vdev_set = 0, vdev_id = WLAN_INVALID_VDEV_ID; |
| 2288 | |
| 2289 | while (vdev_map) { |
| 2290 | vdev_set += (vdev_map & 0x1); |
| 2291 | if (vdev_set == (idx+1)) { |
| 2292 | vdev_id = vdev_count; |
| 2293 | break; |
| 2294 | } |
| 2295 | vdev_map >>= 1; |
| 2296 | vdev_count++; |
| 2297 | } |
| 2298 | |
| 2299 | return vdev_id; |
| 2300 | } |
| 2301 | |
| 2302 | /** |
| 2303 | * wmi_vdev_map_to_num_vdevs() - Provides number of vdevs active based on the |
| 2304 | * vdev map received from FW |
| 2305 | * @vdev_map: Bitmask containing information of active vdev ids |
| 2306 | * |
| 2307 | * Return: Number of vdevs set in the vdev bit mask |
| 2308 | */ |
| 2309 | static inline uint32_t wmi_vdev_map_to_num_vdevs(uint32_t vdev_map) |
| 2310 | { |
| 2311 | uint32_t num_vdevs = 0; |
| 2312 | |
| 2313 | while (vdev_map) { |
| 2314 | num_vdevs += (vdev_map & 0x1); |
| 2315 | vdev_map >>= 1; |
| 2316 | } |
| 2317 | |
| 2318 | return num_vdevs; |
| 2319 | } |
Venkat Karthik Kantamneni | 6c00386 | 2018-05-21 19:13:02 +0530 | [diff] [blame] | 2320 | |
| 2321 | #ifdef WMI_EXT_DBG |
| 2322 | |
| 2323 | /** |
| 2324 | * wmi_ext_dbg_msg_get() - Allocate memory for wmi debug msg |
| 2325 | * |
| 2326 | * @buflen: Length of WMI message buffer |
| 2327 | * |
| 2328 | * Return: Allocated msg buffer else NULL on failure. |
| 2329 | */ |
| 2330 | static inline struct wmi_ext_dbg_msg *wmi_ext_dbg_msg_get(uint32_t buflen) |
| 2331 | { |
| 2332 | return qdf_mem_malloc(sizeof(struct wmi_ext_dbg_msg) + buflen); |
| 2333 | } |
| 2334 | |
| 2335 | /** |
| 2336 | * wmi_ext_dbg_msg_put() - Free wmi debug msg buffer |
| 2337 | * |
| 2338 | * @msg: wmi message buffer to be freed |
| 2339 | * |
| 2340 | * Return: none |
| 2341 | */ |
| 2342 | static inline void wmi_ext_dbg_msg_put(struct wmi_ext_dbg_msg *msg) |
| 2343 | { |
| 2344 | qdf_mem_free(msg); |
| 2345 | } |
| 2346 | |
| 2347 | #else |
| 2348 | |
| 2349 | static inline QDF_STATUS wmi_ext_dbg_msg_cmd_record(struct wmi_unified |
| 2350 | *wmi_handle, |
| 2351 | uint8_t *buf, uint32_t len) |
| 2352 | { |
| 2353 | return QDF_STATUS_SUCCESS; |
| 2354 | } |
| 2355 | |
| 2356 | static inline QDF_STATUS wmi_ext_dbg_msg_event_record(struct wmi_unified |
| 2357 | *wmi_handle, |
| 2358 | uint8_t *buf, |
| 2359 | uint32_t len) |
| 2360 | { |
| 2361 | return QDF_STATUS_SUCCESS; |
| 2362 | } |
| 2363 | |
| 2364 | static inline QDF_STATUS wmi_ext_dbgfs_init(struct wmi_unified *wmi_handle) |
| 2365 | { |
| 2366 | return QDF_STATUS_SUCCESS; |
| 2367 | } |
| 2368 | |
| 2369 | static inline QDF_STATUS wmi_ext_dbgfs_deinit(struct wmi_unified *wmi_handle) |
| 2370 | { |
| 2371 | return QDF_STATUS_SUCCESS; |
| 2372 | } |
| 2373 | |
| 2374 | #endif /*WMI_EXT_DBG */ |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 2375 | #endif |