blob: 59332031c3aa24d336d16a3089d0240eafa15b45 [file] [log] [blame]
Govind Singhd475ea92016-03-06 19:55:02 +05301/*
Paul Zhanga9ec9432017-01-04 16:45:42 +08002 * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
Govind Singhd475ea92016-03-06 19:55:02 +05303 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
28/*
Govind Singh3ddda1f2016-03-09 11:34:12 +053029 * This file contains the API definitions for the Unified Wireless
30 * Module Interface (WMI).
Govind Singhd475ea92016-03-06 19:55:02 +053031 */
32#ifndef _WMI_UNIFIED_PRIV_H_
33#define _WMI_UNIFIED_PRIV_H_
34#include <osdep.h>
35#include "a_types.h"
Govind Singh89727882016-04-15 13:58:27 +053036#include "wmi_unified_param.h"
Govind Singhd7468a52016-03-09 14:32:57 +053037#include "qdf_atomic.h"
Govind Singhd475ea92016-03-06 19:55:02 +053038
39#define WMI_UNIFIED_MAX_EVENT 0x100
Mukul Sharmab4ddf9c2016-10-12 23:50:13 +053040#ifdef CONFIG_MCL
41#define WMI_MAX_CMDS 256
42#else
43#define WMI_MAX_CMDS 1024
44#endif
Govind Singhd475ea92016-03-06 19:55:02 +053045
Govind Singhd7468a52016-03-09 14:32:57 +053046typedef qdf_nbuf_t wmi_buf_t;
Govind Singhd475ea92016-03-06 19:55:02 +053047
48#ifdef WMI_INTERFACE_EVENT_LOGGING
49
50#define WMI_EVENT_DEBUG_MAX_ENTRY (1024)
Govind Singh5fed03b2016-05-12 12:45:51 +053051#define WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH (16)
52/* wmi_mgmt commands */
53#define WMI_MGMT_EVENT_DEBUG_MAX_ENTRY (256)
Govind Singhd475ea92016-03-06 19:55:02 +053054
Govind Singh5fed03b2016-05-12 12:45:51 +053055/**
56 * struct wmi_command_debug - WMI command log buffer data type
57 * @ command - Store WMI Command id
58 * @ data - Stores WMI command data
59 * @ time - Time of WMI command handling
60 */
Govind Singhd475ea92016-03-06 19:55:02 +053061struct wmi_command_debug {
62 uint32_t command;
Govind Singh5fed03b2016-05-12 12:45:51 +053063 /*16 bytes of WMI cmd excluding TLV and WMI headers */
64 uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)];
Govind Singhd475ea92016-03-06 19:55:02 +053065 uint64_t time;
66};
67
Govind Singh5fed03b2016-05-12 12:45:51 +053068/**
69 * struct wmi_event_debug - WMI event log buffer data type
70 * @ command - Store WMI Event id
71 * @ data - Stores WMI Event data
72 * @ time - Time of WMI Event handling
73 */
Govind Singhd475ea92016-03-06 19:55:02 +053074struct wmi_event_debug {
75 uint32_t event;
Govind Singh5fed03b2016-05-12 12:45:51 +053076 /*16 bytes of WMI event data excluding TLV header */
77 uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)];
Govind Singhd475ea92016-03-06 19:55:02 +053078 uint64_t time;
79};
80
Govind Singh5fed03b2016-05-12 12:45:51 +053081/**
Sandeep Puligilla38a294f2016-06-13 15:42:55 -070082 * struct wmi_command_header - Type for accessing frame data
83 * @ type - 802.11 Frame type
84 * @ subType - 802.11 Frame subtype
85 * @ protVer - 802.11 Version
86 */
87struct wmi_command_header {
88#ifndef ANI_LITTLE_BIT_ENDIAN
89
90 uint32_t sub_type:4;
91 uint32_t type:2;
92 uint32_t prot_ver:2;
93
94#else
95
96 uint32_t prot_ver:2;
97 uint32_t type:2;
98 uint32_t sub_type:4;
99
100#endif
101};
102
103/**
Govind Singh5fed03b2016-05-12 12:45:51 +0530104 * struct wmi_log_buf_t - WMI log buffer information type
105 * @buf - Refernce to WMI log buffer
106 * @ length - length of buffer
107 * @ buf_tail_idx - Tail index of buffer
108 * @ p_buf_tail_idx - refernce to buffer tail index. It is added to accommodate
109 * unified design since MCL uses global variable for buffer tail index
110 */
111struct wmi_log_buf_t {
112 void *buf;
113 uint32_t length;
114 uint32_t buf_tail_idx;
115 uint32_t *p_buf_tail_idx;
116};
117
118/**
119 * struct wmi_debug_log_info - Meta data to hold information of all buffers
120 * used for WMI logging
121 * @wmi_command_log_buf_info - Buffer info for WMI Command log
122 * @wmi_command_tx_cmp_log_buf_info - Buffer info for WMI Command Tx completion
123 * log
124 * @wmi_event_log_buf_info - Buffer info for WMI Event log
125 * @wmi_rx_event_log_buf_info - Buffer info for WMI event received log
126 * @wmi_mgmt_command_log_buf_info - Buffer info for WMI Management Command log
127 * @wmi_mgmt_command_tx_cmp_log_buf_info - Buffer info for WMI Management
128 * Command Tx completion log
129 * @wmi_mgmt_event_log_buf_info - Buffer info for WMI Management event log
130 * @wmi_record_lock - Lock WMI recording
131 * @wmi_logging_enable - Enable/Disable state for WMI logging
132 * @buf_offset_command - Offset from where WMI command data should be logged
133 * @buf_offset_event - Offset from where WMI event data should be logged
134 * @is_management_record - Function refernce to check if command/event is
135 * management record
136 * @wmi_id_to_name - Function refernce to API to convert Command id to
137 * string name
138 * @wmi_log_debugfs_dir - refernce to debugfs directory
139 */
140struct wmi_debug_log_info {
141 struct wmi_log_buf_t wmi_command_log_buf_info;
142 struct wmi_log_buf_t wmi_command_tx_cmp_log_buf_info;
143
144 struct wmi_log_buf_t wmi_event_log_buf_info;
145 struct wmi_log_buf_t wmi_rx_event_log_buf_info;
146
147 struct wmi_log_buf_t wmi_mgmt_command_log_buf_info;
148 struct wmi_log_buf_t wmi_mgmt_command_tx_cmp_log_buf_info;
149 struct wmi_log_buf_t wmi_mgmt_event_log_buf_info;
150
151 qdf_spinlock_t wmi_record_lock;
152 bool wmi_logging_enable;
153 uint32_t buf_offset_command;
154 uint32_t buf_offset_event;
155 bool (*is_management_record)(uint32_t cmd_id);
156 uint8_t *(*wmi_id_to_name)(uint32_t cmd_id);
157 struct dentry *wmi_log_debugfs_dir;
158 uint8_t wmi_instance_id;
159};
160
Govind Singhd475ea92016-03-06 19:55:02 +0530161#endif /*WMI_INTERFACE_EVENT_LOGGING */
162
163#ifdef WLAN_OPEN_SOURCE
164struct fwdebug {
165 struct sk_buff_head fwlog_queue;
166 struct completion fwlog_completion;
167 A_BOOL fwlog_open;
168};
169#endif /* WLAN_OPEN_SOURCE */
170
Govind Singh3ddda1f2016-03-09 11:34:12 +0530171struct wmi_ops {
Govind Singhd7468a52016-03-09 14:32:57 +0530172QDF_STATUS (*send_vdev_create_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530173 uint8_t macaddr[IEEE80211_ADDR_LEN],
174 struct vdev_create_params *param);
175
Govind Singhd7468a52016-03-09 14:32:57 +0530176QDF_STATUS (*send_vdev_delete_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530177 uint8_t if_id);
178
Govind Singhd7468a52016-03-09 14:32:57 +0530179QDF_STATUS (*send_vdev_stop_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530180 uint8_t vdev_id);
181
Hanumanth Reddy Pothulac5c13212017-01-19 18:47:43 +0530182QDF_STATUS (*send_enable_broadcast_filter_cmd)(wmi_unified_t wmi_handle,
183 uint8_t vdev_id, bool enable);
184
Govind Singhd7468a52016-03-09 14:32:57 +0530185QDF_STATUS (*send_vdev_down_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530186 uint8_t vdev_id);
187
Himanshu Agarwal7e4f4bc2016-03-09 16:49:38 +0530188QDF_STATUS (*send_vdev_start_cmd)(wmi_unified_t wmi,
189 struct vdev_start_params *req);
190
191QDF_STATUS (*send_hidden_ssid_vdev_restart_cmd)(wmi_unified_t wmi_handle,
192 struct hidden_ssid_vdev_restart_params *restart_params);
193
Govind Singhd7468a52016-03-09 14:32:57 +0530194QDF_STATUS (*send_peer_flush_tids_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530195 uint8_t peer_addr[IEEE80211_ADDR_LEN],
196 struct peer_flush_params *param);
197
Govind Singhd7468a52016-03-09 14:32:57 +0530198QDF_STATUS (*send_peer_delete_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530199 uint8_t peer_addr[IEEE80211_ADDR_LEN],
200 uint8_t vdev_id);
201
Govind Singhd7468a52016-03-09 14:32:57 +0530202QDF_STATUS (*send_peer_param_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530203 uint8_t peer_addr[IEEE80211_ADDR_LEN],
204 struct peer_set_params *param);
205
Govind Singhd7468a52016-03-09 14:32:57 +0530206QDF_STATUS (*send_vdev_up_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530207 uint8_t bssid[IEEE80211_ADDR_LEN],
208 struct vdev_up_params *params);
209
Govind Singhd7468a52016-03-09 14:32:57 +0530210QDF_STATUS (*send_peer_create_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530211 struct peer_create_params *param);
212
Govind Singhd7468a52016-03-09 14:32:57 +0530213QDF_STATUS (*send_green_ap_ps_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530214 uint32_t value, uint8_t mac_id);
215
Govind Singhd7468a52016-03-09 14:32:57 +0530216QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530217(*send_pdev_utf_cmd)(wmi_unified_t wmi_handle,
218 struct pdev_utf_params *param,
219 uint8_t mac_id);
220
Govind Singhd7468a52016-03-09 14:32:57 +0530221QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530222(*send_pdev_param_cmd)(wmi_unified_t wmi_handle,
223 struct pdev_params *param,
224 uint8_t mac_id);
225
Govind Singhd7468a52016-03-09 14:32:57 +0530226QDF_STATUS (*send_suspend_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530227 struct suspend_params *param,
228 uint8_t mac_id);
229
Govind Singhd7468a52016-03-09 14:32:57 +0530230QDF_STATUS (*send_resume_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530231 uint8_t mac_id);
232
Govind Singhd7468a52016-03-09 14:32:57 +0530233QDF_STATUS (*send_wow_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530234 struct wow_cmd_params *param,
235 uint8_t mac_id);
236
Govind Singhd7468a52016-03-09 14:32:57 +0530237QDF_STATUS (*send_set_ap_ps_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530238 uint8_t *peer_addr,
239 struct ap_ps_params *param);
240
Govind Singhd7468a52016-03-09 14:32:57 +0530241QDF_STATUS (*send_set_sta_ps_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530242 struct sta_ps_params *param);
243
Govind Singhd7468a52016-03-09 14:32:57 +0530244QDF_STATUS (*send_crash_inject_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530245 struct crash_inject *param);
246
Govind Singhd7468a52016-03-09 14:32:57 +0530247QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530248(*send_dbglog_cmd)(wmi_unified_t wmi_handle,
249 struct dbglog_params *dbglog_param);
250
Govind Singhd7468a52016-03-09 14:32:57 +0530251QDF_STATUS (*send_vdev_set_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530252 struct vdev_set_params *param);
253
Govind Singhd7468a52016-03-09 14:32:57 +0530254QDF_STATUS (*send_stats_request_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530255 uint8_t macaddr[IEEE80211_ADDR_LEN],
256 struct stats_request_params *param);
257
Govind Singhfa201d92016-06-08 19:40:11 +0530258#ifdef CONFIG_WIN
Govind Singh89727882016-04-15 13:58:27 +0530259QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle,
260 WMI_HOST_PKTLOG_EVENT PKTLOG_EVENT);
261#else
Govind Singhd7468a52016-03-09 14:32:57 +0530262QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530263 uint8_t macaddr[IEEE80211_ADDR_LEN],
264 struct packet_enable_params *param);
Govind Singh89727882016-04-15 13:58:27 +0530265#endif
266
267QDF_STATUS (*send_packet_log_disable_cmd)(wmi_unified_t wmi_handle);
Govind Singh3ddda1f2016-03-09 11:34:12 +0530268
Govind Singhd7468a52016-03-09 14:32:57 +0530269QDF_STATUS (*send_beacon_send_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530270 struct beacon_params *param);
271
Govind Singh89727882016-04-15 13:58:27 +0530272QDF_STATUS (*send_beacon_tmpl_send_cmd)(wmi_unified_t wmi_handle,
273 struct beacon_tmpl_params *param);
274
Govind Singhd7468a52016-03-09 14:32:57 +0530275QDF_STATUS (*send_peer_assoc_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530276 struct peer_assoc_params *param);
277
Govind Singhd7468a52016-03-09 14:32:57 +0530278QDF_STATUS (*send_scan_start_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530279 struct scan_start_params *param);
280
Govind Singhd7468a52016-03-09 14:32:57 +0530281QDF_STATUS (*send_scan_stop_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530282 struct scan_stop_params *param);
283
Govind Singhd7468a52016-03-09 14:32:57 +0530284QDF_STATUS (*send_scan_chan_list_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530285 struct scan_chan_list_params *param);
Govind Singh50988cc2016-02-26 18:09:36 +0530286
Govind Singhd7468a52016-03-09 14:32:57 +0530287QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530288 struct wmi_mgmt_params *param);
289
Govind Singhd7468a52016-03-09 14:32:57 +0530290QDF_STATUS (*send_modem_power_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530291 uint32_t param_value);
292
Govind Singhd7468a52016-03-09 14:32:57 +0530293QDF_STATUS (*send_set_sta_ps_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530294 uint32_t vdev_id, uint8_t val);
295
Govind Singhd7468a52016-03-09 14:32:57 +0530296QDF_STATUS (*send_get_temperature_cmd)(wmi_unified_t wmi_handle);
Govind Singh50988cc2016-02-26 18:09:36 +0530297
Govind Singhd7468a52016-03-09 14:32:57 +0530298QDF_STATUS (*send_set_p2pgo_oppps_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530299 struct p2p_ps_params *oppps);
300
Govind Singhd7468a52016-03-09 14:32:57 +0530301QDF_STATUS (*send_set_p2pgo_noa_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530302 struct p2p_ps_params *noa);
303
Govind Singhd7468a52016-03-09 14:32:57 +0530304QDF_STATUS (*send_set_smps_params_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530305 uint8_t vdev_id,
306 int value);
Govind Singh50988cc2016-02-26 18:09:36 +0530307
Govind Singhd7468a52016-03-09 14:32:57 +0530308QDF_STATUS (*send_set_mimops_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530309 uint8_t vdev_id, int value);
310
Govind Singhd7468a52016-03-09 14:32:57 +0530311QDF_STATUS (*send_set_sta_uapsd_auto_trig_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530312 struct sta_uapsd_trig_params *param);
Govind Singhe7b800c2016-03-01 15:30:53 +0530313
Govind Singhd7468a52016-03-09 14:32:57 +0530314QDF_STATUS (*send_ocb_set_utc_time_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530315 struct ocb_utc_param *utc);
316
Govind Singhd7468a52016-03-09 14:32:57 +0530317QDF_STATUS (*send_ocb_get_tsf_timer_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530318 uint8_t vdev_id);
319
Govind Singhd7468a52016-03-09 14:32:57 +0530320QDF_STATUS (*send_ocb_start_timing_advert_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530321 struct ocb_timing_advert_param *timing_advert);
322
Govind Singhd7468a52016-03-09 14:32:57 +0530323QDF_STATUS (*send_ocb_stop_timing_advert_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530324 struct ocb_timing_advert_param *timing_advert);
325
Govind Singhd7468a52016-03-09 14:32:57 +0530326QDF_STATUS (*send_dcc_get_stats_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530327 struct dcc_get_stats_param *get_stats_param);
328
Govind Singhd7468a52016-03-09 14:32:57 +0530329QDF_STATUS (*send_dcc_clear_stats_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530330 uint32_t vdev_id, uint32_t dcc_stats_bitmap);
331
Govind Singhd7468a52016-03-09 14:32:57 +0530332QDF_STATUS (*send_dcc_update_ndl_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530333 struct dcc_update_ndl_param *update_ndl_param);
334
Govind Singhd7468a52016-03-09 14:32:57 +0530335QDF_STATUS (*send_ocb_set_config_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530336 struct ocb_config_param *config, uint32_t *ch_mhz);
Govind Singhae855362016-03-07 14:24:22 +0530337
Govind Singhd7468a52016-03-09 14:32:57 +0530338QDF_STATUS (*send_lro_config_cmd)(wmi_unified_t wmi_handle,
Govind Singh9bad0002016-03-01 15:54:59 +0530339 struct wmi_lro_config_cmd_t *wmi_lro_cmd);
340
Govind Singhd7468a52016-03-09 14:32:57 +0530341QDF_STATUS (*send_set_thermal_mgmt_cmd)(wmi_unified_t wmi_handle,
Govind Singh9bad0002016-03-01 15:54:59 +0530342 struct thermal_cmd_params *thermal_info);
343
Poddar, Siddarth794b9962016-04-28 15:49:11 +0530344QDF_STATUS (*send_peer_rate_report_cmd)(wmi_unified_t wmi_handle,
345 struct wmi_peer_rate_report_params *rate_report_params);
346
Govind Singhd7468a52016-03-09 14:32:57 +0530347QDF_STATUS (*send_set_mcc_channel_time_quota_cmd)
Govind Singh9bad0002016-03-01 15:54:59 +0530348 (wmi_unified_t wmi_handle,
349 uint32_t adapter_1_chan_freq,
350 uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq);
351
Govind Singhd7468a52016-03-09 14:32:57 +0530352QDF_STATUS (*send_set_mcc_channel_time_latency_cmd)
Govind Singh9bad0002016-03-01 15:54:59 +0530353 (wmi_unified_t wmi_handle,
354 uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency);
355
Govind Singhd7468a52016-03-09 14:32:57 +0530356QDF_STATUS (*send_set_enable_disable_mcc_adaptive_scheduler_cmd)(
Govind Singh608e8892016-04-16 19:24:23 -0700357 wmi_unified_t wmi_handle, uint32_t mcc_adaptive_scheduler,
358 uint32_t pdev_id);
Govind Singhae855362016-03-07 14:24:22 +0530359
Govind Singhd7468a52016-03-09 14:32:57 +0530360QDF_STATUS (*send_p2p_go_set_beacon_ie_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530361 A_UINT32 vdev_id, uint8_t *p2p_ie);
362
Govind Singhd7468a52016-03-09 14:32:57 +0530363QDF_STATUS (*send_probe_rsp_tmpl_send_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530364 uint8_t vdev_id,
365 struct wmi_probe_resp_params *probe_rsp_info,
366 uint8_t *frm);
367
Himanshu Agarwal9efd9bf2016-03-09 18:49:18 +0530368QDF_STATUS (*send_setup_install_key_cmd)(wmi_unified_t wmi_handle,
369 struct set_key_params *key_params);
370
Govind Singhd7468a52016-03-09 14:32:57 +0530371QDF_STATUS (*send_vdev_set_gtx_cfg_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530372 uint32_t if_id,
373 struct wmi_gtx_config *gtx_info);
374
Govind Singhd7468a52016-03-09 14:32:57 +0530375QDF_STATUS (*send_set_sta_keep_alive_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530376 struct sta_params *params);
377
Govind Singhd7468a52016-03-09 14:32:57 +0530378QDF_STATUS (*send_set_sta_sa_query_param_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530379 uint8_t vdev_id, uint32_t max_retries,
380 uint32_t retry_interval);
Govind Singhae855362016-03-07 14:24:22 +0530381
Govind Singhd7468a52016-03-09 14:32:57 +0530382QDF_STATUS (*send_set_gateway_params_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530383 struct gateway_update_req_param *req);
384
Govind Singhd7468a52016-03-09 14:32:57 +0530385QDF_STATUS (*send_set_rssi_monitoring_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530386 struct rssi_monitor_param *req);
387
Govind Singhd7468a52016-03-09 14:32:57 +0530388QDF_STATUS (*send_scan_probe_setoui_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530389 struct scan_mac_oui *psetoui);
390
Govind Singhd7468a52016-03-09 14:32:57 +0530391QDF_STATUS (*send_reset_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530392 struct wifi_passpoint_req_param *req);
Himanshu Agarwal5f2d0482016-03-09 15:25:44 +0530393
394QDF_STATUS (*send_roam_scan_offload_rssi_thresh_cmd)(wmi_unified_t wmi_handle,
395 struct roam_offload_scan_rssi_params *roam_req);
396
397QDF_STATUS (*send_roam_scan_filter_cmd)(wmi_unified_t wmi_handle,
398 struct roam_scan_filter_params *roam_req);
399
Govind Singhd7468a52016-03-09 14:32:57 +0530400QDF_STATUS (*send_set_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530401 struct wifi_passpoint_req_param *req);
402
Govind Singhd7468a52016-03-09 14:32:57 +0530403QDF_STATUS (*send_set_epno_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530404 struct wifi_enhanched_pno_params *req);
405
Govind Singhd7468a52016-03-09 14:32:57 +0530406QDF_STATUS (*send_extscan_get_capabilities_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530407 struct extscan_capabilities_params *pgetcapab);
408
Govind Singhd7468a52016-03-09 14:32:57 +0530409QDF_STATUS (*send_extscan_get_cached_results_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530410 struct extscan_cached_result_params *pcached_results);
411
Govind Singhd7468a52016-03-09 14:32:57 +0530412QDF_STATUS (*send_extscan_stop_change_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530413 struct extscan_capabilities_reset_params *reset_req);
414
Govind Singhd7468a52016-03-09 14:32:57 +0530415QDF_STATUS (*send_extscan_start_change_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530416 struct extscan_set_sig_changereq_params *
417 psigchange);
418
Govind Singhd7468a52016-03-09 14:32:57 +0530419QDF_STATUS (*send_extscan_stop_hotlist_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530420 struct extscan_bssid_hotlist_reset_params *photlist_reset);
421
Govind Singhd7468a52016-03-09 14:32:57 +0530422QDF_STATUS (*send_stop_extscan_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530423 struct extscan_stop_req_params *pstopcmd);
424
Govind Singhd7468a52016-03-09 14:32:57 +0530425QDF_STATUS (*send_start_extscan_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530426 struct wifi_scan_cmd_req_params *pstart);
427
Govind Singhd7468a52016-03-09 14:32:57 +0530428QDF_STATUS (*send_plm_stop_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530429 const struct plm_req_params *plm);
430
Govind Singh89727882016-04-15 13:58:27 +0530431
Govind Singhd7468a52016-03-09 14:32:57 +0530432QDF_STATUS (*send_plm_start_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530433 const struct plm_req_params *plm,
434 uint32_t *gchannel_list);
435
Govind Singhd7468a52016-03-09 14:32:57 +0530436QDF_STATUS (*send_csa_offload_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530437 uint8_t vdev_id);
438
Govind Singhd7468a52016-03-09 14:32:57 +0530439QDF_STATUS (*send_pno_stop_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singhae855362016-03-07 14:24:22 +0530440
Govind Singh89727882016-04-15 13:58:27 +0530441#ifdef FEATURE_WLAN_SCAN_PNO
Govind Singhd7468a52016-03-09 14:32:57 +0530442QDF_STATUS (*send_pno_start_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530443 struct pno_scan_req_params *pno,
444 uint32_t *gchannel_freq_list);
Govind Singh89727882016-04-15 13:58:27 +0530445#endif
Govind Singhae855362016-03-07 14:24:22 +0530446
Govind Singhd7468a52016-03-09 14:32:57 +0530447QDF_STATUS (*send_ipa_offload_control_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530448 struct ipa_offload_control_params *ipa_offload);
449
Govind Singhd7468a52016-03-09 14:32:57 +0530450QDF_STATUS (*send_set_ric_req_cmd)(wmi_unified_t wmi_handle, void *msg,
Govind Singhae855362016-03-07 14:24:22 +0530451 uint8_t is_add_ts);
452
Govind Singhd7468a52016-03-09 14:32:57 +0530453QDF_STATUS (*send_process_ll_stats_clear_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530454 (wmi_unified_t wmi_handle,
455 const struct ll_stats_clear_params *clear_req,
456 uint8_t addr[IEEE80211_ADDR_LEN]);
457
Govind Singhd7468a52016-03-09 14:32:57 +0530458QDF_STATUS (*send_process_ll_stats_set_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530459 (wmi_unified_t wmi_handle, const struct ll_stats_set_params *set_req);
460
Govind Singhd7468a52016-03-09 14:32:57 +0530461QDF_STATUS (*send_process_ll_stats_get_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530462 (wmi_unified_t wmi_handle, const struct ll_stats_get_params *get_req,
463 uint8_t addr[IEEE80211_ADDR_LEN]);
464
Govind Singhd7468a52016-03-09 14:32:57 +0530465QDF_STATUS (*send_get_stats_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530466 struct pe_stats_req *get_stats_param,
467 uint8_t addr[IEEE80211_ADDR_LEN]);
Govind Singh229bc0d2016-03-07 15:33:31 +0530468
Govind Singhd7468a52016-03-09 14:32:57 +0530469QDF_STATUS (*send_snr_request_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530470
Govind Singhd7468a52016-03-09 14:32:57 +0530471QDF_STATUS (*send_snr_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530472
Govind Singhd7468a52016-03-09 14:32:57 +0530473QDF_STATUS (*send_link_status_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530474 struct link_status_params *link_status);
Govind Singhfa201d92016-06-08 19:40:11 +0530475#ifdef CONFIG_MCL
Govind Singhd7468a52016-03-09 14:32:57 +0530476QDF_STATUS (*send_lphb_config_hbenable_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530477 wmi_hb_set_enable_cmd_fixed_param *params);
478
Govind Singhd7468a52016-03-09 14:32:57 +0530479QDF_STATUS (*send_lphb_config_tcp_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530480 wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req);
481
Govind Singhd7468a52016-03-09 14:32:57 +0530482QDF_STATUS (*send_lphb_config_tcp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530483 wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp);
484
Govind Singhd7468a52016-03-09 14:32:57 +0530485QDF_STATUS (*send_lphb_config_udp_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530486 wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req);
487
Govind Singhd7468a52016-03-09 14:32:57 +0530488QDF_STATUS (*send_lphb_config_udp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530489 wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req);
490
Govind Singhd7468a52016-03-09 14:32:57 +0530491QDF_STATUS (*send_process_dhcp_ind_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530492 wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind);
493
Govind Singhd7468a52016-03-09 14:32:57 +0530494QDF_STATUS (*send_get_link_speed_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530495 wmi_mac_addr peer_macaddr);
496
Govind Singhd7468a52016-03-09 14:32:57 +0530497QDF_STATUS (*send_egap_conf_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530498 wmi_ap_ps_egap_param_cmd_fixed_param *egap_params);
Govind Singhfa201d92016-06-08 19:40:11 +0530499
500QDF_STATUS (*send_process_update_edca_param_cmd)(wmi_unified_t wmi_handle,
501 uint8_t vdev_id,
502 wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]);
503
504QDF_STATUS (*send_bcn_buf_ll_cmd)(wmi_unified_t wmi_handle,
505 wmi_bcn_send_from_host_cmd_fixed_param * param);
506
507QDF_STATUS (*send_roam_scan_offload_mode_cmd)(wmi_unified_t wmi_handle,
508 wmi_start_scan_cmd_fixed_param * scan_cmd_fp,
509 struct roam_offload_scan_params *roam_req);
510
511QDF_STATUS (*send_roam_scan_offload_ap_profile_cmd)(wmi_unified_t wmi_handle,
512 wmi_ap_profile * ap_profile_p,
513 uint32_t vdev_id);
514
515QDF_STATUS (*send_pktlog_wmi_send_cmd)(wmi_unified_t wmi_handle,
516 WMI_PKTLOG_EVENT pktlog_event,
Nirav Shah9d1f1ac2016-07-27 19:06:13 +0530517 WMI_CMD_ID cmd_id, uint8_t user_triggered);
Govind Singh89727882016-04-15 13:58:27 +0530518#endif
Govind Singh229bc0d2016-03-07 15:33:31 +0530519
Paul Zhanga9ec9432017-01-04 16:45:42 +0800520QDF_STATUS (*send_action_frame_patterns_cmd)(wmi_unified_t wmi_handle,
521 struct action_wakeup_set_param *action_params);
522
Govind Singhd7468a52016-03-09 14:32:57 +0530523QDF_STATUS (*send_fw_profiling_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530524 uint32_t cmd, uint32_t value1, uint32_t value2);
525
Govind Singhd7468a52016-03-09 14:32:57 +0530526QDF_STATUS (*send_wow_sta_ra_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530527 uint8_t vdev_id, uint8_t default_pattern,
528 uint16_t rate_limit_interval);
529
Govind Singhd7468a52016-03-09 14:32:57 +0530530QDF_STATUS (*send_nat_keepalive_en_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530531
Govind Singhd7468a52016-03-09 14:32:57 +0530532QDF_STATUS (*send_start_oem_data_cmd)(wmi_unified_t wmi_handle,
Krishna Kumaar Natarajan7a59ca02016-07-21 15:02:44 -0700533 uint32_t data_len,
Govind Singh229bc0d2016-03-07 15:33:31 +0530534 uint8_t *data);
535
Govind Singhd7468a52016-03-09 14:32:57 +0530536QDF_STATUS
Govind Singh229bc0d2016-03-07 15:33:31 +0530537(*send_dfs_phyerr_filter_offload_en_cmd)(wmi_unified_t wmi_handle,
538 bool dfs_phyerr_filter_offload);
Govind Singh229bc0d2016-03-07 15:33:31 +0530539
Govind Singhd7468a52016-03-09 14:32:57 +0530540QDF_STATUS (*send_add_wow_wakeup_event_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530541 uint32_t vdev_id,
542 uint32_t bitmap,
543 bool enable);
544
Govind Singhd7468a52016-03-09 14:32:57 +0530545QDF_STATUS (*send_wow_patterns_to_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530546 uint8_t vdev_id, uint8_t ptrn_id,
547 const uint8_t *ptrn, uint8_t ptrn_len,
548 uint8_t ptrn_offset, const uint8_t *mask,
549 uint8_t mask_len, bool user,
550 uint8_t default_patterns);
551
Govind Singhd7468a52016-03-09 14:32:57 +0530552QDF_STATUS (*send_wow_delete_pattern_cmd)(wmi_unified_t wmi_handle, uint8_t ptrn_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530553 uint8_t vdev_id);
554
Govind Singhd7468a52016-03-09 14:32:57 +0530555QDF_STATUS (*send_host_wakeup_ind_to_fw_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530556
Govind Singhd7468a52016-03-09 14:32:57 +0530557QDF_STATUS (*send_del_ts_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530558 uint8_t ac);
559
Govind Singhd7468a52016-03-09 14:32:57 +0530560QDF_STATUS (*send_aggr_qos_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530561 struct aggr_add_ts_param *aggr_qos_rsp_msg);
562
Govind Singhd7468a52016-03-09 14:32:57 +0530563QDF_STATUS (*send_add_ts_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530564 struct add_ts_param *msg);
565
Govind Singhd7468a52016-03-09 14:32:57 +0530566QDF_STATUS (*send_enable_disable_packet_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530567 uint8_t vdev_id, bool enable);
568
Govind Singhd7468a52016-03-09 14:32:57 +0530569QDF_STATUS (*send_config_packet_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530570 uint8_t vdev_id, struct rcv_pkt_filter_config *rcv_filter_param,
571 uint8_t filter_id, bool enable);
572
Govind Singhd7468a52016-03-09 14:32:57 +0530573QDF_STATUS (*send_add_clear_mcbc_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530574 uint8_t vdev_id,
Govind Singhd7468a52016-03-09 14:32:57 +0530575 struct qdf_mac_addr multicast_addr,
Govind Singh229bc0d2016-03-07 15:33:31 +0530576 bool clearList);
577
Govind Singhd7468a52016-03-09 14:32:57 +0530578QDF_STATUS (*send_gtk_offload_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530579 struct gtk_offload_params *params,
580 bool enable_offload,
581 uint32_t gtk_offload_opcode);
582
Govind Singhd7468a52016-03-09 14:32:57 +0530583QDF_STATUS (*send_process_gtk_offload_getinfo_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530584 uint8_t vdev_id,
585 uint64_t offload_req_opcode);
586
Govind Singhd7468a52016-03-09 14:32:57 +0530587QDF_STATUS (*send_process_add_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530588 struct periodic_tx_pattern *
589 pAddPeriodicTxPtrnParams,
590 uint8_t vdev_id);
591
Govind Singhd7468a52016-03-09 14:32:57 +0530592QDF_STATUS (*send_process_del_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530593 uint8_t vdev_id,
594 uint8_t pattern_id);
595
Govind Singhd7468a52016-03-09 14:32:57 +0530596QDF_STATUS (*send_stats_ext_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530597 struct stats_ext_params *preq);
598
Govind Singhd7468a52016-03-09 14:32:57 +0530599QDF_STATUS (*send_enable_ext_wow_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530600 struct ext_wow_params *params);
601
Govind Singhd7468a52016-03-09 14:32:57 +0530602QDF_STATUS (*send_set_app_type2_params_in_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530603 struct app_type2_params *appType2Params);
604
Govind Singhd7468a52016-03-09 14:32:57 +0530605QDF_STATUS (*send_set_auto_shutdown_timer_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530606 uint32_t timer_val);
607
Govind Singhd7468a52016-03-09 14:32:57 +0530608QDF_STATUS (*send_nan_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530609 struct nan_req_params *nan_req);
610
Govind Singhd7468a52016-03-09 14:32:57 +0530611QDF_STATUS (*send_process_dhcpserver_offload_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530612 struct dhcp_offload_info_params *pDhcpSrvOffloadInfo);
613
Govind Singhd7468a52016-03-09 14:32:57 +0530614QDF_STATUS (*send_process_ch_avoid_update_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530615
Govind Singhd7468a52016-03-09 14:32:57 +0530616QDF_STATUS (*send_regdomain_info_to_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530617 uint32_t reg_dmn, uint16_t regdmn2G,
618 uint16_t regdmn5G, int8_t ctl2G,
619 int8_t ctl5G);
620
Govind Singhd7468a52016-03-09 14:32:57 +0530621QDF_STATUS (*send_set_tdls_offchan_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530622 struct tdls_channel_switch_params *chan_switch_params);
623
Govind Singhd7468a52016-03-09 14:32:57 +0530624QDF_STATUS (*send_update_fw_tdls_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530625 void *tdls_param, uint8_t tdls_state);
626
Govind Singhd7468a52016-03-09 14:32:57 +0530627QDF_STATUS (*send_update_tdls_peer_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530628 struct tdls_peer_state_params *peerStateParams,
629 uint32_t *ch_mhz);
630
631
Govind Singhd7468a52016-03-09 14:32:57 +0530632QDF_STATUS (*send_process_fw_mem_dump_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530633 struct fw_dump_req_param *mem_dump_req);
634
Govind Singhd7468a52016-03-09 14:32:57 +0530635QDF_STATUS (*send_process_set_ie_info_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530636 struct vdev_ie_info_param *ie_info);
Govind Singh71ee2d72016-03-07 16:30:32 +0530637
Himanshu Agarwal56c292f2016-07-19 15:41:51 +0530638#ifdef CONFIG_MCL
Govind Singhd7468a52016-03-09 14:32:57 +0530639QDF_STATUS (*send_init_cmd)(wmi_unified_t wmi_handle,
Govind Singh71ee2d72016-03-07 16:30:32 +0530640 wmi_resource_config *res_cfg,
641 uint8_t num_mem_chunks, struct wmi_host_mem_chunk *mem_chunk,
642 bool action);
Himanshu Agarwal56c292f2016-07-19 15:41:51 +0530643#endif
Govind Singh71ee2d72016-03-07 16:30:32 +0530644
Govind Singhd7468a52016-03-09 14:32:57 +0530645QDF_STATUS (*save_fw_version_cmd)(wmi_unified_t wmi_handle, void *evt_buf);
Govind Singh71ee2d72016-03-07 16:30:32 +0530646
Govind Singhd7468a52016-03-09 14:32:57 +0530647QDF_STATUS (*check_and_update_fw_version_cmd)(wmi_unified_t wmi_hdl, void *ev);
Govind Singh71ee2d72016-03-07 16:30:32 +0530648
Govind Singhd7468a52016-03-09 14:32:57 +0530649QDF_STATUS (*send_saved_init_cmd)(wmi_unified_t wmi_handle);
Govind Singh2ae94372016-03-07 16:45:38 +0530650
Govind Singhd7468a52016-03-09 14:32:57 +0530651QDF_STATUS (*send_set_base_macaddr_indicate_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530652 uint8_t *custom_addr);
653
Govind Singhd7468a52016-03-09 14:32:57 +0530654QDF_STATUS (*send_log_supported_evt_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530655 uint8_t *event,
656 uint32_t len);
657
Govind Singhd7468a52016-03-09 14:32:57 +0530658QDF_STATUS (*send_enable_specific_fw_logs_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530659 struct wmi_wifi_start_log *start_log);
660
Govind Singhd7468a52016-03-09 14:32:57 +0530661QDF_STATUS (*send_flush_logs_to_fw_cmd)(wmi_unified_t wmi_handle);
Govind Singh2ae94372016-03-07 16:45:38 +0530662
Manishekar Chandrasekaranb8c59382016-04-21 19:16:32 +0530663QDF_STATUS (*send_pdev_set_pcl_cmd)(wmi_unified_t wmi_handle,
664 struct wmi_pcl_chan_weights *msg);
Govind Singh2ae94372016-03-07 16:45:38 +0530665
Manishekar Chandrasekaran68430d32016-04-27 12:29:16 +0530666QDF_STATUS (*send_pdev_set_hw_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530667 uint32_t hw_mode_index);
668
Manishekar Chandrasekaran81d7aaa2016-04-27 12:52:51 +0530669QDF_STATUS (*send_pdev_set_dual_mac_config_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530670 struct wmi_dual_mac_config *msg);
671
Govind Singhd7468a52016-03-09 14:32:57 +0530672QDF_STATUS (*send_enable_arp_ns_offload_cmd)(wmi_unified_t wmi_handle,
Mukul Sharmaac755cd2016-09-07 20:31:47 +0530673 struct host_offload_req_param *arp_offload_req,
674 struct host_offload_req_param *ns_offload_req,
675 bool arp_only,
Govind Singh2ae94372016-03-07 16:45:38 +0530676 uint8_t vdev_id);
677
Govind Singhd7468a52016-03-09 14:32:57 +0530678QDF_STATUS (*send_set_led_flashing_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530679 struct flashing_req_params *flashing);
680
Govind Singhd7468a52016-03-09 14:32:57 +0530681QDF_STATUS (*send_app_type1_params_in_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530682 struct app_type1_params *app_type1_params);
683
Govind Singhd7468a52016-03-09 14:32:57 +0530684QDF_STATUS (*send_set_ssid_hotlist_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530685 struct ssid_hotlist_request_params *request);
686
Govind Singhd7468a52016-03-09 14:32:57 +0530687QDF_STATUS (*send_process_roam_synch_complete_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530688 uint8_t vdev_id);
689
Govind Singhd7468a52016-03-09 14:32:57 +0530690QDF_STATUS (*send_unit_test_cmd)(wmi_unified_t wmi_handle,
Anurag Chouhan4d41be72016-07-22 20:19:54 +0530691 struct wmi_unit_test_cmd *wmi_utest);
Govind Singh2ae94372016-03-07 16:45:38 +0530692
Govind Singhd7468a52016-03-09 14:32:57 +0530693QDF_STATUS (*send_roam_invoke_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530694 struct wmi_roam_invoke_cmd *roaminvoke,
695 uint32_t ch_hz);
696
Govind Singhd7468a52016-03-09 14:32:57 +0530697QDF_STATUS (*send_roam_scan_offload_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530698 uint32_t command, uint32_t vdev_id);
Govind Singh2ae94372016-03-07 16:45:38 +0530699
Govind Singhd7468a52016-03-09 14:32:57 +0530700QDF_STATUS (*send_roam_scan_offload_scan_period_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530701 uint32_t scan_period,
702 uint32_t scan_age,
703 uint32_t vdev_id);
704
Govind Singhd7468a52016-03-09 14:32:57 +0530705QDF_STATUS (*send_roam_scan_offload_chan_list_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530706 uint8_t chan_count,
Varun Reddy Yeturub47fa402016-07-07 17:42:49 -0700707 uint32_t *chan_list,
Govind Singh2ae94372016-03-07 16:45:38 +0530708 uint8_t list_type, uint32_t vdev_id);
709
Govind Singhd7468a52016-03-09 14:32:57 +0530710QDF_STATUS (*send_roam_scan_offload_rssi_change_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530711 uint32_t vdev_id,
712 int32_t rssi_change_thresh,
713 uint32_t bcn_rssi_weight,
714 uint32_t hirssi_delay_btw_scans);
715
Govind Singhd7468a52016-03-09 14:32:57 +0530716QDF_STATUS (*send_get_buf_extscan_hotlist_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530717 struct ext_scan_setbssi_hotlist_params *
718 photlist, int *buf_len);
Govind Singh89727882016-04-15 13:58:27 +0530719
720QDF_STATUS (*send_pdev_get_tpc_config_cmd)(wmi_unified_t wmi_handle,
721 uint32_t param);
722
Sathish Kumar50232d72016-08-09 16:50:46 +0530723QDF_STATUS (*send_set_bwf_cmd)(wmi_unified_t wmi_handle,
724 struct set_bwf_params *param);
725
Govind Singh89727882016-04-15 13:58:27 +0530726QDF_STATUS (*send_set_atf_cmd)(wmi_unified_t wmi_handle,
727 struct set_atf_params *param);
728
729QDF_STATUS (*send_pdev_fips_cmd)(wmi_unified_t wmi_handle,
730 struct fips_params *param);
731
732QDF_STATUS (*send_wlan_profile_enable_cmd)(wmi_unified_t wmi_handle,
733 struct wlan_profile_params *param);
734
735QDF_STATUS (*send_wlan_profile_trigger_cmd)(wmi_unified_t wmi_handle,
736 struct wlan_profile_params *param);
737
738QDF_STATUS (*send_pdev_set_chan_cmd)(wmi_unified_t wmi_handle,
739 struct channel_param *param);
740
741QDF_STATUS (*send_set_ht_ie_cmd)(wmi_unified_t wmi_handle,
742 struct ht_ie_params *param);
743
744QDF_STATUS (*send_set_vht_ie_cmd)(wmi_unified_t wmi_handle,
745 struct vht_ie_params *param);
746
747QDF_STATUS (*send_wmm_update_cmd)(wmi_unified_t wmi_handle,
748 struct wmm_update_params *param);
749
750QDF_STATUS (*send_set_ant_switch_tbl_cmd)(wmi_unified_t wmi_handle,
751 struct ant_switch_tbl_params *param);
752
753QDF_STATUS (*send_set_ratepwr_table_cmd)(wmi_unified_t wmi_handle,
754 struct ratepwr_table_params *param);
755
756QDF_STATUS (*send_get_ratepwr_table_cmd)(wmi_unified_t wmi_handle);
757
758QDF_STATUS (*send_set_ctl_table_cmd)(wmi_unified_t wmi_handle,
759 struct ctl_table_params *param);
760
761QDF_STATUS (*send_set_mimogain_table_cmd)(wmi_unified_t wmi_handle,
762 struct mimogain_table_params *param);
763
764QDF_STATUS (*send_set_ratepwr_chainmsk_cmd)(wmi_unified_t wmi_handle,
765 struct ratepwr_chainmsk_params *param);
766
767QDF_STATUS (*send_set_macaddr_cmd)(wmi_unified_t wmi_handle,
768 struct macaddr_params *param);
769
770QDF_STATUS (*send_pdev_scan_start_cmd)(wmi_unified_t wmi_handle);
771
772QDF_STATUS (*send_pdev_scan_end_cmd)(wmi_unified_t wmi_handle);
773
774QDF_STATUS (*send_set_acparams_cmd)(wmi_unified_t wmi_handle,
775 struct acparams_params *param);
776
777QDF_STATUS (*send_set_vap_dscp_tid_map_cmd)(wmi_unified_t wmi_handle,
778 struct vap_dscp_tid_map_params *param);
779
780QDF_STATUS (*send_proxy_ast_reserve_cmd)(wmi_unified_t wmi_handle,
781 struct proxy_ast_reserve_params *param);
782
783QDF_STATUS (*send_pdev_qvit_cmd)(wmi_unified_t wmi_handle,
784 struct pdev_qvit_params *param);
785
786QDF_STATUS (*send_mcast_group_update_cmd)(wmi_unified_t wmi_handle,
787 struct mcast_group_update_params *param);
788
789QDF_STATUS (*send_peer_add_wds_entry_cmd)(wmi_unified_t wmi_handle,
790 struct peer_add_wds_entry_params *param);
791
792QDF_STATUS (*send_peer_del_wds_entry_cmd)(wmi_unified_t wmi_handle,
793 struct peer_del_wds_entry_params *param);
794
795QDF_STATUS (*send_peer_update_wds_entry_cmd)(wmi_unified_t wmi_handle,
796 struct peer_update_wds_entry_params *param);
797
798QDF_STATUS (*send_phyerr_enable_cmd)(wmi_unified_t wmi_handle);
799
800QDF_STATUS (*send_phyerr_disable_cmd)(wmi_unified_t wmi_handle);
801
802QDF_STATUS (*send_smart_ant_enable_cmd)(wmi_unified_t wmi_handle,
803 struct smart_ant_enable_params *param);
804
805QDF_STATUS (*send_smart_ant_set_rx_ant_cmd)(wmi_unified_t wmi_handle,
806 struct smart_ant_rx_ant_params *param);
807
808QDF_STATUS (*send_smart_ant_set_tx_ant_cmd)(wmi_unified_t wmi_handle,
809 uint8_t macaddr[IEEE80211_ADDR_LEN],
810 struct smart_ant_tx_ant_params *param);
811
812QDF_STATUS (*send_smart_ant_set_training_info_cmd)(wmi_unified_t wmi_handle,
813 uint8_t macaddr[IEEE80211_ADDR_LEN],
814 struct smart_ant_training_info_params *param);
815
816QDF_STATUS (*send_smart_ant_set_node_config_cmd)(wmi_unified_t wmi_handle,
817 uint8_t macaddr[IEEE80211_ADDR_LEN],
818 struct smart_ant_node_config_params *param);
819
820QDF_STATUS (*send_smart_ant_enable_tx_feedback_cmd)(wmi_unified_t wmi_handle,
821 struct smart_ant_enable_tx_feedback_params *param);
822
823QDF_STATUS (*send_vdev_spectral_configure_cmd)(wmi_unified_t wmi_handle,
824 struct vdev_spectral_configure_params *param);
825
826QDF_STATUS (*send_vdev_spectral_enable_cmd)(wmi_unified_t wmi_handle,
827 struct vdev_spectral_enable_params *param);
828
829QDF_STATUS (*send_bss_chan_info_request_cmd)(wmi_unified_t wmi_handle,
830 struct bss_chan_info_request_params *param);
831
832QDF_STATUS (*send_thermal_mitigation_param_cmd)(wmi_unified_t wmi_handle,
833 struct thermal_mitigation_params *param);
834
835QDF_STATUS (*send_vdev_set_neighbour_rx_cmd)(wmi_unified_t wmi_handle,
836 uint8_t macaddr[IEEE80211_ADDR_LEN],
837 struct set_neighbour_rx_params *param);
838
839QDF_STATUS (*send_vdev_set_fwtest_param_cmd)(wmi_unified_t wmi_handle,
840 struct set_fwtest_params *param);
841
842QDF_STATUS (*send_vdev_config_ratemask_cmd)(wmi_unified_t wmi_handle,
843 struct config_ratemask_params *param);
844
Govind Singh89727882016-04-15 13:58:27 +0530845
846QDF_STATUS (*send_wow_wakeup_cmd)(wmi_unified_t wmi_handle);
847
848QDF_STATUS (*send_wow_add_wakeup_event_cmd)(wmi_unified_t wmi_handle,
849 struct wow_add_wakeup_params *param);
850
851QDF_STATUS (*send_wow_add_wakeup_pattern_cmd)(wmi_unified_t wmi_handle,
852 struct wow_add_wakeup_pattern_params *param);
853
854QDF_STATUS (*send_wow_remove_wakeup_pattern_cmd)(wmi_unified_t wmi_handle,
855 struct wow_remove_wakeup_pattern_params *param);
856
857QDF_STATUS (*send_pdev_set_regdomain_cmd)(wmi_unified_t wmi_handle,
858 struct pdev_set_regdomain_params *param);
859
860QDF_STATUS (*send_set_quiet_mode_cmd)(wmi_unified_t wmi_handle,
861 struct set_quiet_mode_params *param);
862
863QDF_STATUS (*send_set_beacon_filter_cmd)(wmi_unified_t wmi_handle,
864 struct set_beacon_filter_params *param);
865
866QDF_STATUS (*send_remove_beacon_filter_cmd)(wmi_unified_t wmi_handle,
867 struct remove_beacon_filter_params *param);
868/*
869QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
870 uint8_t macaddr[IEEE80211_ADDR_LEN],
871 struct mgmt_params *param);
872 */
873
874QDF_STATUS (*send_addba_clearresponse_cmd)(wmi_unified_t wmi_handle,
875 uint8_t macaddr[IEEE80211_ADDR_LEN],
876 struct addba_clearresponse_params *param);
877
878QDF_STATUS (*send_addba_send_cmd)(wmi_unified_t wmi_handle,
879 uint8_t macaddr[IEEE80211_ADDR_LEN],
880 struct addba_send_params *param);
881
882QDF_STATUS (*send_delba_send_cmd)(wmi_unified_t wmi_handle,
883 uint8_t macaddr[IEEE80211_ADDR_LEN],
884 struct delba_send_params *param);
885
886QDF_STATUS (*send_addba_setresponse_cmd)(wmi_unified_t wmi_handle,
887 uint8_t macaddr[IEEE80211_ADDR_LEN],
888 struct addba_setresponse_params *param);
889
890QDF_STATUS (*send_singleamsdu_cmd)(wmi_unified_t wmi_handle,
891 uint8_t macaddr[IEEE80211_ADDR_LEN],
892 struct singleamsdu_params *param);
893
894QDF_STATUS (*send_set_qboost_param_cmd)(wmi_unified_t wmi_handle,
895 uint8_t macaddr[IEEE80211_ADDR_LEN],
896 struct set_qboost_params *param);
897
898QDF_STATUS (*send_mu_scan_cmd)(wmi_unified_t wmi_handle,
899 struct mu_scan_params *param);
900
901QDF_STATUS (*send_lteu_config_cmd)(wmi_unified_t wmi_handle,
902 struct lteu_config_params *param);
903
904QDF_STATUS (*send_set_ps_mode_cmd)(wmi_unified_t wmi_handle,
905 struct set_ps_mode_params *param);
906void (*save_service_bitmap)(wmi_unified_t wmi_handle,
907 void *evt_buf);
908bool (*is_service_enabled)(wmi_unified_t wmi_handle,
909 uint32_t service_id);
910QDF_STATUS (*get_target_cap_from_service_ready)(wmi_unified_t wmi_handle,
911 void *evt_buf, target_capability_info *ev);
912
913QDF_STATUS (*extract_fw_version)(wmi_unified_t wmi_handle,
914 void *ev, struct wmi_host_fw_ver *fw_ver);
915
916QDF_STATUS (*extract_fw_abi_version)(wmi_unified_t wmi_handle,
917 void *ev, struct wmi_host_fw_abi_ver *fw_ver);
918
919QDF_STATUS (*extract_hal_reg_cap)(wmi_unified_t wmi_handle, void *evt_buf,
920 TARGET_HAL_REG_CAPABILITIES *hal_reg_cap);
921
922host_mem_req * (*extract_host_mem_req)(wmi_unified_t wmi_handle,
923 void *evt_buf, uint8_t *num_entries);
924
925QDF_STATUS (*init_cmd_send)(wmi_unified_t wmi_handle,
926 target_resource_config *res_cfg,
927 uint8_t num_mem_chunks,
928 struct wmi_host_mem_chunk *mem_chunk);
929
930QDF_STATUS (*save_fw_version)(wmi_unified_t wmi_handle, void *evt_buf);
931uint32_t (*ready_extract_init_status)(wmi_unified_t wmi_hdl, void *ev);
932QDF_STATUS (*ready_extract_mac_addr)(wmi_unified_t wmi_hdl, void *ev,
933 uint8_t *macaddr);
934QDF_STATUS (*check_and_update_fw_version)(wmi_unified_t wmi_hdl, void *ev);
935uint8_t* (*extract_dbglog_data_len)(wmi_unified_t wmi_handle, void *evt_buf,
936 uint16_t *len);
937QDF_STATUS (*send_ext_resource_config)(wmi_unified_t wmi_handle,
938 wmi_host_ext_resource_config *ext_cfg);
939
940QDF_STATUS (*send_nf_dbr_dbm_info_get_cmd)(wmi_unified_t wmi_handle);
941
942QDF_STATUS (*send_packet_power_info_get_cmd)(wmi_unified_t wmi_handle,
943 struct packet_power_info_params *param);
944
945QDF_STATUS (*send_gpio_config_cmd)(wmi_unified_t wmi_handle,
946 struct gpio_config_params *param);
947
948QDF_STATUS (*send_gpio_output_cmd)(wmi_unified_t wmi_handle,
949 struct gpio_output_params *param);
950
951QDF_STATUS (*send_rtt_meas_req_test_cmd)(wmi_unified_t wmi_handle,
952 struct rtt_meas_req_test_params *param);
953
954QDF_STATUS (*send_rtt_meas_req_cmd)(wmi_unified_t wmi_handle,
955 struct rtt_meas_req_params *param);
956
957QDF_STATUS (*send_rtt_keepalive_req_cmd)(wmi_unified_t wmi_handle,
958 struct rtt_keepalive_req_params *param);
959
960QDF_STATUS (*send_lci_set_cmd)(wmi_unified_t wmi_handle,
961 struct lci_set_params *param);
962
963QDF_STATUS (*send_lcr_set_cmd)(wmi_unified_t wmi_handle,
964 struct lcr_set_params *param);
965
966QDF_STATUS (*send_periodic_chan_stats_config_cmd)(wmi_unified_t wmi_handle,
967 struct periodic_chan_stats_params *param);
968
969QDF_STATUS
970(*send_atf_peer_request_cmd)(wmi_unified_t wmi_handle,
971 struct atf_peer_request_params *param);
972
973QDF_STATUS
974(*send_set_atf_grouping_cmd)(wmi_unified_t wmi_handle,
975 struct atf_grouping_params *param);
976
Sathish Kumar7e2eaed2016-11-14 17:44:29 +0530977QDF_STATUS (*send_get_user_position_cmd)(wmi_unified_t wmi_handle,
978 uint32_t value);
979
980QDF_STATUS
981(*send_reset_peer_mumimo_tx_count_cmd)(wmi_unified_t wmi_handle,
982 uint32_t value);
983
984QDF_STATUS (*send_get_peer_mumimo_tx_count_cmd)(wmi_unified_t wmi_handle,
985 uint32_t value);
986
987QDF_STATUS
988(*send_pdev_caldata_version_check_cmd)(wmi_unified_t wmi_handle,
989 uint32_t value);
990
991QDF_STATUS
Sathish Kumar7e566c52016-11-10 15:30:22 +0530992(*send_btcoex_wlan_priority_cmd)(wmi_unified_t wmi_handle,
993 struct btcoex_cfg_params *param);
994
995QDF_STATUS
996(*send_btcoex_duty_cycle_cmd)(wmi_unified_t wmi_handle,
997 struct btcoex_cfg_params *param);
Sathish Kumar7e2eaed2016-11-14 17:44:29 +0530998
Govind Singh89727882016-04-15 13:58:27 +0530999QDF_STATUS (*extract_wds_addr_event)(wmi_unified_t wmi_handle,
1000 void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);
1001
1002QDF_STATUS (*extract_dcs_interference_type)(wmi_unified_t wmi_handle,
Kiran Venkatappa9b7a9592016-12-29 18:09:32 +05301003 void *evt_buf, struct wmi_host_dcs_interference_param *param);
Govind Singh89727882016-04-15 13:58:27 +05301004
1005QDF_STATUS (*extract_dcs_cw_int)(wmi_unified_t wmi_handle, void *evt_buf,
1006 wmi_host_ath_dcs_cw_int *cw_int);
1007
1008QDF_STATUS (*extract_dcs_im_tgt_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1009 wmi_host_dcs_im_tgt_stats_t *wlan_stat);
1010
Govind Singh89727882016-04-15 13:58:27 +05301011QDF_STATUS (*extract_fips_event_data)(wmi_unified_t wmi_handle,
Kiran Venkatappa9f5fcc02016-12-29 22:07:14 +05301012 void *evt_buf, struct wmi_host_fips_event_param *param);
1013
Govind Singh89727882016-04-15 13:58:27 +05301014QDF_STATUS (*extract_vdev_start_resp)(wmi_unified_t wmi_handle, void *evt_buf,
1015 wmi_host_vdev_start_resp *vdev_rsp);
1016
1017QDF_STATUS (*extract_tbttoffset_update_params)(void *wmi_hdl, void *evt_buf,
1018 uint32_t *vdev_map, uint32_t **tbttoffset_list);
1019
1020QDF_STATUS (*extract_mgmt_rx_params)(wmi_unified_t wmi_handle, void *evt_buf,
1021 wmi_host_mgmt_rx_hdr *hdr, uint8_t **bufp);
1022
1023QDF_STATUS (*extract_vdev_stopped_param)(wmi_unified_t wmi_handle,
1024 void *evt_buf, uint32_t *vdev_id);
1025
1026QDF_STATUS (*extract_vdev_roam_param)(wmi_unified_t wmi_handle, void *evt_buf,
1027 wmi_host_roam_event *param);
1028
1029QDF_STATUS (*extract_vdev_scan_ev_param)(wmi_unified_t wmi_handle,
1030 void *evt_buf, wmi_host_scan_event *param);
1031
1032QDF_STATUS (*extract_mu_ev_param)(wmi_unified_t wmi_handle, void *evt_buf,
1033 wmi_host_mu_report_event *param);
1034
Sathish Kumar7e2eaed2016-11-14 17:44:29 +05301035QDF_STATUS (*extract_mu_db_entry)(wmi_unified_t wmi_hdl, void *evt_buf,
1036 uint8_t idx, wmi_host_mu_db_entry *param);
1037
1038QDF_STATUS (*extract_mumimo_tx_count_ev_param)(wmi_unified_t wmi_handle,
1039 void *evt_buf, wmi_host_peer_txmu_cnt_event *param);
1040
1041QDF_STATUS (*extract_peer_gid_userpos_list_ev_param)(wmi_unified_t wmi_handle,
1042 void *evt_buf, wmi_host_peer_gid_userpos_list_event *param);
1043
1044QDF_STATUS (*extract_pdev_caldata_version_check_ev_param)(
1045 wmi_unified_t wmi_handle,
1046 void *evt_buf, wmi_host_pdev_check_cal_version_event *param);
1047
Govind Singh89727882016-04-15 13:58:27 +05301048QDF_STATUS (*extract_pdev_tpc_config_ev_param)(wmi_unified_t wmi_handle,
1049 void *evt_buf, wmi_host_pdev_tpc_config_event *param);
1050
1051QDF_STATUS (*extract_gpio_input_ev_param)(wmi_unified_t wmi_handle,
1052 void *evt_buf, uint32_t *gpio_num);
1053
1054QDF_STATUS (*extract_pdev_reserve_ast_ev_param)(wmi_unified_t wmi_handle,
1055 void *evt_buf, uint32_t *result);
1056
1057QDF_STATUS (*extract_nfcal_power_ev_param)(wmi_unified_t wmi_handle,
1058 void *evt_buf,
1059 wmi_host_pdev_nfcal_power_all_channels_event *param);
1060
1061QDF_STATUS (*extract_pdev_tpc_ev_param)(wmi_unified_t wmi_handle,
1062 void *evt_buf, wmi_host_pdev_tpc_event *param);
1063
1064QDF_STATUS (*extract_pdev_generic_buffer_ev_param)(wmi_unified_t wmi_handle,
1065 void *evt_buf, wmi_host_pdev_generic_buffer_event *param);
1066
1067QDF_STATUS (*extract_mgmt_tx_compl_param)(wmi_unified_t wmi_handle,
1068 void *evt_buf, wmi_host_mgmt_tx_compl_event *param);
1069
1070QDF_STATUS (*extract_swba_vdev_map)(wmi_unified_t wmi_handle, void *evt_buf,
1071 uint32_t *vdev_map);
1072
1073QDF_STATUS (*extract_swba_tim_info)(wmi_unified_t wmi_handle, void *evt_buf,
1074 uint32_t idx, wmi_host_tim_info *tim_info);
1075
1076QDF_STATUS (*extract_swba_noa_info)(wmi_unified_t wmi_handle, void *evt_buf,
1077 uint32_t idx, wmi_host_p2p_noa_info *p2p_desc);
1078
1079QDF_STATUS (*extract_peer_sta_ps_statechange_ev)(wmi_unified_t wmi_handle,
1080 void *evt_buf, wmi_host_peer_sta_ps_statechange_event *ev);
1081
1082QDF_STATUS (*extract_peer_sta_kickout_ev)(wmi_unified_t wmi_handle,
1083 void *evt_buf, wmi_host_peer_sta_kickout_event *ev);
1084
1085QDF_STATUS (*extract_peer_ratecode_list_ev)(wmi_unified_t wmi_handle,
1086 void *evt_buf, uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap);
1087
1088QDF_STATUS (*extract_comb_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
1089 uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr);
1090
1091QDF_STATUS (*extract_single_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
1092 uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr);
1093
1094QDF_STATUS (*extract_composite_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
1095 uint16_t datalen, wmi_host_phyerr_t *phyerr);
1096
1097QDF_STATUS (*extract_rtt_hdr)(wmi_unified_t wmi_handle, void *evt_buf,
1098 wmi_host_rtt_event_hdr *ev);
1099
1100QDF_STATUS (*extract_rtt_ev)(wmi_unified_t wmi_handle, void *evt_buf,
1101 wmi_host_rtt_meas_event *ev, uint8_t *hdump, uint16_t hdump_len);
1102
1103QDF_STATUS (*extract_rtt_error_report_ev)(wmi_unified_t wmi_handle,
1104 void *evt_buf, wmi_host_rtt_error_report_event *ev);
1105
1106QDF_STATUS (*extract_all_stats_count)(wmi_unified_t wmi_handle, void *evt_buf,
1107 wmi_host_stats_event *stats_param);
1108
1109QDF_STATUS (*extract_pdev_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1110 uint32_t index, wmi_host_pdev_stats *pdev_stats);
1111
1112QDF_STATUS (*extract_pdev_ext_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1113 uint32_t index, wmi_host_pdev_ext_stats *pdev_ext_stats);
1114
1115QDF_STATUS (*extract_vdev_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1116 uint32_t index, wmi_host_vdev_stats *vdev_stats);
1117
1118QDF_STATUS (*extract_peer_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1119 uint32_t index, wmi_host_peer_stats *peer_stats);
1120
1121QDF_STATUS (*extract_bcnflt_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1122 uint32_t index, wmi_host_bcnflt_stats *bcnflt_stats);
1123
1124QDF_STATUS (*extract_peer_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1125 uint32_t index, wmi_host_peer_extd_stats *peer_extd_stats);
1126
1127QDF_STATUS (*extract_chan_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1128 uint32_t index, wmi_host_chan_stats *chan_stats);
1129
1130QDF_STATUS (*extract_thermal_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1131 uint32_t *temp, uint32_t *level);
1132
1133QDF_STATUS (*extract_thermal_level_stats)(wmi_unified_t wmi_handle,
1134 void *evt_buf, uint8_t idx, uint32_t *levelcount,
1135 uint32_t *dccount);
1136
1137QDF_STATUS (*extract_profile_ctx)(wmi_unified_t wmi_handle, void *evt_buf,
1138 wmi_host_wlan_profile_ctx_t *profile_ctx);
1139
1140QDF_STATUS (*extract_profile_data)(wmi_unified_t wmi_handle, void *evt_buf,
Govind Singh41da3152016-05-06 20:20:25 +05301141 uint8_t idx,
1142 wmi_host_wlan_profile_t *profile_data);
Govind Singh89727882016-04-15 13:58:27 +05301143
1144QDF_STATUS (*extract_chan_info_event)(wmi_unified_t wmi_handle, void *evt_buf,
1145 wmi_host_chan_info_event *chan_info);
1146
1147QDF_STATUS (*extract_channel_hopping_event)(wmi_unified_t wmi_handle,
1148 void *evt_buf,
1149 wmi_host_pdev_channel_hopping_event *ch_hopping);
1150
1151QDF_STATUS (*extract_bss_chan_info_event)(wmi_unified_t wmi_handle,
1152 void *evt_buf,
1153 wmi_host_pdev_bss_chan_info_event *bss_chan_info);
1154
1155QDF_STATUS (*extract_inst_rssi_stats_event)(wmi_unified_t wmi_handle,
1156 void *evt_buf, wmi_host_inst_stats_resp *inst_rssi_resp);
1157
1158QDF_STATUS (*extract_tx_data_traffic_ctrl_ev)(wmi_unified_t wmi_handle,
1159 void *evt_buf, wmi_host_tx_data_traffic_ctrl_event *ev);
1160
Sathish Kumar7e2eaed2016-11-14 17:44:29 +05301161QDF_STATUS (*extract_atf_peer_stats_ev)(wmi_unified_t wmi_handle,
1162 void *evt_buf, wmi_host_atf_peer_stats_event *ev);
1163
1164QDF_STATUS (*extract_atf_token_info_ev)(wmi_unified_t wmi_handle,
1165 void *evt_buf,
1166 uint8_t idx,
1167 wmi_host_atf_peer_stats_info *atf_token_info);
1168
Govind Singh89727882016-04-15 13:58:27 +05301169QDF_STATUS (*extract_vdev_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1170 uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats);
Govind Singhc10bde82016-05-02 17:59:24 +05301171
1172QDF_STATUS (*send_power_dbg_cmd)(wmi_unified_t wmi_handle,
1173 struct wmi_power_dbg_params *param);
Gupta, Kapil7b768002016-04-25 19:14:19 +05301174
1175QDF_STATUS (*send_adapt_dwelltime_params_cmd)(wmi_unified_t wmi_handle,
1176 struct wmi_adaptive_dwelltime_params *dwelltime_params);
Anurag Chouhan4d41be72016-07-22 20:19:54 +05301177
1178QDF_STATUS (*send_fw_test_cmd)(wmi_unified_t wmi_handle,
1179 struct set_fwtest_params *wmi_fwtest);
Padma, Santhosh Kumar73524052016-09-11 18:24:59 +05301180
1181QDF_STATUS (*send_encrypt_decrypt_send_cmd)(wmi_unified_t wmi_handle,
1182 struct encrypt_decrypt_req_params *params);
Leo Chang8184e9c2016-09-28 13:43:36 -07001183
Manikandan Mohan7e5ad482016-12-13 13:14:06 -08001184QDF_STATUS (*send_sar_limit_cmd)(wmi_unified_t wmi_handle,
1185 struct sar_limit_cmd_params *params);
1186
Leo Chang8184e9c2016-09-28 13:43:36 -07001187QDF_STATUS (*send_peer_rx_reorder_queue_setup_cmd)(wmi_unified_t wmi_handle,
1188 struct rx_reorder_queue_setup_params *param);
1189
1190QDF_STATUS (*send_peer_rx_reorder_queue_remove_cmd)(wmi_unified_t wmi_handle,
1191 struct rx_reorder_queue_remove_params *param);
Kiran Venkatappa9c71b362016-08-10 23:55:40 +05301192
1193QDF_STATUS (*extract_service_ready_ext)(wmi_unified_t wmi_handle,
1194 uint8_t *evt_buf,
1195 struct wmi_host_service_ext_param *param);
1196
1197QDF_STATUS (*extract_hw_mode_cap_service_ready_ext)(
1198 wmi_unified_t wmi_handle,
1199 uint8_t *evt_buf, uint8_t hw_mode_idx,
1200 struct wmi_host_hw_mode_caps *param);
1201
1202QDF_STATUS (*extract_mac_phy_cap_service_ready_ext)(
1203 wmi_unified_t wmi_handle,
Kiran Venkatappa176fe6c2016-12-26 15:38:06 +05301204 uint8_t *evt_buf,
1205 uint8_t hw_mode_id,
1206 uint8_t phy_id,
Kiran Venkatappa9c71b362016-08-10 23:55:40 +05301207 struct wmi_host_mac_phy_caps *param);
1208
1209QDF_STATUS (*extract_reg_cap_service_ready_ext)(
1210 wmi_unified_t wmi_handle,
1211 uint8_t *evt_buf, uint8_t phy_idx,
1212 struct WMI_HOST_HAL_REG_CAPABILITIES_EXT *param);
Sathish Kumar617535c2017-01-24 17:51:26 +05301213
1214QDF_STATUS (*extract_pdev_utf_event)(wmi_unified_t wmi_hdl,
1215 uint8_t *evt_buf,
1216 struct wmi_host_pdev_utf_event *param);
1217
Sarada Prasanna Garnayakd49444c2017-01-05 19:30:07 +05301218uint16_t (*wmi_set_htc_tx_tag)(wmi_unified_t wmi_handle,
1219 wmi_buf_t buf, uint32_t cmd_id);
Govind Singh89727882016-04-15 13:58:27 +05301220};
1221
1222struct target_abi_version {
1223 A_UINT32 abi_version_0;
1224 /** WMI Major and Minor versions */
1225 A_UINT32 abi_version_1;
1226 /** WMI change revision */
1227 A_UINT32 abi_version_ns_0;
1228 /** ABI version namespace first four dwords */
1229 A_UINT32 abi_version_ns_1;
1230 /** ABI version namespace second four dwords */
1231 A_UINT32 abi_version_ns_2;
1232 /** ABI version namespace third four dwords */
1233 A_UINT32 abi_version_ns_3;
1234 /** ABI version namespace fourth four dwords */
Govind Singh2ae94372016-03-07 16:45:38 +05301235};
1236
Govind Singh229bc0d2016-03-07 15:33:31 +05301237/**
1238 * struct wmi_init_cmd - Saved wmi INIT command
1239 * @buf: Buffer containing the wmi INIT command
1240 * @buf_len: Length of the buffer
1241 */
Govind Singhec0bdef2016-03-16 16:27:50 +05301242struct wmi_cmd_init {
Govind Singh229bc0d2016-03-07 15:33:31 +05301243 wmi_buf_t buf;
1244 uint32_t buf_len;
Govind Singh3ddda1f2016-03-09 11:34:12 +05301245};
1246
Govind Singhd475ea92016-03-06 19:55:02 +05301247struct wmi_unified {
Govind Singh89727882016-04-15 13:58:27 +05301248 void *scn_handle; /* handle to device */
Govind Singh6ad6ada2016-02-04 18:42:30 +05301249 osdev_t osdev; /* handle to use OS-independent services */
Govind Singhd7468a52016-03-09 14:32:57 +05301250 qdf_atomic_t pending_cmds;
Govind Singhd475ea92016-03-06 19:55:02 +05301251 HTC_ENDPOINT_ID wmi_endpoint_id;
1252 uint16_t max_msg_len;
Himanshu Agarwal56c292f2016-07-19 15:41:51 +05301253 uint32_t event_id[WMI_UNIFIED_MAX_EVENT];
Govind Singhd475ea92016-03-06 19:55:02 +05301254 wmi_unified_event_handler event_handler[WMI_UNIFIED_MAX_EVENT];
Govind Singh4ec6ff92016-03-09 12:03:29 +05301255 enum wmi_rx_exec_ctx ctx[WMI_UNIFIED_MAX_EVENT];
Govind Singhd475ea92016-03-06 19:55:02 +05301256 uint32_t max_event_idx;
1257 void *htc_handle;
Govind Singhd7468a52016-03-09 14:32:57 +05301258 qdf_spinlock_t eventq_lock;
1259 qdf_nbuf_queue_t event_queue;
Govind Singhd475ea92016-03-06 19:55:02 +05301260 struct work_struct rx_event_work;
Govind Singh6ad6ada2016-02-04 18:42:30 +05301261 int wmi_stop_in_progress;
Kiran Venkatappa9da7e042016-08-09 22:52:35 +05301262#ifdef CONFIG_MCL
Govind Singh229bc0d2016-03-07 15:33:31 +05301263 struct _wmi_abi_version fw_abi_version;
1264 struct _wmi_abi_version final_abi_vers;
Govind Singh89727882016-04-15 13:58:27 +05301265#endif
Govind Singhec0bdef2016-03-16 16:27:50 +05301266 struct wmi_cmd_init saved_wmi_init_cmd;
Govind Singh229bc0d2016-03-07 15:33:31 +05301267 uint32_t num_of_diag_events_logs;
1268 uint32_t *events_logs_list;
1269 struct host_offload_req_param arp_info;
Govind Singhd475ea92016-03-06 19:55:02 +05301270#ifdef WLAN_OPEN_SOURCE
1271 struct fwdebug dbglog;
1272 struct dentry *debugfs_phy;
1273#endif /* WLAN_OPEN_SOURCE */
1274
1275#ifdef WMI_INTERFACE_EVENT_LOGGING
Govind Singh5fed03b2016-05-12 12:45:51 +05301276 struct wmi_debug_log_info log_info;
Govind Singhd475ea92016-03-06 19:55:02 +05301277#endif /*WMI_INTERFACE_EVENT_LOGGING */
1278
Govind Singhd7468a52016-03-09 14:32:57 +05301279 qdf_atomic_t is_target_suspended;
Govind Singhd475ea92016-03-06 19:55:02 +05301280
1281#ifdef FEATURE_RUNTIME_PM
Govind Singhd7468a52016-03-09 14:32:57 +05301282 qdf_atomic_t runtime_pm_inprogress;
Govind Singhd475ea92016-03-06 19:55:02 +05301283#endif
Sarada Prasanna Garnayakd49444c2017-01-05 19:30:07 +05301284 qdf_atomic_t is_wow_bus_suspended;
1285 bool tag_crash_inject;
Govind Singh89727882016-04-15 13:58:27 +05301286 enum wmi_target_type target_type;
Govind Singh3ddda1f2016-03-09 11:34:12 +05301287 struct wmi_rx_ops rx_ops;
1288 struct wmi_ops *ops;
Govind Singh6ad6ada2016-02-04 18:42:30 +05301289 bool use_cookie;
Govind Singh89727882016-04-15 13:58:27 +05301290 bool wmi_stopinprogress;
Govind Singhf06948c2016-03-12 09:26:52 +05301291 qdf_spinlock_t ctx_lock;
Kiran Venkatappa9da7e042016-08-09 22:52:35 +05301292#ifndef CONFIG_MCL
Govind Singh89727882016-04-15 13:58:27 +05301293 /* WMI service bitmap recieved from target */
1294 uint32_t wmi_service_bitmap[wmi_services_max];
1295 uint32_t wmi_events[wmi_events_max];
1296 uint32_t pdev_param[wmi_pdev_param_max];
1297 uint32_t vdev_param[wmi_vdev_param_max];
1298 uint32_t services[wmi_services_max];
1299#endif
Govind Singhd475ea92016-03-06 19:55:02 +05301300};
Govind Singh89727882016-04-15 13:58:27 +05301301#ifdef WMI_NON_TLV_SUPPORT
Govind Singhfa201d92016-06-08 19:40:11 +05301302/* ONLY_NON_TLV_TARGET:TLV attach dummy function defintion for case when
1303 * driver supports only NON-TLV target (WIN mainline) */
Govind Singh89727882016-04-15 13:58:27 +05301304#define wmi_tlv_attach(x) qdf_print("TLV Unavailable\n")
1305#else
1306void wmi_tlv_attach(wmi_unified_t wmi_handle);
1307#endif
1308void wmi_non_tlv_attach(wmi_unified_t wmi_handle);
Govind Singh53c7ac82016-03-28 22:02:42 +05301309
1310/**
1311 * wmi_align() - provides word aligned parameter
1312 * @param: parameter to be aligned
1313 *
1314 * Return: word aligned parameter
1315 */
1316static inline uint32_t wmi_align(uint32_t param)
1317{
1318 return roundup(param, sizeof(uint32_t));
1319}
Govind Singhd475ea92016-03-06 19:55:02 +05301320#endif