blob: 5fcaada5d290c07f217f8cd2c6ceaf4230132d74 [file] [log] [blame]
Govind Singhd475ea92016-03-06 19:55:02 +05301/*
Naveen Rawat79a787c2017-12-14 13:24:31 -08002 * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
Govind Singhd475ea92016-03-06 19:55:02 +05303 *
Govind Singhd475ea92016-03-06 19:55:02 +05304 * 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 Singh3ddda1f2016-03-09 11:34:12 +053020 * This file contains the API definitions for the Unified Wireless
21 * Module Interface (WMI).
Govind Singhd475ea92016-03-06 19:55:02 +053022 */
23#ifndef _WMI_UNIFIED_PRIV_H_
24#define _WMI_UNIFIED_PRIV_H_
25#include <osdep.h>
Govind Singhb83edbc2017-03-21 13:02:00 +053026#include "wmi_unified_api.h"
Govind Singh89727882016-04-15 13:58:27 +053027#include "wmi_unified_param.h"
Om Prakash Tripathi91452bf2017-02-25 15:53:30 +053028#include "wlan_scan_ucfg_api.h"
Govind Singhb83edbc2017-03-21 13:02:00 +053029#ifdef CONFIG_MCL
30#include <wmi_unified.h>
31#endif
Govind Singhd7468a52016-03-09 14:32:57 +053032#include "qdf_atomic.h"
Rakshith Suresh Patkar35fe7b02018-09-12 16:51:30 +053033#include <wbuff.h>
Govind Singhd475ea92016-03-06 19:55:02 +053034
Wu Gao07ba6b42017-03-13 20:17:34 +080035#ifdef CONVERGED_P2P_ENABLE
36#include <wlan_p2p_public_struct.h>
37#endif
38
Arif Hussaine542fe12017-04-09 01:03:19 -070039#ifdef DFS_COMPONENT_ENABLE
40#include <wlan_dfs_public_struct.h>
41#endif
Govind Singhe25a2742017-11-21 10:53:40 +053042#include <qdf_threads.h>
Himanshu Agarwal0d578ff2018-01-10 14:21:53 +053043#ifdef WLAN_SUPPORT_GREEN_AP
44#include "wlan_green_ap_api.h"
45#endif
Arif Hussaine542fe12017-04-09 01:03:19 -070046
Naveen Rawat79a787c2017-12-14 13:24:31 -080047#ifdef WLAN_FEATURE_NAN_CONVERGENCE
48#include "nan_public_structs.h"
49#endif
50
Kiran Venkatappa2d881fd2018-02-05 10:56:43 +053051#ifdef WLAN_SUPPORT_TWT
52#include "wmi_unified_twt_param.h"
53#endif
54
Govind Singhd475ea92016-03-06 19:55:02 +053055#define WMI_UNIFIED_MAX_EVENT 0x100
Govind Singhd475ea92016-03-06 19:55:02 +053056
Venkat Karthik Kantamneni6c003862018-05-21 19:13:02 +053057#ifdef WMI_EXT_DBG
58
59#define WMI_EXT_DBG_DIR "WMI_EXT_DBG"
60#define WMI_EXT_DBG_FILE "wmi_log"
61#define WMI_EXT_DBG_FILE_PERM (QDF_FILE_USR_READ | \
62 QDF_FILE_GRP_READ | \
63 QDF_FILE_OTH_READ)
64#define WMI_EXT_DBG_QUEUE_SIZE 1024
65#define WMI_EXT_DBG_DUMP_ROW_SIZE 16
66#define WMI_EXT_DBG_DUMP_GROUP_SIZE 1
67
68/**
69 * enum WMI_MSG_TYPE - WMI message types
70 * @ WMI_MSG_TYPE_CMD - Message is of type WMI command
71 * @ WMI_MSG_TYPE_EVENT - Message is of type WMI event
72 */
73enum WMI_MSG_TYPE {
74 WMI_MSG_TYPE_CMD = 0,
75 WMI_MSG_TYPE_EVENT,
76};
77
78/**
79 * struct wmi_ext_dbg_msg - WMI command/event msg details
80 * @ node - qdf list node of wmi messages
81 * @ len - command/event message length
82 * @ ts - Time of WMI command/event handling
83 * @ WMI_MSG_TYPE - message type
84 * @ bug - command/event buffer
85 */
86struct wmi_ext_dbg_msg {
87 qdf_list_node_t node;
88 uint32_t len;
89 uint64_t ts;
90 enum WMI_MSG_TYPE type;
91 uint8_t buf[0];
92};
93#endif /*WMI_EXT_DBG */
94
Govind Singhd475ea92016-03-06 19:55:02 +053095#ifdef WMI_INTERFACE_EVENT_LOGGING
96
Nirav Shahe83f2142018-06-01 16:32:28 +053097#ifndef WMI_EVENT_DEBUG_MAX_ENTRY
Govind Singhd475ea92016-03-06 19:55:02 +053098#define WMI_EVENT_DEBUG_MAX_ENTRY (1024)
Nirav Shahe83f2142018-06-01 16:32:28 +053099#endif
100
Govind Singh5fed03b2016-05-12 12:45:51 +0530101#define WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH (16)
Nirav Shahe83f2142018-06-01 16:32:28 +0530102
Govind Singh5fed03b2016-05-12 12:45:51 +0530103/* wmi_mgmt commands */
Nirav Shahe83f2142018-06-01 16:32:28 +0530104#ifndef WMI_MGMT_EVENT_DEBUG_MAX_ENTRY
Govind Singh5fed03b2016-05-12 12:45:51 +0530105#define WMI_MGMT_EVENT_DEBUG_MAX_ENTRY (256)
Nirav Shahe83f2142018-06-01 16:32:28 +0530106#endif
Rajeev Kumar9024c712018-09-19 13:02:23 -0700107/* wmi diag rx events max buffer */
108#ifndef WMI_DIAG_RX_EVENT_DEBUG_MAX_ENTRY
109#define WMI_DIAG_RX_EVENT_DEBUG_MAX_ENTRY (256)
110#endif
Govind Singhd475ea92016-03-06 19:55:02 +0530111
Arif Hussain7aee5442018-07-19 14:15:36 -0700112#define wmi_alert(params...) QDF_TRACE_FATAL(QDF_MODULE_ID_WMI, ## params)
113#define wmi_err(params...) QDF_TRACE_ERROR(QDF_MODULE_ID_WMI, ## params)
114#define wmi_warn(params...) QDF_TRACE_WARN(QDF_MODULE_ID_WMI, ## params)
115#define wmi_info(params...) QDF_TRACE_INFO(QDF_MODULE_ID_WMI, ## params)
116#define wmi_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_WMI, ## params)
117
118#define wmi_nofl_alert(params...) \
119 QDF_TRACE_FATAL_NO_FL(QDF_MODULE_ID_WMI, ## params)
120#define wmi_nofl_err(params...) \
121 QDF_TRACE_ERROR_NO_FL(QDF_MODULE_ID_WMI, ## params)
122#define wmi_nofl_warn(params...) \
123 QDF_TRACE_WARN_NO_FL(QDF_MODULE_ID_WMI, ## params)
124#define wmi_nofl_info(params...) \
125 QDF_TRACE_INFO_NO_FL(QDF_MODULE_ID_WMI, ## params)
126#define wmi_nofl_debug(params...) \
127 QDF_TRACE_DEBUG_NO_FL(QDF_MODULE_ID_WMI, ## params)
128
Govind Singh5fed03b2016-05-12 12:45:51 +0530129/**
130 * struct wmi_command_debug - WMI command log buffer data type
131 * @ command - Store WMI Command id
132 * @ data - Stores WMI command data
133 * @ time - Time of WMI command handling
134 */
Govind Singhd475ea92016-03-06 19:55:02 +0530135struct wmi_command_debug {
136 uint32_t command;
Govind Singh5fed03b2016-05-12 12:45:51 +0530137 /*16 bytes of WMI cmd excluding TLV and WMI headers */
138 uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)];
Govind Singhd475ea92016-03-06 19:55:02 +0530139 uint64_t time;
140};
141
Govind Singh5fed03b2016-05-12 12:45:51 +0530142/**
143 * struct wmi_event_debug - WMI event log buffer data type
144 * @ command - Store WMI Event id
145 * @ data - Stores WMI Event data
146 * @ time - Time of WMI Event handling
147 */
Govind Singhd475ea92016-03-06 19:55:02 +0530148struct wmi_event_debug {
149 uint32_t event;
Govind Singh5fed03b2016-05-12 12:45:51 +0530150 /*16 bytes of WMI event data excluding TLV header */
151 uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)];
Govind Singhd475ea92016-03-06 19:55:02 +0530152 uint64_t time;
153};
154
Govind Singh5fed03b2016-05-12 12:45:51 +0530155/**
Sandeep Puligilla38a294f2016-06-13 15:42:55 -0700156 * struct wmi_command_header - Type for accessing frame data
157 * @ type - 802.11 Frame type
158 * @ subType - 802.11 Frame subtype
159 * @ protVer - 802.11 Version
160 */
161struct wmi_command_header {
162#ifndef ANI_LITTLE_BIT_ENDIAN
163
164 uint32_t sub_type:4;
165 uint32_t type:2;
166 uint32_t prot_ver:2;
167
168#else
169
170 uint32_t prot_ver:2;
171 uint32_t type:2;
172 uint32_t sub_type:4;
173
174#endif
175};
176
177/**
Govind Singh5fed03b2016-05-12 12:45:51 +0530178 * struct wmi_log_buf_t - WMI log buffer information type
179 * @buf - Refernce to WMI log buffer
180 * @ length - length of buffer
181 * @ buf_tail_idx - Tail index of buffer
182 * @ p_buf_tail_idx - refernce to buffer tail index. It is added to accommodate
183 * unified design since MCL uses global variable for buffer tail index
Dustin Browne58fbc72017-04-03 17:00:07 -0700184 * @ size - the size of the buffer in number of entries
Govind Singh5fed03b2016-05-12 12:45:51 +0530185 */
186struct wmi_log_buf_t {
187 void *buf;
188 uint32_t length;
189 uint32_t buf_tail_idx;
190 uint32_t *p_buf_tail_idx;
Dustin Browne58fbc72017-04-03 17:00:07 -0700191 uint32_t size;
Govind Singh5fed03b2016-05-12 12:45:51 +0530192};
193
194/**
195 * struct wmi_debug_log_info - Meta data to hold information of all buffers
196 * used for WMI logging
197 * @wmi_command_log_buf_info - Buffer info for WMI Command log
198 * @wmi_command_tx_cmp_log_buf_info - Buffer info for WMI Command Tx completion
199 * log
200 * @wmi_event_log_buf_info - Buffer info for WMI Event log
201 * @wmi_rx_event_log_buf_info - Buffer info for WMI event received log
202 * @wmi_mgmt_command_log_buf_info - Buffer info for WMI Management Command log
203 * @wmi_mgmt_command_tx_cmp_log_buf_info - Buffer info for WMI Management
204 * Command Tx completion log
205 * @wmi_mgmt_event_log_buf_info - Buffer info for WMI Management event log
Rajeev Kumar9024c712018-09-19 13:02:23 -0700206 * @wmi_diag_event_log_buf_info - Buffer info for WMI diag event log
Govind Singh5fed03b2016-05-12 12:45:51 +0530207 * @wmi_record_lock - Lock WMI recording
208 * @wmi_logging_enable - Enable/Disable state for WMI logging
209 * @buf_offset_command - Offset from where WMI command data should be logged
210 * @buf_offset_event - Offset from where WMI event data should be logged
Govind Singh5fed03b2016-05-12 12:45:51 +0530211 * @wmi_id_to_name - Function refernce to API to convert Command id to
212 * string name
213 * @wmi_log_debugfs_dir - refernce to debugfs directory
214 */
215struct wmi_debug_log_info {
216 struct wmi_log_buf_t wmi_command_log_buf_info;
217 struct wmi_log_buf_t wmi_command_tx_cmp_log_buf_info;
218
219 struct wmi_log_buf_t wmi_event_log_buf_info;
220 struct wmi_log_buf_t wmi_rx_event_log_buf_info;
221
222 struct wmi_log_buf_t wmi_mgmt_command_log_buf_info;
223 struct wmi_log_buf_t wmi_mgmt_command_tx_cmp_log_buf_info;
224 struct wmi_log_buf_t wmi_mgmt_event_log_buf_info;
Rajeev Kumar9024c712018-09-19 13:02:23 -0700225 struct wmi_log_buf_t wmi_diag_event_log_buf_info;
Govind Singh5fed03b2016-05-12 12:45:51 +0530226
227 qdf_spinlock_t wmi_record_lock;
228 bool wmi_logging_enable;
229 uint32_t buf_offset_command;
230 uint32_t buf_offset_event;
Govind Singh5fed03b2016-05-12 12:45:51 +0530231 struct dentry *wmi_log_debugfs_dir;
Govind Singh5fed03b2016-05-12 12:45:51 +0530232};
233
Govind Singhd475ea92016-03-06 19:55:02 +0530234#endif /*WMI_INTERFACE_EVENT_LOGGING */
235
236#ifdef WLAN_OPEN_SOURCE
237struct fwdebug {
238 struct sk_buff_head fwlog_queue;
239 struct completion fwlog_completion;
240 A_BOOL fwlog_open;
241};
242#endif /* WLAN_OPEN_SOURCE */
243
Govind Singhe25a2742017-11-21 10:53:40 +0530244/**
245 * struct wmi_wq_dbg_info - WMI WQ debug info
246 * @ wd_msg_type_id - wmi event id
247 * @ wmi_wq - WMI workqueue struct
248 * @ task - WMI workqueue task struct
249 */
250struct wmi_wq_dbg_info {
Surabhi Vishnoi2f9ae342017-11-29 15:07:10 +0530251 uint32_t wd_msg_type_id;
Govind Singhe25a2742017-11-21 10:53:40 +0530252 qdf_workqueue_t *wmi_wq;
253 qdf_thread_t *task;
254};
255
Govind Singh3ddda1f2016-03-09 11:34:12 +0530256struct wmi_ops {
Govind Singhd7468a52016-03-09 14:32:57 +0530257QDF_STATUS (*send_vdev_create_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530258 uint8_t macaddr[IEEE80211_ADDR_LEN],
259 struct vdev_create_params *param);
260
Govind Singhd7468a52016-03-09 14:32:57 +0530261QDF_STATUS (*send_vdev_delete_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530262 uint8_t if_id);
263
Govind Singhd7468a52016-03-09 14:32:57 +0530264QDF_STATUS (*send_vdev_stop_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530265 uint8_t vdev_id);
266
Govind Singhd7468a52016-03-09 14:32:57 +0530267QDF_STATUS (*send_vdev_down_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530268 uint8_t vdev_id);
269
Himanshu Agarwal7e4f4bc2016-03-09 16:49:38 +0530270QDF_STATUS (*send_vdev_start_cmd)(wmi_unified_t wmi,
271 struct vdev_start_params *req);
272
Chaithanya Garrepalli140a0532018-01-18 14:19:41 +0530273QDF_STATUS (*send_vdev_set_nac_rssi_cmd)(wmi_unified_t wmi,
274 struct vdev_scan_nac_rssi_params *req);
275
Himanshu Agarwal7e4f4bc2016-03-09 16:49:38 +0530276QDF_STATUS (*send_hidden_ssid_vdev_restart_cmd)(wmi_unified_t wmi_handle,
277 struct hidden_ssid_vdev_restart_params *restart_params);
278
Govind Singhd7468a52016-03-09 14:32:57 +0530279QDF_STATUS (*send_peer_flush_tids_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530280 uint8_t peer_addr[IEEE80211_ADDR_LEN],
281 struct peer_flush_params *param);
282
Govind Singhd7468a52016-03-09 14:32:57 +0530283QDF_STATUS (*send_peer_delete_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530284 uint8_t peer_addr[IEEE80211_ADDR_LEN],
285 uint8_t vdev_id);
286
Govind Singhd7468a52016-03-09 14:32:57 +0530287QDF_STATUS (*send_peer_param_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530288 uint8_t peer_addr[IEEE80211_ADDR_LEN],
289 struct peer_set_params *param);
290
Govind Singhd7468a52016-03-09 14:32:57 +0530291QDF_STATUS (*send_vdev_up_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530292 uint8_t bssid[IEEE80211_ADDR_LEN],
293 struct vdev_up_params *params);
294
Govind Singhd7468a52016-03-09 14:32:57 +0530295QDF_STATUS (*send_peer_create_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530296 struct peer_create_params *param);
297
Himanshu Agarwal0d578ff2018-01-10 14:21:53 +0530298#ifdef WLAN_SUPPORT_GREEN_AP
Govind Singhd7468a52016-03-09 14:32:57 +0530299QDF_STATUS (*send_green_ap_ps_cmd)(wmi_unified_t wmi_handle,
Himanshu Agarwal0d578ff2018-01-10 14:21:53 +0530300 uint32_t value, uint8_t pdev_id);
Himanshu Agarwal3f5d65a2018-01-24 22:24:17 +0530301
302QDF_STATUS (*extract_green_ap_egap_status_info)(
303 uint8_t *evt_buf,
304 struct wlan_green_ap_egap_status_info *egap_status_info_params);
Himanshu Agarwal0d578ff2018-01-10 14:21:53 +0530305#endif
Govind Singh3ddda1f2016-03-09 11:34:12 +0530306
Govind Singhd7468a52016-03-09 14:32:57 +0530307QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530308(*send_pdev_utf_cmd)(wmi_unified_t wmi_handle,
309 struct pdev_utf_params *param,
310 uint8_t mac_id);
311
Govind Singhd7468a52016-03-09 14:32:57 +0530312QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530313(*send_pdev_param_cmd)(wmi_unified_t wmi_handle,
314 struct pdev_params *param,
315 uint8_t mac_id);
316
Govind Singhd7468a52016-03-09 14:32:57 +0530317QDF_STATUS (*send_suspend_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530318 struct suspend_params *param,
319 uint8_t mac_id);
320
Govind Singhd7468a52016-03-09 14:32:57 +0530321QDF_STATUS (*send_resume_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530322 uint8_t mac_id);
323
Will Huang5325c7c2017-11-17 13:19:16 +0800324#ifdef FEATURE_WLAN_D0WOW
325QDF_STATUS (*send_d0wow_enable_cmd)(wmi_unified_t wmi_handle,
326 uint8_t mac_id);
327QDF_STATUS (*send_d0wow_disable_cmd)(wmi_unified_t wmi_handle,
328 uint8_t mac_id);
329#endif
330
Govind Singhd7468a52016-03-09 14:32:57 +0530331QDF_STATUS (*send_wow_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530332 struct wow_cmd_params *param,
333 uint8_t mac_id);
334
Govind Singhd7468a52016-03-09 14:32:57 +0530335QDF_STATUS (*send_set_ap_ps_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530336 uint8_t *peer_addr,
337 struct ap_ps_params *param);
338
Govind Singhd7468a52016-03-09 14:32:57 +0530339QDF_STATUS (*send_set_sta_ps_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530340 struct sta_ps_params *param);
341
Govind Singhd7468a52016-03-09 14:32:57 +0530342QDF_STATUS (*send_crash_inject_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530343 struct crash_inject *param);
344
Govind Singhd7468a52016-03-09 14:32:57 +0530345QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530346(*send_dbglog_cmd)(wmi_unified_t wmi_handle,
347 struct dbglog_params *dbglog_param);
348
Govind Singhd7468a52016-03-09 14:32:57 +0530349QDF_STATUS (*send_vdev_set_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530350 struct vdev_set_params *param);
351
Govind Singhd7468a52016-03-09 14:32:57 +0530352QDF_STATUS (*send_stats_request_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530353 uint8_t macaddr[IEEE80211_ADDR_LEN],
354 struct stats_request_params *param);
355
Govind Singhfa201d92016-06-08 19:40:11 +0530356#ifdef CONFIG_WIN
Govind Singh89727882016-04-15 13:58:27 +0530357QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle,
Keyur Parekh483138e2017-05-07 08:54:47 -0700358 WMI_HOST_PKTLOG_EVENT PKTLOG_EVENT, uint8_t mac_id);
Govind Singh89727882016-04-15 13:58:27 +0530359#else
Govind Singhd7468a52016-03-09 14:32:57 +0530360QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530361 uint8_t macaddr[IEEE80211_ADDR_LEN],
362 struct packet_enable_params *param);
Govind Singh89727882016-04-15 13:58:27 +0530363#endif
364
Keyur Parekh483138e2017-05-07 08:54:47 -0700365QDF_STATUS (*send_packet_log_disable_cmd)(wmi_unified_t wmi_handle,
366 uint8_t mac_id);
Govind Singh3ddda1f2016-03-09 11:34:12 +0530367
Govind Singhd7468a52016-03-09 14:32:57 +0530368QDF_STATUS (*send_beacon_send_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530369 struct beacon_params *param);
370
Govind Singh89727882016-04-15 13:58:27 +0530371QDF_STATUS (*send_beacon_tmpl_send_cmd)(wmi_unified_t wmi_handle,
372 struct beacon_tmpl_params *param);
373
Govind Singhd7468a52016-03-09 14:32:57 +0530374QDF_STATUS (*send_peer_assoc_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530375 struct peer_assoc_params *param);
376
Govind Singhd7468a52016-03-09 14:32:57 +0530377QDF_STATUS (*send_scan_start_cmd)(wmi_unified_t wmi_handle,
Om Prakash Tripathi91452bf2017-02-25 15:53:30 +0530378 struct scan_req_params *param);
Govind Singh3ddda1f2016-03-09 11:34:12 +0530379
Govind Singhd7468a52016-03-09 14:32:57 +0530380QDF_STATUS (*send_scan_stop_cmd)(wmi_unified_t wmi_handle,
Om Prakash Tripathi91452bf2017-02-25 15:53:30 +0530381 struct scan_cancel_param *param);
Govind Singh3ddda1f2016-03-09 11:34:12 +0530382
Govind Singhd7468a52016-03-09 14:32:57 +0530383QDF_STATUS (*send_scan_chan_list_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530384 struct scan_chan_list_params *param);
Govind Singh50988cc2016-02-26 18:09:36 +0530385
Govind Singhd7468a52016-03-09 14:32:57 +0530386QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530387 struct wmi_mgmt_params *param);
388
Kiran Venkatappa25c47022017-03-19 22:58:09 +0530389QDF_STATUS (*send_offchan_data_tx_cmd)(wmi_unified_t wmi_handle,
390 struct wmi_offchan_data_tx_params *param);
391
Govind Singhd7468a52016-03-09 14:32:57 +0530392QDF_STATUS (*send_modem_power_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530393 uint32_t param_value);
394
Govind Singhd7468a52016-03-09 14:32:57 +0530395QDF_STATUS (*send_set_sta_ps_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530396 uint32_t vdev_id, uint8_t val);
397
Govind Singhd7468a52016-03-09 14:32:57 +0530398QDF_STATUS (*send_get_temperature_cmd)(wmi_unified_t wmi_handle);
Govind Singh50988cc2016-02-26 18:09:36 +0530399
Govind Singhd7468a52016-03-09 14:32:57 +0530400QDF_STATUS (*send_set_p2pgo_oppps_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530401 struct p2p_ps_params *oppps);
402
Govind Singhd7468a52016-03-09 14:32:57 +0530403QDF_STATUS (*send_set_p2pgo_noa_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530404 struct p2p_ps_params *noa);
405
Rachit Kankane54c543f2018-07-31 16:26:38 +0530406#ifdef FEATURE_P2P_LISTEN_OFFLOAD
Wu Gao07ba6b42017-03-13 20:17:34 +0800407QDF_STATUS (*send_p2p_lo_start_cmd)(wmi_unified_t wmi_handle,
408 struct p2p_lo_start *param);
409
410QDF_STATUS (*send_p2p_lo_stop_cmd)(wmi_unified_t wmi_handle,
411 uint8_t vdev_id);
412#endif
413
Govind Singhd7468a52016-03-09 14:32:57 +0530414QDF_STATUS (*send_set_smps_params_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530415 uint8_t vdev_id,
416 int value);
Govind Singh50988cc2016-02-26 18:09:36 +0530417
Govind Singhd7468a52016-03-09 14:32:57 +0530418QDF_STATUS (*send_set_mimops_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530419 uint8_t vdev_id, int value);
420
Govind Singhd7468a52016-03-09 14:32:57 +0530421QDF_STATUS (*send_set_sta_uapsd_auto_trig_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530422 struct sta_uapsd_trig_params *param);
Govind Singhe7b800c2016-03-01 15:30:53 +0530423
Zhang Qian74a66aa2018-01-05 16:50:53 +0800424#ifdef WLAN_FEATURE_DSRC
Govind Singhd7468a52016-03-09 14:32:57 +0530425QDF_STATUS (*send_ocb_set_utc_time_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530426 struct ocb_utc_param *utc);
427
Govind Singhd7468a52016-03-09 14:32:57 +0530428QDF_STATUS (*send_ocb_get_tsf_timer_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530429 uint8_t vdev_id);
430
Govind Singhd7468a52016-03-09 14:32:57 +0530431QDF_STATUS (*send_ocb_start_timing_advert_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530432 struct ocb_timing_advert_param *timing_advert);
433
Govind Singhd7468a52016-03-09 14:32:57 +0530434QDF_STATUS (*send_ocb_stop_timing_advert_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530435 struct ocb_timing_advert_param *timing_advert);
436
Govind Singhd7468a52016-03-09 14:32:57 +0530437QDF_STATUS (*send_dcc_get_stats_cmd)(wmi_unified_t wmi_handle,
Zhang Qian74a66aa2018-01-05 16:50:53 +0800438 struct ocb_dcc_get_stats_param *get_stats_param);
Govind Singhe7b800c2016-03-01 15:30:53 +0530439
Govind Singhd7468a52016-03-09 14:32:57 +0530440QDF_STATUS (*send_dcc_clear_stats_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530441 uint32_t vdev_id, uint32_t dcc_stats_bitmap);
442
Govind Singhd7468a52016-03-09 14:32:57 +0530443QDF_STATUS (*send_dcc_update_ndl_cmd)(wmi_unified_t wmi_handle,
Zhang Qian74a66aa2018-01-05 16:50:53 +0800444 struct ocb_dcc_update_ndl_param *update_ndl_param);
Govind Singhe7b800c2016-03-01 15:30:53 +0530445
Govind Singhd7468a52016-03-09 14:32:57 +0530446QDF_STATUS (*send_ocb_set_config_cmd)(wmi_unified_t wmi_handle,
Zhang Qian74a66aa2018-01-05 16:50:53 +0800447 struct ocb_config *config);
448QDF_STATUS (*extract_ocb_chan_config_resp)(wmi_unified_t wmi_hdl,
449 void *evt_buf,
450 uint32_t *status);
451QDF_STATUS (*extract_ocb_tsf_timer)(wmi_unified_t wmi_hdl,
452 void *evt_buf,
453 struct ocb_get_tsf_timer_response *resp);
454QDF_STATUS (*extract_dcc_update_ndl_resp)(wmi_unified_t wmi_hdl,
455 void *evt_buf, struct ocb_dcc_update_ndl_response *resp);
456QDF_STATUS (*extract_dcc_stats)(wmi_unified_t wmi_hdl,
457 void *evt_buf,
458 struct ocb_dcc_get_stats_response **response);
459#endif
Govind Singhd7468a52016-03-09 14:32:57 +0530460QDF_STATUS (*send_lro_config_cmd)(wmi_unified_t wmi_handle,
Govind Singh9bad0002016-03-01 15:54:59 +0530461 struct wmi_lro_config_cmd_t *wmi_lro_cmd);
462
Govind Singhd7468a52016-03-09 14:32:57 +0530463QDF_STATUS (*send_set_thermal_mgmt_cmd)(wmi_unified_t wmi_handle,
Govind Singh9bad0002016-03-01 15:54:59 +0530464 struct thermal_cmd_params *thermal_info);
465
Poddar, Siddarth794b9962016-04-28 15:49:11 +0530466QDF_STATUS (*send_peer_rate_report_cmd)(wmi_unified_t wmi_handle,
467 struct wmi_peer_rate_report_params *rate_report_params);
468
Govind Singhd7468a52016-03-09 14:32:57 +0530469QDF_STATUS (*send_set_mcc_channel_time_quota_cmd)
Govind Singh9bad0002016-03-01 15:54:59 +0530470 (wmi_unified_t wmi_handle,
471 uint32_t adapter_1_chan_freq,
472 uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq);
473
Govind Singhd7468a52016-03-09 14:32:57 +0530474QDF_STATUS (*send_set_mcc_channel_time_latency_cmd)
Govind Singh9bad0002016-03-01 15:54:59 +0530475 (wmi_unified_t wmi_handle,
476 uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency);
477
Govind Singhd7468a52016-03-09 14:32:57 +0530478QDF_STATUS (*send_set_enable_disable_mcc_adaptive_scheduler_cmd)(
Govind Singh608e8892016-04-16 19:24:23 -0700479 wmi_unified_t wmi_handle, uint32_t mcc_adaptive_scheduler,
480 uint32_t pdev_id);
Govind Singhae855362016-03-07 14:24:22 +0530481
Govind Singhd7468a52016-03-09 14:32:57 +0530482QDF_STATUS (*send_p2p_go_set_beacon_ie_cmd)(wmi_unified_t wmi_handle,
Vivek73465282018-03-22 23:27:21 +0530483 uint32_t vdev_id, uint8_t *p2p_ie);
Govind Singhae855362016-03-07 14:24:22 +0530484
Govind Singhd7468a52016-03-09 14:32:57 +0530485QDF_STATUS (*send_probe_rsp_tmpl_send_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530486 uint8_t vdev_id,
Krunal Soni36f17d42017-11-14 15:42:48 -0800487 struct wmi_probe_resp_params *probe_rsp_info);
Govind Singhae855362016-03-07 14:24:22 +0530488
Himanshu Agarwal9efd9bf2016-03-09 18:49:18 +0530489QDF_STATUS (*send_setup_install_key_cmd)(wmi_unified_t wmi_handle,
490 struct set_key_params *key_params);
491
Govind Singhd7468a52016-03-09 14:32:57 +0530492QDF_STATUS (*send_vdev_set_gtx_cfg_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530493 uint32_t if_id,
494 struct wmi_gtx_config *gtx_info);
495
Govind Singhd7468a52016-03-09 14:32:57 +0530496QDF_STATUS (*send_set_sta_keep_alive_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530497 struct sta_params *params);
498
Govind Singhd7468a52016-03-09 14:32:57 +0530499QDF_STATUS (*send_set_sta_sa_query_param_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530500 uint8_t vdev_id, uint32_t max_retries,
501 uint32_t retry_interval);
Govind Singhae855362016-03-07 14:24:22 +0530502
Govind Singhd7468a52016-03-09 14:32:57 +0530503QDF_STATUS (*send_set_gateway_params_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530504 struct gateway_update_req_param *req);
505
Govind Singhd7468a52016-03-09 14:32:57 +0530506QDF_STATUS (*send_set_rssi_monitoring_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530507 struct rssi_monitor_param *req);
508
Govind Singhd7468a52016-03-09 14:32:57 +0530509QDF_STATUS (*send_scan_probe_setoui_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530510 struct scan_mac_oui *psetoui);
511
Govind Singhd7468a52016-03-09 14:32:57 +0530512QDF_STATUS (*send_reset_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530513 struct wifi_passpoint_req_param *req);
Himanshu Agarwal5f2d0482016-03-09 15:25:44 +0530514
515QDF_STATUS (*send_roam_scan_offload_rssi_thresh_cmd)(wmi_unified_t wmi_handle,
516 struct roam_offload_scan_rssi_params *roam_req);
517
Varun Reddy Yeturu4cae4292017-07-20 09:45:01 -0700518QDF_STATUS (*send_roam_mawc_params_cmd)(wmi_unified_t wmi_handle,
519 struct wmi_mawc_roam_params *params);
520
Himanshu Agarwal5f2d0482016-03-09 15:25:44 +0530521QDF_STATUS (*send_roam_scan_filter_cmd)(wmi_unified_t wmi_handle,
522 struct roam_scan_filter_params *roam_req);
523
Vignesh Viswanathan90cd7742017-09-25 14:36:38 +0530524#if defined(WLAN_FEATURE_FILS_SK)
525QDF_STATUS (*send_roam_scan_hlp_cmd) (wmi_unified_t wmi_handle,
526 struct hlp_params *params);
527#endif
528
Govind Singhd7468a52016-03-09 14:32:57 +0530529QDF_STATUS (*send_set_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530530 struct wifi_passpoint_req_param *req);
531
Govind Singhd7468a52016-03-09 14:32:57 +0530532QDF_STATUS (*send_set_epno_network_list_cmd)(wmi_unified_t wmi_handle,
Jeff Johnson16603572018-07-12 21:59:18 -0700533 struct wifi_enhanced_pno_params *req);
Govind Singhae855362016-03-07 14:24:22 +0530534
Govind Singhd7468a52016-03-09 14:32:57 +0530535QDF_STATUS (*send_extscan_get_capabilities_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530536 struct extscan_capabilities_params *pgetcapab);
537
Govind Singhd7468a52016-03-09 14:32:57 +0530538QDF_STATUS (*send_extscan_get_cached_results_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530539 struct extscan_cached_result_params *pcached_results);
540
Govind Singhd7468a52016-03-09 14:32:57 +0530541QDF_STATUS (*send_extscan_stop_change_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530542 struct extscan_capabilities_reset_params *reset_req);
543
Govind Singhd7468a52016-03-09 14:32:57 +0530544QDF_STATUS (*send_extscan_start_change_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530545 struct extscan_set_sig_changereq_params *
546 psigchange);
547
Govind Singhd7468a52016-03-09 14:32:57 +0530548QDF_STATUS (*send_extscan_stop_hotlist_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530549 struct extscan_bssid_hotlist_reset_params *photlist_reset);
550
Jeff Johnson5d2803d2018-07-13 19:10:50 -0700551QDF_STATUS (*send_extscan_start_hotlist_monitor_cmd)(wmi_unified_t wmi_handle,
552 struct extscan_bssid_hotlist_set_params *params);
553
Govind Singhd7468a52016-03-09 14:32:57 +0530554QDF_STATUS (*send_stop_extscan_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530555 struct extscan_stop_req_params *pstopcmd);
556
Govind Singhd7468a52016-03-09 14:32:57 +0530557QDF_STATUS (*send_start_extscan_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530558 struct wifi_scan_cmd_req_params *pstart);
559
Govind Singhd7468a52016-03-09 14:32:57 +0530560QDF_STATUS (*send_plm_stop_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530561 const struct plm_req_params *plm);
562
Paul Zhang6a857a92017-12-08 16:08:00 +0800563QDF_STATUS (*send_wlm_latency_level_cmd)(wmi_unified_t wmi_handle,
564 struct wlm_latency_level_param *param);
Govind Singh89727882016-04-15 13:58:27 +0530565
Govind Singhd7468a52016-03-09 14:32:57 +0530566QDF_STATUS (*send_plm_start_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530567 const struct plm_req_params *plm,
568 uint32_t *gchannel_list);
569
Govind Singhd7468a52016-03-09 14:32:57 +0530570QDF_STATUS (*send_csa_offload_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530571 uint8_t vdev_id);
572
Govind Singhd7468a52016-03-09 14:32:57 +0530573QDF_STATUS (*send_pno_stop_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singhae855362016-03-07 14:24:22 +0530574
Govind Singhd7468a52016-03-09 14:32:57 +0530575QDF_STATUS (*send_pno_start_cmd)(wmi_unified_t wmi_handle,
Abhishek Singhd4184662017-03-03 22:09:07 +0530576 struct pno_scan_req_params *pno);
Govind Singhae855362016-03-07 14:24:22 +0530577
Varun Reddy Yeturu4fa519b2017-07-24 16:11:22 -0700578QDF_STATUS (*send_nlo_mawc_cmd)(wmi_unified_t wmi_handle,
579 struct nlo_mawc_params *params);
580
Sravan Kumar Kairamdcb5f802018-02-15 23:28:34 +0530581#ifdef IPA_OFFLOAD
Govind Singhd7468a52016-03-09 14:32:57 +0530582QDF_STATUS (*send_ipa_offload_control_cmd)(wmi_unified_t wmi_handle,
Sravan Kumar Kairamdcb5f802018-02-15 23:28:34 +0530583 struct ipa_uc_offload_control_params *ipa_offload);
584#endif
Govind Singhae855362016-03-07 14:24:22 +0530585
Rachit Kankaned42762f2018-07-31 12:00:48 +0530586#ifdef WLAN_FEATURE_ROAM_OFFLOAD
Govind Singhd7468a52016-03-09 14:32:57 +0530587QDF_STATUS (*send_set_ric_req_cmd)(wmi_unified_t wmi_handle, void *msg,
Govind Singhae855362016-03-07 14:24:22 +0530588 uint8_t is_add_ts);
589
Rachit Kankaned42762f2018-07-31 12:00:48 +0530590QDF_STATUS (*send_process_roam_synch_complete_cmd)(wmi_unified_t wmi_handle,
591 uint8_t vdev_id);
592#endif
593
Govind Singhd7468a52016-03-09 14:32:57 +0530594QDF_STATUS (*send_process_ll_stats_clear_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530595 (wmi_unified_t wmi_handle,
596 const struct ll_stats_clear_params *clear_req,
597 uint8_t addr[IEEE80211_ADDR_LEN]);
598
Govind Singhd7468a52016-03-09 14:32:57 +0530599QDF_STATUS (*send_process_ll_stats_set_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530600 (wmi_unified_t wmi_handle, const struct ll_stats_set_params *set_req);
601
Govind Singhd7468a52016-03-09 14:32:57 +0530602QDF_STATUS (*send_process_ll_stats_get_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530603 (wmi_unified_t wmi_handle, const struct ll_stats_get_params *get_req,
604 uint8_t addr[IEEE80211_ADDR_LEN]);
605
Govind Singh229bc0d2016-03-07 15:33:31 +0530606
Padma, Santhosh Kumard3261902017-03-21 19:09:35 +0530607QDF_STATUS (*send_congestion_cmd)(wmi_unified_t wmi_handle,
Vivek73465282018-03-22 23:27:21 +0530608 uint8_t vdev_id);
Padma, Santhosh Kumard3261902017-03-21 19:09:35 +0530609
Govind Singhd7468a52016-03-09 14:32:57 +0530610QDF_STATUS (*send_snr_request_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530611
Govind Singhd7468a52016-03-09 14:32:57 +0530612QDF_STATUS (*send_snr_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530613
Govind Singhd7468a52016-03-09 14:32:57 +0530614QDF_STATUS (*send_link_status_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530615 struct link_status_params *link_status);
Wu Gao2a3bc052018-05-17 16:14:00 +0800616#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD
Mukul Sharmaba196f52017-02-25 01:50:47 +0530617QDF_STATUS (*send_add_wow_wakeup_event_cmd)(wmi_unified_t wmi_handle,
618 uint32_t vdev_id,
Ravi Kumar Bokkae3e852e2017-03-23 17:20:31 +0530619 uint32_t *bitmap,
Mukul Sharmaba196f52017-02-25 01:50:47 +0530620 bool enable);
621
622QDF_STATUS (*send_wow_patterns_to_fw_cmd)(wmi_unified_t wmi_handle,
623 uint8_t vdev_id, uint8_t ptrn_id,
624 const uint8_t *ptrn, uint8_t ptrn_len,
625 uint8_t ptrn_offset, const uint8_t *mask,
626 uint8_t mask_len, bool user,
627 uint8_t default_patterns);
628
629QDF_STATUS (*send_enable_arp_ns_offload_cmd)(wmi_unified_t wmi_handle,
630 struct pmo_arp_offload_params *arp_offload_req,
631 struct pmo_ns_offload_params *ns_offload_req,
632 uint8_t vdev_id);
633
Dustin Brown27a3a922017-05-12 14:01:44 -0700634QDF_STATUS (*send_conf_hw_filter_cmd)(wmi_unified_t wmi,
635 struct pmo_hw_filter_params *req);
Ravi Kumar Bokka998a6ea2017-03-23 15:22:51 +0530636
Mukul Sharmaba196f52017-02-25 01:50:47 +0530637QDF_STATUS (*send_enable_enhance_multicast_offload_cmd)(
638 wmi_unified_t wmi_handle,
639 uint8_t vdev_id, bool action);
640
641QDF_STATUS (*send_add_clear_mcbc_filter_cmd)(wmi_unified_t wmi_handle,
642 uint8_t vdev_id,
643 struct qdf_mac_addr multicast_addr,
644 bool clearList);
645
Poddar, Siddarth4ef4d7b2017-09-28 17:14:01 +0530646QDF_STATUS (*send_multiple_add_clear_mcbc_filter_cmd)(wmi_unified_t wmi_handle,
647 uint8_t vdev_id,
648 struct pmo_mcast_filter_params *filter_param);
649
Mukul Sharmaba196f52017-02-25 01:50:47 +0530650QDF_STATUS (*send_gtk_offload_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
651 struct pmo_gtk_req *params,
652 bool enable_offload,
653 uint32_t gtk_offload_opcode);
654
655QDF_STATUS (*send_process_gtk_offload_getinfo_cmd)(wmi_unified_t wmi_handle,
656 uint8_t vdev_id,
657 uint64_t offload_req_opcode);
658
659QDF_STATUS (*send_wow_sta_ra_filter_cmd)(wmi_unified_t wmi_handle,
660 uint8_t vdev_id, uint8_t default_pattern,
661 uint16_t rate_limit_interval);
662
663QDF_STATUS (*send_action_frame_patterns_cmd)(wmi_unified_t wmi_handle,
664 struct pmo_action_wakeup_set_params *action_params);
665
666QDF_STATUS (*extract_gtk_rsp_event)(wmi_unified_t wmi_handle,
667 void *evt_buf,
668 struct pmo_gtk_rsp_params *gtk_rsp_param, uint32_t len);
669
Govind Singhd7468a52016-03-09 14:32:57 +0530670QDF_STATUS (*send_lphb_config_hbenable_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530671 wmi_hb_set_enable_cmd_fixed_param *params);
672
Govind Singhd7468a52016-03-09 14:32:57 +0530673QDF_STATUS (*send_lphb_config_tcp_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530674 wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req);
675
Govind Singhd7468a52016-03-09 14:32:57 +0530676QDF_STATUS (*send_lphb_config_tcp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530677 wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp);
678
Govind Singhd7468a52016-03-09 14:32:57 +0530679QDF_STATUS (*send_lphb_config_udp_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530680 wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req);
681
Govind Singhd7468a52016-03-09 14:32:57 +0530682QDF_STATUS (*send_lphb_config_udp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530683 wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req);
Ravi Kumar Bokka26800cc2017-04-20 17:14:33 +0530684
Rachit Kankanefcb0cdc2018-08-01 14:23:55 +0530685#ifdef WLAN_FEATURE_PACKET_FILTERING
Ravi Kumar Bokka26800cc2017-04-20 17:14:33 +0530686QDF_STATUS (*send_enable_disable_packet_filter_cmd)(wmi_unified_t wmi_handle,
687 uint8_t vdev_id, bool enable);
688
689QDF_STATUS (*send_config_packet_filter_cmd)(wmi_unified_t wmi_handle,
690 uint8_t vdev_id, struct pmo_rcv_pkt_fltr_cfg *rcv_filter_param,
691 uint8_t filter_id, bool enable);
Rachit Kankanefcb0cdc2018-08-01 14:23:55 +0530692#endif
Wu Gao2a3bc052018-05-17 16:14:00 +0800693#endif /* end of WLAN_POWER_MANAGEMENT_OFFLOAD */
Mukul Sharmaba196f52017-02-25 01:50:47 +0530694#ifdef CONFIG_MCL
Govind Singhd7468a52016-03-09 14:32:57 +0530695QDF_STATUS (*send_process_dhcp_ind_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530696 wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind);
697
Govind Singhd7468a52016-03-09 14:32:57 +0530698QDF_STATUS (*send_get_link_speed_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530699 wmi_mac_addr peer_macaddr);
700
Govind Singhfa201d92016-06-08 19:40:11 +0530701QDF_STATUS (*send_bcn_buf_ll_cmd)(wmi_unified_t wmi_handle,
702 wmi_bcn_send_from_host_cmd_fixed_param * param);
703
704QDF_STATUS (*send_roam_scan_offload_mode_cmd)(wmi_unified_t wmi_handle,
705 wmi_start_scan_cmd_fixed_param * scan_cmd_fp,
706 struct roam_offload_scan_params *roam_req);
707
708QDF_STATUS (*send_roam_scan_offload_ap_profile_cmd)(wmi_unified_t wmi_handle,
Himanshu Agarwalf9524e12017-09-28 11:51:35 +0530709 struct ap_profile_params *ap_profile);
Govind Singhfa201d92016-06-08 19:40:11 +0530710
711QDF_STATUS (*send_pktlog_wmi_send_cmd)(wmi_unified_t wmi_handle,
712 WMI_PKTLOG_EVENT pktlog_event,
Nirav Shah9d1f1ac2016-07-27 19:06:13 +0530713 WMI_CMD_ID cmd_id, uint8_t user_triggered);
Govind Singh89727882016-04-15 13:58:27 +0530714#endif
Govind Singh229bc0d2016-03-07 15:33:31 +0530715
Himanshu Agarwal0d578ff2018-01-10 14:21:53 +0530716#ifdef WLAN_SUPPORT_GREEN_AP
717QDF_STATUS (*send_egap_conf_params_cmd)(wmi_unified_t wmi_handle,
718 struct wlan_green_ap_egap_params *egap_params);
719#endif
720
Govind Singhd7468a52016-03-09 14:32:57 +0530721QDF_STATUS (*send_fw_profiling_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530722 uint32_t cmd, uint32_t value1, uint32_t value2);
723
Govind Singhd7468a52016-03-09 14:32:57 +0530724QDF_STATUS (*send_nat_keepalive_en_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530725
Naveen Rawat90bc8fd2017-05-13 15:56:57 -0700726#ifdef WLAN_FEATURE_CIF_CFR
727QDF_STATUS (*send_oem_dma_cfg_cmd)(wmi_unified_t wmi_handle,
728 wmi_oem_dma_ring_cfg_req_fixed_param *cfg);
729#endif
730
Sathish Kumar3d3cf4f2017-11-17 17:30:41 +0530731QDF_STATUS (*send_dbr_cfg_cmd)(wmi_unified_t wmi_handle,
732 struct direct_buf_rx_cfg_req *cfg);
733
Govind Singhd7468a52016-03-09 14:32:57 +0530734QDF_STATUS (*send_start_oem_data_cmd)(wmi_unified_t wmi_handle,
Krishna Kumaar Natarajan7a59ca02016-07-21 15:02:44 -0700735 uint32_t data_len,
Govind Singh229bc0d2016-03-07 15:33:31 +0530736 uint8_t *data);
737
Govind Singhd7468a52016-03-09 14:32:57 +0530738QDF_STATUS
Govind Singh229bc0d2016-03-07 15:33:31 +0530739(*send_dfs_phyerr_filter_offload_en_cmd)(wmi_unified_t wmi_handle,
740 bool dfs_phyerr_filter_offload);
Govind Singh229bc0d2016-03-07 15:33:31 +0530741
Govind Singhd7468a52016-03-09 14:32:57 +0530742QDF_STATUS (*send_wow_delete_pattern_cmd)(wmi_unified_t wmi_handle, uint8_t ptrn_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530743 uint8_t vdev_id);
744
Govind Singhd7468a52016-03-09 14:32:57 +0530745QDF_STATUS (*send_host_wakeup_ind_to_fw_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530746
Govind Singhd7468a52016-03-09 14:32:57 +0530747QDF_STATUS (*send_del_ts_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530748 uint8_t ac);
749
Govind Singhd7468a52016-03-09 14:32:57 +0530750QDF_STATUS (*send_aggr_qos_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530751 struct aggr_add_ts_param *aggr_qos_rsp_msg);
752
Govind Singhd7468a52016-03-09 14:32:57 +0530753QDF_STATUS (*send_add_ts_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530754 struct add_ts_param *msg);
755
Govind Singhd7468a52016-03-09 14:32:57 +0530756QDF_STATUS (*send_process_add_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530757 struct periodic_tx_pattern *
758 pAddPeriodicTxPtrnParams,
759 uint8_t vdev_id);
760
Govind Singhd7468a52016-03-09 14:32:57 +0530761QDF_STATUS (*send_process_del_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530762 uint8_t vdev_id,
763 uint8_t pattern_id);
764
Govind Singhd7468a52016-03-09 14:32:57 +0530765QDF_STATUS (*send_stats_ext_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530766 struct stats_ext_params *preq);
767
Govind Singhd7468a52016-03-09 14:32:57 +0530768QDF_STATUS (*send_enable_ext_wow_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530769 struct ext_wow_params *params);
770
Govind Singhd7468a52016-03-09 14:32:57 +0530771QDF_STATUS (*send_set_app_type2_params_in_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530772 struct app_type2_params *appType2Params);
773
Govind Singhd7468a52016-03-09 14:32:57 +0530774QDF_STATUS (*send_set_auto_shutdown_timer_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530775 uint32_t timer_val);
776
Govind Singhd7468a52016-03-09 14:32:57 +0530777QDF_STATUS (*send_nan_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530778 struct nan_req_params *nan_req);
779
Govind Singhd7468a52016-03-09 14:32:57 +0530780QDF_STATUS (*send_process_dhcpserver_offload_cmd)(wmi_unified_t wmi_handle,
Jeff Johnson645f7a12017-10-04 19:19:20 -0700781 struct dhcp_offload_info_params *params);
Govind Singh229bc0d2016-03-07 15:33:31 +0530782
Govind Singhd7468a52016-03-09 14:32:57 +0530783QDF_STATUS (*send_process_ch_avoid_update_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530784
Govind Singhd7468a52016-03-09 14:32:57 +0530785QDF_STATUS (*send_regdomain_info_to_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530786 uint32_t reg_dmn, uint16_t regdmn2G,
Rajeev Kumar Sirasanagandlaacf22bf2017-06-06 13:27:56 +0530787 uint16_t regdmn5G, uint8_t ctl2G,
788 uint8_t ctl5G);
Govind Singh229bc0d2016-03-07 15:33:31 +0530789
Govind Singhd7468a52016-03-09 14:32:57 +0530790QDF_STATUS (*send_set_tdls_offchan_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530791 struct tdls_channel_switch_params *chan_switch_params);
792
Govind Singhd7468a52016-03-09 14:32:57 +0530793QDF_STATUS (*send_update_fw_tdls_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530794 void *tdls_param, uint8_t tdls_state);
795
Govind Singhd7468a52016-03-09 14:32:57 +0530796QDF_STATUS (*send_update_tdls_peer_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530797 struct tdls_peer_state_params *peerStateParams,
798 uint32_t *ch_mhz);
799
800
Govind Singhd7468a52016-03-09 14:32:57 +0530801QDF_STATUS (*send_process_fw_mem_dump_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530802 struct fw_dump_req_param *mem_dump_req);
803
Govind Singhd7468a52016-03-09 14:32:57 +0530804QDF_STATUS (*send_process_set_ie_info_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530805 struct vdev_ie_info_param *ie_info);
Govind Singh71ee2d72016-03-07 16:30:32 +0530806
Govind Singhd7468a52016-03-09 14:32:57 +0530807QDF_STATUS (*save_fw_version_cmd)(wmi_unified_t wmi_handle, void *evt_buf);
Govind Singh71ee2d72016-03-07 16:30:32 +0530808
Govind Singhd7468a52016-03-09 14:32:57 +0530809QDF_STATUS (*check_and_update_fw_version_cmd)(wmi_unified_t wmi_hdl, void *ev);
Govind Singh71ee2d72016-03-07 16:30:32 +0530810
Govind Singhd7468a52016-03-09 14:32:57 +0530811QDF_STATUS (*send_set_base_macaddr_indicate_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530812 uint8_t *custom_addr);
813
Govind Singhd7468a52016-03-09 14:32:57 +0530814QDF_STATUS (*send_log_supported_evt_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530815 uint8_t *event,
816 uint32_t len);
817
Govind Singhd7468a52016-03-09 14:32:57 +0530818QDF_STATUS (*send_enable_specific_fw_logs_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530819 struct wmi_wifi_start_log *start_log);
820
Govind Singhd7468a52016-03-09 14:32:57 +0530821QDF_STATUS (*send_flush_logs_to_fw_cmd)(wmi_unified_t wmi_handle);
Govind Singh2ae94372016-03-07 16:45:38 +0530822
Manishekar Chandrasekaranb8c59382016-04-21 19:16:32 +0530823QDF_STATUS (*send_pdev_set_pcl_cmd)(wmi_unified_t wmi_handle,
824 struct wmi_pcl_chan_weights *msg);
Govind Singh2ae94372016-03-07 16:45:38 +0530825
Manishekar Chandrasekaran68430d32016-04-27 12:29:16 +0530826QDF_STATUS (*send_pdev_set_hw_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530827 uint32_t hw_mode_index);
828
Manishekar Chandrasekaran81d7aaa2016-04-27 12:52:51 +0530829QDF_STATUS (*send_pdev_set_dual_mac_config_cmd)(wmi_unified_t wmi_handle,
Srinivas Girigowdac461aef2018-02-15 14:30:05 -0800830 struct policy_mgr_dual_mac_config *msg);
Govind Singh2ae94372016-03-07 16:45:38 +0530831
Govind Singhd7468a52016-03-09 14:32:57 +0530832QDF_STATUS (*send_set_led_flashing_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530833 struct flashing_req_params *flashing);
834
Govind Singhd7468a52016-03-09 14:32:57 +0530835QDF_STATUS (*send_app_type1_params_in_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530836 struct app_type1_params *app_type1_params);
837
Govind Singhd7468a52016-03-09 14:32:57 +0530838QDF_STATUS (*send_set_ssid_hotlist_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530839 struct ssid_hotlist_request_params *request);
840
Govind Singhd7468a52016-03-09 14:32:57 +0530841QDF_STATUS (*send_unit_test_cmd)(wmi_unified_t wmi_handle,
Anurag Chouhan4d41be72016-07-22 20:19:54 +0530842 struct wmi_unit_test_cmd *wmi_utest);
Govind Singh2ae94372016-03-07 16:45:38 +0530843
Govind Singhd7468a52016-03-09 14:32:57 +0530844QDF_STATUS (*send_roam_invoke_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530845 struct wmi_roam_invoke_cmd *roaminvoke,
846 uint32_t ch_hz);
847
Govind Singhd7468a52016-03-09 14:32:57 +0530848QDF_STATUS (*send_roam_scan_offload_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530849 uint32_t command, uint32_t vdev_id);
Govind Singh2ae94372016-03-07 16:45:38 +0530850
Govind Singhd7468a52016-03-09 14:32:57 +0530851QDF_STATUS (*send_roam_scan_offload_scan_period_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530852 uint32_t scan_period,
853 uint32_t scan_age,
854 uint32_t vdev_id);
855
Govind Singhd7468a52016-03-09 14:32:57 +0530856QDF_STATUS (*send_roam_scan_offload_chan_list_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530857 uint8_t chan_count,
Varun Reddy Yeturub47fa402016-07-07 17:42:49 -0700858 uint32_t *chan_list,
Govind Singh2ae94372016-03-07 16:45:38 +0530859 uint8_t list_type, uint32_t vdev_id);
860
Govind Singhd7468a52016-03-09 14:32:57 +0530861QDF_STATUS (*send_roam_scan_offload_rssi_change_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530862 uint32_t vdev_id,
863 int32_t rssi_change_thresh,
864 uint32_t bcn_rssi_weight,
865 uint32_t hirssi_delay_btw_scans);
866
Kapil Guptaf6eb7312017-02-24 15:50:03 +0530867QDF_STATUS (*send_per_roam_config_cmd)(wmi_unified_t wmi_handle,
868 struct wmi_per_roam_config_req *req_buf);
869
Anurag Chouhanc1705422017-09-11 14:56:30 +0530870QDF_STATUS (*send_set_arp_stats_req_cmd)(wmi_unified_t wmi_handle,
871 struct set_arp_stats *req_buf);
872
873QDF_STATUS (*send_get_arp_stats_req_cmd)(wmi_unified_t wmi_handle,
874 struct get_arp_stats *req_buf);
875
Nachiket Kukade74cce662018-05-25 14:52:55 +0530876#ifdef FEATURE_WLAN_APF
Nachiket Kukadee8ce8622018-05-22 12:17:15 +0530877QDF_STATUS
878(*send_set_active_apf_mode_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
879 enum wmi_host_active_apf_mode ucast_mode,
880 enum wmi_host_active_apf_mode mcast_bcast_mode);
Dustin Brown4def3162017-01-13 15:24:07 -0800881
Nachiket Kukade74cce662018-05-25 14:52:55 +0530882QDF_STATUS (*send_apf_enable_cmd)(wmi_unified_t wmi_handle, uint32_t vdev_id,
883 bool enable);
884
885QDF_STATUS (*send_apf_write_work_memory_cmd)(wmi_unified_t wmi_handle,
886 struct wmi_apf_write_memory_params *apf_write_params);
887
888QDF_STATUS (*send_apf_read_work_memory_cmd)(wmi_unified_t wmi_handle,
889 struct wmi_apf_read_memory_params *apf_read_params);
890
891QDF_STATUS (*extract_apf_read_memory_resp_event)(wmi_unified_t wmi_handle,
892 void *evt_buf,
893 struct wmi_apf_read_memory_resp_event_params *resp);
894#endif /* FEATURE_WLAN_APF */
895
Govind Singh89727882016-04-15 13:58:27 +0530896QDF_STATUS (*send_pdev_get_tpc_config_cmd)(wmi_unified_t wmi_handle,
897 uint32_t param);
898
Sathish Kumar50232d72016-08-09 16:50:46 +0530899QDF_STATUS (*send_set_bwf_cmd)(wmi_unified_t wmi_handle,
900 struct set_bwf_params *param);
901
Govind Singh89727882016-04-15 13:58:27 +0530902QDF_STATUS (*send_pdev_fips_cmd)(wmi_unified_t wmi_handle,
903 struct fips_params *param);
904
905QDF_STATUS (*send_wlan_profile_enable_cmd)(wmi_unified_t wmi_handle,
906 struct wlan_profile_params *param);
907
908QDF_STATUS (*send_wlan_profile_trigger_cmd)(wmi_unified_t wmi_handle,
909 struct wlan_profile_params *param);
910
911QDF_STATUS (*send_pdev_set_chan_cmd)(wmi_unified_t wmi_handle,
912 struct channel_param *param);
913
914QDF_STATUS (*send_set_ht_ie_cmd)(wmi_unified_t wmi_handle,
915 struct ht_ie_params *param);
916
917QDF_STATUS (*send_set_vht_ie_cmd)(wmi_unified_t wmi_handle,
918 struct vht_ie_params *param);
919
920QDF_STATUS (*send_wmm_update_cmd)(wmi_unified_t wmi_handle,
921 struct wmm_update_params *param);
922
Vikram Kandukurid2e75802017-06-01 16:47:51 +0530923QDF_STATUS (*send_process_update_edca_param_cmd)(wmi_unified_t wmi_handle,
Kiran Kumar Lokereaf132c12018-04-06 16:56:47 -0700924 uint8_t vdev_id, bool mu_edca_param,
Vikram Kandukurid2e75802017-06-01 16:47:51 +0530925 struct wmi_host_wme_vparams wmm_vparams[WMI_MAX_NUM_AC]);
926
Govind Singh89727882016-04-15 13:58:27 +0530927QDF_STATUS (*send_set_ant_switch_tbl_cmd)(wmi_unified_t wmi_handle,
928 struct ant_switch_tbl_params *param);
929
930QDF_STATUS (*send_set_ratepwr_table_cmd)(wmi_unified_t wmi_handle,
931 struct ratepwr_table_params *param);
932
933QDF_STATUS (*send_get_ratepwr_table_cmd)(wmi_unified_t wmi_handle);
934
935QDF_STATUS (*send_set_ctl_table_cmd)(wmi_unified_t wmi_handle,
936 struct ctl_table_params *param);
937
938QDF_STATUS (*send_set_mimogain_table_cmd)(wmi_unified_t wmi_handle,
939 struct mimogain_table_params *param);
940
941QDF_STATUS (*send_set_ratepwr_chainmsk_cmd)(wmi_unified_t wmi_handle,
942 struct ratepwr_chainmsk_params *param);
943
944QDF_STATUS (*send_set_macaddr_cmd)(wmi_unified_t wmi_handle,
945 struct macaddr_params *param);
946
947QDF_STATUS (*send_pdev_scan_start_cmd)(wmi_unified_t wmi_handle);
948
949QDF_STATUS (*send_pdev_scan_end_cmd)(wmi_unified_t wmi_handle);
950
951QDF_STATUS (*send_set_acparams_cmd)(wmi_unified_t wmi_handle,
952 struct acparams_params *param);
953
954QDF_STATUS (*send_set_vap_dscp_tid_map_cmd)(wmi_unified_t wmi_handle,
955 struct vap_dscp_tid_map_params *param);
956
957QDF_STATUS (*send_proxy_ast_reserve_cmd)(wmi_unified_t wmi_handle,
958 struct proxy_ast_reserve_params *param);
959
960QDF_STATUS (*send_pdev_qvit_cmd)(wmi_unified_t wmi_handle,
961 struct pdev_qvit_params *param);
962
963QDF_STATUS (*send_mcast_group_update_cmd)(wmi_unified_t wmi_handle,
964 struct mcast_group_update_params *param);
965
966QDF_STATUS (*send_peer_add_wds_entry_cmd)(wmi_unified_t wmi_handle,
967 struct peer_add_wds_entry_params *param);
968
969QDF_STATUS (*send_peer_del_wds_entry_cmd)(wmi_unified_t wmi_handle,
970 struct peer_del_wds_entry_params *param);
971
Jeevan Kukkalli28e8a162017-06-16 18:07:28 +0530972QDF_STATUS (*send_set_bridge_mac_addr_cmd)(wmi_unified_t wmi_handle,
973 struct set_bridge_mac_addr_params *param);
974
Govind Singh89727882016-04-15 13:58:27 +0530975QDF_STATUS (*send_peer_update_wds_entry_cmd)(wmi_unified_t wmi_handle,
976 struct peer_update_wds_entry_params *param);
977
978QDF_STATUS (*send_phyerr_enable_cmd)(wmi_unified_t wmi_handle);
979
980QDF_STATUS (*send_phyerr_disable_cmd)(wmi_unified_t wmi_handle);
981
982QDF_STATUS (*send_smart_ant_enable_cmd)(wmi_unified_t wmi_handle,
983 struct smart_ant_enable_params *param);
984
985QDF_STATUS (*send_smart_ant_set_rx_ant_cmd)(wmi_unified_t wmi_handle,
986 struct smart_ant_rx_ant_params *param);
987
988QDF_STATUS (*send_smart_ant_set_tx_ant_cmd)(wmi_unified_t wmi_handle,
989 uint8_t macaddr[IEEE80211_ADDR_LEN],
990 struct smart_ant_tx_ant_params *param);
991
992QDF_STATUS (*send_smart_ant_set_training_info_cmd)(wmi_unified_t wmi_handle,
993 uint8_t macaddr[IEEE80211_ADDR_LEN],
994 struct smart_ant_training_info_params *param);
995
996QDF_STATUS (*send_smart_ant_set_node_config_cmd)(wmi_unified_t wmi_handle,
997 uint8_t macaddr[IEEE80211_ADDR_LEN],
998 struct smart_ant_node_config_params *param);
999
1000QDF_STATUS (*send_smart_ant_enable_tx_feedback_cmd)(wmi_unified_t wmi_handle,
1001 struct smart_ant_enable_tx_feedback_params *param);
1002
1003QDF_STATUS (*send_vdev_spectral_configure_cmd)(wmi_unified_t wmi_handle,
1004 struct vdev_spectral_configure_params *param);
1005
1006QDF_STATUS (*send_vdev_spectral_enable_cmd)(wmi_unified_t wmi_handle,
1007 struct vdev_spectral_enable_params *param);
Vignesh Viswanathan90cd7742017-09-25 14:36:38 +05301008QDF_STATUS (*send_set_del_pmkid_cache_cmd) (wmi_unified_t wmi_handle,
1009 struct wmi_unified_pmk_cache *req_buf);
Govind Singh89727882016-04-15 13:58:27 +05301010
1011QDF_STATUS (*send_bss_chan_info_request_cmd)(wmi_unified_t wmi_handle,
1012 struct bss_chan_info_request_params *param);
1013
1014QDF_STATUS (*send_thermal_mitigation_param_cmd)(wmi_unified_t wmi_handle,
1015 struct thermal_mitigation_params *param);
1016
1017QDF_STATUS (*send_vdev_set_neighbour_rx_cmd)(wmi_unified_t wmi_handle,
1018 uint8_t macaddr[IEEE80211_ADDR_LEN],
1019 struct set_neighbour_rx_params *param);
1020
1021QDF_STATUS (*send_vdev_set_fwtest_param_cmd)(wmi_unified_t wmi_handle,
1022 struct set_fwtest_params *param);
1023
1024QDF_STATUS (*send_vdev_config_ratemask_cmd)(wmi_unified_t wmi_handle,
1025 struct config_ratemask_params *param);
1026
Sathish Kumar6190e772017-11-08 14:49:58 +05301027QDF_STATUS (*send_vdev_set_custom_aggr_size_cmd)(wmi_unified_t wmi_handle,
1028 struct set_custom_aggr_size_params *param);
Govind Singh89727882016-04-15 13:58:27 +05301029
Venkateswara Swamy Bandaru81f40dc2017-12-22 17:16:19 +05301030QDF_STATUS (*send_vdev_set_qdepth_thresh_cmd)(wmi_unified_t wmi_handle,
1031 struct set_qdepth_thresh_params *param);
1032
Govind Singh89727882016-04-15 13:58:27 +05301033QDF_STATUS (*send_wow_wakeup_cmd)(wmi_unified_t wmi_handle);
1034
1035QDF_STATUS (*send_wow_add_wakeup_event_cmd)(wmi_unified_t wmi_handle,
1036 struct wow_add_wakeup_params *param);
1037
1038QDF_STATUS (*send_wow_add_wakeup_pattern_cmd)(wmi_unified_t wmi_handle,
1039 struct wow_add_wakeup_pattern_params *param);
1040
1041QDF_STATUS (*send_wow_remove_wakeup_pattern_cmd)(wmi_unified_t wmi_handle,
1042 struct wow_remove_wakeup_pattern_params *param);
1043
1044QDF_STATUS (*send_pdev_set_regdomain_cmd)(wmi_unified_t wmi_handle,
1045 struct pdev_set_regdomain_params *param);
1046
1047QDF_STATUS (*send_set_quiet_mode_cmd)(wmi_unified_t wmi_handle,
1048 struct set_quiet_mode_params *param);
1049
1050QDF_STATUS (*send_set_beacon_filter_cmd)(wmi_unified_t wmi_handle,
1051 struct set_beacon_filter_params *param);
1052
1053QDF_STATUS (*send_remove_beacon_filter_cmd)(wmi_unified_t wmi_handle,
1054 struct remove_beacon_filter_params *param);
1055/*
1056QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
1057 uint8_t macaddr[IEEE80211_ADDR_LEN],
1058 struct mgmt_params *param);
1059 */
1060
1061QDF_STATUS (*send_addba_clearresponse_cmd)(wmi_unified_t wmi_handle,
1062 uint8_t macaddr[IEEE80211_ADDR_LEN],
1063 struct addba_clearresponse_params *param);
1064
1065QDF_STATUS (*send_addba_send_cmd)(wmi_unified_t wmi_handle,
1066 uint8_t macaddr[IEEE80211_ADDR_LEN],
1067 struct addba_send_params *param);
1068
1069QDF_STATUS (*send_delba_send_cmd)(wmi_unified_t wmi_handle,
1070 uint8_t macaddr[IEEE80211_ADDR_LEN],
1071 struct delba_send_params *param);
1072
1073QDF_STATUS (*send_addba_setresponse_cmd)(wmi_unified_t wmi_handle,
1074 uint8_t macaddr[IEEE80211_ADDR_LEN],
1075 struct addba_setresponse_params *param);
1076
1077QDF_STATUS (*send_singleamsdu_cmd)(wmi_unified_t wmi_handle,
1078 uint8_t macaddr[IEEE80211_ADDR_LEN],
1079 struct singleamsdu_params *param);
1080
1081QDF_STATUS (*send_set_qboost_param_cmd)(wmi_unified_t wmi_handle,
1082 uint8_t macaddr[IEEE80211_ADDR_LEN],
1083 struct set_qboost_params *param);
1084
1085QDF_STATUS (*send_mu_scan_cmd)(wmi_unified_t wmi_handle,
1086 struct mu_scan_params *param);
1087
1088QDF_STATUS (*send_lteu_config_cmd)(wmi_unified_t wmi_handle,
1089 struct lteu_config_params *param);
1090
1091QDF_STATUS (*send_set_ps_mode_cmd)(wmi_unified_t wmi_handle,
1092 struct set_ps_mode_params *param);
Kiran Venkatappa34bea522017-09-01 17:02:34 +05301093QDF_STATUS (*save_service_bitmap)(wmi_unified_t wmi_handle,
1094 void *evt_buf, void *bitmap_buf);
1095QDF_STATUS (*save_ext_service_bitmap)(wmi_unified_t wmi_handle,
Rajeev Kumar5d8497b2017-02-12 02:12:17 -08001096 void *evt_buf, void *bitmap_buf);
Govind Singh89727882016-04-15 13:58:27 +05301097bool (*is_service_enabled)(wmi_unified_t wmi_handle,
1098 uint32_t service_id);
1099QDF_STATUS (*get_target_cap_from_service_ready)(wmi_unified_t wmi_handle,
Rajeev Kumar0b6b2852017-02-03 00:39:49 -08001100 void *evt_buf, struct wlan_psoc_target_capability_info *ev);
Govind Singh89727882016-04-15 13:58:27 +05301101
1102QDF_STATUS (*extract_fw_version)(wmi_unified_t wmi_handle,
1103 void *ev, struct wmi_host_fw_ver *fw_ver);
1104
1105QDF_STATUS (*extract_fw_abi_version)(wmi_unified_t wmi_handle,
1106 void *ev, struct wmi_host_fw_abi_ver *fw_ver);
1107
1108QDF_STATUS (*extract_hal_reg_cap)(wmi_unified_t wmi_handle, void *evt_buf,
Rajeev Kumar0b6b2852017-02-03 00:39:49 -08001109 struct wlan_psoc_hal_reg_capability *hal_reg_cap);
Govind Singh89727882016-04-15 13:58:27 +05301110
1111host_mem_req * (*extract_host_mem_req)(wmi_unified_t wmi_handle,
1112 void *evt_buf, uint8_t *num_entries);
1113
1114QDF_STATUS (*init_cmd_send)(wmi_unified_t wmi_handle,
Kiran Venkatappaaf1dae32016-12-23 19:58:54 +05301115 struct wmi_init_cmd_param *param);
Govind Singh89727882016-04-15 13:58:27 +05301116
1117QDF_STATUS (*save_fw_version)(wmi_unified_t wmi_handle, void *evt_buf);
1118uint32_t (*ready_extract_init_status)(wmi_unified_t wmi_hdl, void *ev);
1119QDF_STATUS (*ready_extract_mac_addr)(wmi_unified_t wmi_hdl, void *ev,
1120 uint8_t *macaddr);
Manoj Ekbote66496392017-07-09 23:28:56 -07001121wmi_host_mac_addr * (*ready_extract_mac_addr_list)(wmi_unified_t wmi_hdl,
1122 void *ev, uint8_t *num_mac_addr);
Kiran Venkatappaa40870a2017-11-10 20:50:12 +05301123QDF_STATUS (*extract_ready_event_params)(wmi_unified_t wmi_handle,
1124 void *evt_buf, struct wmi_host_ready_ev_param *ev_param);
Manoj Ekbote66496392017-07-09 23:28:56 -07001125
Govind Singh89727882016-04-15 13:58:27 +05301126QDF_STATUS (*check_and_update_fw_version)(wmi_unified_t wmi_hdl, void *ev);
1127uint8_t* (*extract_dbglog_data_len)(wmi_unified_t wmi_handle, void *evt_buf,
Rajeev Kumar45fdf7f2017-01-25 12:46:21 -08001128 uint32_t *len);
Govind Singh89727882016-04-15 13:58:27 +05301129QDF_STATUS (*send_ext_resource_config)(wmi_unified_t wmi_handle,
1130 wmi_host_ext_resource_config *ext_cfg);
1131
nobeljd9c2dc82018-01-25 16:35:36 -08001132QDF_STATUS (*send_nf_dbr_dbm_info_get_cmd)(wmi_unified_t wmi_handle,
1133 uint8_t mac_id);
Govind Singh89727882016-04-15 13:58:27 +05301134
1135QDF_STATUS (*send_packet_power_info_get_cmd)(wmi_unified_t wmi_handle,
1136 struct packet_power_info_params *param);
1137
1138QDF_STATUS (*send_gpio_config_cmd)(wmi_unified_t wmi_handle,
1139 struct gpio_config_params *param);
1140
1141QDF_STATUS (*send_gpio_output_cmd)(wmi_unified_t wmi_handle,
1142 struct gpio_output_params *param);
1143
1144QDF_STATUS (*send_rtt_meas_req_test_cmd)(wmi_unified_t wmi_handle,
1145 struct rtt_meas_req_test_params *param);
1146
1147QDF_STATUS (*send_rtt_meas_req_cmd)(wmi_unified_t wmi_handle,
1148 struct rtt_meas_req_params *param);
1149
1150QDF_STATUS (*send_rtt_keepalive_req_cmd)(wmi_unified_t wmi_handle,
1151 struct rtt_keepalive_req_params *param);
1152
1153QDF_STATUS (*send_lci_set_cmd)(wmi_unified_t wmi_handle,
1154 struct lci_set_params *param);
1155
1156QDF_STATUS (*send_lcr_set_cmd)(wmi_unified_t wmi_handle,
1157 struct lcr_set_params *param);
1158
1159QDF_STATUS (*send_periodic_chan_stats_config_cmd)(wmi_unified_t wmi_handle,
1160 struct periodic_chan_stats_params *param);
1161
Jeffin Mammenff8ae5a2018-07-24 14:20:08 +05301162#ifdef WLAN_ATF_ENABLE
1163QDF_STATUS (*send_set_atf_cmd)(wmi_unified_t wmi_handle,
1164 struct set_atf_params *param);
1165
Govind Singh89727882016-04-15 13:58:27 +05301166QDF_STATUS
1167(*send_atf_peer_request_cmd)(wmi_unified_t wmi_handle,
Jeffin Mammenff8ae5a2018-07-24 14:20:08 +05301168 struct atf_peer_request_params *param);
Govind Singh89727882016-04-15 13:58:27 +05301169
1170QDF_STATUS
1171(*send_set_atf_grouping_cmd)(wmi_unified_t wmi_handle,
Jeffin Mammenff8ae5a2018-07-24 14:20:08 +05301172 struct atf_grouping_params *param);
1173
1174QDF_STATUS
1175(*send_set_atf_group_ac_cmd)(wmi_unified_t wmi_handle,
1176 struct atf_group_ac_params *param);
1177
1178QDF_STATUS (*extract_atf_peer_stats_ev)(wmi_unified_t wmi_handle,
1179 void *evt_buf,
1180 wmi_host_atf_peer_stats_event *ev);
1181
1182QDF_STATUS (*extract_atf_token_info_ev)(wmi_unified_t wmi_handle,
1183 void *evt_buf, uint8_t idx,
1184 wmi_host_atf_peer_stats_info *atf_info);
1185#endif
Govind Singh89727882016-04-15 13:58:27 +05301186
Sathish Kumar7e2eaed2016-11-14 17:44:29 +05301187QDF_STATUS (*send_get_user_position_cmd)(wmi_unified_t wmi_handle,
1188 uint32_t value);
1189
1190QDF_STATUS
1191(*send_reset_peer_mumimo_tx_count_cmd)(wmi_unified_t wmi_handle,
1192 uint32_t value);
1193
1194QDF_STATUS (*send_get_peer_mumimo_tx_count_cmd)(wmi_unified_t wmi_handle,
1195 uint32_t value);
1196
1197QDF_STATUS
1198(*send_pdev_caldata_version_check_cmd)(wmi_unified_t wmi_handle,
1199 uint32_t value);
1200
1201QDF_STATUS
Sathish Kumar7e566c52016-11-10 15:30:22 +05301202(*send_btcoex_wlan_priority_cmd)(wmi_unified_t wmi_handle,
1203 struct btcoex_cfg_params *param);
1204
1205QDF_STATUS
Kiran Kumar Lokerea7e488b2017-04-26 19:51:29 -07001206(*send_start_11d_scan_cmd)(wmi_unified_t wmi_handle,
1207 struct reg_start_11d_scan_req *param);
1208
1209QDF_STATUS
1210(*send_stop_11d_scan_cmd)(wmi_unified_t wmi_handle,
1211 struct reg_stop_11d_scan_req *param);
1212
1213QDF_STATUS
Sathish Kumar7e566c52016-11-10 15:30:22 +05301214(*send_btcoex_duty_cycle_cmd)(wmi_unified_t wmi_handle,
1215 struct btcoex_cfg_params *param);
Sathish Kumar7e2eaed2016-11-14 17:44:29 +05301216
Sathish Kumar612d0c22017-01-19 14:57:37 +05301217QDF_STATUS
1218(*send_coex_ver_cfg_cmd)(wmi_unified_t wmi_handle, coex_ver_cfg_t *param);
1219
Sathish Kumar125754e2017-04-24 11:36:00 +05301220QDF_STATUS
1221(*send_coex_config_cmd)(wmi_unified_t wmi_handle,
1222 struct coex_config_params *param);
1223
Kiran Venkatappaf9b1de32017-11-08 19:32:23 +05301224QDF_STATUS (*send_bcn_offload_control_cmd)(wmi_unified_t wmi_handle,
1225 struct bcn_offload_control *bcn_ctrl_param);
c_cgodava5eb9a22017-02-13 10:14:42 +05301226#ifdef OL_ATH_SMART_LOGGING
1227QDF_STATUS
1228(*send_smart_logging_enable_cmd)(wmi_unified_t wmi_handle, uint32_t param);
Kiran Venkatappaf9b1de32017-11-08 19:32:23 +05301229
c_cgodava5eb9a22017-02-13 10:14:42 +05301230QDF_STATUS
1231(*send_smart_logging_fatal_cmd)(wmi_unified_t wmi_handle,
1232 struct wmi_debug_fatal_events *param);
1233#endif /* OL_ATH_SMART_LOGGING */
Govind Singh89727882016-04-15 13:58:27 +05301234QDF_STATUS (*extract_wds_addr_event)(wmi_unified_t wmi_handle,
1235 void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);
1236
1237QDF_STATUS (*extract_dcs_interference_type)(wmi_unified_t wmi_handle,
Kiran Venkatappa9b7a9592016-12-29 18:09:32 +05301238 void *evt_buf, struct wmi_host_dcs_interference_param *param);
Govind Singh89727882016-04-15 13:58:27 +05301239
1240QDF_STATUS (*extract_dcs_cw_int)(wmi_unified_t wmi_handle, void *evt_buf,
1241 wmi_host_ath_dcs_cw_int *cw_int);
1242
1243QDF_STATUS (*extract_dcs_im_tgt_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1244 wmi_host_dcs_im_tgt_stats_t *wlan_stat);
1245
Govind Singh89727882016-04-15 13:58:27 +05301246QDF_STATUS (*extract_fips_event_data)(wmi_unified_t wmi_handle,
Kiran Venkatappa9f5fcc02016-12-29 22:07:14 +05301247 void *evt_buf, struct wmi_host_fips_event_param *param);
1248
Govind Singh89727882016-04-15 13:58:27 +05301249QDF_STATUS (*extract_vdev_start_resp)(wmi_unified_t wmi_handle, void *evt_buf,
1250 wmi_host_vdev_start_resp *vdev_rsp);
1251
Om Prakash Tripathi105b04b2017-11-24 16:53:07 +05301252QDF_STATUS (*extract_vdev_delete_resp)(wmi_unified_t wmi_handle, void *evt_buf,
1253 struct wmi_host_vdev_delete_resp *delete_rsp);
1254
Govind Singh89727882016-04-15 13:58:27 +05301255QDF_STATUS (*extract_tbttoffset_update_params)(void *wmi_hdl, void *evt_buf,
Sathish Kumar744fbf72017-05-17 18:05:15 +05301256 uint8_t idx, struct tbttoffset_params *tbtt_param);
1257
1258QDF_STATUS (*extract_ext_tbttoffset_update_params)(void *wmi_hdl, void *evt_buf,
1259 uint8_t idx, struct tbttoffset_params *tbtt_param);
1260
1261QDF_STATUS (*extract_tbttoffset_num_vdevs)(void *wmi_hdl, void *evt_buf,
1262 uint32_t *num_vdevs);
1263
1264QDF_STATUS (*extract_ext_tbttoffset_num_vdevs)(void *wmi_hdl, void *evt_buf,
1265 uint32_t *num_vdevs);
Govind Singh89727882016-04-15 13:58:27 +05301266
1267QDF_STATUS (*extract_mgmt_rx_params)(wmi_unified_t wmi_handle, void *evt_buf,
Himanshu Agarwal53d526b2017-01-05 14:23:18 +05301268 struct mgmt_rx_event_params *hdr, uint8_t **bufp);
Govind Singh89727882016-04-15 13:58:27 +05301269
1270QDF_STATUS (*extract_vdev_stopped_param)(wmi_unified_t wmi_handle,
1271 void *evt_buf, uint32_t *vdev_id);
1272
1273QDF_STATUS (*extract_vdev_roam_param)(wmi_unified_t wmi_handle, void *evt_buf,
1274 wmi_host_roam_event *param);
1275
1276QDF_STATUS (*extract_vdev_scan_ev_param)(wmi_unified_t wmi_handle,
Om Prakash Tripathi91452bf2017-02-25 15:53:30 +05301277 void *evt_buf, struct scan_event *param);
Govind Singh89727882016-04-15 13:58:27 +05301278
Frank Liu0ba573b2017-03-15 17:51:43 +08001279#ifdef CONVERGED_TDLS_ENABLE
1280QDF_STATUS (*extract_vdev_tdls_ev_param)(wmi_unified_t wmi_handle,
1281 void *evt_buf, struct tdls_event_info *param);
1282#endif
1283
Govind Singh89727882016-04-15 13:58:27 +05301284QDF_STATUS (*extract_mu_ev_param)(wmi_unified_t wmi_handle, void *evt_buf,
1285 wmi_host_mu_report_event *param);
1286
Sathish Kumar7e2eaed2016-11-14 17:44:29 +05301287QDF_STATUS (*extract_mu_db_entry)(wmi_unified_t wmi_hdl, void *evt_buf,
1288 uint8_t idx, wmi_host_mu_db_entry *param);
1289
1290QDF_STATUS (*extract_mumimo_tx_count_ev_param)(wmi_unified_t wmi_handle,
1291 void *evt_buf, wmi_host_peer_txmu_cnt_event *param);
1292
1293QDF_STATUS (*extract_peer_gid_userpos_list_ev_param)(wmi_unified_t wmi_handle,
1294 void *evt_buf, wmi_host_peer_gid_userpos_list_event *param);
1295
Anirban Sirkhell08c01932017-08-25 16:01:50 +05301296QDF_STATUS
1297(*extract_esp_estimation_ev_param)(wmi_unified_t wmi_handle, void *evt_buf,
1298 struct esp_estimation_event *param);
1299
Sathish Kumar7e2eaed2016-11-14 17:44:29 +05301300QDF_STATUS (*extract_pdev_caldata_version_check_ev_param)(
1301 wmi_unified_t wmi_handle,
1302 void *evt_buf, wmi_host_pdev_check_cal_version_event *param);
1303
Govind Singh89727882016-04-15 13:58:27 +05301304QDF_STATUS (*extract_pdev_tpc_config_ev_param)(wmi_unified_t wmi_handle,
1305 void *evt_buf, wmi_host_pdev_tpc_config_event *param);
1306
1307QDF_STATUS (*extract_gpio_input_ev_param)(wmi_unified_t wmi_handle,
1308 void *evt_buf, uint32_t *gpio_num);
1309
1310QDF_STATUS (*extract_pdev_reserve_ast_ev_param)(wmi_unified_t wmi_handle,
Kiran Venkatappa3f061a92017-02-08 14:57:16 +05301311 void *evt_buf, struct wmi_host_proxy_ast_reserve_param *param);
Govind Singh89727882016-04-15 13:58:27 +05301312
1313QDF_STATUS (*extract_nfcal_power_ev_param)(wmi_unified_t wmi_handle,
1314 void *evt_buf,
1315 wmi_host_pdev_nfcal_power_all_channels_event *param);
1316
1317QDF_STATUS (*extract_pdev_tpc_ev_param)(wmi_unified_t wmi_handle,
1318 void *evt_buf, wmi_host_pdev_tpc_event *param);
1319
1320QDF_STATUS (*extract_pdev_generic_buffer_ev_param)(wmi_unified_t wmi_handle,
1321 void *evt_buf, wmi_host_pdev_generic_buffer_event *param);
1322
1323QDF_STATUS (*extract_mgmt_tx_compl_param)(wmi_unified_t wmi_handle,
1324 void *evt_buf, wmi_host_mgmt_tx_compl_event *param);
1325
Kiran Venkatappa25c47022017-03-19 22:58:09 +05301326QDF_STATUS (*extract_offchan_data_tx_compl_param)(wmi_unified_t wmi_handle,
1327 void *evt_buf,
1328 struct wmi_host_offchan_data_tx_compl_event *param);
1329
Sathish Kumar907a7462017-02-27 10:35:40 +05301330QDF_STATUS (*extract_pdev_csa_switch_count_status)(wmi_unified_t wmi_handle,
1331 void *evt_buf, struct pdev_csa_switch_count_status *param);
1332
Sathish Kumar744fbf72017-05-17 18:05:15 +05301333QDF_STATUS (*extract_swba_num_vdevs)(wmi_unified_t wmi_handle, void *evt_buf,
1334 uint32_t *num_vdevs);
Govind Singh89727882016-04-15 13:58:27 +05301335
1336QDF_STATUS (*extract_swba_tim_info)(wmi_unified_t wmi_handle, void *evt_buf,
1337 uint32_t idx, wmi_host_tim_info *tim_info);
1338
1339QDF_STATUS (*extract_swba_noa_info)(wmi_unified_t wmi_handle, void *evt_buf,
1340 uint32_t idx, wmi_host_p2p_noa_info *p2p_desc);
1341
Wu Gao07ba6b42017-03-13 20:17:34 +08001342#ifdef CONVERGED_P2P_ENABLE
Rachit Kankane54c543f2018-07-31 16:26:38 +05301343#ifdef FEATURE_P2P_LISTEN_OFFLOAD
Wu Gao07ba6b42017-03-13 20:17:34 +08001344QDF_STATUS (*extract_p2p_lo_stop_ev_param)(wmi_unified_t wmi_handle,
1345 void *evt_buf, struct p2p_lo_event *param);
Rachit Kankane54c543f2018-07-31 16:26:38 +05301346#endif
Wu Gao07ba6b42017-03-13 20:17:34 +08001347
1348QDF_STATUS (*extract_p2p_noa_ev_param)(wmi_unified_t wmi_handle,
1349 void *evt_buf, struct p2p_noa_info *param);
1350#endif
1351
Govind Singh89727882016-04-15 13:58:27 +05301352QDF_STATUS (*extract_peer_sta_ps_statechange_ev)(wmi_unified_t wmi_handle,
1353 void *evt_buf, wmi_host_peer_sta_ps_statechange_event *ev);
1354
1355QDF_STATUS (*extract_peer_sta_kickout_ev)(wmi_unified_t wmi_handle,
1356 void *evt_buf, wmi_host_peer_sta_kickout_event *ev);
1357
1358QDF_STATUS (*extract_peer_ratecode_list_ev)(wmi_unified_t wmi_handle,
1359 void *evt_buf, uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap);
1360
1361QDF_STATUS (*extract_comb_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
1362 uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr);
1363
1364QDF_STATUS (*extract_single_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
1365 uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr);
1366
1367QDF_STATUS (*extract_composite_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
1368 uint16_t datalen, wmi_host_phyerr_t *phyerr);
1369
1370QDF_STATUS (*extract_rtt_hdr)(wmi_unified_t wmi_handle, void *evt_buf,
1371 wmi_host_rtt_event_hdr *ev);
1372
1373QDF_STATUS (*extract_rtt_ev)(wmi_unified_t wmi_handle, void *evt_buf,
1374 wmi_host_rtt_meas_event *ev, uint8_t *hdump, uint16_t hdump_len);
1375
1376QDF_STATUS (*extract_rtt_error_report_ev)(wmi_unified_t wmi_handle,
1377 void *evt_buf, wmi_host_rtt_error_report_event *ev);
1378
1379QDF_STATUS (*extract_all_stats_count)(wmi_unified_t wmi_handle, void *evt_buf,
1380 wmi_host_stats_event *stats_param);
1381
1382QDF_STATUS (*extract_pdev_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1383 uint32_t index, wmi_host_pdev_stats *pdev_stats);
1384
Adil Saeed Musthafa0b6c7602017-08-23 17:32:11 -07001385QDF_STATUS (*extract_unit_test)(wmi_unified_t wmi_handle, void *evt_buf,
1386 wmi_unit_test_event *unit_test, uint32_t maxspace);
1387
Govind Singh89727882016-04-15 13:58:27 +05301388QDF_STATUS (*extract_pdev_ext_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1389 uint32_t index, wmi_host_pdev_ext_stats *pdev_ext_stats);
1390
1391QDF_STATUS (*extract_vdev_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1392 uint32_t index, wmi_host_vdev_stats *vdev_stats);
1393
Naveen Rawat9734fa92018-04-12 08:17:55 -07001394QDF_STATUS (*extract_per_chain_rssi_stats)(wmi_unified_t wmi_handle,
1395 void *evt_buf, uint32_t index,
1396 struct wmi_host_per_chain_rssi_stats *rssi_stats);
1397
Govind Singh89727882016-04-15 13:58:27 +05301398QDF_STATUS (*extract_peer_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1399 uint32_t index, wmi_host_peer_stats *peer_stats);
1400
1401QDF_STATUS (*extract_bcnflt_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1402 uint32_t index, wmi_host_bcnflt_stats *bcnflt_stats);
1403
1404QDF_STATUS (*extract_peer_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1405 uint32_t index, wmi_host_peer_extd_stats *peer_extd_stats);
1406
1407QDF_STATUS (*extract_chan_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1408 uint32_t index, wmi_host_chan_stats *chan_stats);
1409
1410QDF_STATUS (*extract_thermal_stats)(wmi_unified_t wmi_handle, void *evt_buf,
Om Prakash Tripathi2f54fbb2017-04-19 16:57:31 +05301411 uint32_t *temp, uint32_t *level, uint32_t *pdev_id);
Govind Singh89727882016-04-15 13:58:27 +05301412
1413QDF_STATUS (*extract_thermal_level_stats)(wmi_unified_t wmi_handle,
1414 void *evt_buf, uint8_t idx, uint32_t *levelcount,
1415 uint32_t *dccount);
1416
1417QDF_STATUS (*extract_profile_ctx)(wmi_unified_t wmi_handle, void *evt_buf,
1418 wmi_host_wlan_profile_ctx_t *profile_ctx);
1419
1420QDF_STATUS (*extract_profile_data)(wmi_unified_t wmi_handle, void *evt_buf,
Govind Singh41da3152016-05-06 20:20:25 +05301421 uint8_t idx,
1422 wmi_host_wlan_profile_t *profile_data);
Govind Singh89727882016-04-15 13:58:27 +05301423
1424QDF_STATUS (*extract_chan_info_event)(wmi_unified_t wmi_handle, void *evt_buf,
1425 wmi_host_chan_info_event *chan_info);
1426
1427QDF_STATUS (*extract_channel_hopping_event)(wmi_unified_t wmi_handle,
1428 void *evt_buf,
1429 wmi_host_pdev_channel_hopping_event *ch_hopping);
1430
1431QDF_STATUS (*extract_bss_chan_info_event)(wmi_unified_t wmi_handle,
1432 void *evt_buf,
1433 wmi_host_pdev_bss_chan_info_event *bss_chan_info);
1434
1435QDF_STATUS (*extract_inst_rssi_stats_event)(wmi_unified_t wmi_handle,
1436 void *evt_buf, wmi_host_inst_stats_resp *inst_rssi_resp);
1437
1438QDF_STATUS (*extract_tx_data_traffic_ctrl_ev)(wmi_unified_t wmi_handle,
1439 void *evt_buf, wmi_host_tx_data_traffic_ctrl_event *ev);
1440
1441QDF_STATUS (*extract_vdev_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1442 uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats);
Govind Singhc10bde82016-05-02 17:59:24 +05301443
Chaithanya Garrepalli140a0532018-01-18 14:19:41 +05301444QDF_STATUS (*extract_vdev_nac_rssi_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1445 struct wmi_host_vdev_nac_rssi_event *vdev_nac_rssi_stats);
1446
Gurumoorthi Gnanasambandhan18977552017-11-06 22:04:17 +05301447QDF_STATUS (*extract_bcn_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1448 uint32_t index, wmi_host_bcn_stats *bcn_stats);
1449
c_cgodava5eb9a22017-02-13 10:14:42 +05301450#ifdef OL_ATH_SMART_LOGGING
1451QDF_STATUS (*extract_smartlog_event)(wmi_unified_t wmi_handle, void *evt_buf,
1452 struct wmi_debug_fatal_events *event);
1453#endif /* OL_ATH_SMART_LOGGING */
Govind Singhc10bde82016-05-02 17:59:24 +05301454QDF_STATUS (*send_power_dbg_cmd)(wmi_unified_t wmi_handle,
1455 struct wmi_power_dbg_params *param);
Gupta, Kapil7b768002016-04-25 19:14:19 +05301456
Sathish Kumar907a7462017-02-27 10:35:40 +05301457QDF_STATUS (*send_multiple_vdev_restart_req_cmd)(wmi_unified_t wmi_handle,
1458 struct multiple_vdev_restart_params *param);
1459
Gupta, Kapil7b768002016-04-25 19:14:19 +05301460QDF_STATUS (*send_adapt_dwelltime_params_cmd)(wmi_unified_t wmi_handle,
1461 struct wmi_adaptive_dwelltime_params *dwelltime_params);
Anurag Chouhan4d41be72016-07-22 20:19:54 +05301462
Nitesh Shahfb9e88b2017-05-22 15:49:00 +05301463QDF_STATUS (*send_dbs_scan_sel_params_cmd)(wmi_unified_t wmi_handle,
1464 struct wmi_dbs_scan_sel_params *dbs_scan_params);
1465
Anurag Chouhan4d41be72016-07-22 20:19:54 +05301466QDF_STATUS (*send_fw_test_cmd)(wmi_unified_t wmi_handle,
1467 struct set_fwtest_params *wmi_fwtest);
Padma, Santhosh Kumar73524052016-09-11 18:24:59 +05301468
Nachiket Kukadea6ffaab2017-12-15 12:36:58 +05301469#ifdef WLAN_FEATURE_DISA
Padma, Santhosh Kumar73524052016-09-11 18:24:59 +05301470QDF_STATUS (*send_encrypt_decrypt_send_cmd)(wmi_unified_t wmi_handle,
Nachiket Kukadee42cd4b2017-12-20 17:28:29 +05301471 struct disa_encrypt_decrypt_req_params *params);
1472
1473QDF_STATUS (*extract_encrypt_decrypt_resp_event)(wmi_unified_t wmi_handle,
1474 void *evt_buf,
1475 struct disa_encrypt_decrypt_resp_params *resp);
Nachiket Kukadea6ffaab2017-12-15 12:36:58 +05301476#endif
Leo Chang8184e9c2016-09-28 13:43:36 -07001477
Rajeev Kumar Sirasanagandla9d7a69f2017-09-18 16:47:52 +05301478#ifdef WLAN_FEATURE_ACTION_OUI
1479QDF_STATUS (*send_action_oui_cmd)(wmi_unified_t wmi_handle,
1480 struct action_oui_request *req);
1481#endif /* WLAN_FEATURE_ACTION_OUI */
1482
Manikandan Mohan7e5ad482016-12-13 13:14:06 -08001483QDF_STATUS (*send_sar_limit_cmd)(wmi_unified_t wmi_handle,
1484 struct sar_limit_cmd_params *params);
1485
Jeff Johnsonefb43392017-12-14 15:50:16 -08001486QDF_STATUS (*get_sar_limit_cmd)(wmi_unified_t wmi_handle);
1487
1488QDF_STATUS (*extract_sar_limit_event)(wmi_unified_t wmi_handle,
1489 uint8_t *evt_buf,
1490 struct sar_limit_event *event);
1491
Kabilan Kannana348b622018-06-21 16:55:47 -07001492QDF_STATUS (*extract_sar2_result_event)(void *handle,
1493 uint8_t *event,
1494 uint32_t len);
1495
Leo Chang8184e9c2016-09-28 13:43:36 -07001496QDF_STATUS (*send_peer_rx_reorder_queue_setup_cmd)(wmi_unified_t wmi_handle,
1497 struct rx_reorder_queue_setup_params *param);
1498
1499QDF_STATUS (*send_peer_rx_reorder_queue_remove_cmd)(wmi_unified_t wmi_handle,
1500 struct rx_reorder_queue_remove_params *param);
Kiran Venkatappa9c71b362016-08-10 23:55:40 +05301501
1502QDF_STATUS (*extract_service_ready_ext)(wmi_unified_t wmi_handle,
1503 uint8_t *evt_buf,
Rajeev Kumar0b6b2852017-02-03 00:39:49 -08001504 struct wlan_psoc_host_service_ext_param *param);
Kiran Venkatappa9c71b362016-08-10 23:55:40 +05301505
1506QDF_STATUS (*extract_hw_mode_cap_service_ready_ext)(
1507 wmi_unified_t wmi_handle,
1508 uint8_t *evt_buf, uint8_t hw_mode_idx,
Rajeev Kumar0b6b2852017-02-03 00:39:49 -08001509 struct wlan_psoc_host_hw_mode_caps *param);
Kiran Venkatappa9c71b362016-08-10 23:55:40 +05301510
1511QDF_STATUS (*extract_mac_phy_cap_service_ready_ext)(
1512 wmi_unified_t wmi_handle,
Kiran Venkatappa176fe6c2016-12-26 15:38:06 +05301513 uint8_t *evt_buf,
1514 uint8_t hw_mode_id,
1515 uint8_t phy_id,
Rajeev Kumar0b6b2852017-02-03 00:39:49 -08001516 struct wlan_psoc_host_mac_phy_caps *param);
Kiran Venkatappa9c71b362016-08-10 23:55:40 +05301517
1518QDF_STATUS (*extract_reg_cap_service_ready_ext)(
1519 wmi_unified_t wmi_handle,
1520 uint8_t *evt_buf, uint8_t phy_idx,
Rajeev Kumar0b6b2852017-02-03 00:39:49 -08001521 struct wlan_psoc_host_hal_reg_capabilities_ext *param);
Sathish Kumar617535c2017-01-24 17:51:26 +05301522
Sathish Kumar3d3cf4f2017-11-17 17:30:41 +05301523QDF_STATUS (*extract_dbr_ring_cap_service_ready_ext)(
1524 wmi_unified_t wmi_handle,
1525 uint8_t *evt_buf, uint8_t idx,
1526 struct wlan_psoc_host_dbr_ring_caps *param);
1527
Kabilan Kannana348b622018-06-21 16:55:47 -07001528QDF_STATUS (*extract_sar_cap_service_ready_ext)(
1529 wmi_unified_t wmi_handle,
1530 uint8_t *evt_buf,
1531 struct wlan_psoc_host_service_ext_param *ext_param);
1532
Sathish Kumar3d3cf4f2017-11-17 17:30:41 +05301533QDF_STATUS (*extract_dbr_buf_release_fixed)(
1534 wmi_unified_t wmi_handle,
1535 uint8_t *evt_buf,
1536 struct direct_buf_rx_rsp *param);
1537
1538QDF_STATUS (*extract_dbr_buf_release_entry)(
1539 wmi_unified_t wmi_handle,
1540 uint8_t *evt_buf, uint8_t idx,
1541 struct direct_buf_rx_entry *param);
1542
Edayilliam Jayadev42ce0e42018-04-06 16:37:17 +05301543QDF_STATUS (*extract_dbr_buf_metadata)(
1544 wmi_unified_t wmi_handle,
1545 uint8_t *evt_buf, uint8_t idx,
1546 struct direct_buf_rx_metadata *param);
1547
Sathish Kumar617535c2017-01-24 17:51:26 +05301548QDF_STATUS (*extract_pdev_utf_event)(wmi_unified_t wmi_hdl,
1549 uint8_t *evt_buf,
1550 struct wmi_host_pdev_utf_event *param);
1551
Kiran Venkatappa3d514982017-02-28 14:19:17 +05301552QDF_STATUS (*extract_pdev_qvit_event)(wmi_unified_t wmi_hdl,
1553 uint8_t *evt_buf,
1554 struct wmi_host_pdev_qvit_event *param);
1555
Sarada Prasanna Garnayakd49444c2017-01-05 19:30:07 +05301556uint16_t (*wmi_set_htc_tx_tag)(wmi_unified_t wmi_handle,
1557 wmi_buf_t buf, uint32_t cmd_id);
Vijay Pamidipatiadd0ba72017-01-17 12:53:05 +05301558
1559QDF_STATUS (*extract_peer_delete_response_event)(
1560 wmi_unified_t wmi_handle,
1561 void *evt_buf,
1562 struct wmi_host_peer_delete_response_event *param);
Kiran Venkatappa929dd292017-02-10 16:57:59 +05301563
1564bool (*is_management_record)(uint32_t cmd_id);
Rajeev Kumar9024c712018-09-19 13:02:23 -07001565bool (*is_diag_event)(uint32_t event_id);
Kiran Venkatappa929dd292017-02-10 16:57:59 +05301566uint8_t *(*wmi_id_to_name)(uint32_t cmd_id);
Arif Hussain85604fb2017-01-07 18:21:55 -08001567QDF_STATUS (*send_dfs_phyerr_offload_en_cmd)(wmi_unified_t wmi_handle,
1568 uint32_t pdev_id);
1569QDF_STATUS (*send_dfs_phyerr_offload_dis_cmd)(wmi_unified_t wmi_handle,
1570 uint32_t pdev_id);
Baila, Shashikala Prabhu6bad1972017-03-17 10:21:14 +05301571QDF_STATUS (*extract_reg_chan_list_update_event)(wmi_unified_t wmi_handle,
1572 uint8_t *evt_buf,
1573 struct cur_regulatory_info
1574 *reg_info,
1575 uint32_t len);
Kiran Kumar Lokerea7e488b2017-04-26 19:51:29 -07001576
1577QDF_STATUS (*extract_reg_11d_new_country_event)(wmi_unified_t wmi_handle,
1578 uint8_t *evt_buf,
1579 struct reg_11d_new_country *reg_11d_country,
1580 uint32_t len);
1581
Kiran Kumar Lokere82ec5772017-06-30 19:13:02 -07001582QDF_STATUS (*extract_reg_ch_avoid_event)(wmi_unified_t wmi_handle,
1583 uint8_t *evt_buf,
1584 struct ch_avoid_ind_type *ch_avoid_event,
1585 uint32_t len);
1586
Vikram Kandukuric83feb62017-03-07 18:40:13 +05301587QDF_STATUS (*extract_chainmask_tables)(wmi_unified_t wmi_handle,
1588 uint8_t *evt_buf,
1589 struct wlan_psoc_host_chainmask_table *chainmask_table);
Arif Hussaine542fe12017-04-09 01:03:19 -07001590
Rajeev Kumar Sirasanagandlacddf6fe2016-11-22 21:28:54 +05301591QDF_STATUS (*send_get_rcpi_cmd)(wmi_unified_t wmi_handle,
1592 struct rcpi_req *get_rcpi_param);
1593
1594QDF_STATUS (*extract_rcpi_response_event)(wmi_unified_t wmi_handle,
1595 void *evt_buf,
1596 struct rcpi_res *res);
1597
Arif Hussaine542fe12017-04-09 01:03:19 -07001598QDF_STATUS (*extract_dfs_cac_complete_event)(wmi_unified_t wmi_handle,
1599 uint8_t *evt_buf,
1600 uint32_t *vdev_id,
1601 uint32_t len);
1602QDF_STATUS (*extract_dfs_radar_detection_event)(wmi_unified_t wmi_handle,
1603 uint8_t *evt_buf,
1604 struct radar_found_info *radar_found,
1605 uint32_t len);
bings9d09a012017-12-18 16:56:53 +08001606QDF_STATUS (*extract_wlan_radar_event_info)(wmi_unified_t wmi_handle,
1607 uint8_t *evt_buf,
1608 struct radar_event_info *wlan_radar_event,
1609 uint32_t len);
Wen Gonge36b84a2018-04-11 17:59:03 +08001610
Kiran Kumar Lokeree70e6052017-04-24 00:56:03 -07001611QDF_STATUS (*send_set_country_cmd)(wmi_unified_t wmi_handle,
1612 struct set_country *param);
Kiran Venkatappa49341042017-05-10 16:24:51 +05301613
1614uint32_t (*convert_pdev_id_host_to_target)(uint32_t pdev_id);
1615uint32_t (*convert_pdev_id_target_to_host)(uint32_t pdev_id);
1616
Abhijit Pradhan01e3d842017-06-29 12:32:20 +05301617QDF_STATUS (*send_user_country_code_cmd)(wmi_unified_t wmi_handle,
1618 uint8_t pdev_id, struct cc_regdmn_s *rd);
Ganesh Kondabattini20b086b2017-07-10 11:54:11 +05301619QDF_STATUS (*send_limit_off_chan_cmd)(wmi_unified_t wmi_handle,
1620 struct wmi_limit_off_chan_param *limit_off_chan_param);
Naveen Rawat7f70d662017-10-26 18:50:19 -07001621
1622QDF_STATUS (*send_wow_timer_pattern_cmd)(wmi_unified_t wmi_handle,
1623 uint8_t vdev_id, uint32_t cookie, uint32_t time);
Rathees kumar Chinannanaff64b02017-11-22 17:03:57 +05301624QDF_STATUS (*send_wds_entry_list_cmd)(wmi_unified_t wmi_handle);
1625QDF_STATUS (*extract_wds_entry)(wmi_unified_t wmi_handle,
1626 uint8_t *evt_buf,
1627 struct wdsentry *wds_entry,
1628 u_int32_t idx);
Naveen Rawat79a787c2017-12-14 13:24:31 -08001629
1630#ifdef WLAN_FEATURE_NAN_CONVERGENCE
1631QDF_STATUS (*send_ndp_initiator_req_cmd)(wmi_unified_t wmi_handle,
1632 struct nan_datapath_initiator_req *req);
1633QDF_STATUS (*send_ndp_responder_req_cmd)(wmi_unified_t wmi_handle,
1634 struct nan_datapath_responder_req *req);
1635QDF_STATUS (*send_ndp_end_req_cmd)(wmi_unified_t wmi_handle,
1636 struct nan_datapath_end_req *req);
1637
1638QDF_STATUS (*extract_ndp_initiator_rsp)(wmi_unified_t wmi_handle,
Naveen Rawat1d095b02018-02-02 15:13:05 -08001639 uint8_t *data, struct nan_datapath_initiator_rsp *rsp);
Naveen Rawat79a787c2017-12-14 13:24:31 -08001640QDF_STATUS (*extract_ndp_ind)(wmi_unified_t wmi_handle,
Naveen Rawat1d095b02018-02-02 15:13:05 -08001641 uint8_t *data, struct nan_datapath_indication_event *ind);
Naveen Rawat79a787c2017-12-14 13:24:31 -08001642QDF_STATUS (*extract_ndp_confirm)(wmi_unified_t wmi_handle,
Naveen Rawat1d095b02018-02-02 15:13:05 -08001643 uint8_t *data, struct nan_datapath_confirm_event *ev);
Naveen Rawat79a787c2017-12-14 13:24:31 -08001644QDF_STATUS (*extract_ndp_responder_rsp)(wmi_unified_t wmi_handle,
Naveen Rawat1d095b02018-02-02 15:13:05 -08001645 uint8_t *data, struct nan_datapath_responder_rsp *rsp);
Naveen Rawat79a787c2017-12-14 13:24:31 -08001646QDF_STATUS (*extract_ndp_end_rsp)(wmi_unified_t wmi_handle,
Naveen Rawat1d095b02018-02-02 15:13:05 -08001647 uint8_t *data, struct nan_datapath_end_rsp_event *rsp);
Naveen Rawat79a787c2017-12-14 13:24:31 -08001648QDF_STATUS (*extract_ndp_end_ind)(wmi_unified_t wmi_handle,
1649 uint8_t *data, struct nan_datapath_end_indication_event **ind);
Naveen Rawat76cbf2f2018-01-09 17:54:41 -08001650QDF_STATUS (*extract_ndp_sch_update)(wmi_unified_t wmi_handle,
1651 uint8_t *data, struct nan_datapath_sch_update_event *ind);
Naveen Rawat1d095b02018-02-02 15:13:05 -08001652#endif /* WLAN_FEATURE_NAN_CONVERGENCE */
1653
yeshwanth sriram guntuka230af892017-09-01 17:56:07 +05301654QDF_STATUS (*send_btm_config)(wmi_unified_t wmi_handle,
1655 struct wmi_btm_config *params);
Arif Hussain2cfde1d2017-12-27 16:23:45 -08001656QDF_STATUS (*send_obss_detection_cfg_cmd)(wmi_unified_t wmi_handle,
1657 struct wmi_obss_detection_cfg_param *obss_cfg_param);
Arif Hussainf9f26b52018-01-12 13:15:04 -08001658QDF_STATUS (*extract_obss_detection_info)(uint8_t *evt_buf,
1659 struct wmi_obss_detect_info *info);
Subrat Mishra7c9427e2017-09-27 14:41:20 +05301660
1661#ifdef WLAN_SUPPORT_FILS
1662QDF_STATUS (*send_vdev_fils_enable_cmd)(wmi_unified_t wmi_handle,
1663 struct config_fils_params *param);
1664QDF_STATUS (*extract_swfda_vdev_id)(wmi_unified_t wmi_handle, void *evt_buf,
1665 uint32_t *vdev_id);
1666QDF_STATUS (*send_fils_discovery_send_cmd)(wmi_unified_t wmi_handle,
1667 struct fd_params *param);
1668#endif /* WLAN_SUPPORT_FILS */
Rajeev Kumar Sirasanagandladfa24862018-03-02 21:12:16 +05301669
1670QDF_STATUS
1671(*send_roam_scan_stats_cmd)(wmi_unified_t wmi_handle,
1672 struct wmi_roam_scan_stats_req *params);
1673
1674QDF_STATUS
1675(*extract_roam_scan_stats_res_evt)(wmi_unified_t wmi_handle,
1676 void *evt_buf,
1677 uint32_t *vdev_id,
1678 struct wmi_roam_scan_stats_res **res_param);
1679
Vignesh Viswanathan51994e32018-01-18 19:06:40 +05301680QDF_STATUS (*send_offload_11k_cmd)(wmi_unified_t wmi_handle,
1681 struct wmi_11k_offload_params *params);
1682
1683QDF_STATUS (*send_invoke_neighbor_report_cmd)(wmi_unified_t wmi_handle,
1684 struct wmi_invoke_neighbor_report_params *params);
Pratik Gandhi073fa002018-01-30 19:05:41 +05301685
1686void (*wmi_pdev_id_conversion_enable)(wmi_unified_t wmi_handle);
gaurank kathpaliaa2a2c712018-02-21 18:58:29 +05301687void (*send_time_stamp_sync_cmd)(wmi_unified_t wmi_handle);
Vivek73465282018-03-22 23:27:21 +05301688void (*wmi_free_allocated_event)(uint32_t cmd_event_id,
Pratik Gandhi073fa002018-01-30 19:05:41 +05301689 void **wmi_cmd_struct_ptr);
1690int (*wmi_check_and_pad_event)(void *os_handle, void *param_struc_ptr,
Vivek73465282018-03-22 23:27:21 +05301691 uint32_t param_buf_len,
1692 uint32_t wmi_cmd_event_id,
Pratik Gandhi073fa002018-01-30 19:05:41 +05301693 void **wmi_cmd_struct_ptr);
1694int (*wmi_check_command_params)(void *os_handle, void *param_struc_ptr,
Vivek73465282018-03-22 23:27:21 +05301695 uint32_t param_buf_len,
1696 uint32_t wmi_cmd_event_id);
Arif Hussainb4da3472018-01-22 01:19:36 -08001697QDF_STATUS (*send_bss_color_change_enable_cmd)(wmi_unified_t wmi_handle,
1698 uint32_t vdev_id,
1699 bool enable);
1700QDF_STATUS (*send_obss_color_collision_cfg_cmd)(wmi_unified_t wmi_handle,
1701 struct wmi_obss_color_collision_cfg_param *cfg);
1702QDF_STATUS (*extract_obss_color_collision_info)(uint8_t *evt_buf,
1703 struct wmi_obss_color_collision_info *info);
Kiran Venkatappa2d881fd2018-02-05 10:56:43 +05301704#ifdef WLAN_SUPPORT_TWT
1705QDF_STATUS (*send_twt_enable_cmd)(wmi_unified_t wmi_handle,
1706 struct wmi_twt_enable_param *params);
1707
1708QDF_STATUS (*send_twt_disable_cmd)(wmi_unified_t wmi_handle,
1709 struct wmi_twt_disable_param *params);
1710
1711QDF_STATUS (*send_twt_add_dialog_cmd)(wmi_unified_t wmi_handle,
1712 struct wmi_twt_add_dialog_param *params);
1713
1714QDF_STATUS (*send_twt_del_dialog_cmd)(wmi_unified_t wmi_handle,
1715 struct wmi_twt_del_dialog_param *params);
1716
1717QDF_STATUS (*send_twt_pause_dialog_cmd)(wmi_unified_t wmi_handle,
1718 struct wmi_twt_pause_dialog_cmd_param *params);
1719
1720QDF_STATUS (*send_twt_resume_dialog_cmd)(wmi_unified_t wmi_handle,
1721 struct wmi_twt_resume_dialog_cmd_param *params);
1722
1723QDF_STATUS (*extract_twt_enable_comp_event)(wmi_unified_t wmi_handle,
1724 uint8_t *evt_buf,
1725 struct wmi_twt_enable_complete_event_param *params);
1726
1727QDF_STATUS (*extract_twt_disable_comp_event)(wmi_unified_t wmi_handle,
1728 uint8_t *evt_buf,
1729 struct wmi_twt_disable_complete_event *params);
1730
1731QDF_STATUS (*extract_twt_add_dialog_comp_event)(wmi_unified_t wmi_handle,
1732 uint8_t *evt_buf,
1733 struct wmi_twt_add_dialog_complete_event_param *params);
1734
1735QDF_STATUS (*extract_twt_del_dialog_comp_event)(wmi_unified_t wmi_handle,
1736 uint8_t *evt_buf,
1737 struct wmi_twt_del_dialog_complete_event_param *params);
1738
1739QDF_STATUS (*extract_twt_pause_dialog_comp_event)(wmi_unified_t wmi_handle,
1740 uint8_t *evt_buf,
1741 struct wmi_twt_pause_dialog_complete_event_param *params);
1742
1743QDF_STATUS (*extract_twt_resume_dialog_comp_event)(wmi_unified_t wmi_handle,
1744 uint8_t *evt_buf,
1745 struct wmi_twt_resume_dialog_complete_event_param *params);
1746#endif
Naveen Rawat96afb7f2018-04-13 16:38:36 -07001747
1748#ifdef QCA_SUPPORT_CP_STATS
1749QDF_STATUS (*extract_cca_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1750 struct wmi_host_congestion_stats *stats);
1751#endif /* QCA_SUPPORT_CP_STATS */
Shashikala Prabhu6c90a3e2018-05-16 10:08:09 +05301752
1753#if defined(WLAN_DFS_PARTIAL_OFFLOAD) && defined(HOST_DFS_SPOOF_TEST)
1754QDF_STATUS (*send_dfs_average_radar_params_cmd)(
1755 wmi_unified_t wmi_handle,
1756 struct dfs_radar_found_params *params);
1757
1758QDF_STATUS (*extract_dfs_status_from_fw)(wmi_unified_t wmi_handle,
1759 void *evt_buf,
1760 uint32_t *dfs_status_check);
1761#endif
Pratik Gandhi13b34f82018-09-17 16:47:12 +05301762
1763#ifdef OBSS_PD
1764QDF_STATUS (*send_obss_spatial_reuse_set)(wmi_unified_t wmi_handle,
1765 struct wmi_host_obss_spatial_reuse_set_param
1766 *obss_spatial_reuse_param);
1767#endif
Govind Singh89727882016-04-15 13:58:27 +05301768};
1769
Mukul Sharma36d159b2017-01-30 19:55:40 +05301770/* Forward declartion for psoc*/
1771struct wlan_objmgr_psoc;
1772
Govind Singh229bc0d2016-03-07 15:33:31 +05301773/**
1774 * struct wmi_init_cmd - Saved wmi INIT command
1775 * @buf: Buffer containing the wmi INIT command
1776 * @buf_len: Length of the buffer
1777 */
Govind Singhec0bdef2016-03-16 16:27:50 +05301778struct wmi_cmd_init {
Govind Singh229bc0d2016-03-07 15:33:31 +05301779 wmi_buf_t buf;
1780 uint32_t buf_len;
Govind Singh3ddda1f2016-03-09 11:34:12 +05301781};
1782
Kiran Venkatappa153c8352017-10-11 22:56:45 +05301783/**
1784 * @abi_version_0: WMI Major and Minor versions
1785 * @abi_version_1: WMI change revision
1786 * @abi_version_ns_0: ABI version namespace first four dwords
1787 * @abi_version_ns_1: ABI version namespace second four dwords
1788 * @abi_version_ns_2: ABI version namespace third four dwords
1789 * @abi_version_ns_3: ABI version namespace fourth four dwords
1790 */
1791struct wmi_host_abi_version {
1792 uint32_t abi_version_0;
1793 uint32_t abi_version_1;
1794 uint32_t abi_version_ns_0;
1795 uint32_t abi_version_ns_1;
1796 uint32_t abi_version_ns_2;
1797 uint32_t abi_version_ns_3;
1798};
1799
c_priyscc79b352018-06-12 16:53:51 +05301800#define NUM_DEBUG_INFOS 9
Govind Singhd475ea92016-03-06 19:55:02 +05301801struct wmi_unified {
Govind Singh89727882016-04-15 13:58:27 +05301802 void *scn_handle; /* handle to device */
Govind Singh6ad6ada2016-02-04 18:42:30 +05301803 osdev_t osdev; /* handle to use OS-independent services */
Rakshith Suresh Patkar35fe7b02018-09-12 16:51:30 +05301804 struct wbuff_mod_handle *wbuff_handle; /* handle to wbuff */
Govind Singhd7468a52016-03-09 14:32:57 +05301805 qdf_atomic_t pending_cmds;
Govind Singhd475ea92016-03-06 19:55:02 +05301806 HTC_ENDPOINT_ID wmi_endpoint_id;
1807 uint16_t max_msg_len;
Kiran Venkatappa929dd292017-02-10 16:57:59 +05301808 uint32_t *event_id;
1809 wmi_unified_event_handler *event_handler;
1810 enum wmi_rx_exec_ctx *ctx;
Govind Singhd475ea92016-03-06 19:55:02 +05301811 void *htc_handle;
Govind Singhd7468a52016-03-09 14:32:57 +05301812 qdf_spinlock_t eventq_lock;
1813 qdf_nbuf_queue_t event_queue;
Rajeev Kumara0f4e932017-03-29 17:14:14 -07001814 qdf_work_t rx_event_work;
1815 qdf_workqueue_t *wmi_rx_work_queue;
Govind Singh6ad6ada2016-02-04 18:42:30 +05301816 int wmi_stop_in_progress;
Kiran Venkatappa153c8352017-10-11 22:56:45 +05301817 struct wmi_host_abi_version fw_abi_version;
1818 struct wmi_host_abi_version final_abi_vers;
Govind Singh229bc0d2016-03-07 15:33:31 +05301819 uint32_t num_of_diag_events_logs;
1820 uint32_t *events_logs_list;
Govind Singhd475ea92016-03-06 19:55:02 +05301821#ifdef WLAN_OPEN_SOURCE
1822 struct fwdebug dbglog;
1823 struct dentry *debugfs_phy;
1824#endif /* WLAN_OPEN_SOURCE */
1825
1826#ifdef WMI_INTERFACE_EVENT_LOGGING
Govind Singh5fed03b2016-05-12 12:45:51 +05301827 struct wmi_debug_log_info log_info;
Govind Singhd475ea92016-03-06 19:55:02 +05301828#endif /*WMI_INTERFACE_EVENT_LOGGING */
1829
Govind Singhd7468a52016-03-09 14:32:57 +05301830 qdf_atomic_t is_target_suspended;
Govind Singhd475ea92016-03-06 19:55:02 +05301831
1832#ifdef FEATURE_RUNTIME_PM
Govind Singhd7468a52016-03-09 14:32:57 +05301833 qdf_atomic_t runtime_pm_inprogress;
Govind Singhd475ea92016-03-06 19:55:02 +05301834#endif
Sarada Prasanna Garnayakd49444c2017-01-05 19:30:07 +05301835 qdf_atomic_t is_wow_bus_suspended;
1836 bool tag_crash_inject;
Ravi Kumar Bokkadf1f3ea2016-11-09 18:07:56 +05301837 bool tgt_force_assert_enable;
Govind Singh89727882016-04-15 13:58:27 +05301838 enum wmi_target_type target_type;
Govind Singh3ddda1f2016-03-09 11:34:12 +05301839 struct wmi_rx_ops rx_ops;
1840 struct wmi_ops *ops;
Govind Singh6ad6ada2016-02-04 18:42:30 +05301841 bool use_cookie;
Govind Singh89727882016-04-15 13:58:27 +05301842 bool wmi_stopinprogress;
Soumya Bhat49a84812017-03-22 14:41:01 +05301843 uint32_t *wmi_events;
Kiran Venkatappa9da7e042016-08-09 22:52:35 +05301844#ifndef CONFIG_MCL
Kiran Venkatappa929dd292017-02-10 16:57:59 +05301845 uint32_t *pdev_param;
1846 uint32_t *vdev_param;
Kiran Venkatappa929dd292017-02-10 16:57:59 +05301847#endif
Sourav Mohapatra0e1c2a82017-12-03 11:44:44 +05301848 uint32_t *services;
Kiran Venkatappa929dd292017-02-10 16:57:59 +05301849 struct wmi_soc *soc;
Chaithanya Garrepalli09744012017-12-01 14:55:26 +05301850 uint16_t wmi_max_cmds;
c_priyscc79b352018-06-12 16:53:51 +05301851 struct dentry *debugfs_de[NUM_DEBUG_INFOS];
Venkat Karthik Kantamneni6c003862018-05-21 19:13:02 +05301852#ifdef WMI_EXT_DBG
1853 int wmi_ext_dbg_msg_queue_size;
1854 qdf_list_t wmi_ext_dbg_msg_queue;
1855 qdf_spinlock_t wmi_ext_dbg_msg_queue_lock;
1856 qdf_dentry_t wmi_ext_dbg_dentry;
1857#endif /*WMI_EXT_DBG*/
Kiran Venkatappa929dd292017-02-10 16:57:59 +05301858};
1859
1860#define WMI_MAX_RADIOS 3
1861struct wmi_soc {
1862 struct wlan_objmgr_psoc *wmi_psoc;
1863 void *scn_handle; /* handle to device */
1864 qdf_atomic_t num_pdevs;
1865 enum wmi_target_type target_type;
1866 void *htc_handle;
1867 uint32_t event_id[WMI_UNIFIED_MAX_EVENT];
1868 wmi_unified_event_handler event_handler[WMI_UNIFIED_MAX_EVENT];
Kiran Venkatappa129bd1a2017-03-20 20:38:44 +05301869 uint32_t max_event_idx;
Kiran Venkatappa929dd292017-02-10 16:57:59 +05301870 enum wmi_rx_exec_ctx ctx[WMI_UNIFIED_MAX_EVENT];
Kiran Venkatappa129bd1a2017-03-20 20:38:44 +05301871 qdf_spinlock_t ctx_lock;
Kiran Venkatappa929dd292017-02-10 16:57:59 +05301872 struct wmi_unified *wmi_pdev[WMI_MAX_RADIOS];
1873 HTC_ENDPOINT_ID wmi_endpoint_id[WMI_MAX_RADIOS];
1874 uint16_t max_msg_len[WMI_MAX_RADIOS];
1875 struct wmi_ops *ops;
Pratik Gandhi2675a272018-02-05 17:22:41 +05301876 const uint32_t *svc_ids;
Soumya Bhat49a84812017-03-22 14:41:01 +05301877 uint32_t wmi_events[wmi_events_max];
Jeff Johnson951133e2018-05-06 16:25:49 -07001878 /* WMI service bitmap received from target */
Kiran Venkatappa34bea522017-09-01 17:02:34 +05301879 uint32_t *wmi_service_bitmap;
1880 uint32_t *wmi_ext_service_bitmap;
1881#ifndef CONFIG_MCL
Govind Singh89727882016-04-15 13:58:27 +05301882 uint32_t pdev_param[wmi_pdev_param_max];
1883 uint32_t vdev_param[wmi_vdev_param_max];
Govind Singh89727882016-04-15 13:58:27 +05301884#endif
Sourav Mohapatra0e1c2a82017-12-03 11:44:44 +05301885 uint32_t services[wmi_services_max];
Chaithanya Garrepalli09744012017-12-01 14:55:26 +05301886 uint16_t wmi_max_cmds;
c_priyscc79b352018-06-12 16:53:51 +05301887 uint32_t soc_idx;
Govind Singhd475ea92016-03-06 19:55:02 +05301888};
Kiran Venkatappa929dd292017-02-10 16:57:59 +05301889
Qiwei Cai3690d3b2018-09-13 16:17:46 +08001890/**
1891 * wmi_mtrace() - Wrappper function for qdf_mtrace api
1892 * @message_id: 32-Bit Wmi message ID
1893 * @vdev_id: Vdev ID
1894 * @data: Actual message contents
1895 *
1896 * This function converts the 32-bit WMI message ID in 15-bit message ID
1897 * format for qdf_mtrace as in qdf_mtrace message there are only 15
1898 * bits reserved for message ID.
1899 * out of these 15-bits, 8-bits (From MSB) specifies the WMI_GRP_ID
1900 * and remaining 7-bits specifies the actual WMI command. With this
1901 * notation there can be maximum 256 groups and each group can have
1902 * max 128 commands can be supported.
1903 *
1904 * Return: None
1905 */
1906void wmi_mtrace(uint32_t message_id, uint16_t vdev_id, uint32_t data);
1907
Pratik Gandhi073fa002018-01-30 19:05:41 +05301908void wmi_unified_register_module(enum wmi_target_type target_type,
1909 void (*wmi_attach)(wmi_unified_t wmi_handle));
1910void wmi_tlv_init(void);
1911void wmi_non_tlv_init(void);
Govind Singh89727882016-04-15 13:58:27 +05301912#ifdef WMI_NON_TLV_SUPPORT
Jeff Johnsonf445f5c2018-05-12 14:22:00 -07001913/* ONLY_NON_TLV_TARGET:TLV attach dummy function definition for case when
Govind Singhfa201d92016-06-08 19:40:11 +05301914 * driver supports only NON-TLV target (WIN mainline) */
Aditya Sathish10fa4772018-07-02 17:31:55 +05301915#define wmi_tlv_attach(x) qdf_print("TLV Unavailable")
Govind Singh89727882016-04-15 13:58:27 +05301916#else
1917void wmi_tlv_attach(wmi_unified_t wmi_handle);
1918#endif
1919void wmi_non_tlv_attach(wmi_unified_t wmi_handle);
Govind Singh53c7ac82016-03-28 22:02:42 +05301920
Wen Gong5b1429d2018-05-18 16:03:41 +08001921#ifdef FEATURE_WLAN_EXTSCAN
1922void wmi_extscan_attach_tlv(struct wmi_unified *wmi_handle);
1923#else
1924static inline void wmi_extscan_attach_tlv(struct wmi_unified *wmi_handle)
1925{
1926}
1927#endif
1928
Govind Singh53c7ac82016-03-28 22:02:42 +05301929/**
1930 * wmi_align() - provides word aligned parameter
1931 * @param: parameter to be aligned
1932 *
1933 * Return: word aligned parameter
1934 */
1935static inline uint32_t wmi_align(uint32_t param)
1936{
1937 return roundup(param, sizeof(uint32_t));
1938}
Sathish Kumar744fbf72017-05-17 18:05:15 +05301939
1940/**
1941 * wmi_vdev_map_to_vdev_id() - Provides vdev id corresponding to idx
1942 * from vdev map
1943 * @vdev_map: Bitmask containing information of active vdev ids
1944 * @idx: Index referring to the i'th bit set from LSB in vdev map
1945 *
1946 * This API returns the vdev id for the i'th bit set from LSB in vdev map.
1947 * Index runs through 1 from maximum number of vdevs set in the vdev map
1948 *
1949 * Return: vdev id of the vdev object
1950 */
1951static inline uint32_t wmi_vdev_map_to_vdev_id(uint32_t vdev_map,
1952 uint32_t idx)
1953{
1954 uint32_t vdev_count = 0, vdev_set = 0, vdev_id = WLAN_INVALID_VDEV_ID;
1955
1956 while (vdev_map) {
1957 vdev_set += (vdev_map & 0x1);
1958 if (vdev_set == (idx+1)) {
1959 vdev_id = vdev_count;
1960 break;
1961 }
1962 vdev_map >>= 1;
1963 vdev_count++;
1964 }
1965
1966 return vdev_id;
1967}
1968
1969/**
1970 * wmi_vdev_map_to_num_vdevs() - Provides number of vdevs active based on the
1971 * vdev map received from FW
1972 * @vdev_map: Bitmask containing information of active vdev ids
1973 *
1974 * Return: Number of vdevs set in the vdev bit mask
1975 */
1976static inline uint32_t wmi_vdev_map_to_num_vdevs(uint32_t vdev_map)
1977{
1978 uint32_t num_vdevs = 0;
1979
1980 while (vdev_map) {
1981 num_vdevs += (vdev_map & 0x1);
1982 vdev_map >>= 1;
1983 }
1984
1985 return num_vdevs;
1986}
Venkat Karthik Kantamneni6c003862018-05-21 19:13:02 +05301987
1988#ifdef WMI_EXT_DBG
1989
1990/**
1991 * wmi_ext_dbg_msg_get() - Allocate memory for wmi debug msg
1992 *
1993 * @buflen: Length of WMI message buffer
1994 *
1995 * Return: Allocated msg buffer else NULL on failure.
1996 */
1997static inline struct wmi_ext_dbg_msg *wmi_ext_dbg_msg_get(uint32_t buflen)
1998{
1999 return qdf_mem_malloc(sizeof(struct wmi_ext_dbg_msg) + buflen);
2000}
2001
2002/**
2003 * wmi_ext_dbg_msg_put() - Free wmi debug msg buffer
2004 *
2005 * @msg: wmi message buffer to be freed
2006 *
2007 * Return: none
2008 */
2009static inline void wmi_ext_dbg_msg_put(struct wmi_ext_dbg_msg *msg)
2010{
2011 qdf_mem_free(msg);
2012}
2013
2014#else
2015
2016static inline QDF_STATUS wmi_ext_dbg_msg_cmd_record(struct wmi_unified
2017 *wmi_handle,
2018 uint8_t *buf, uint32_t len)
2019{
2020 return QDF_STATUS_SUCCESS;
2021}
2022
2023static inline QDF_STATUS wmi_ext_dbg_msg_event_record(struct wmi_unified
2024 *wmi_handle,
2025 uint8_t *buf,
2026 uint32_t len)
2027{
2028 return QDF_STATUS_SUCCESS;
2029}
2030
2031static inline QDF_STATUS wmi_ext_dbgfs_init(struct wmi_unified *wmi_handle)
2032{
2033 return QDF_STATUS_SUCCESS;
2034}
2035
2036static inline QDF_STATUS wmi_ext_dbgfs_deinit(struct wmi_unified *wmi_handle)
2037{
2038 return QDF_STATUS_SUCCESS;
2039}
2040
2041#endif /*WMI_EXT_DBG */
Govind Singhd475ea92016-03-06 19:55:02 +05302042#endif