blob: 55fd7bee8686bbc59e1f97b026e38b3b41937e71 [file] [log] [blame]
Govind Singhd475ea92016-03-06 19:55:02 +05301/*
2 * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
28/*
Govind 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"
36#include "wmi.h"
37#include "wmi_unified.h"
Govind Singhd7468a52016-03-09 14:32:57 +053038#include "qdf_atomic.h"
Govind Singhd475ea92016-03-06 19:55:02 +053039
40#define WMI_UNIFIED_MAX_EVENT 0x100
41#define WMI_MAX_CMDS 1024
42
Govind Singhd7468a52016-03-09 14:32:57 +053043typedef qdf_nbuf_t wmi_buf_t;
Govind Singhd475ea92016-03-06 19:55:02 +053044
45#ifdef WMI_INTERFACE_EVENT_LOGGING
46
47#define WMI_EVENT_DEBUG_MAX_ENTRY (1024)
48
49struct wmi_command_debug {
50 uint32_t command;
Govind Singh4ec6ff92016-03-09 12:03:29 +053051 uint32_t data[4]; /*16 bytes of WMI cmd excluding TLV and WMI headers */
Govind Singhd475ea92016-03-06 19:55:02 +053052 uint64_t time;
53};
54
55struct wmi_event_debug {
56 uint32_t event;
Govind Singh4ec6ff92016-03-09 12:03:29 +053057 uint32_t data[4]; /*16 bytes of WMI event data excluding TLV header */
Govind Singhd475ea92016-03-06 19:55:02 +053058 uint64_t time;
59};
60
61#endif /*WMI_INTERFACE_EVENT_LOGGING */
62
63#ifdef WLAN_OPEN_SOURCE
64struct fwdebug {
65 struct sk_buff_head fwlog_queue;
66 struct completion fwlog_completion;
67 A_BOOL fwlog_open;
68};
69#endif /* WLAN_OPEN_SOURCE */
70
Govind Singh3ddda1f2016-03-09 11:34:12 +053071struct wmi_ops {
Govind Singhd7468a52016-03-09 14:32:57 +053072QDF_STATUS (*send_vdev_create_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +053073 uint8_t macaddr[IEEE80211_ADDR_LEN],
74 struct vdev_create_params *param);
75
Govind Singhd7468a52016-03-09 14:32:57 +053076QDF_STATUS (*send_vdev_delete_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +053077 uint8_t if_id);
78
Govind Singhd7468a52016-03-09 14:32:57 +053079QDF_STATUS (*send_vdev_stop_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +053080 uint8_t vdev_id);
81
Govind Singhd7468a52016-03-09 14:32:57 +053082QDF_STATUS (*send_vdev_down_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +053083 uint8_t vdev_id);
84
Himanshu Agarwal7e4f4bc2016-03-09 16:49:38 +053085QDF_STATUS (*send_vdev_start_cmd)(wmi_unified_t wmi,
86 struct vdev_start_params *req);
87
88QDF_STATUS (*send_hidden_ssid_vdev_restart_cmd)(wmi_unified_t wmi_handle,
89 struct hidden_ssid_vdev_restart_params *restart_params);
90
Govind Singhd7468a52016-03-09 14:32:57 +053091QDF_STATUS (*send_peer_flush_tids_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +053092 uint8_t peer_addr[IEEE80211_ADDR_LEN],
93 struct peer_flush_params *param);
94
Govind Singhd7468a52016-03-09 14:32:57 +053095QDF_STATUS (*send_peer_delete_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +053096 uint8_t peer_addr[IEEE80211_ADDR_LEN],
97 uint8_t vdev_id);
98
Govind Singhd7468a52016-03-09 14:32:57 +053099QDF_STATUS (*send_peer_param_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530100 uint8_t peer_addr[IEEE80211_ADDR_LEN],
101 struct peer_set_params *param);
102
Govind Singhd7468a52016-03-09 14:32:57 +0530103QDF_STATUS (*send_vdev_up_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530104 uint8_t bssid[IEEE80211_ADDR_LEN],
105 struct vdev_up_params *params);
106
Govind Singhd7468a52016-03-09 14:32:57 +0530107QDF_STATUS (*send_peer_create_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530108 struct peer_create_params *param);
109
Govind Singhd7468a52016-03-09 14:32:57 +0530110QDF_STATUS (*send_green_ap_ps_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530111 uint32_t value, uint8_t mac_id);
112
Govind Singhd7468a52016-03-09 14:32:57 +0530113QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530114(*send_pdev_utf_cmd)(wmi_unified_t wmi_handle,
115 struct pdev_utf_params *param,
116 uint8_t mac_id);
117
Govind Singhd7468a52016-03-09 14:32:57 +0530118QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530119(*send_pdev_param_cmd)(wmi_unified_t wmi_handle,
120 struct pdev_params *param,
121 uint8_t mac_id);
122
Govind Singhd7468a52016-03-09 14:32:57 +0530123QDF_STATUS (*send_suspend_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530124 struct suspend_params *param,
125 uint8_t mac_id);
126
Govind Singhd7468a52016-03-09 14:32:57 +0530127QDF_STATUS (*send_resume_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530128 uint8_t mac_id);
129
Govind Singhd7468a52016-03-09 14:32:57 +0530130QDF_STATUS (*send_wow_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530131 struct wow_cmd_params *param,
132 uint8_t mac_id);
133
Govind Singhd7468a52016-03-09 14:32:57 +0530134QDF_STATUS (*send_set_ap_ps_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530135 uint8_t *peer_addr,
136 struct ap_ps_params *param);
137
Govind Singhd7468a52016-03-09 14:32:57 +0530138QDF_STATUS (*send_set_sta_ps_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530139 struct sta_ps_params *param);
140
Govind Singhd7468a52016-03-09 14:32:57 +0530141QDF_STATUS (*send_crash_inject_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530142 struct crash_inject *param);
143
Govind Singhd7468a52016-03-09 14:32:57 +0530144QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530145(*send_dbglog_cmd)(wmi_unified_t wmi_handle,
146 struct dbglog_params *dbglog_param);
147
Govind Singhd7468a52016-03-09 14:32:57 +0530148QDF_STATUS (*send_vdev_set_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530149 struct vdev_set_params *param);
150
Govind Singhd7468a52016-03-09 14:32:57 +0530151QDF_STATUS (*send_stats_request_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530152 uint8_t macaddr[IEEE80211_ADDR_LEN],
153 struct stats_request_params *param);
154
Govind Singhd7468a52016-03-09 14:32:57 +0530155QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530156 uint8_t macaddr[IEEE80211_ADDR_LEN],
157 struct packet_enable_params *param);
158
Govind Singhd7468a52016-03-09 14:32:57 +0530159QDF_STATUS (*send_beacon_send_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530160 struct beacon_params *param);
161
Govind Singhd7468a52016-03-09 14:32:57 +0530162QDF_STATUS (*send_peer_assoc_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530163 struct peer_assoc_params *param);
164
Govind Singhd7468a52016-03-09 14:32:57 +0530165QDF_STATUS (*send_scan_start_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530166 struct scan_start_params *param);
167
Govind Singhd7468a52016-03-09 14:32:57 +0530168QDF_STATUS (*send_scan_stop_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530169 struct scan_stop_params *param);
170
Govind Singhd7468a52016-03-09 14:32:57 +0530171QDF_STATUS (*send_scan_chan_list_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530172 struct scan_chan_list_params *param);
Govind Singh50988cc2016-02-26 18:09:36 +0530173
Govind Singhd7468a52016-03-09 14:32:57 +0530174QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530175 struct wmi_mgmt_params *param);
176
Govind Singhd7468a52016-03-09 14:32:57 +0530177QDF_STATUS (*send_modem_power_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530178 uint32_t param_value);
179
Govind Singhd7468a52016-03-09 14:32:57 +0530180QDF_STATUS (*send_set_sta_ps_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530181 uint32_t vdev_id, uint8_t val);
182
Govind Singhd7468a52016-03-09 14:32:57 +0530183QDF_STATUS (*send_get_temperature_cmd)(wmi_unified_t wmi_handle);
Govind Singh50988cc2016-02-26 18:09:36 +0530184
Govind Singhd7468a52016-03-09 14:32:57 +0530185QDF_STATUS (*send_set_p2pgo_oppps_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530186 struct p2p_ps_params *oppps);
187
Govind Singhd7468a52016-03-09 14:32:57 +0530188QDF_STATUS (*send_set_p2pgo_noa_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530189 struct p2p_ps_params *noa);
190
Govind Singhd7468a52016-03-09 14:32:57 +0530191QDF_STATUS (*send_set_smps_params_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530192 uint8_t vdev_id,
193 int value);
Govind Singh50988cc2016-02-26 18:09:36 +0530194
Govind Singhd7468a52016-03-09 14:32:57 +0530195QDF_STATUS (*send_set_mimops_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530196 uint8_t vdev_id, int value);
197
Govind Singhd7468a52016-03-09 14:32:57 +0530198QDF_STATUS (*send_set_sta_uapsd_auto_trig_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530199 struct sta_uapsd_trig_params *param);
Govind Singhe7b800c2016-03-01 15:30:53 +0530200
Govind Singhd7468a52016-03-09 14:32:57 +0530201QDF_STATUS (*send_ocb_set_utc_time_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530202 struct ocb_utc_param *utc);
203
Govind Singhd7468a52016-03-09 14:32:57 +0530204QDF_STATUS (*send_ocb_get_tsf_timer_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530205 uint8_t vdev_id);
206
Govind Singhd7468a52016-03-09 14:32:57 +0530207QDF_STATUS (*send_ocb_start_timing_advert_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530208 struct ocb_timing_advert_param *timing_advert);
209
Govind Singhd7468a52016-03-09 14:32:57 +0530210QDF_STATUS (*send_ocb_stop_timing_advert_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530211 struct ocb_timing_advert_param *timing_advert);
212
Govind Singhd7468a52016-03-09 14:32:57 +0530213QDF_STATUS (*send_dcc_get_stats_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530214 struct dcc_get_stats_param *get_stats_param);
215
Govind Singhd7468a52016-03-09 14:32:57 +0530216QDF_STATUS (*send_dcc_clear_stats_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530217 uint32_t vdev_id, uint32_t dcc_stats_bitmap);
218
Govind Singhd7468a52016-03-09 14:32:57 +0530219QDF_STATUS (*send_dcc_update_ndl_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530220 struct dcc_update_ndl_param *update_ndl_param);
221
Govind Singhd7468a52016-03-09 14:32:57 +0530222QDF_STATUS (*send_ocb_set_config_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530223 struct ocb_config_param *config, uint32_t *ch_mhz);
Govind Singhae855362016-03-07 14:24:22 +0530224
Govind Singhd7468a52016-03-09 14:32:57 +0530225QDF_STATUS (*send_lro_config_cmd)(wmi_unified_t wmi_handle,
Govind Singh9bad0002016-03-01 15:54:59 +0530226 struct wmi_lro_config_cmd_t *wmi_lro_cmd);
227
Govind Singhd7468a52016-03-09 14:32:57 +0530228QDF_STATUS (*send_set_thermal_mgmt_cmd)(wmi_unified_t wmi_handle,
Govind Singh9bad0002016-03-01 15:54:59 +0530229 struct thermal_cmd_params *thermal_info);
230
Govind Singhd7468a52016-03-09 14:32:57 +0530231QDF_STATUS (*send_set_mcc_channel_time_quota_cmd)
Govind Singh9bad0002016-03-01 15:54:59 +0530232 (wmi_unified_t wmi_handle,
233 uint32_t adapter_1_chan_freq,
234 uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq);
235
Govind Singhd7468a52016-03-09 14:32:57 +0530236QDF_STATUS (*send_set_mcc_channel_time_latency_cmd)
Govind Singh9bad0002016-03-01 15:54:59 +0530237 (wmi_unified_t wmi_handle,
238 uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency);
239
Govind Singhd7468a52016-03-09 14:32:57 +0530240QDF_STATUS (*send_set_enable_disable_mcc_adaptive_scheduler_cmd)(
Govind Singh9bad0002016-03-01 15:54:59 +0530241 wmi_unified_t wmi_handle, uint32_t mcc_adaptive_scheduler);
Govind Singhae855362016-03-07 14:24:22 +0530242
Govind Singhd7468a52016-03-09 14:32:57 +0530243QDF_STATUS (*send_p2p_go_set_beacon_ie_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530244 A_UINT32 vdev_id, uint8_t *p2p_ie);
245
Govind Singhd7468a52016-03-09 14:32:57 +0530246QDF_STATUS (*send_probe_rsp_tmpl_send_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530247 uint8_t vdev_id,
248 struct wmi_probe_resp_params *probe_rsp_info,
249 uint8_t *frm);
250
Govind Singhd7468a52016-03-09 14:32:57 +0530251QDF_STATUS (*send_process_update_edca_param_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530252 uint8_t vdev_id,
253 wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]);
254
Govind Singhd7468a52016-03-09 14:32:57 +0530255QDF_STATUS (*send_vdev_set_gtx_cfg_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530256 uint32_t if_id,
257 struct wmi_gtx_config *gtx_info);
258
Govind Singhd7468a52016-03-09 14:32:57 +0530259QDF_STATUS (*send_set_sta_keep_alive_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530260 struct sta_params *params);
261
Govind Singhd7468a52016-03-09 14:32:57 +0530262QDF_STATUS (*send_set_sta_sa_query_param_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530263 uint8_t vdev_id, uint32_t max_retries,
264 uint32_t retry_interval);
265
Govind Singhd7468a52016-03-09 14:32:57 +0530266QDF_STATUS (*send_bcn_buf_ll_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530267 wmi_bcn_send_from_host_cmd_fixed_param *param);
268
Govind Singhd7468a52016-03-09 14:32:57 +0530269QDF_STATUS (*send_set_gateway_params_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530270 struct gateway_update_req_param *req);
271
Govind Singhd7468a52016-03-09 14:32:57 +0530272QDF_STATUS (*send_set_rssi_monitoring_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530273 struct rssi_monitor_param *req);
274
Govind Singhd7468a52016-03-09 14:32:57 +0530275QDF_STATUS (*send_scan_probe_setoui_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530276 struct scan_mac_oui *psetoui);
277
Govind Singhd7468a52016-03-09 14:32:57 +0530278QDF_STATUS (*send_reset_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530279 struct wifi_passpoint_req_param *req);
280
Himanshu Agarwal5f2d0482016-03-09 15:25:44 +0530281QDF_STATUS (*send_roam_scan_offload_mode_cmd)(wmi_unified_t wmi_handle,
282 wmi_start_scan_cmd_fixed_param *scan_cmd_fp,
283 struct roam_offload_scan_params *roam_req);
284
285QDF_STATUS (*send_roam_scan_offload_rssi_thresh_cmd)(wmi_unified_t wmi_handle,
286 struct roam_offload_scan_rssi_params *roam_req);
287
288QDF_STATUS (*send_roam_scan_filter_cmd)(wmi_unified_t wmi_handle,
289 struct roam_scan_filter_params *roam_req);
290
Govind Singhd7468a52016-03-09 14:32:57 +0530291QDF_STATUS (*send_set_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530292 struct wifi_passpoint_req_param *req);
293
Govind Singhd7468a52016-03-09 14:32:57 +0530294QDF_STATUS (*send_set_epno_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530295 struct wifi_enhanched_pno_params *req);
296
Govind Singhd7468a52016-03-09 14:32:57 +0530297QDF_STATUS (*send_extscan_get_capabilities_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530298 struct extscan_capabilities_params *pgetcapab);
299
Govind Singhd7468a52016-03-09 14:32:57 +0530300QDF_STATUS (*send_extscan_get_cached_results_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530301 struct extscan_cached_result_params *pcached_results);
302
Govind Singhd7468a52016-03-09 14:32:57 +0530303QDF_STATUS (*send_extscan_stop_change_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530304 struct extscan_capabilities_reset_params *reset_req);
305
Govind Singhd7468a52016-03-09 14:32:57 +0530306QDF_STATUS (*send_extscan_start_change_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530307 struct extscan_set_sig_changereq_params *
308 psigchange);
309
Govind Singhd7468a52016-03-09 14:32:57 +0530310QDF_STATUS (*send_extscan_stop_hotlist_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530311 struct extscan_bssid_hotlist_reset_params *photlist_reset);
312
Govind Singhd7468a52016-03-09 14:32:57 +0530313QDF_STATUS (*send_stop_extscan_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530314 struct extscan_stop_req_params *pstopcmd);
315
Govind Singhd7468a52016-03-09 14:32:57 +0530316QDF_STATUS (*send_start_extscan_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530317 struct wifi_scan_cmd_req_params *pstart);
318
Govind Singhd7468a52016-03-09 14:32:57 +0530319QDF_STATUS (*send_plm_stop_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530320 const struct plm_req_params *plm);
321
Govind Singhd7468a52016-03-09 14:32:57 +0530322QDF_STATUS (*send_plm_start_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530323 const struct plm_req_params *plm,
324 uint32_t *gchannel_list);
325
Govind Singhd7468a52016-03-09 14:32:57 +0530326QDF_STATUS (*send_csa_offload_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530327 uint8_t vdev_id);
328
Govind Singhd7468a52016-03-09 14:32:57 +0530329QDF_STATUS (*send_pno_stop_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singhae855362016-03-07 14:24:22 +0530330
Govind Singhd7468a52016-03-09 14:32:57 +0530331QDF_STATUS (*send_pno_start_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530332 struct pno_scan_req_params *pno,
333 uint32_t *gchannel_freq_list);
334
Govind Singhd7468a52016-03-09 14:32:57 +0530335QDF_STATUS (*send_ipa_offload_control_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530336 struct ipa_offload_control_params *ipa_offload);
337
Govind Singhd7468a52016-03-09 14:32:57 +0530338QDF_STATUS (*send_set_ric_req_cmd)(wmi_unified_t wmi_handle, void *msg,
Govind Singhae855362016-03-07 14:24:22 +0530339 uint8_t is_add_ts);
340
Govind Singhd7468a52016-03-09 14:32:57 +0530341QDF_STATUS (*send_process_ll_stats_clear_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530342 (wmi_unified_t wmi_handle,
343 const struct ll_stats_clear_params *clear_req,
344 uint8_t addr[IEEE80211_ADDR_LEN]);
345
Govind Singhd7468a52016-03-09 14:32:57 +0530346QDF_STATUS (*send_process_ll_stats_set_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530347 (wmi_unified_t wmi_handle, const struct ll_stats_set_params *set_req);
348
Govind Singhd7468a52016-03-09 14:32:57 +0530349QDF_STATUS (*send_process_ll_stats_get_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530350 (wmi_unified_t wmi_handle, const struct ll_stats_get_params *get_req,
351 uint8_t addr[IEEE80211_ADDR_LEN]);
352
Govind Singhd7468a52016-03-09 14:32:57 +0530353QDF_STATUS (*send_get_stats_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530354 struct pe_stats_req *get_stats_param,
355 uint8_t addr[IEEE80211_ADDR_LEN]);
Govind Singh229bc0d2016-03-07 15:33:31 +0530356
Govind Singhd7468a52016-03-09 14:32:57 +0530357QDF_STATUS (*send_snr_request_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530358
Govind Singhd7468a52016-03-09 14:32:57 +0530359QDF_STATUS (*send_snr_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530360
Govind Singhd7468a52016-03-09 14:32:57 +0530361QDF_STATUS (*send_link_status_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530362 struct link_status_params *link_status);
363
Govind Singhd7468a52016-03-09 14:32:57 +0530364QDF_STATUS (*send_lphb_config_hbenable_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530365 wmi_hb_set_enable_cmd_fixed_param *params);
366
Govind Singhd7468a52016-03-09 14:32:57 +0530367QDF_STATUS (*send_lphb_config_tcp_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530368 wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req);
369
Govind Singhd7468a52016-03-09 14:32:57 +0530370QDF_STATUS (*send_lphb_config_tcp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530371 wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp);
372
Govind Singhd7468a52016-03-09 14:32:57 +0530373QDF_STATUS (*send_lphb_config_udp_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530374 wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req);
375
Govind Singhd7468a52016-03-09 14:32:57 +0530376QDF_STATUS (*send_lphb_config_udp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530377 wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req);
378
Govind Singhd7468a52016-03-09 14:32:57 +0530379QDF_STATUS (*send_process_dhcp_ind_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530380 wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind);
381
Govind Singhd7468a52016-03-09 14:32:57 +0530382QDF_STATUS (*send_get_link_speed_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530383 wmi_mac_addr peer_macaddr);
384
Govind Singhd7468a52016-03-09 14:32:57 +0530385QDF_STATUS (*send_egap_conf_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530386 wmi_ap_ps_egap_param_cmd_fixed_param *egap_params);
387
Govind Singhd7468a52016-03-09 14:32:57 +0530388QDF_STATUS (*send_fw_profiling_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530389 uint32_t cmd, uint32_t value1, uint32_t value2);
390
Govind Singhd7468a52016-03-09 14:32:57 +0530391QDF_STATUS (*send_wow_sta_ra_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530392 uint8_t vdev_id, uint8_t default_pattern,
393 uint16_t rate_limit_interval);
394
Govind Singhd7468a52016-03-09 14:32:57 +0530395QDF_STATUS (*send_nat_keepalive_en_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530396
Govind Singhd7468a52016-03-09 14:32:57 +0530397QDF_STATUS (*send_start_oem_data_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530398 uint8_t data_len,
399 uint8_t *data);
400
Govind Singhd7468a52016-03-09 14:32:57 +0530401QDF_STATUS
Govind Singh229bc0d2016-03-07 15:33:31 +0530402(*send_dfs_phyerr_filter_offload_en_cmd)(wmi_unified_t wmi_handle,
403 bool dfs_phyerr_filter_offload);
404
Govind Singhd7468a52016-03-09 14:32:57 +0530405QDF_STATUS (*send_pktlog_wmi_send_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530406 WMI_PKTLOG_EVENT pktlog_event,
407 WMI_CMD_ID cmd_id);
408
Govind Singhd7468a52016-03-09 14:32:57 +0530409QDF_STATUS (*send_add_wow_wakeup_event_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530410 uint32_t vdev_id,
411 uint32_t bitmap,
412 bool enable);
413
Govind Singhd7468a52016-03-09 14:32:57 +0530414QDF_STATUS (*send_wow_patterns_to_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530415 uint8_t vdev_id, uint8_t ptrn_id,
416 const uint8_t *ptrn, uint8_t ptrn_len,
417 uint8_t ptrn_offset, const uint8_t *mask,
418 uint8_t mask_len, bool user,
419 uint8_t default_patterns);
420
Govind Singhd7468a52016-03-09 14:32:57 +0530421QDF_STATUS (*send_wow_delete_pattern_cmd)(wmi_unified_t wmi_handle, uint8_t ptrn_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530422 uint8_t vdev_id);
423
Govind Singhd7468a52016-03-09 14:32:57 +0530424QDF_STATUS (*send_host_wakeup_ind_to_fw_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530425
Govind Singhd7468a52016-03-09 14:32:57 +0530426QDF_STATUS (*send_del_ts_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530427 uint8_t ac);
428
Govind Singhd7468a52016-03-09 14:32:57 +0530429QDF_STATUS (*send_aggr_qos_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530430 struct aggr_add_ts_param *aggr_qos_rsp_msg);
431
Govind Singhd7468a52016-03-09 14:32:57 +0530432QDF_STATUS (*send_add_ts_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530433 struct add_ts_param *msg);
434
Govind Singhd7468a52016-03-09 14:32:57 +0530435QDF_STATUS (*send_enable_disable_packet_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530436 uint8_t vdev_id, bool enable);
437
Govind Singhd7468a52016-03-09 14:32:57 +0530438QDF_STATUS (*send_config_packet_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530439 uint8_t vdev_id, struct rcv_pkt_filter_config *rcv_filter_param,
440 uint8_t filter_id, bool enable);
441
Govind Singhd7468a52016-03-09 14:32:57 +0530442QDF_STATUS (*send_add_clear_mcbc_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530443 uint8_t vdev_id,
Govind Singhd7468a52016-03-09 14:32:57 +0530444 struct qdf_mac_addr multicast_addr,
Govind Singh229bc0d2016-03-07 15:33:31 +0530445 bool clearList);
446
Govind Singhd7468a52016-03-09 14:32:57 +0530447QDF_STATUS (*send_gtk_offload_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530448 struct gtk_offload_params *params,
449 bool enable_offload,
450 uint32_t gtk_offload_opcode);
451
Govind Singhd7468a52016-03-09 14:32:57 +0530452QDF_STATUS (*send_process_gtk_offload_getinfo_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530453 uint8_t vdev_id,
454 uint64_t offload_req_opcode);
455
Govind Singhd7468a52016-03-09 14:32:57 +0530456QDF_STATUS (*send_process_add_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530457 struct periodic_tx_pattern *
458 pAddPeriodicTxPtrnParams,
459 uint8_t vdev_id);
460
Govind Singhd7468a52016-03-09 14:32:57 +0530461QDF_STATUS (*send_process_del_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530462 uint8_t vdev_id,
463 uint8_t pattern_id);
464
Govind Singhd7468a52016-03-09 14:32:57 +0530465QDF_STATUS (*send_stats_ext_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530466 struct stats_ext_params *preq);
467
Govind Singhd7468a52016-03-09 14:32:57 +0530468QDF_STATUS (*send_enable_ext_wow_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530469 struct ext_wow_params *params);
470
Govind Singhd7468a52016-03-09 14:32:57 +0530471QDF_STATUS (*send_set_app_type2_params_in_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530472 struct app_type2_params *appType2Params);
473
Govind Singhd7468a52016-03-09 14:32:57 +0530474QDF_STATUS (*send_set_auto_shutdown_timer_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530475 uint32_t timer_val);
476
Govind Singhd7468a52016-03-09 14:32:57 +0530477QDF_STATUS (*send_nan_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530478 struct nan_req_params *nan_req);
479
Govind Singhd7468a52016-03-09 14:32:57 +0530480QDF_STATUS (*send_process_dhcpserver_offload_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530481 struct dhcp_offload_info_params *pDhcpSrvOffloadInfo);
482
Govind Singhd7468a52016-03-09 14:32:57 +0530483QDF_STATUS (*send_process_ch_avoid_update_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530484
Govind Singhd7468a52016-03-09 14:32:57 +0530485QDF_STATUS (*send_regdomain_info_to_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530486 uint32_t reg_dmn, uint16_t regdmn2G,
487 uint16_t regdmn5G, int8_t ctl2G,
488 int8_t ctl5G);
489
Govind Singhd7468a52016-03-09 14:32:57 +0530490QDF_STATUS (*send_set_tdls_offchan_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530491 struct tdls_channel_switch_params *chan_switch_params);
492
Govind Singhd7468a52016-03-09 14:32:57 +0530493QDF_STATUS (*send_update_fw_tdls_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530494 void *tdls_param, uint8_t tdls_state);
495
Govind Singhd7468a52016-03-09 14:32:57 +0530496QDF_STATUS (*send_update_tdls_peer_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530497 struct tdls_peer_state_params *peerStateParams,
498 uint32_t *ch_mhz);
499
500
Govind Singhd7468a52016-03-09 14:32:57 +0530501QDF_STATUS (*send_process_fw_mem_dump_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530502 struct fw_dump_req_param *mem_dump_req);
503
Govind Singhd7468a52016-03-09 14:32:57 +0530504QDF_STATUS (*send_process_set_ie_info_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530505 struct vdev_ie_info_param *ie_info);
Govind Singh71ee2d72016-03-07 16:30:32 +0530506
Govind Singhd7468a52016-03-09 14:32:57 +0530507QDF_STATUS (*send_init_cmd)(wmi_unified_t wmi_handle,
Govind Singh71ee2d72016-03-07 16:30:32 +0530508 wmi_resource_config *res_cfg,
509 uint8_t num_mem_chunks, struct wmi_host_mem_chunk *mem_chunk,
510 bool action);
511
Govind Singhd7468a52016-03-09 14:32:57 +0530512QDF_STATUS (*save_fw_version_cmd)(wmi_unified_t wmi_handle, void *evt_buf);
Govind Singh71ee2d72016-03-07 16:30:32 +0530513
Govind Singhd7468a52016-03-09 14:32:57 +0530514QDF_STATUS (*check_and_update_fw_version_cmd)(wmi_unified_t wmi_hdl, void *ev);
Govind Singh71ee2d72016-03-07 16:30:32 +0530515
Govind Singhd7468a52016-03-09 14:32:57 +0530516QDF_STATUS (*send_saved_init_cmd)(wmi_unified_t wmi_handle);
Govind Singh2ae94372016-03-07 16:45:38 +0530517
Govind Singhd7468a52016-03-09 14:32:57 +0530518QDF_STATUS (*send_set_base_macaddr_indicate_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530519 uint8_t *custom_addr);
520
Govind Singhd7468a52016-03-09 14:32:57 +0530521QDF_STATUS (*send_log_supported_evt_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530522 uint8_t *event,
523 uint32_t len);
524
Govind Singhd7468a52016-03-09 14:32:57 +0530525QDF_STATUS (*send_enable_specific_fw_logs_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530526 struct wmi_wifi_start_log *start_log);
527
Govind Singhd7468a52016-03-09 14:32:57 +0530528QDF_STATUS (*send_flush_logs_to_fw_cmd)(wmi_unified_t wmi_handle);
Govind Singh2ae94372016-03-07 16:45:38 +0530529
Govind Singhd7468a52016-03-09 14:32:57 +0530530QDF_STATUS (*send_soc_set_pcl_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530531 struct wmi_pcl_list *msg);
532
Govind Singhd7468a52016-03-09 14:32:57 +0530533QDF_STATUS (*send_soc_set_hw_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530534 uint32_t hw_mode_index);
535
Govind Singhd7468a52016-03-09 14:32:57 +0530536QDF_STATUS (*send_soc_set_dual_mac_config_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530537 struct wmi_dual_mac_config *msg);
538
Govind Singhd7468a52016-03-09 14:32:57 +0530539QDF_STATUS (*send_enable_arp_ns_offload_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530540 struct host_offload_req_param *param, bool arp_only,
541 uint8_t vdev_id);
542
Govind Singhd7468a52016-03-09 14:32:57 +0530543QDF_STATUS (*send_set_led_flashing_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530544 struct flashing_req_params *flashing);
545
Govind Singhd7468a52016-03-09 14:32:57 +0530546QDF_STATUS (*send_app_type1_params_in_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530547 struct app_type1_params *app_type1_params);
548
Govind Singhd7468a52016-03-09 14:32:57 +0530549QDF_STATUS (*send_set_ssid_hotlist_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530550 struct ssid_hotlist_request_params *request);
551
Govind Singhd7468a52016-03-09 14:32:57 +0530552QDF_STATUS (*send_process_roam_synch_complete_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530553 uint8_t vdev_id);
554
Govind Singhd7468a52016-03-09 14:32:57 +0530555QDF_STATUS (*send_unit_test_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530556 struct wmi_unit_test_cmd *wmi_utest);
557
Govind Singhd7468a52016-03-09 14:32:57 +0530558QDF_STATUS (*send_roam_invoke_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530559 struct wmi_roam_invoke_cmd *roaminvoke,
560 uint32_t ch_hz);
561
Govind Singhd7468a52016-03-09 14:32:57 +0530562QDF_STATUS (*send_roam_scan_offload_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530563 uint32_t command, uint32_t vdev_id);
564
Govind Singhd7468a52016-03-09 14:32:57 +0530565QDF_STATUS (*send_roam_scan_offload_ap_profile_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530566 wmi_ap_profile *ap_profile_p,
567 uint32_t vdev_id);
568
Govind Singhd7468a52016-03-09 14:32:57 +0530569QDF_STATUS (*send_roam_scan_offload_scan_period_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530570 uint32_t scan_period,
571 uint32_t scan_age,
572 uint32_t vdev_id);
573
Govind Singhd7468a52016-03-09 14:32:57 +0530574QDF_STATUS (*send_roam_scan_offload_chan_list_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530575 uint8_t chan_count,
576 uint8_t *chan_list,
577 uint8_t list_type, uint32_t vdev_id);
578
Govind Singhd7468a52016-03-09 14:32:57 +0530579QDF_STATUS (*send_roam_scan_offload_rssi_change_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530580 uint32_t vdev_id,
581 int32_t rssi_change_thresh,
582 uint32_t bcn_rssi_weight,
583 uint32_t hirssi_delay_btw_scans);
584
Govind Singhd7468a52016-03-09 14:32:57 +0530585QDF_STATUS (*send_get_buf_extscan_hotlist_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530586 struct ext_scan_setbssi_hotlist_params *
587 photlist, int *buf_len);
588};
589
Govind Singh229bc0d2016-03-07 15:33:31 +0530590/**
591 * struct wmi_init_cmd - Saved wmi INIT command
592 * @buf: Buffer containing the wmi INIT command
593 * @buf_len: Length of the buffer
594 */
Govind Singhec0bdef2016-03-16 16:27:50 +0530595struct wmi_cmd_init {
Govind Singh229bc0d2016-03-07 15:33:31 +0530596 wmi_buf_t buf;
597 uint32_t buf_len;
Govind Singh3ddda1f2016-03-09 11:34:12 +0530598};
599
Govind Singhd475ea92016-03-06 19:55:02 +0530600struct wmi_unified {
601 ol_scn_t scn_handle; /* handle to device */
Govind Singh6ad6ada2016-02-04 18:42:30 +0530602 osdev_t osdev; /* handle to use OS-independent services */
Govind Singhd7468a52016-03-09 14:32:57 +0530603 qdf_atomic_t pending_cmds;
Govind Singhd475ea92016-03-06 19:55:02 +0530604 HTC_ENDPOINT_ID wmi_endpoint_id;
605 uint16_t max_msg_len;
606 WMI_EVT_ID event_id[WMI_UNIFIED_MAX_EVENT];
607 wmi_unified_event_handler event_handler[WMI_UNIFIED_MAX_EVENT];
Govind Singh4ec6ff92016-03-09 12:03:29 +0530608 enum wmi_rx_exec_ctx ctx[WMI_UNIFIED_MAX_EVENT];
Govind Singhd475ea92016-03-06 19:55:02 +0530609 uint32_t max_event_idx;
610 void *htc_handle;
Govind Singhd7468a52016-03-09 14:32:57 +0530611 qdf_spinlock_t eventq_lock;
612 qdf_nbuf_queue_t event_queue;
Govind Singhd475ea92016-03-06 19:55:02 +0530613 struct work_struct rx_event_work;
Govind Singh6ad6ada2016-02-04 18:42:30 +0530614 int wmi_stop_in_progress;
Govind Singh229bc0d2016-03-07 15:33:31 +0530615 struct _wmi_abi_version fw_abi_version;
616 struct _wmi_abi_version final_abi_vers;
Govind Singhec0bdef2016-03-16 16:27:50 +0530617 struct wmi_cmd_init saved_wmi_init_cmd;
Govind Singh229bc0d2016-03-07 15:33:31 +0530618 uint32_t num_of_diag_events_logs;
619 uint32_t *events_logs_list;
620 struct host_offload_req_param arp_info;
Govind Singhd475ea92016-03-06 19:55:02 +0530621#ifdef WLAN_OPEN_SOURCE
622 struct fwdebug dbglog;
623 struct dentry *debugfs_phy;
624#endif /* WLAN_OPEN_SOURCE */
625
626#ifdef WMI_INTERFACE_EVENT_LOGGING
Govind Singhd7468a52016-03-09 14:32:57 +0530627 qdf_spinlock_t wmi_record_lock;
Govind Singhd475ea92016-03-06 19:55:02 +0530628#endif /*WMI_INTERFACE_EVENT_LOGGING */
629
Govind Singhd7468a52016-03-09 14:32:57 +0530630 qdf_atomic_t is_target_suspended;
Govind Singhd475ea92016-03-06 19:55:02 +0530631
632#ifdef FEATURE_RUNTIME_PM
Govind Singhd7468a52016-03-09 14:32:57 +0530633 qdf_atomic_t runtime_pm_inprogress;
Govind Singhd475ea92016-03-06 19:55:02 +0530634#endif
635
Govind Singh3ddda1f2016-03-09 11:34:12 +0530636 struct wmi_rx_ops rx_ops;
637 struct wmi_ops *ops;
Govind Singh6ad6ada2016-02-04 18:42:30 +0530638 void *event_handler_cookie[WMI_UNIFIED_MAX_EVENT];
639 bool use_cookie;
Govind Singhf06948c2016-03-12 09:26:52 +0530640 qdf_spinlock_t ctx_lock;
Govind Singhd475ea92016-03-06 19:55:02 +0530641};
Govind Singh3ddda1f2016-03-09 11:34:12 +0530642struct wmi_ops *wmi_get_tlv_ops(void);
643struct wmi_ops *wmi_get_non_tlv_ops(void);
Govind Singh53c7ac82016-03-28 22:02:42 +0530644
645/**
646 * wmi_align() - provides word aligned parameter
647 * @param: parameter to be aligned
648 *
649 * Return: word aligned parameter
650 */
651static inline uint32_t wmi_align(uint32_t param)
652{
653 return roundup(param, sizeof(uint32_t));
654}
Govind Singhd475ea92016-03-06 19:55:02 +0530655#endif