blob: aa5a959a9c0eaa8ccd5f5a9c05a6cb2bb337273b [file] [log] [blame]
Govind Singhe9cda9a2016-03-09 11:34:12 +05301/*
2 * Copyright (c) 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 */
Govind Singhd0fd7262016-03-01 15:30:53 +053027#ifndef _WMI_UNIFIED_TLV_H_
28#define _WMI_UNIFIED_TLV_H_
Govind Singhe9cda9a2016-03-09 11:34:12 +053029#include <osdep.h>
30#include "a_types.h"
31#include "wmi_unified_param.h"
32#include "ol_defines.h" /* Fix Me: wmi_unified_t structure definition */
33
Govind Singh236fc202016-03-09 14:32:57 +053034QDF_STATUS send_vdev_create_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +053035 uint8_t macaddr[IEEE80211_ADDR_LEN],
36 struct vdev_create_params *param);
37
Govind Singh236fc202016-03-09 14:32:57 +053038QDF_STATUS send_vdev_delete_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +053039 uint8_t if_id);
40
Govind Singh236fc202016-03-09 14:32:57 +053041QDF_STATUS send_vdev_stop_cmd_tlv(wmi_unified_t wmi,
Govind Singhe9cda9a2016-03-09 11:34:12 +053042 uint8_t vdev_id);
43
Govind Singh236fc202016-03-09 14:32:57 +053044QDF_STATUS send_vdev_down_cmd_tlv(wmi_unified_t wmi,
Govind Singhe9cda9a2016-03-09 11:34:12 +053045 uint8_t vdev_id);
46
Himanshu Agarwal915c2702016-03-09 16:49:38 +053047QDF_STATUS send_vdev_start_cmd_tlv(wmi_unified_t wmi,
48 struct vdev_start_params *req);
49
50QDF_STATUS send_hidden_ssid_vdev_restart_cmd_tlv(wmi_unified_t wmi_handle,
51 struct hidden_ssid_vdev_restart_params *restart_params);
52
Govind Singh236fc202016-03-09 14:32:57 +053053QDF_STATUS send_peer_flush_tids_cmd_tlv(wmi_unified_t wmi,
Govind Singhe9cda9a2016-03-09 11:34:12 +053054 uint8_t peer_addr[IEEE80211_ADDR_LEN],
55 struct peer_flush_params *param);
56
Govind Singh236fc202016-03-09 14:32:57 +053057QDF_STATUS send_peer_delete_cmd_tlv(wmi_unified_t wmi,
Govind Singhe9cda9a2016-03-09 11:34:12 +053058 uint8_t peer_addr[IEEE80211_ADDR_LEN],
59 uint8_t vdev_id);
60
Govind Singh236fc202016-03-09 14:32:57 +053061QDF_STATUS send_peer_param_cmd_tlv(wmi_unified_t wmi,
Govind Singhe9cda9a2016-03-09 11:34:12 +053062 uint8_t peer_addr[IEEE80211_ADDR_LEN],
63 struct peer_set_params *param);
64
Govind Singh236fc202016-03-09 14:32:57 +053065QDF_STATUS send_vdev_up_cmd_tlv(wmi_unified_t wmi,
Govind Singhe9cda9a2016-03-09 11:34:12 +053066 uint8_t bssid[IEEE80211_ADDR_LEN],
67 struct vdev_up_params *params);
68
Govind Singh236fc202016-03-09 14:32:57 +053069QDF_STATUS send_peer_create_cmd_tlv(wmi_unified_t wmi,
Govind Singhe9cda9a2016-03-09 11:34:12 +053070 struct peer_create_params *param);
71
Govind Singh236fc202016-03-09 14:32:57 +053072QDF_STATUS send_green_ap_ps_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +053073 uint32_t value, uint8_t mac_id);
74
Govind Singh236fc202016-03-09 14:32:57 +053075QDF_STATUS
Govind Singhe9cda9a2016-03-09 11:34:12 +053076send_pdev_utf_cmd_tlv(wmi_unified_t wmi_handle,
77 struct pdev_utf_params *param,
78 uint8_t mac_id);
79
Govind Singh236fc202016-03-09 14:32:57 +053080QDF_STATUS
Govind Singhe9cda9a2016-03-09 11:34:12 +053081send_pdev_param_cmd_tlv(wmi_unified_t wmi_handle,
82 struct pdev_params *param,
83 uint8_t mac_id);
84
Govind Singh236fc202016-03-09 14:32:57 +053085QDF_STATUS send_suspend_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +053086 struct suspend_params *param,
87 uint8_t mac_id);
88
Govind Singh236fc202016-03-09 14:32:57 +053089QDF_STATUS send_resume_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +053090 uint8_t mac_id);
91
Govind Singh236fc202016-03-09 14:32:57 +053092QDF_STATUS send_wow_enable_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +053093 struct wow_cmd_params *param,
94 uint8_t mac_id);
95
Govind Singh236fc202016-03-09 14:32:57 +053096QDF_STATUS send_set_ap_ps_param_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +053097 uint8_t *peer_addr,
98 struct ap_ps_params *param);
99
Govind Singh236fc202016-03-09 14:32:57 +0530100QDF_STATUS send_set_sta_ps_param_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +0530101 struct sta_ps_params *param);
102
Govind Singh236fc202016-03-09 14:32:57 +0530103QDF_STATUS send_crash_inject_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +0530104 struct crash_inject *param);
105
Govind Singh236fc202016-03-09 14:32:57 +0530106QDF_STATUS
Govind Singhe9cda9a2016-03-09 11:34:12 +0530107send_dbglog_cmd_tlv(wmi_unified_t wmi_handle,
108 struct dbglog_params *dbglog_param);
109
110
Govind Singh236fc202016-03-09 14:32:57 +0530111QDF_STATUS send_vdev_set_param_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +0530112 struct vdev_set_params *param);
113
Govind Singh236fc202016-03-09 14:32:57 +0530114QDF_STATUS send_stats_request_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +0530115 uint8_t macaddr[IEEE80211_ADDR_LEN],
116 struct stats_request_params *param);
117
Govind Singh236fc202016-03-09 14:32:57 +0530118QDF_STATUS send_packet_log_enable_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +0530119 uint8_t macaddr[IEEE80211_ADDR_LEN],
120 struct packet_enable_params *param);
121
Govind Singh236fc202016-03-09 14:32:57 +0530122QDF_STATUS send_beacon_send_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +0530123 struct beacon_params *param);
124
Govind Singh236fc202016-03-09 14:32:57 +0530125QDF_STATUS send_peer_assoc_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +0530126 struct peer_assoc_params *param);
127
Govind Singh236fc202016-03-09 14:32:57 +0530128QDF_STATUS send_scan_start_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +0530129 struct scan_start_params *param);
130
Govind Singh236fc202016-03-09 14:32:57 +0530131QDF_STATUS send_scan_stop_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +0530132 struct scan_stop_params *param);
133
Govind Singh236fc202016-03-09 14:32:57 +0530134QDF_STATUS send_scan_chan_list_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhe9cda9a2016-03-09 11:34:12 +0530135 struct scan_chan_list_params *param);
136
Govind Singh236fc202016-03-09 14:32:57 +0530137QDF_STATUS send_mgmt_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh12438e62016-02-26 18:09:36 +0530138 struct wmi_mgmt_params *param);
139
Govind Singh236fc202016-03-09 14:32:57 +0530140QDF_STATUS send_modem_power_state_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh12438e62016-02-26 18:09:36 +0530141 uint32_t param_value);
142
Govind Singh236fc202016-03-09 14:32:57 +0530143QDF_STATUS send_set_sta_ps_mode_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh12438e62016-02-26 18:09:36 +0530144 uint32_t vdev_id, uint8_t val);
145
Govind Singh236fc202016-03-09 14:32:57 +0530146QDF_STATUS send_set_sta_uapsd_auto_trig_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh12438e62016-02-26 18:09:36 +0530147 struct sta_uapsd_trig_params *param);
148
Govind Singh236fc202016-03-09 14:32:57 +0530149QDF_STATUS send_get_temperature_cmd_tlv(wmi_unified_t wmi_handle);
Govind Singh12438e62016-02-26 18:09:36 +0530150
Govind Singh236fc202016-03-09 14:32:57 +0530151QDF_STATUS send_set_p2pgo_oppps_req_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh12438e62016-02-26 18:09:36 +0530152 struct p2p_ps_params *oppps);
153
Govind Singh236fc202016-03-09 14:32:57 +0530154QDF_STATUS send_set_p2pgo_noa_req_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh12438e62016-02-26 18:09:36 +0530155 struct p2p_ps_params *noa);
156
Govind Singh236fc202016-03-09 14:32:57 +0530157QDF_STATUS send_set_smps_params_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530158 uint8_t vdev_id,
Govind Singh12438e62016-02-26 18:09:36 +0530159 int value);
160
Govind Singh236fc202016-03-09 14:32:57 +0530161QDF_STATUS send_set_mimops_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh12438e62016-02-26 18:09:36 +0530162 uint8_t vdev_id, int value);
163
Govind Singh236fc202016-03-09 14:32:57 +0530164QDF_STATUS send_ocb_set_utc_time_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhd0fd7262016-03-01 15:30:53 +0530165 struct ocb_utc_param *utc);
166
Govind Singh236fc202016-03-09 14:32:57 +0530167QDF_STATUS send_ocb_start_timing_advert_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhd0fd7262016-03-01 15:30:53 +0530168 struct ocb_timing_advert_param *timing_advert);
169
Govind Singh236fc202016-03-09 14:32:57 +0530170QDF_STATUS send_ocb_stop_timing_advert_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhd0fd7262016-03-01 15:30:53 +0530171 struct ocb_timing_advert_param *timing_advert);
172
Govind Singh236fc202016-03-09 14:32:57 +0530173QDF_STATUS send_ocb_get_tsf_timer_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhd0fd7262016-03-01 15:30:53 +0530174 uint8_t vdev_id);
175
Govind Singh236fc202016-03-09 14:32:57 +0530176QDF_STATUS send_dcc_get_stats_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhd0fd7262016-03-01 15:30:53 +0530177 struct dcc_get_stats_param *get_stats_param);
178
Govind Singh236fc202016-03-09 14:32:57 +0530179QDF_STATUS send_dcc_clear_stats_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhd0fd7262016-03-01 15:30:53 +0530180 uint32_t vdev_id, uint32_t dcc_stats_bitmap);
181
Govind Singh236fc202016-03-09 14:32:57 +0530182QDF_STATUS send_dcc_update_ndl_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhd0fd7262016-03-01 15:30:53 +0530183 struct dcc_update_ndl_param *update_ndl_param);
184
Govind Singh236fc202016-03-09 14:32:57 +0530185QDF_STATUS send_ocb_set_config_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhd0fd7262016-03-01 15:30:53 +0530186 struct ocb_config_param *config, uint32_t *ch_mhz);
Govind Singh236fc202016-03-09 14:32:57 +0530187QDF_STATUS send_lro_config_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh86b28182016-03-01 15:54:59 +0530188 struct wmi_lro_config_cmd_t *wmi_lro_cmd);
189
Govind Singh236fc202016-03-09 14:32:57 +0530190QDF_STATUS send_set_thermal_mgmt_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh86b28182016-03-01 15:54:59 +0530191 struct thermal_cmd_params *thermal_info);
192
Poddar, Siddarth1f21bbb2016-04-28 15:49:11 +0530193QDF_STATUS send_peer_rate_report_cmd_tlv(wmi_unified_t wmi_handle,
194 struct wmi_peer_rate_report_params *rate_report_params);
195
Govind Singh236fc202016-03-09 14:32:57 +0530196QDF_STATUS send_set_mcc_channel_time_quota_cmd_tlv
Govind Singh86b28182016-03-01 15:54:59 +0530197 (wmi_unified_t wmi_handle,
198 uint32_t adapter_1_chan_freq,
199 uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq);
200
Govind Singh236fc202016-03-09 14:32:57 +0530201QDF_STATUS send_set_mcc_channel_time_latency_cmd_tlv
Govind Singh86b28182016-03-01 15:54:59 +0530202 (wmi_unified_t wmi_handle,
203 uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency);
204
Govind Singh236fc202016-03-09 14:32:57 +0530205QDF_STATUS send_set_enable_disable_mcc_adaptive_scheduler_cmd_tlv(
Govind Singh01d950e2016-04-16 19:24:23 -0700206 wmi_unified_t wmi_handle, uint32_t mcc_adaptive_scheduler,
207 uint32_t pdev_id);
Govind Singhfef95e22016-03-07 14:24:22 +0530208
Govind Singh236fc202016-03-09 14:32:57 +0530209QDF_STATUS send_p2p_go_set_beacon_ie_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530210 A_UINT32 vdev_id, uint8_t *p2p_ie);
211
Govind Singh236fc202016-03-09 14:32:57 +0530212QDF_STATUS send_probe_rsp_tmpl_send_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530213 uint8_t vdev_id,
214 struct wmi_probe_resp_params *probe_rsp_info,
215 uint8_t *frm);
216
Himanshu Agarwala41da1d2016-03-09 18:49:18 +0530217QDF_STATUS send_setup_install_key_cmd_tlv(wmi_unified_t wmi_handle,
218 struct set_key_params *key_params);
219
Govind Singh236fc202016-03-09 14:32:57 +0530220QDF_STATUS send_process_update_edca_param_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530221 uint8_t vdev_id,
222 wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]);
223
Govind Singh236fc202016-03-09 14:32:57 +0530224QDF_STATUS send_vdev_set_gtx_cfg_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530225 uint32_t if_id,
226 struct wmi_gtx_config *gtx_info);
227
Govind Singh236fc202016-03-09 14:32:57 +0530228QDF_STATUS send_set_sta_keep_alive_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530229 struct sta_params *params);
230
Govind Singh236fc202016-03-09 14:32:57 +0530231QDF_STATUS send_set_sta_sa_query_param_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530232 uint8_t vdev_id, uint32_t max_retries,
233 uint32_t retry_interval);
234
Govind Singh236fc202016-03-09 14:32:57 +0530235QDF_STATUS send_bcn_buf_ll_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530236 wmi_bcn_send_from_host_cmd_fixed_param *param);
237
Govind Singh236fc202016-03-09 14:32:57 +0530238QDF_STATUS send_set_gateway_params_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530239 struct gateway_update_req_param *req);
240
Govind Singh236fc202016-03-09 14:32:57 +0530241QDF_STATUS send_set_rssi_monitoring_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530242 struct rssi_monitor_param *req);
243
Govind Singh236fc202016-03-09 14:32:57 +0530244QDF_STATUS send_ipa_offload_control_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530245 struct ipa_offload_control_params *ipa_offload);
246
Govind Singh236fc202016-03-09 14:32:57 +0530247QDF_STATUS send_scan_probe_setoui_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530248 struct scan_mac_oui *psetoui);
249
Govind Singh236fc202016-03-09 14:32:57 +0530250QDF_STATUS send_reset_passpoint_network_list_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530251 struct wifi_passpoint_req_param *req);
252
Govind Singh236fc202016-03-09 14:32:57 +0530253QDF_STATUS send_set_passpoint_network_list_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530254 struct wifi_passpoint_req_param *req);
255
Himanshu Agarwale2082f22016-03-09 15:25:44 +0530256QDF_STATUS send_roam_scan_offload_mode_cmd_tlv(wmi_unified_t wmi_handle,
257 wmi_start_scan_cmd_fixed_param *scan_cmd_fp,
258 struct roam_offload_scan_params *roam_req);
259
260QDF_STATUS send_roam_scan_offload_rssi_thresh_cmd_tlv(wmi_unified_t wmi_handle,
261 struct roam_offload_scan_rssi_params *roam_req);
262
263QDF_STATUS send_roam_scan_filter_cmd_tlv(wmi_unified_t wmi_handle,
264 struct roam_scan_filter_params *roam_req);
265
Govind Singh236fc202016-03-09 14:32:57 +0530266QDF_STATUS send_set_ric_req_cmd_tlv(wmi_unified_t wmi_handle, void *msg,
Govind Singhfef95e22016-03-07 14:24:22 +0530267 uint8_t is_add_ts);
268
Govind Singh236fc202016-03-09 14:32:57 +0530269QDF_STATUS send_set_epno_network_list_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530270 struct wifi_enhanched_pno_params *req);
271
Govind Singh236fc202016-03-09 14:32:57 +0530272QDF_STATUS send_extscan_get_capabilities_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530273 struct extscan_capabilities_params *pgetcapab);
274
Govind Singh236fc202016-03-09 14:32:57 +0530275QDF_STATUS send_extscan_get_cached_results_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530276 struct extscan_cached_result_params *pcached_results);
277
Govind Singh236fc202016-03-09 14:32:57 +0530278QDF_STATUS send_extscan_stop_change_monitor_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530279 struct extscan_capabilities_reset_params *reset_req);
280
Govind Singh236fc202016-03-09 14:32:57 +0530281QDF_STATUS send_extscan_start_change_monitor_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530282 struct extscan_set_sig_changereq_params *
283 psigchange);
284
Govind Singh236fc202016-03-09 14:32:57 +0530285QDF_STATUS send_extscan_stop_hotlist_monitor_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530286 struct extscan_bssid_hotlist_reset_params *photlist_reset);
287
Govind Singh236fc202016-03-09 14:32:57 +0530288QDF_STATUS send_stop_extscan_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530289 struct extscan_stop_req_params *pstopcmd);
290
Govind Singh236fc202016-03-09 14:32:57 +0530291QDF_STATUS send_start_extscan_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530292 struct wifi_scan_cmd_req_params *pstart);
293
Govind Singh236fc202016-03-09 14:32:57 +0530294QDF_STATUS send_plm_stop_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530295 const struct plm_req_params *plm);
296
Govind Singh236fc202016-03-09 14:32:57 +0530297QDF_STATUS send_plm_start_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530298 const struct plm_req_params *plm,
299 uint32_t *gchannel_list);
300
Govind Singh236fc202016-03-09 14:32:57 +0530301QDF_STATUS send_pno_stop_cmd_tlv(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singhfef95e22016-03-07 14:24:22 +0530302
Govind Singh236fc202016-03-09 14:32:57 +0530303QDF_STATUS send_pno_start_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530304 struct pno_scan_req_params *pno,
305 uint32_t *gchannel_freq_list);
306
Govind Singh236fc202016-03-09 14:32:57 +0530307QDF_STATUS send_process_ll_stats_clear_cmd_tlv
Govind Singhfef95e22016-03-07 14:24:22 +0530308 (wmi_unified_t wmi_handle,
309 const struct ll_stats_clear_params *clear_req,
310 uint8_t addr[IEEE80211_ADDR_LEN]);
311
Govind Singh236fc202016-03-09 14:32:57 +0530312QDF_STATUS send_process_ll_stats_set_cmd_tlv
Govind Singhfef95e22016-03-07 14:24:22 +0530313 (wmi_unified_t wmi_handle, const struct ll_stats_set_params *set_req);
314
Govind Singh236fc202016-03-09 14:32:57 +0530315QDF_STATUS send_process_ll_stats_get_cmd_tlv
Govind Singhfef95e22016-03-07 14:24:22 +0530316 (wmi_unified_t wmi_handle, const struct ll_stats_get_params *get_req,
317 uint8_t addr[IEEE80211_ADDR_LEN]);
318
Govind Singh236fc202016-03-09 14:32:57 +0530319QDF_STATUS send_get_stats_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhfef95e22016-03-07 14:24:22 +0530320 struct pe_stats_req *get_stats_param,
321 uint8_t addr[IEEE80211_ADDR_LEN]);
Govind Singh25729ce2016-03-07 15:33:31 +0530322
Govind Singh236fc202016-03-09 14:32:57 +0530323QDF_STATUS send_snr_request_cmd_tlv(wmi_unified_t wmi_handle);
Govind Singh25729ce2016-03-07 15:33:31 +0530324
Govind Singh236fc202016-03-09 14:32:57 +0530325QDF_STATUS send_snr_cmd_tlv(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singh25729ce2016-03-07 15:33:31 +0530326
Govind Singh236fc202016-03-09 14:32:57 +0530327QDF_STATUS send_link_status_req_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530328 struct link_status_params *link_status);
329
Govind Singh236fc202016-03-09 14:32:57 +0530330QDF_STATUS send_lphb_config_hbenable_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530331 wmi_hb_set_enable_cmd_fixed_param *params);
332
Govind Singh236fc202016-03-09 14:32:57 +0530333QDF_STATUS send_lphb_config_tcp_params_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530334 wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req);
335
Govind Singh236fc202016-03-09 14:32:57 +0530336QDF_STATUS send_lphb_config_tcp_pkt_filter_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530337 wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp);
338
Govind Singh236fc202016-03-09 14:32:57 +0530339QDF_STATUS send_lphb_config_udp_params_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530340 wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req);
341
Govind Singh236fc202016-03-09 14:32:57 +0530342QDF_STATUS send_lphb_config_udp_pkt_filter_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530343 wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req);
344
Govind Singh236fc202016-03-09 14:32:57 +0530345QDF_STATUS send_process_dhcp_ind_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530346 wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind);
347
Govind Singh236fc202016-03-09 14:32:57 +0530348QDF_STATUS send_get_link_speed_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530349 wmi_mac_addr peer_macaddr);
350
Govind Singh236fc202016-03-09 14:32:57 +0530351QDF_STATUS send_egap_conf_params_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530352 wmi_ap_ps_egap_param_cmd_fixed_param *egap_params);
353
Govind Singh236fc202016-03-09 14:32:57 +0530354QDF_STATUS send_fw_profiling_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530355 uint32_t cmd, uint32_t value1, uint32_t value2);
356
Govind Singh236fc202016-03-09 14:32:57 +0530357QDF_STATUS send_wow_sta_ra_filter_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530358 uint8_t vdev_id, uint8_t default_pattern,
359 uint16_t rate_limit_interval);
360
Govind Singh236fc202016-03-09 14:32:57 +0530361QDF_STATUS send_nat_keepalive_en_cmd_tlv(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singh25729ce2016-03-07 15:33:31 +0530362
Govind Singh236fc202016-03-09 14:32:57 +0530363QDF_STATUS send_csa_offload_enable_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530364 uint8_t vdev_id);
365
Govind Singh236fc202016-03-09 14:32:57 +0530366QDF_STATUS send_start_oem_data_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530367 uint8_t data_len,
368 uint8_t *data);
369
Govind Singh236fc202016-03-09 14:32:57 +0530370QDF_STATUS
Govind Singh25729ce2016-03-07 15:33:31 +0530371send_dfs_phyerr_filter_offload_en_cmd_tlv(wmi_unified_t wmi_handle,
372 bool dfs_phyerr_filter_offload);
373
Govind Singh236fc202016-03-09 14:32:57 +0530374QDF_STATUS send_pktlog_wmi_send_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530375 WMI_PKTLOG_EVENT pktlog_event,
376 WMI_CMD_ID cmd_id);
377
Govind Singh236fc202016-03-09 14:32:57 +0530378QDF_STATUS send_add_wow_wakeup_event_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530379 uint32_t vdev_id,
380 uint32_t bitmap,
381 bool enable);
382
Govind Singh236fc202016-03-09 14:32:57 +0530383QDF_STATUS send_wow_patterns_to_fw_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530384 uint8_t vdev_id, uint8_t ptrn_id,
385 const uint8_t *ptrn, uint8_t ptrn_len,
386 uint8_t ptrn_offset, const uint8_t *mask,
387 uint8_t mask_len, bool user,
388 uint8_t default_patterns);
389
Govind Singh236fc202016-03-09 14:32:57 +0530390QDF_STATUS send_wow_delete_pattern_cmd_tlv(wmi_unified_t wmi_handle, uint8_t ptrn_id,
Govind Singh25729ce2016-03-07 15:33:31 +0530391 uint8_t vdev_id);
392
Govind Singh236fc202016-03-09 14:32:57 +0530393QDF_STATUS send_host_wakeup_ind_to_fw_cmd_tlv(wmi_unified_t wmi_handle);
Govind Singh25729ce2016-03-07 15:33:31 +0530394
Govind Singh236fc202016-03-09 14:32:57 +0530395QDF_STATUS send_del_ts_cmd_tlv(wmi_unified_t wmi_handle, uint8_t vdev_id,
Govind Singh25729ce2016-03-07 15:33:31 +0530396 uint8_t ac);
397
Govind Singh236fc202016-03-09 14:32:57 +0530398QDF_STATUS send_aggr_qos_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530399 struct aggr_add_ts_param *aggr_qos_rsp_msg);
400
Govind Singh236fc202016-03-09 14:32:57 +0530401QDF_STATUS send_add_ts_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530402 struct add_ts_param *msg);
403
Govind Singh236fc202016-03-09 14:32:57 +0530404QDF_STATUS send_enable_disable_packet_filter_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530405 uint8_t vdev_id, bool enable);
406
Govind Singh236fc202016-03-09 14:32:57 +0530407QDF_STATUS send_config_packet_filter_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530408 uint8_t vdev_id, struct rcv_pkt_filter_config *rcv_filter_param,
409 uint8_t filter_id, bool enable);
410
Govind Singh236fc202016-03-09 14:32:57 +0530411QDF_STATUS send_add_clear_mcbc_filter_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530412 uint8_t vdev_id,
Govind Singh236fc202016-03-09 14:32:57 +0530413 struct qdf_mac_addr multicast_addr,
Govind Singh25729ce2016-03-07 15:33:31 +0530414 bool clearList);
415
Govind Singh236fc202016-03-09 14:32:57 +0530416QDF_STATUS send_gtk_offload_cmd_tlv(wmi_unified_t wmi_handle, uint8_t vdev_id,
Govind Singh25729ce2016-03-07 15:33:31 +0530417 struct gtk_offload_params *params,
418 bool enable_offload,
419 uint32_t gtk_offload_opcode);
420
Govind Singh236fc202016-03-09 14:32:57 +0530421QDF_STATUS send_process_gtk_offload_getinfo_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530422 uint8_t vdev_id,
423 uint64_t offload_req_opcode);
424
Govind Singh236fc202016-03-09 14:32:57 +0530425QDF_STATUS send_process_add_periodic_tx_ptrn_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530426 struct periodic_tx_pattern *
427 pAddPeriodicTxPtrnParams,
428 uint8_t vdev_id);
429
Govind Singh236fc202016-03-09 14:32:57 +0530430QDF_STATUS send_process_del_periodic_tx_ptrn_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530431 uint8_t vdev_id,
432 uint8_t pattern_id);
433
Govind Singh236fc202016-03-09 14:32:57 +0530434QDF_STATUS send_stats_ext_req_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530435 struct stats_ext_params *preq);
436
Govind Singh236fc202016-03-09 14:32:57 +0530437QDF_STATUS send_enable_ext_wow_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530438 struct ext_wow_params *params);
439
Govind Singh236fc202016-03-09 14:32:57 +0530440QDF_STATUS send_set_app_type2_params_in_fw_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530441 struct app_type2_params *appType2Params);
442
Govind Singh236fc202016-03-09 14:32:57 +0530443QDF_STATUS send_set_auto_shutdown_timer_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530444 uint32_t timer_val);
445
Govind Singh236fc202016-03-09 14:32:57 +0530446QDF_STATUS send_nan_req_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530447 struct nan_req_params *nan_req);
448
Govind Singh236fc202016-03-09 14:32:57 +0530449QDF_STATUS send_process_dhcpserver_offload_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530450 struct dhcp_offload_info_params *pDhcpSrvOffloadInfo);
451
Govind Singh236fc202016-03-09 14:32:57 +0530452QDF_STATUS send_process_ch_avoid_update_cmd_tlv(wmi_unified_t wmi_handle);
Govind Singh25729ce2016-03-07 15:33:31 +0530453
Govind Singh236fc202016-03-09 14:32:57 +0530454QDF_STATUS send_regdomain_info_to_fw_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530455 uint32_t reg_dmn, uint16_t regdmn2G,
456 uint16_t regdmn5G, int8_t ctl2G,
457 int8_t ctl5G);
458
Govind Singh236fc202016-03-09 14:32:57 +0530459QDF_STATUS send_set_tdls_offchan_mode_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530460 struct tdls_channel_switch_params *chan_switch_params);
461
Govind Singh236fc202016-03-09 14:32:57 +0530462QDF_STATUS send_update_fw_tdls_state_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530463 void *tdls_param, uint8_t tdls_state);
464
Govind Singh236fc202016-03-09 14:32:57 +0530465QDF_STATUS send_update_tdls_peer_state_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530466 struct tdls_peer_state_params *peerStateParams,
467 uint32_t *ch_mhz);
468
469
Govind Singh236fc202016-03-09 14:32:57 +0530470QDF_STATUS send_process_fw_mem_dump_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530471 struct fw_dump_req_param *mem_dump_req);
472
Govind Singh236fc202016-03-09 14:32:57 +0530473QDF_STATUS send_process_set_ie_info_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singh25729ce2016-03-07 15:33:31 +0530474 struct vdev_ie_info_param *ie_info);
Govind Singhb75690a2016-03-07 16:30:32 +0530475
Govind Singh236fc202016-03-09 14:32:57 +0530476QDF_STATUS send_init_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singhb75690a2016-03-07 16:30:32 +0530477 wmi_resource_config *res_cfg,
478 uint8_t num_mem_chunks, struct wmi_host_mem_chunk *mem_chunk,
479 bool action);
480
Govind Singh236fc202016-03-09 14:32:57 +0530481QDF_STATUS send_saved_init_cmd_tlv(wmi_unified_t wmi_handle);
Govind Singhb75690a2016-03-07 16:30:32 +0530482
Govind Singh236fc202016-03-09 14:32:57 +0530483QDF_STATUS save_fw_version_cmd_tlv(wmi_unified_t wmi_handle, void *evt_buf);
Govind Singha2e792e2016-03-07 16:45:38 +0530484
Govind Singh236fc202016-03-09 14:32:57 +0530485QDF_STATUS check_and_update_fw_version_cmd_tlv(wmi_unified_t wmi_hdl, void *ev);
Govind Singha2e792e2016-03-07 16:45:38 +0530486
Govind Singh236fc202016-03-09 14:32:57 +0530487QDF_STATUS send_set_base_macaddr_indicate_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530488 uint8_t *custom_addr);
489
Govind Singh236fc202016-03-09 14:32:57 +0530490QDF_STATUS send_log_supported_evt_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530491 uint8_t *event,
492 uint32_t len);
493
Govind Singh236fc202016-03-09 14:32:57 +0530494QDF_STATUS send_enable_specific_fw_logs_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530495 struct wmi_wifi_start_log *start_log);
496
Govind Singh236fc202016-03-09 14:32:57 +0530497QDF_STATUS send_flush_logs_to_fw_cmd_tlv(wmi_unified_t wmi_handle);
Govind Singha2e792e2016-03-07 16:45:38 +0530498
Manishekar Chandrasekaranb3a30732016-04-21 19:16:32 +0530499QDF_STATUS send_pdev_set_pcl_cmd_tlv(wmi_unified_t wmi_handle,
500 struct wmi_pcl_chan_weights *msg);
Govind Singha2e792e2016-03-07 16:45:38 +0530501
Manishekar Chandrasekaran0d0cff82016-04-27 12:29:16 +0530502QDF_STATUS send_pdev_set_hw_mode_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530503 uint32_t hw_mode_index);
504
Govind Singh236fc202016-03-09 14:32:57 +0530505QDF_STATUS send_soc_set_dual_mac_config_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530506 struct wmi_dual_mac_config *msg);
507
Govind Singh236fc202016-03-09 14:32:57 +0530508QDF_STATUS send_enable_arp_ns_offload_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530509 struct host_offload_req_param *param, bool arp_only,
510 uint8_t vdev_id);
511
Govind Singh236fc202016-03-09 14:32:57 +0530512QDF_STATUS send_set_led_flashing_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530513 struct flashing_req_params *flashing);
514
Govind Singh236fc202016-03-09 14:32:57 +0530515QDF_STATUS send_app_type1_params_in_fw_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530516 struct app_type1_params *app_type1_params);
517
Govind Singh236fc202016-03-09 14:32:57 +0530518QDF_STATUS
Govind Singha2e792e2016-03-07 16:45:38 +0530519send_set_ssid_hotlist_cmd_tlv(wmi_unified_t wmi_handle,
520 struct ssid_hotlist_request_params *request);
521
Govind Singh236fc202016-03-09 14:32:57 +0530522QDF_STATUS send_process_roam_synch_complete_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530523 uint8_t vdev_id);
524
Govind Singh236fc202016-03-09 14:32:57 +0530525QDF_STATUS send_unit_test_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530526 struct wmi_unit_test_cmd *wmi_utest);
527
Govind Singh236fc202016-03-09 14:32:57 +0530528QDF_STATUS send_roam_invoke_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530529 struct wmi_roam_invoke_cmd *roaminvoke,
530 uint32_t ch_hz);
531
Govind Singh236fc202016-03-09 14:32:57 +0530532QDF_STATUS send_roam_scan_offload_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530533 uint32_t command, uint32_t vdev_id);
534
Govind Singh236fc202016-03-09 14:32:57 +0530535QDF_STATUS send_roam_scan_offload_ap_profile_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530536 wmi_ap_profile *ap_profile_p,
537 uint32_t vdev_id);
538
Govind Singh236fc202016-03-09 14:32:57 +0530539QDF_STATUS send_roam_scan_offload_scan_period_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530540 uint32_t scan_period,
541 uint32_t scan_age,
542 uint32_t vdev_id);
543
Govind Singh236fc202016-03-09 14:32:57 +0530544QDF_STATUS send_roam_scan_offload_chan_list_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530545 uint8_t chan_count,
Varun Reddy Yeturuf99241e2016-07-07 17:42:49 -0700546 uint32_t *chan_list,
Govind Singha2e792e2016-03-07 16:45:38 +0530547 uint8_t list_type, uint32_t vdev_id);
548
Govind Singh236fc202016-03-09 14:32:57 +0530549QDF_STATUS send_roam_scan_offload_rssi_change_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530550 uint32_t vdev_id,
551 int32_t rssi_change_thresh,
552 uint32_t bcn_rssi_weight,
553 uint32_t hirssi_delay_btw_scans);
554
Govind Singh236fc202016-03-09 14:32:57 +0530555QDF_STATUS send_get_buf_extscan_hotlist_cmd_tlv(wmi_unified_t wmi_handle,
Govind Singha2e792e2016-03-07 16:45:38 +0530556 struct ext_scan_setbssi_hotlist_params *
557 photlist, int *buf_len);
558#endif
559