blob: 58fd3e51d072efeb8009b30340d8705f4604946f [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 Singh6ad6ada2016-02-04 18:42:30 +053029 * This file contains the API definitions for the Unified Wireless Module
30 * Interface (WMI).
Govind Singhd475ea92016-03-06 19:55:02 +053031 */
32
33#ifndef _WMI_UNIFIED_API_H_
34#define _WMI_UNIFIED_API_H_
35
36#include <osdep.h>
37#include "a_types.h"
38#include "ol_defines.h"
39#include "wmi.h"
40#include "htc_api.h"
Govind Singh3ddda1f2016-03-09 11:34:12 +053041#include "wmi_unified_param.h"
Govind Singhd475ea92016-03-06 19:55:02 +053042
Govind Singhd7468a52016-03-09 14:32:57 +053043typedef qdf_nbuf_t wmi_buf_t;
44#define wmi_buf_data(_buf) qdf_nbuf_data(_buf)
45
46#define WMI_LOGD(args ...) \
47 QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_DEBUG, ## args)
48#define WMI_LOGI(args ...) \
49 QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_INFO, ## args)
50#define WMI_LOGW(args ...) \
51 QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_WARN, ## args)
52#define WMI_LOGE(args ...) \
53 QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_ERROR, ## args)
54#define WMI_LOGP(args ...) \
55 QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_FATAL, ## args)
56
57#define WMI_DEBUG_ALWAYS
58
59#ifdef WMI_DEBUG_ALWAYS
60#define WMI_LOGA(args ...) \
61 QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_FATAL, ## args)
62#else
63#define WMI_LOGA(args ...)
64#endif
Govind Singhd475ea92016-03-06 19:55:02 +053065
66/**
Govind Singh6ad6ada2016-02-04 18:42:30 +053067 * struct wmi_ops - service callbacks to upper layer
68 * @service_ready_cbk: service ready callback
69 * @service_ready_ext_cbk: service ready ext callback
70 * @ready_cbk: ready calback
71 * @wma_process_fw_event_handler_cbk: generic event handler callback
72 */
Govind Singh3ddda1f2016-03-09 11:34:12 +053073struct wmi_rx_ops {
Govind Singh4ec6ff92016-03-09 12:03:29 +053074
Govind Singh6ad6ada2016-02-04 18:42:30 +053075 int (*wma_process_fw_event_handler_cbk)(void *ctx,
Govind Singh4ec6ff92016-03-09 12:03:29 +053076 void *ev, uint8_t rx_ctx);
Govind Singh6ad6ada2016-02-04 18:42:30 +053077};
78
79/**
80 * enum wmi_target_type - type of supported wmi command
81 * @WMI_TLV_TARGET: tlv based target
82 * @WMI_NON_TLV_TARGET: non-tlv based target
83 *
84 */
85enum wmi_target_type {
86 WMI_TLV_TARGET,
87 WMI_NON_TLV_TARGET
88};
89
90/**
Govind Singh4ec6ff92016-03-09 12:03:29 +053091 * enum wmi_rx_exec_ctx - wmi rx execution context
92 * @WMI_RX_WORK_CTX: work queue context execution provided by WMI layer
93 * @WMI_RX_UMAC_CTX: execution context provided by umac layer
94 *
95 */
96enum wmi_rx_exec_ctx {
97 WMI_RX_WORK_CTX,
98 WMI_RX_UMAC_CTX
99};
100
101/**
Govind Singhd475ea92016-03-06 19:55:02 +0530102 * attach for unified WMI
103 *
104 * @param scn_handle : handle to SCN.
105 * @return opaque handle.
106 */
107void *wmi_unified_attach(void *scn_handle,
Govind Singh6ad6ada2016-02-04 18:42:30 +0530108 osdev_t osdev, enum wmi_target_type target_type,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530109 bool use_cookie, struct wmi_rx_ops *ops);
Govind Singh6ad6ada2016-02-04 18:42:30 +0530110
Govind Singhd475ea92016-03-06 19:55:02 +0530111/**
112 * detach for unified WMI
113 *
114 * @param wmi_handle : handle to WMI.
115 * @return void.
116 */
117void wmi_unified_detach(struct wmi_unified *wmi_handle);
118
119void
120wmi_unified_remove_work(struct wmi_unified *wmi_handle);
121
122/**
123 * generic function to allocate WMI buffer
124 *
125 * @param wmi_handle : handle to WMI.
126 * @param len : length of the buffer
127 * @return wmi_buf_t.
128 */
129#ifdef MEMORY_DEBUG
130#define wmi_buf_alloc(h, l) wmi_buf_alloc_debug(h, l, __FILE__, __LINE__)
131wmi_buf_t
132wmi_buf_alloc_debug(wmi_unified_t wmi_handle, uint16_t len,
133 uint8_t *file_name, uint32_t line_num);
134#else
135wmi_buf_t wmi_buf_alloc(wmi_unified_t wmi_handle, uint16_t len);
136#endif
137
138/**
139 * generic function frees WMI net buffer
140 *
141 * @param net_buf : Pointer ot net_buf to be freed
142 */
143void wmi_buf_free(wmi_buf_t net_buf);
144
145/**
146 * generic function to send unified WMI command
147 *
148 * @param wmi_handle : handle to WMI.
149 * @param buf : wmi command buffer
150 * @param buflen : wmi command buffer length
151 * @return 0 on success and -ve on failure.
152 */
153int
Govind Singh6ad6ada2016-02-04 18:42:30 +0530154wmi_unified_cmd_send(wmi_unified_t wmi_handle, wmi_buf_t buf, uint32_t buflen,
Govind Singhd475ea92016-03-06 19:55:02 +0530155 WMI_CMD_ID cmd_id);
156
157/**
Govind Singh4ec6ff92016-03-09 12:03:29 +0530158 * wmi_unified_register_event_handler() - WMI event handler
159 * registration function
Govind Singhd475ea92016-03-06 19:55:02 +0530160 *
Govind Singh4ec6ff92016-03-09 12:03:29 +0530161 * @wmi_handle: handle to WMI.
162 * @event_id: WMI event ID
163 * @handler_func: Event handler call back function
164 * @rx_ctx: rx event processing context
165 *
Govind Singhd475ea92016-03-06 19:55:02 +0530166 * @return 0 on success and -ve on failure.
167 */
168int
169wmi_unified_register_event_handler(wmi_unified_t wmi_handle,
170 WMI_EVT_ID event_id,
Govind Singh4ec6ff92016-03-09 12:03:29 +0530171 wmi_unified_event_handler handler_func,
172 uint8_t rx_ctx);
Govind Singhd475ea92016-03-06 19:55:02 +0530173
174/**
175 * WMI event handler unregister function
176 *
177 * @param wmi_handle : handle to WMI.
178 * @param event_id : WMI event ID
179 * @return 0 on success and -ve on failure.
180 */
181int
182wmi_unified_unregister_event_handler(wmi_unified_t wmi_handle,
183 WMI_EVT_ID event_id);
184
185/**
186 * request wmi to connet its htc service.
187 * @param wmi_handle : handle to WMI.
188 * @return void
189 */
190int
191wmi_unified_connect_htc_service(struct wmi_unified *wmi_handle,
192 void *htc_handle);
193
194/*
195 * WMI API to verify the host has enough credits to suspend
196 */
197
198int wmi_is_suspend_ready(wmi_unified_t wmi_handle);
199
200/**
201 WMI API to get updated host_credits
202 */
203
204int wmi_get_host_credits(wmi_unified_t wmi_handle);
205
206/**
207 WMI API to get WMI Pending Commands in the HTC queue
208 */
209
210int wmi_get_pending_cmds(wmi_unified_t wmi_handle);
211
212/**
213 WMI API to set target suspend state
214 */
Govind Singhd475ea92016-03-06 19:55:02 +0530215void wmi_set_target_suspend(wmi_unified_t wmi_handle, bool val);
216
217#ifdef FEATURE_RUNTIME_PM
218void
219wmi_set_runtime_pm_inprogress(wmi_unified_t wmi_handle, bool val);
220bool wmi_get_runtime_pm_inprogress(wmi_unified_t wmi_handle);
221#else
222static inline void
223wmi_set_runtime_pm_inprogress(wmi_unified_t wmi_handle, bool val)
224{
225 return;
226}
227static inline bool wmi_get_runtime_pm_inprogress(wmi_unified_t wmi_handle)
228{
229 return false;
230}
231#endif
232
Govind Singh4ec6ff92016-03-09 12:03:29 +0530233
Govind Singhd475ea92016-03-06 19:55:02 +0530234/**
Govind Singhd7468a52016-03-09 14:32:57 +0530235 * UMAC Callback to process fw event.
Govind Singhd475ea92016-03-06 19:55:02 +0530236 */
Govind Singhd475ea92016-03-06 19:55:02 +0530237void wmi_process_fw_event(struct wmi_unified *wmi_handle, wmi_buf_t evt_buf);
238uint16_t wmi_get_max_msg_len(wmi_unified_t wmi_handle);
Govind Singh3ddda1f2016-03-09 11:34:12 +0530239
240
Govind Singhd7468a52016-03-09 14:32:57 +0530241QDF_STATUS wmi_unified_vdev_create_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530242 uint8_t macaddr[IEEE80211_ADDR_LEN],
243 struct vdev_create_params *param);
244
Govind Singhd7468a52016-03-09 14:32:57 +0530245QDF_STATUS wmi_unified_vdev_delete_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530246 uint8_t if_id);
247
Govind Singhd7468a52016-03-09 14:32:57 +0530248QDF_STATUS wmi_unified_vdev_restart_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530249 uint8_t macaddr[IEEE80211_ADDR_LEN],
250 struct vdev_start_params *param);
251
Govind Singhd7468a52016-03-09 14:32:57 +0530252QDF_STATUS wmi_unified_vdev_stop_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530253 uint8_t vdev_id);
254
Govind Singhd7468a52016-03-09 14:32:57 +0530255QDF_STATUS wmi_unified_vdev_up_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530256 uint8_t bssid[IEEE80211_ADDR_LEN],
257 struct vdev_up_params *params);
258
Govind Singhd7468a52016-03-09 14:32:57 +0530259QDF_STATUS wmi_unified_vdev_down_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530260 uint8_t vdev_id);
261
Himanshu Agarwal7e4f4bc2016-03-09 16:49:38 +0530262QDF_STATUS wmi_unified_vdev_start_send(void *wmi_hdl,
263 struct vdev_start_params *req);
264
265QDF_STATUS wmi_unified_hidden_ssid_vdev_restart_send(void *wmi_hdl,
266 struct hidden_ssid_vdev_restart_params *restart_params);
267
Govind Singhd7468a52016-03-09 14:32:57 +0530268QDF_STATUS wmi_unified_vdev_set_param_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530269 struct vdev_set_params *param);
270
Govind Singhd7468a52016-03-09 14:32:57 +0530271QDF_STATUS wmi_unified_peer_delete_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530272 uint8_t
273 peer_addr[IEEE80211_ADDR_LEN],
274 uint8_t vdev_id);
275
Govind Singhd7468a52016-03-09 14:32:57 +0530276QDF_STATUS wmi_unified_peer_flush_tids_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530277 uint8_t peer_addr[IEEE80211_ADDR_LEN],
278 struct peer_flush_params *param);
279
Govind Singhd7468a52016-03-09 14:32:57 +0530280QDF_STATUS wmi_set_peer_param_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530281 uint8_t peer_addr[IEEE80211_ADDR_LEN],
282 struct peer_set_params *param);
283
Govind Singhd7468a52016-03-09 14:32:57 +0530284QDF_STATUS wmi_unified_peer_create_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530285 struct peer_create_params *param);
286
Govind Singhd7468a52016-03-09 14:32:57 +0530287QDF_STATUS wmi_unified_stats_request_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530288 uint8_t macaddr[IEEE80211_ADDR_LEN],
289 struct stats_request_params *param);
290
Govind Singhd7468a52016-03-09 14:32:57 +0530291QDF_STATUS wmi_unified_green_ap_ps_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530292 uint32_t value, uint8_t mac_id);
293
294
Govind Singhd7468a52016-03-09 14:32:57 +0530295QDF_STATUS wmi_unified_wow_enable_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530296 struct wow_cmd_params *param,
297 uint8_t mac_id);
298
Govind Singhd7468a52016-03-09 14:32:57 +0530299QDF_STATUS wmi_unified_packet_log_enable_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530300 uint8_t macaddr[IEEE80211_ADDR_LEN],
301 struct packet_enable_params *param);
302
303
Govind Singhd7468a52016-03-09 14:32:57 +0530304QDF_STATUS wmi_unified_suspend_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530305 struct suspend_params *param,
306 uint8_t mac_id);
307
Govind Singhd7468a52016-03-09 14:32:57 +0530308QDF_STATUS wmi_unified_resume_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530309 uint8_t mac_id);
310
Govind Singhd7468a52016-03-09 14:32:57 +0530311QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530312wmi_unified_pdev_param_send(void *wmi_hdl,
313 struct pdev_params *param,
314 uint8_t mac_id);
315
Govind Singhd7468a52016-03-09 14:32:57 +0530316QDF_STATUS wmi_unified_beacon_send_cmd(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530317 struct beacon_params *param);
318
Govind Singhd7468a52016-03-09 14:32:57 +0530319QDF_STATUS wmi_unified_peer_assoc_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530320 struct peer_assoc_params *param);
321
Govind Singhd7468a52016-03-09 14:32:57 +0530322QDF_STATUS wmi_unified_sta_ps_cmd_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530323 struct sta_ps_params *param);
324
Govind Singhd7468a52016-03-09 14:32:57 +0530325QDF_STATUS wmi_unified_ap_ps_cmd_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530326 uint8_t macaddr[IEEE80211_ADDR_LEN],
327 struct ap_ps_params *param);
328
Govind Singhd7468a52016-03-09 14:32:57 +0530329QDF_STATUS wmi_unified_scan_start_cmd_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530330 struct scan_start_params *param);
331
Govind Singhd7468a52016-03-09 14:32:57 +0530332QDF_STATUS wmi_unified_scan_stop_cmd_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530333 struct scan_stop_params *param);
334
Govind Singhd7468a52016-03-09 14:32:57 +0530335QDF_STATUS wmi_unified_scan_chan_list_cmd_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530336 struct scan_chan_list_params *param);
337
338
Govind Singhd7468a52016-03-09 14:32:57 +0530339QDF_STATUS wmi_crash_inject(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530340 struct crash_inject *param);
341
Govind Singhd7468a52016-03-09 14:32:57 +0530342QDF_STATUS wmi_unified_pdev_utf_cmd_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530343 struct pdev_utf_params *param,
344 uint8_t mac_id);
345
Govind Singhd7468a52016-03-09 14:32:57 +0530346QDF_STATUS wmi_unified_dbglog_cmd_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530347 struct dbglog_params *param);
348
Govind Singhd7468a52016-03-09 14:32:57 +0530349QDF_STATUS wmi_mgmt_unified_cmd_send(void *wmi_hdl,
Govind Singh50988cc2016-02-26 18:09:36 +0530350 struct wmi_mgmt_params *param);
351
Govind Singhd7468a52016-03-09 14:32:57 +0530352QDF_STATUS wmi_unified_modem_power_state(void *wmi_hdl,
Govind Singh50988cc2016-02-26 18:09:36 +0530353 uint32_t param_value);
354
Govind Singhd7468a52016-03-09 14:32:57 +0530355QDF_STATUS wmi_unified_set_sta_ps_mode(void *wmi_hdl,
Govind Singh50988cc2016-02-26 18:09:36 +0530356 uint32_t vdev_id, uint8_t val);
Govind Singhd7468a52016-03-09 14:32:57 +0530357QDF_STATUS
Govind Singh50988cc2016-02-26 18:09:36 +0530358wmi_unified_set_sta_uapsd_auto_trig_cmd(void *wmi_hdl,
359 struct sta_uapsd_trig_params *param);
360
Govind Singhd7468a52016-03-09 14:32:57 +0530361QDF_STATUS wmi_unified_get_temperature(void *wmi_hdl);
Govind Singh50988cc2016-02-26 18:09:36 +0530362
Govind Singhd7468a52016-03-09 14:32:57 +0530363QDF_STATUS wmi_unified_set_p2pgo_oppps_req(void *wmi_hdl,
Govind Singh50988cc2016-02-26 18:09:36 +0530364 struct p2p_ps_params *oppps);
365
Govind Singhd7468a52016-03-09 14:32:57 +0530366QDF_STATUS wmi_unified_set_p2pgo_noa_req_cmd(void *wmi_hdl,
Govind Singh50988cc2016-02-26 18:09:36 +0530367 struct p2p_ps_params *noa);
368
Govind Singhd7468a52016-03-09 14:32:57 +0530369QDF_STATUS wmi_unified_set_smps_params(void *wmi_hdl, uint8_t vdev_id,
Govind Singh50988cc2016-02-26 18:09:36 +0530370 int value);
371
Govind Singhd7468a52016-03-09 14:32:57 +0530372QDF_STATUS wmi_unified_set_mimops(void *wmi_hdl, uint8_t vdev_id, int value);
Govind Singhe7b800c2016-03-01 15:30:53 +0530373
Govind Singhd7468a52016-03-09 14:32:57 +0530374QDF_STATUS wmi_unified_ocb_set_utc_time(void *wmi_hdl,
Govind Singhe7b800c2016-03-01 15:30:53 +0530375 struct ocb_utc_param *utc);
376
Govind Singhd7468a52016-03-09 14:32:57 +0530377QDF_STATUS wmi_unified_ocb_start_timing_advert(void *wmi_hdl,
Govind Singhe7b800c2016-03-01 15:30:53 +0530378 struct ocb_timing_advert_param *timing_advert);
379
Govind Singhd7468a52016-03-09 14:32:57 +0530380QDF_STATUS wmi_unified_ocb_stop_timing_advert(void *wmi_hdl,
Govind Singhe7b800c2016-03-01 15:30:53 +0530381 struct ocb_timing_advert_param *timing_advert);
382
Govind Singhd7468a52016-03-09 14:32:57 +0530383QDF_STATUS wmi_unified_ocb_set_config(void *wmi_hdl,
Govind Singhe7b800c2016-03-01 15:30:53 +0530384 struct ocb_config_param *config, uint32_t *ch_mhz);
385
Govind Singhd7468a52016-03-09 14:32:57 +0530386QDF_STATUS wmi_unified_ocb_get_tsf_timer(void *wmi_hdl,
Govind Singhe7b800c2016-03-01 15:30:53 +0530387 uint8_t vdev_id);
388
Govind Singhd7468a52016-03-09 14:32:57 +0530389QDF_STATUS wmi_unified_lro_config_cmd(void *wmi_hdl,
Govind Singh9bad0002016-03-01 15:54:59 +0530390 struct wmi_lro_config_cmd_t *wmi_lro_cmd);
391
Govind Singhd7468a52016-03-09 14:32:57 +0530392QDF_STATUS wmi_unified_set_thermal_mgmt_cmd(void *wmi_hdl,
Govind Singh9bad0002016-03-01 15:54:59 +0530393 struct thermal_cmd_params *thermal_info);
394
Govind Singhd7468a52016-03-09 14:32:57 +0530395QDF_STATUS wmi_unified_set_mcc_channel_time_quota_cmd
Govind Singh9bad0002016-03-01 15:54:59 +0530396 (void *wmi_hdl,
397 uint32_t adapter_1_chan_freq,
398 uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq);
399
Govind Singhd7468a52016-03-09 14:32:57 +0530400QDF_STATUS wmi_unified_set_mcc_channel_time_latency_cmd
Govind Singh9bad0002016-03-01 15:54:59 +0530401 (void *wmi_hdl,
402 uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency);
403
Govind Singhd7468a52016-03-09 14:32:57 +0530404QDF_STATUS wmi_unified_set_enable_disable_mcc_adaptive_scheduler_cmd(
Govind Singh9bad0002016-03-01 15:54:59 +0530405 void *wmi_hdl, uint32_t mcc_adaptive_scheduler);
Govind Singhae855362016-03-07 14:24:22 +0530406
Govind Singhd7468a52016-03-09 14:32:57 +0530407QDF_STATUS wmi_unified_bcn_buf_ll_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530408 wmi_bcn_send_from_host_cmd_fixed_param *param);
409
Govind Singhd7468a52016-03-09 14:32:57 +0530410QDF_STATUS wmi_unified_set_sta_sa_query_param_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530411 uint8_t vdev_id, uint32_t max_retries,
412 uint32_t retry_interval);
413
414
Govind Singhd7468a52016-03-09 14:32:57 +0530415QDF_STATUS wmi_unified_set_sta_keep_alive_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530416 struct sta_params *params);
417
Govind Singhd7468a52016-03-09 14:32:57 +0530418QDF_STATUS wmi_unified_vdev_set_gtx_cfg_cmd(void *wmi_hdl, uint32_t if_id,
Govind Singhae855362016-03-07 14:24:22 +0530419 struct wmi_gtx_config *gtx_info);
420
421
Govind Singhd7468a52016-03-09 14:32:57 +0530422QDF_STATUS wmi_unified_process_update_edca_param(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530423 uint8_t vdev_id,
424 wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]);
425
426
Govind Singhd7468a52016-03-09 14:32:57 +0530427QDF_STATUS wmi_unified_probe_rsp_tmpl_send_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530428 uint8_t vdev_id,
429 struct wmi_probe_resp_params *probe_rsp_info,
430 uint8_t *frm);
431
Govind Singhd7468a52016-03-09 14:32:57 +0530432QDF_STATUS wmi_unified_p2p_go_set_beacon_ie_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530433 A_UINT32 vdev_id, uint8_t *p2p_ie);
434
435
Govind Singhd7468a52016-03-09 14:32:57 +0530436QDF_STATUS wmi_unified_set_gateway_params_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530437 struct gateway_update_req_param *req);
438
Govind Singhd7468a52016-03-09 14:32:57 +0530439QDF_STATUS wmi_unified_set_rssi_monitoring_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530440 struct rssi_monitor_param *req);
441
Govind Singhd7468a52016-03-09 14:32:57 +0530442QDF_STATUS wmi_unified_scan_probe_setoui_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530443 struct scan_mac_oui *psetoui);
444
Govind Singhd7468a52016-03-09 14:32:57 +0530445QDF_STATUS wmi_unified_reset_passpoint_network_list_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530446 struct wifi_passpoint_req_param *req);
447
Govind Singhd7468a52016-03-09 14:32:57 +0530448QDF_STATUS wmi_unified_set_passpoint_network_list_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530449 struct wifi_passpoint_req_param *req);
450
Himanshu Agarwal5f2d0482016-03-09 15:25:44 +0530451QDF_STATUS wmi_unified_roam_scan_offload_mode_cmd(void *wmi_hdl,
452 wmi_start_scan_cmd_fixed_param *scan_cmd_fp,
453 struct roam_offload_scan_params *roam_req);
454
455QDF_STATUS wmi_unified_roam_scan_offload_rssi_thresh_cmd(void *wmi_hdl,
456 struct roam_offload_scan_rssi_params *roam_req);
457
458QDF_STATUS wmi_unified_roam_scan_filter_cmd(void *wmi_hdl,
459 struct roam_scan_filter_params *roam_req);
460
Govind Singhd7468a52016-03-09 14:32:57 +0530461QDF_STATUS wmi_unified_set_epno_network_list_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530462 struct wifi_enhanched_pno_params *req);
463
Govind Singhd7468a52016-03-09 14:32:57 +0530464QDF_STATUS wmi_unified_ipa_offload_control_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530465 struct ipa_offload_control_params *ipa_offload);
466
Govind Singhd7468a52016-03-09 14:32:57 +0530467QDF_STATUS wmi_unified_extscan_get_capabilities_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530468 struct extscan_capabilities_params *pgetcapab);
469
Govind Singhd7468a52016-03-09 14:32:57 +0530470QDF_STATUS wmi_unified_extscan_get_cached_results_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530471 struct extscan_cached_result_params *pcached_results);
472
473
Govind Singhd7468a52016-03-09 14:32:57 +0530474QDF_STATUS wmi_unified_extscan_stop_change_monitor_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530475 struct extscan_capabilities_reset_params *reset_req);
476
477
Govind Singhd7468a52016-03-09 14:32:57 +0530478QDF_STATUS wmi_unified_extscan_start_change_monitor_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530479 struct extscan_set_sig_changereq_params *
480 psigchange);
481
Govind Singhd7468a52016-03-09 14:32:57 +0530482QDF_STATUS wmi_unified_extscan_stop_hotlist_monitor_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530483 struct extscan_bssid_hotlist_reset_params *photlist_reset);
484
Govind Singhd7468a52016-03-09 14:32:57 +0530485QDF_STATUS wmi_unified_stop_extscan_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530486 struct extscan_stop_req_params *pstopcmd);
487
Govind Singhd7468a52016-03-09 14:32:57 +0530488QDF_STATUS wmi_unified_start_extscan_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530489 struct wifi_scan_cmd_req_params *pstart);
490
Govind Singhd7468a52016-03-09 14:32:57 +0530491QDF_STATUS wmi_unified_plm_stop_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530492 const struct plm_req_params *plm);
493
Govind Singhd7468a52016-03-09 14:32:57 +0530494QDF_STATUS wmi_unified_plm_start_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530495 const struct plm_req_params *plm,
496 uint32_t *gchannel_list);
497
Govind Singhd7468a52016-03-09 14:32:57 +0530498QDF_STATUS wmi_unified_pno_stop_cmd(void *wmi_hdl, uint8_t vdev_id);
Govind Singhae855362016-03-07 14:24:22 +0530499
Govind Singhd7468a52016-03-09 14:32:57 +0530500QDF_STATUS wmi_unified_pno_start_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530501 struct pno_scan_req_params *pno,
502 uint32_t *gchannel_freq_list);
503
Govind Singhd7468a52016-03-09 14:32:57 +0530504QDF_STATUS wmi_unified_set_ric_req_cmd(void *wmi_hdl, void *msg,
Govind Singhae855362016-03-07 14:24:22 +0530505 uint8_t is_add_ts);
506
Govind Singhd7468a52016-03-09 14:32:57 +0530507QDF_STATUS wmi_unified_process_ll_stats_clear_cmd
Govind Singhae855362016-03-07 14:24:22 +0530508 (void *wmi_hdl, const struct ll_stats_clear_params *clear_req,
509 uint8_t addr[IEEE80211_ADDR_LEN]);
510
Govind Singhd7468a52016-03-09 14:32:57 +0530511QDF_STATUS wmi_unified_process_ll_stats_set_cmd
Govind Singhae855362016-03-07 14:24:22 +0530512 (void *wmi_hdl, const struct ll_stats_set_params *set_req);
513
Govind Singhd7468a52016-03-09 14:32:57 +0530514QDF_STATUS wmi_unified_process_ll_stats_get_cmd
Govind Singhae855362016-03-07 14:24:22 +0530515 (void *wmi_hdl, const struct ll_stats_get_params *get_req,
516 uint8_t addr[IEEE80211_ADDR_LEN]);
517
Govind Singhd7468a52016-03-09 14:32:57 +0530518QDF_STATUS wmi_unified_get_stats_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530519 struct pe_stats_req *get_stats_param,
520 uint8_t addr[IEEE80211_ADDR_LEN]);
521
Govind Singhd7468a52016-03-09 14:32:57 +0530522QDF_STATUS wmi_unified_snr_request_cmd(void *wmi_hdl);
Govind Singh229bc0d2016-03-07 15:33:31 +0530523
Govind Singhd7468a52016-03-09 14:32:57 +0530524QDF_STATUS wmi_unified_snr_cmd(void *wmi_hdl, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530525
Govind Singhd7468a52016-03-09 14:32:57 +0530526QDF_STATUS wmi_unified_link_status_req_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530527 struct link_status_params *link_status);
528
Govind Singhd7468a52016-03-09 14:32:57 +0530529QDF_STATUS wmi_unified_lphb_config_hbenable_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530530 wmi_hb_set_enable_cmd_fixed_param *params);
531
Govind Singhd7468a52016-03-09 14:32:57 +0530532QDF_STATUS wmi_unified_lphb_config_tcp_params_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530533 wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req);
534
Govind Singhd7468a52016-03-09 14:32:57 +0530535QDF_STATUS wmi_unified_lphb_config_tcp_pkt_filter_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530536 wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp);
537
Govind Singhd7468a52016-03-09 14:32:57 +0530538QDF_STATUS wmi_unified_lphb_config_udp_params_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530539 wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req);
540
Govind Singhd7468a52016-03-09 14:32:57 +0530541QDF_STATUS wmi_unified_lphb_config_udp_pkt_filter_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530542 wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req);
543
Govind Singhd7468a52016-03-09 14:32:57 +0530544QDF_STATUS wmi_unified_process_dhcp_ind(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530545 wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind);
546
Govind Singhd7468a52016-03-09 14:32:57 +0530547QDF_STATUS wmi_unified_get_link_speed_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530548 wmi_mac_addr peer_macaddr);
549
Govind Singhd7468a52016-03-09 14:32:57 +0530550QDF_STATUS wmi_unified_egap_conf_params_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530551 wmi_ap_ps_egap_param_cmd_fixed_param *egap_params);
552
Govind Singhd7468a52016-03-09 14:32:57 +0530553QDF_STATUS wmi_unified_fw_profiling_data_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530554 uint32_t cmd, uint32_t value1, uint32_t value2);
555
Govind Singhd7468a52016-03-09 14:32:57 +0530556QDF_STATUS wmi_unified_wow_sta_ra_filter_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530557 uint8_t vdev_id, uint8_t default_pattern,
558 uint16_t rate_limit_interval);
559
Govind Singhd7468a52016-03-09 14:32:57 +0530560QDF_STATUS wmi_unified_nat_keepalive_en_cmd(void *wmi_hdl, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530561
Govind Singhd7468a52016-03-09 14:32:57 +0530562QDF_STATUS wmi_unified_csa_offload_enable(void *wmi_hdl, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530563
Govind Singhd7468a52016-03-09 14:32:57 +0530564QDF_STATUS wmi_unified_start_oem_data_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530565 uint8_t data_len,
566 uint8_t *data);
567
Govind Singhd7468a52016-03-09 14:32:57 +0530568QDF_STATUS wmi_unified_dfs_phyerr_filter_offload_en_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530569 bool dfs_phyerr_filter_offload);
570
Govind Singhd7468a52016-03-09 14:32:57 +0530571QDF_STATUS wmi_unified_pktlog_wmi_send_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530572 WMI_PKTLOG_EVENT pktlog_event,
573 WMI_CMD_ID cmd_id);
574
Govind Singhd7468a52016-03-09 14:32:57 +0530575QDF_STATUS wmi_unified_add_wow_wakeup_event_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530576 uint32_t vdev_id,
577 uint32_t bitmap,
578 bool enable);
579
Govind Singhd7468a52016-03-09 14:32:57 +0530580QDF_STATUS wmi_unified_wow_patterns_to_fw_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530581 uint8_t vdev_id, uint8_t ptrn_id,
582 const uint8_t *ptrn, uint8_t ptrn_len,
583 uint8_t ptrn_offset, const uint8_t *mask,
584 uint8_t mask_len, bool user,
585 uint8_t default_patterns);
586
Govind Singhd7468a52016-03-09 14:32:57 +0530587QDF_STATUS wmi_unified_wow_delete_pattern_cmd(void *wmi_hdl, uint8_t ptrn_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530588 uint8_t vdev_id);
589
Govind Singhd7468a52016-03-09 14:32:57 +0530590QDF_STATUS wmi_unified_host_wakeup_ind_to_fw_cmd(void *wmi_hdl);
591QDF_STATUS wmi_unified_del_ts_cmd(void *wmi_hdl, uint8_t vdev_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530592 uint8_t ac);
593
Govind Singhd7468a52016-03-09 14:32:57 +0530594QDF_STATUS wmi_unified_aggr_qos_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530595 struct aggr_add_ts_param *aggr_qos_rsp_msg);
596
Govind Singhd7468a52016-03-09 14:32:57 +0530597QDF_STATUS wmi_unified_add_ts_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530598 struct add_ts_param *msg);
599
Govind Singhd7468a52016-03-09 14:32:57 +0530600QDF_STATUS wmi_unified_enable_disable_packet_filter_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530601 uint8_t vdev_id, bool enable);
602
Govind Singhd7468a52016-03-09 14:32:57 +0530603QDF_STATUS wmi_unified_config_packet_filter_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530604 uint8_t vdev_id, struct rcv_pkt_filter_config *rcv_filter_param,
605 uint8_t filter_id, bool enable);
606
Govind Singhd7468a52016-03-09 14:32:57 +0530607QDF_STATUS wmi_unified_add_clear_mcbc_filter_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530608 uint8_t vdev_id,
Govind Singhd7468a52016-03-09 14:32:57 +0530609 struct qdf_mac_addr multicast_addr,
Govind Singh229bc0d2016-03-07 15:33:31 +0530610 bool clearList);
611
Govind Singhd7468a52016-03-09 14:32:57 +0530612QDF_STATUS wmi_unified_send_gtk_offload_cmd(void *wmi_hdl, uint8_t vdev_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530613 struct gtk_offload_params *params,
614 bool enable_offload,
615 uint32_t gtk_offload_opcode);
616
Govind Singhd7468a52016-03-09 14:32:57 +0530617QDF_STATUS wmi_unified_process_gtk_offload_getinfo_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530618 uint8_t vdev_id,
619 uint64_t offload_req_opcode);
620
Govind Singhd7468a52016-03-09 14:32:57 +0530621QDF_STATUS wmi_unified_process_add_periodic_tx_ptrn_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530622 struct periodic_tx_pattern *
623 pAddPeriodicTxPtrnParams,
624 uint8_t vdev_id);
625
Govind Singhd7468a52016-03-09 14:32:57 +0530626QDF_STATUS wmi_unified_process_del_periodic_tx_ptrn_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530627 uint8_t vdev_id,
628 uint8_t pattern_id);
629
Govind Singhd7468a52016-03-09 14:32:57 +0530630QDF_STATUS wmi_unified_stats_ext_req_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530631 struct stats_ext_params *preq);
632
Govind Singhd7468a52016-03-09 14:32:57 +0530633QDF_STATUS wmi_unified_enable_ext_wow_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530634 struct ext_wow_params *params);
635
Govind Singhd7468a52016-03-09 14:32:57 +0530636QDF_STATUS wmi_unified_set_app_type2_params_in_fw_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530637 struct app_type2_params *appType2Params);
638
Govind Singhd7468a52016-03-09 14:32:57 +0530639QDF_STATUS wmi_unified_set_auto_shutdown_timer_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530640 uint32_t timer_val);
641
Govind Singhd7468a52016-03-09 14:32:57 +0530642QDF_STATUS wmi_unified_nan_req_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530643 struct nan_req_params *nan_req);
644
Govind Singhd7468a52016-03-09 14:32:57 +0530645QDF_STATUS wmi_unified_process_dhcpserver_offload_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530646 struct dhcp_offload_info_params *pDhcpSrvOffloadInfo);
647
Govind Singhd7468a52016-03-09 14:32:57 +0530648QDF_STATUS wmi_unified_process_ch_avoid_update_cmd(void *wmi_hdl);
Govind Singh229bc0d2016-03-07 15:33:31 +0530649
Govind Singhd7468a52016-03-09 14:32:57 +0530650QDF_STATUS wmi_unified_send_regdomain_info_to_fw_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530651 uint32_t reg_dmn, uint16_t regdmn2G,
652 uint16_t regdmn5G, int8_t ctl2G,
653 int8_t ctl5G);
654
Govind Singhd7468a52016-03-09 14:32:57 +0530655QDF_STATUS wmi_unified_set_tdls_offchan_mode_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530656 struct tdls_channel_switch_params *chan_switch_params);
657
Govind Singhd7468a52016-03-09 14:32:57 +0530658QDF_STATUS wmi_unified_update_fw_tdls_state_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530659 void *tdls_param, uint8_t tdls_state);
660
Govind Singhd7468a52016-03-09 14:32:57 +0530661QDF_STATUS wmi_unified_update_tdls_peer_state_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530662 struct tdls_peer_state_params *peerStateParams,
663 uint32_t *ch_mhz);
664
Govind Singhd7468a52016-03-09 14:32:57 +0530665QDF_STATUS wmi_unified_process_fw_mem_dump_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530666 struct fw_dump_req_param *mem_dump_req);
667
Govind Singhd7468a52016-03-09 14:32:57 +0530668QDF_STATUS wmi_unified_process_set_ie_info_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530669 struct vdev_ie_info_param *ie_info);
670
Govind Singhd7468a52016-03-09 14:32:57 +0530671QDF_STATUS wmi_unified_ocb_set_utc_time_cmd(void *wmi_hdl,
Govind Singhe7b800c2016-03-01 15:30:53 +0530672 struct ocb_utc_param *utc);
Govind Singhae855362016-03-07 14:24:22 +0530673
Govind Singhd7468a52016-03-09 14:32:57 +0530674QDF_STATUS wmi_unified_dcc_get_stats_cmd(void *wmi_hdl,
Govind Singhe7b800c2016-03-01 15:30:53 +0530675 struct dcc_get_stats_param *get_stats_param);
Govind Singhae855362016-03-07 14:24:22 +0530676
Govind Singhd7468a52016-03-09 14:32:57 +0530677QDF_STATUS wmi_unified_dcc_clear_stats(void *wmi_hdl,
Govind Singhe7b800c2016-03-01 15:30:53 +0530678 uint32_t vdev_id, uint32_t dcc_stats_bitmap);
Govind Singh229bc0d2016-03-07 15:33:31 +0530679
Govind Singhd7468a52016-03-09 14:32:57 +0530680QDF_STATUS wmi_unified_dcc_update_ndl(void *wmi_hdl,
Govind Singhe7b800c2016-03-01 15:30:53 +0530681 struct dcc_update_ndl_param *update_ndl_param);
Govind Singh71ee2d72016-03-07 16:30:32 +0530682
Govind Singhd7468a52016-03-09 14:32:57 +0530683QDF_STATUS wmi_unified_save_fw_version_cmd(void *wmi_hdl,
Govind Singh71ee2d72016-03-07 16:30:32 +0530684 void *evt_buf);
685
Govind Singhd7468a52016-03-09 14:32:57 +0530686QDF_STATUS wmi_unified_send_init_cmd(void *wmi_hdl,
Govind Singh71ee2d72016-03-07 16:30:32 +0530687 wmi_resource_config *res_cfg,
688 uint8_t num_mem_chunks, struct wmi_host_mem_chunk *mem_chunk,
689 bool action);
690
Govind Singhd7468a52016-03-09 14:32:57 +0530691QDF_STATUS wmi_unified_send_saved_init_cmd(void *wmi_hdl);
Govind Singh2ae94372016-03-07 16:45:38 +0530692
Govind Singhd7468a52016-03-09 14:32:57 +0530693QDF_STATUS wmi_unified_set_base_macaddr_indicate_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530694 uint8_t *custom_addr);
695
Govind Singhd7468a52016-03-09 14:32:57 +0530696QDF_STATUS wmi_unified_log_supported_evt_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530697 uint8_t *event,
698 uint32_t len);
699
Govind Singhd7468a52016-03-09 14:32:57 +0530700QDF_STATUS wmi_unified_enable_specific_fw_logs_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530701 struct wmi_wifi_start_log *start_log);
702
Govind Singhd7468a52016-03-09 14:32:57 +0530703QDF_STATUS wmi_unified_flush_logs_to_fw_cmd(void *wmi_hdl);
Govind Singh2ae94372016-03-07 16:45:38 +0530704
Govind Singhd7468a52016-03-09 14:32:57 +0530705QDF_STATUS wmi_unified_soc_set_pcl_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530706 struct wmi_pcl_list *msg);
707
Govind Singhd7468a52016-03-09 14:32:57 +0530708QDF_STATUS wmi_unified_soc_set_hw_mode_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530709 uint32_t hw_mode_index);
710
Govind Singhd7468a52016-03-09 14:32:57 +0530711QDF_STATUS wmi_unified_soc_set_dual_mac_config_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530712 struct wmi_dual_mac_config *msg);
713
Govind Singhd7468a52016-03-09 14:32:57 +0530714QDF_STATUS wmi_unified_enable_arp_ns_offload_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530715 struct host_offload_req_param *param, bool arp_only,
716 uint8_t vdev_id);
717
Govind Singhd7468a52016-03-09 14:32:57 +0530718QDF_STATUS wmi_unified_set_led_flashing_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530719 struct flashing_req_params *flashing);
720
Govind Singhd7468a52016-03-09 14:32:57 +0530721QDF_STATUS wmi_unified_app_type1_params_in_fw_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530722 struct app_type1_params *app_type1_params);
723
Govind Singhd7468a52016-03-09 14:32:57 +0530724QDF_STATUS wmi_unified_set_ssid_hotlist_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530725 struct ssid_hotlist_request_params *request);
726
Govind Singhd7468a52016-03-09 14:32:57 +0530727QDF_STATUS wmi_unified_roam_synch_complete_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530728 uint8_t vdev_id);
729
Govind Singhd7468a52016-03-09 14:32:57 +0530730QDF_STATUS wmi_unified_unit_test_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530731 struct wmi_unit_test_cmd *wmi_utest);
732
Govind Singhd7468a52016-03-09 14:32:57 +0530733QDF_STATUS wmi_unified_roam_invoke_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530734 struct wmi_roam_invoke_cmd *roaminvoke,
735 uint32_t ch_hz);
736
Govind Singhd7468a52016-03-09 14:32:57 +0530737QDF_STATUS wmi_unified_roam_scan_offload_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530738 uint32_t command, uint32_t vdev_id);
739
Govind Singhd7468a52016-03-09 14:32:57 +0530740QDF_STATUS wmi_unified_send_roam_scan_offload_ap_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530741 wmi_ap_profile *ap_profile_p,
742 uint32_t vdev_id);
743
Govind Singhd7468a52016-03-09 14:32:57 +0530744QDF_STATUS wmi_unified_roam_scan_offload_scan_period(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530745 uint32_t scan_period,
746 uint32_t scan_age,
747 uint32_t vdev_id);
748
Govind Singhd7468a52016-03-09 14:32:57 +0530749QDF_STATUS wmi_unified_roam_scan_offload_chan_list_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530750 uint8_t chan_count,
751 uint8_t *chan_list,
752 uint8_t list_type, uint32_t vdev_id);
753
Govind Singhd7468a52016-03-09 14:32:57 +0530754QDF_STATUS wmi_unified_roam_scan_offload_rssi_change_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530755 uint32_t vdev_id,
756 int32_t rssi_change_thresh,
757 uint32_t bcn_rssi_weight,
758 uint32_t hirssi_delay_btw_scans);
759
Govind Singhd7468a52016-03-09 14:32:57 +0530760QDF_STATUS wmi_unified_get_buf_extscan_hotlist_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +0530761 struct ext_scan_setbssi_hotlist_params *
762 photlist, int *buf_len);
Govind Singhd475ea92016-03-06 19:55:02 +0530763#endif /* _WMI_UNIFIED_API_H_ */