blob: 92a6d1cb323930a6885f6ed1523ec13c710c798d [file] [log] [blame]
Govind Singhd475ea92016-03-06 19:55:02 +05301/*
Naveen Rawat79a787c2017-12-14 13:24:31 -08002 * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
Govind Singhd475ea92016-03-06 19:55:02 +05303 *
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>
Himanshu Agarwal56c292f2016-07-19 15:41:51 +053037#ifdef CONFIG_MCL
Govind Singhd475ea92016-03-06 19:55:02 +053038#include "wmi.h"
Himanshu Agarwal56c292f2016-07-19 15:41:51 +053039#endif
Govind Singhd475ea92016-03-06 19:55:02 +053040#include "htc_api.h"
Govind Singh3ddda1f2016-03-09 11:34:12 +053041#include "wmi_unified_param.h"
Srinivas Pitla83aad502018-01-08 16:55:36 +053042#include "service_ready_param.h"
Mukul Sharma36d159b2017-01-30 19:55:40 +053043#include "wlan_objmgr_psoc_obj.h"
Himanshu Agarwal53d526b2017-01-05 14:23:18 +053044#include "wlan_mgmt_txrx_utils_api.h"
Mukul Sharmaba196f52017-02-25 01:50:47 +053045#ifdef WLAN_PMO_ENABLE
46#include "wmi_unified_pmo_api.h"
47#endif
Wu Gao07ba6b42017-03-13 20:17:34 +080048#ifdef CONVERGED_P2P_ENABLE
49#include "wlan_p2p_public_struct.h"
50#endif
Om Prakash Tripathi91452bf2017-02-25 15:53:30 +053051#include "wlan_scan_public_structs.h"
Nachiket Kukadea6ffaab2017-12-15 12:36:58 +053052#ifdef WLAN_FEATURE_DISA
53#include "wlan_disa_public_struct.h"
54#endif
Govind Singhd475ea92016-03-06 19:55:02 +053055
Naveen Rawat79a787c2017-12-14 13:24:31 -080056#ifdef WLAN_FEATURE_NAN_CONVERGENCE
57#include "nan_public_structs.h"
58#endif
Himanshu Agarwal0d578ff2018-01-10 14:21:53 +053059#ifdef WLAN_SUPPORT_GREEN_AP
60#include "wlan_green_ap_api.h"
61#endif
Zhang Qian74a66aa2018-01-05 16:50:53 +080062#ifdef WLAN_FEATURE_DSRC
63#include "wlan_ocb_public_structs.h"
64#endif
Naveen Rawat79a787c2017-12-14 13:24:31 -080065
Govind Singhd7468a52016-03-09 14:32:57 +053066typedef qdf_nbuf_t wmi_buf_t;
67#define wmi_buf_data(_buf) qdf_nbuf_data(_buf)
68
69#define WMI_LOGD(args ...) \
70 QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_DEBUG, ## args)
71#define WMI_LOGI(args ...) \
72 QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_INFO, ## args)
73#define WMI_LOGW(args ...) \
74 QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_WARN, ## args)
75#define WMI_LOGE(args ...) \
76 QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_ERROR, ## args)
77#define WMI_LOGP(args ...) \
78 QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_FATAL, ## args)
79
80#define WMI_DEBUG_ALWAYS
81
82#ifdef WMI_DEBUG_ALWAYS
83#define WMI_LOGA(args ...) \
84 QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_FATAL, ## args)
85#else
86#define WMI_LOGA(args ...)
87#endif
Govind Singhd475ea92016-03-06 19:55:02 +053088
Kiran Venkatappa929dd292017-02-10 16:57:59 +053089struct wmi_soc;
Govind Singhd475ea92016-03-06 19:55:02 +053090/**
Govind Singh6ad6ada2016-02-04 18:42:30 +053091 * struct wmi_ops - service callbacks to upper layer
92 * @service_ready_cbk: service ready callback
93 * @service_ready_ext_cbk: service ready ext callback
94 * @ready_cbk: ready calback
95 * @wma_process_fw_event_handler_cbk: generic event handler callback
96 */
Govind Singh3ddda1f2016-03-09 11:34:12 +053097struct wmi_rx_ops {
Govind Singh4ec6ff92016-03-09 12:03:29 +053098
Govind Singh6ad6ada2016-02-04 18:42:30 +053099 int (*wma_process_fw_event_handler_cbk)(void *ctx,
Govind Singh4ec6ff92016-03-09 12:03:29 +0530100 void *ev, uint8_t rx_ctx);
Govind Singh6ad6ada2016-02-04 18:42:30 +0530101};
102
103/**
104 * enum wmi_target_type - type of supported wmi command
105 * @WMI_TLV_TARGET: tlv based target
106 * @WMI_NON_TLV_TARGET: non-tlv based target
107 *
108 */
109enum wmi_target_type {
110 WMI_TLV_TARGET,
Pratik Gandhi073fa002018-01-30 19:05:41 +0530111 WMI_NON_TLV_TARGET,
112 WMI_MAX_TARGET_TYPE
Govind Singh6ad6ada2016-02-04 18:42:30 +0530113};
114
115/**
Govind Singh4ec6ff92016-03-09 12:03:29 +0530116 * enum wmi_rx_exec_ctx - wmi rx execution context
117 * @WMI_RX_WORK_CTX: work queue context execution provided by WMI layer
118 * @WMI_RX_UMAC_CTX: execution context provided by umac layer
119 *
120 */
121enum wmi_rx_exec_ctx {
122 WMI_RX_WORK_CTX,
123 WMI_RX_UMAC_CTX
124};
125
126/**
Govind Singhd475ea92016-03-06 19:55:02 +0530127 * attach for unified WMI
128 *
129 * @param scn_handle : handle to SCN.
Govind Singh89727882016-04-15 13:58:27 +0530130 * @param target_type : type of supported wmi command
131 * @param use_cookie : flag to indicate cookie based allocation
132 * @param ops : handle to wmi ops
Mukul Sharma36d159b2017-01-30 19:55:40 +0530133 * @psoc : objmgr psoc
Govind Singhd475ea92016-03-06 19:55:02 +0530134 * @return opaque handle.
135 */
136void *wmi_unified_attach(void *scn_handle,
Govind Singh6ad6ada2016-02-04 18:42:30 +0530137 osdev_t osdev, enum wmi_target_type target_type,
Mukul Sharma36d159b2017-01-30 19:55:40 +0530138 bool use_cookie, struct wmi_rx_ops *ops,
139 struct wlan_objmgr_psoc *psoc);
140
Govind Singh6ad6ada2016-02-04 18:42:30 +0530141
Sandeep Puligilla38a294f2016-06-13 15:42:55 -0700142
Sandeep Puligilla20fb76b2016-07-19 13:20:57 -0700143/**
144 * wmi_mgmt_cmd_record() - Wrapper function for mgmt command logging macro
145 *
146 * @wmi_handle: wmi handle
147 * @cmd: mgmt command
148 * @header: pointer to 802.11 header
149 * @vdev_id: vdev id
150 * @chanfreq: channel frequency
151 *
152 * Return: none
153 */
Himanshu Agarwal56c292f2016-07-19 15:41:51 +0530154void wmi_mgmt_cmd_record(wmi_unified_t wmi_handle, uint32_t cmd,
Sandeep Puligilla20fb76b2016-07-19 13:20:57 -0700155 void *header, uint32_t vdev_id, uint32_t chanfreq);
Sandeep Puligilla38a294f2016-06-13 15:42:55 -0700156
Govind Singhd475ea92016-03-06 19:55:02 +0530157/**
158 * detach for unified WMI
159 *
160 * @param wmi_handle : handle to WMI.
161 * @return void.
162 */
163void wmi_unified_detach(struct wmi_unified *wmi_handle);
164
165void
166wmi_unified_remove_work(struct wmi_unified *wmi_handle);
167
168/**
169 * generic function to allocate WMI buffer
170 *
171 * @param wmi_handle : handle to WMI.
172 * @param len : length of the buffer
173 * @return wmi_buf_t.
174 */
175#ifdef MEMORY_DEBUG
176#define wmi_buf_alloc(h, l) wmi_buf_alloc_debug(h, l, __FILE__, __LINE__)
177wmi_buf_t
178wmi_buf_alloc_debug(wmi_unified_t wmi_handle, uint16_t len,
179 uint8_t *file_name, uint32_t line_num);
180#else
181wmi_buf_t wmi_buf_alloc(wmi_unified_t wmi_handle, uint16_t len);
182#endif
183
184/**
185 * generic function frees WMI net buffer
186 *
187 * @param net_buf : Pointer ot net_buf to be freed
188 */
189void wmi_buf_free(wmi_buf_t net_buf);
190
191/**
192 * generic function to send unified WMI command
193 *
194 * @param wmi_handle : handle to WMI.
195 * @param buf : wmi command buffer
196 * @param buflen : wmi command buffer length
Govind Singh89727882016-04-15 13:58:27 +0530197 * @param cmd_id : WMI cmd id
Govind Singhd475ea92016-03-06 19:55:02 +0530198 * @return 0 on success and -ve on failure.
199 */
Houston Hoffman09f96f92016-09-27 23:29:49 -0700200QDF_STATUS
Govind Singh6ad6ada2016-02-04 18:42:30 +0530201wmi_unified_cmd_send(wmi_unified_t wmi_handle, wmi_buf_t buf, uint32_t buflen,
Himanshu Agarwal56c292f2016-07-19 15:41:51 +0530202 uint32_t cmd_id);
Govind Singhd475ea92016-03-06 19:55:02 +0530203
204/**
Soumya Bhat49a84812017-03-22 14:41:01 +0530205 * wmi_unified_register_event() - WMI event handler
206 * registration function for converged components
207 *
208 * @wmi_handle: handle to WMI.
209 * @event_id: WMI event ID
210 * @handler_func: Event handler call back function
211 *
212 * @return 0 on success and -ve on failure.
213 */
214int
215wmi_unified_register_event(wmi_unified_t wmi_handle,
216 uint32_t event_id,
217 wmi_unified_event_handler handler_func);
218
219/**
Govind Singh4ec6ff92016-03-09 12:03:29 +0530220 * wmi_unified_register_event_handler() - WMI event handler
221 * registration function
Govind Singhd475ea92016-03-06 19:55:02 +0530222 *
Govind Singh4ec6ff92016-03-09 12:03:29 +0530223 * @wmi_handle: handle to WMI.
224 * @event_id: WMI event ID
225 * @handler_func: Event handler call back function
226 * @rx_ctx: rx event processing context
227 *
Govind Singhd475ea92016-03-06 19:55:02 +0530228 * @return 0 on success and -ve on failure.
229 */
230int
231wmi_unified_register_event_handler(wmi_unified_t wmi_handle,
Mukul Sharma6faf5a82017-11-03 19:26:54 +0530232 wmi_conv_event_id event_id,
Govind Singh4ec6ff92016-03-09 12:03:29 +0530233 wmi_unified_event_handler handler_func,
234 uint8_t rx_ctx);
Govind Singhd475ea92016-03-06 19:55:02 +0530235
236/**
Soumya Bhat070cd052017-03-27 12:26:56 +0530237 * WMI event handler unregister function for converged componets
238 *
239 * @param wmi_handle : handle to WMI.
240 * @param event_id : WMI event ID
241 * @return 0 on success and -ve on failure.
242 */
243int
244wmi_unified_unregister_event(wmi_unified_t wmi_handle,
245 uint32_t event_id);
246
247/**
Govind Singhd475ea92016-03-06 19:55:02 +0530248 * WMI event handler unregister function
249 *
250 * @param wmi_handle : handle to WMI.
251 * @param event_id : WMI event ID
252 * @return 0 on success and -ve on failure.
253 */
254int
255wmi_unified_unregister_event_handler(wmi_unified_t wmi_handle,
Mukul Sharma6faf5a82017-11-03 19:26:54 +0530256 wmi_conv_event_id event_id);
Govind Singhd475ea92016-03-06 19:55:02 +0530257
258/**
259 * request wmi to connet its htc service.
260 * @param wmi_handle : handle to WMI.
Govind Singh89727882016-04-15 13:58:27 +0530261 * @param htc_handle : handle to HTC.
Govind Singhd475ea92016-03-06 19:55:02 +0530262 * @return void
263 */
Kiran Venkatappa929dd292017-02-10 16:57:59 +0530264QDF_STATUS
Govind Singhd475ea92016-03-06 19:55:02 +0530265wmi_unified_connect_htc_service(struct wmi_unified *wmi_handle,
266 void *htc_handle);
267
268/*
269 * WMI API to verify the host has enough credits to suspend
Govind Singh89727882016-04-15 13:58:27 +0530270 * @param wmi_handle : handle to WMI.
Govind Singhd475ea92016-03-06 19:55:02 +0530271 */
272
273int wmi_is_suspend_ready(wmi_unified_t wmi_handle);
274
275/**
Govind Singh89727882016-04-15 13:58:27 +0530276 * WMI API to get updated host_credits
277 * @param wmi_handle : handle to WMI.
Govind Singhd475ea92016-03-06 19:55:02 +0530278 */
279
280int wmi_get_host_credits(wmi_unified_t wmi_handle);
281
282/**
Govind Singh89727882016-04-15 13:58:27 +0530283 * WMI API to get WMI Pending Commands in the HTC queue
284 * @param wmi_handle : handle to WMI.
Govind Singhd475ea92016-03-06 19:55:02 +0530285 */
286
287int wmi_get_pending_cmds(wmi_unified_t wmi_handle);
288
289/**
Govind Singh89727882016-04-15 13:58:27 +0530290 * WMI API to set target suspend state
291 * @param wmi_handle : handle to WMI.
292 * @param val : suspend state boolean
Govind Singhd475ea92016-03-06 19:55:02 +0530293 */
Govind Singhd475ea92016-03-06 19:55:02 +0530294void wmi_set_target_suspend(wmi_unified_t wmi_handle, bool val);
295
Govind Singh89727882016-04-15 13:58:27 +0530296/**
Sarada Prasanna Garnayakd49444c2017-01-05 19:30:07 +0530297 * WMI API to set bus suspend state
298 * @param wmi_handle: handle to WMI.
299 * @param val: suspend state boolean
300 */
301void wmi_set_is_wow_bus_suspended(wmi_unified_t wmi_handle, A_BOOL val);
302
303/**
304 * WMI API to set crash injection state
305 * @param wmi_handle: handle to WMI.
306 * @param val: crash injection state boolean
307 */
308void wmi_tag_crash_inject(wmi_unified_t wmi_handle, A_BOOL flag);
309
310/**
Ravi Kumar Bokkadf1f3ea2016-11-09 18:07:56 +0530311 * WMI API to set target assert
312 * @param wmi_handle: handle to WMI.
313 * @param val: target assert config value.
314 *
315 * Return: none.
316 */
317void wmi_set_tgt_assert(wmi_unified_t wmi_handle, bool val);
318
319/**
Govind Singh89727882016-04-15 13:58:27 +0530320 * generic function to block unified WMI command
321 * @param wmi_handle : handle to WMI.
322 * @return 0 on success and -ve on failure.
323 */
324int
325wmi_stop(wmi_unified_t wmi_handle);
326
327/**
328 * API to flush all the previous packets associated with the wmi endpoint
329 *
330 * @param wmi_handle : handle to WMI.
331 */
332void
333wmi_flush_endpoint(wmi_unified_t wmi_handle);
334
335/**
Kiran Venkatappa49341042017-05-10 16:24:51 +0530336 * wmi_pdev_id_conversion_enable() - API to enable pdev_id conversion in WMI
337 * By default pdev_id conversion is not done in WMI.
338 * This API can be used enable conversion in WMI.
339 * @param wmi_handle : handle to WMI
340 * Return none
341 */
342void wmi_pdev_id_conversion_enable(wmi_unified_t wmi_handle);
343
344/**
Govind Singh89727882016-04-15 13:58:27 +0530345 * API to handle wmi rx event after UMAC has taken care of execution
346 * context
347 *
348 * @param wmi_handle : handle to WMI.
349 * @param evt_buf : wmi event buffer
350 */
351void __wmi_control_rx(struct wmi_unified *wmi_handle, wmi_buf_t evt_buf);
Govind Singhd475ea92016-03-06 19:55:02 +0530352#ifdef FEATURE_RUNTIME_PM
353void
354wmi_set_runtime_pm_inprogress(wmi_unified_t wmi_handle, bool val);
355bool wmi_get_runtime_pm_inprogress(wmi_unified_t wmi_handle);
356#else
357static inline void
358wmi_set_runtime_pm_inprogress(wmi_unified_t wmi_handle, bool val)
359{
360 return;
361}
362static inline bool wmi_get_runtime_pm_inprogress(wmi_unified_t wmi_handle)
363{
364 return false;
365}
366#endif
367
Kiran Venkatappa929dd292017-02-10 16:57:59 +0530368void *wmi_unified_get_soc_handle(struct wmi_unified *wmi_handle);
369
370void *wmi_unified_get_pdev_handle(struct wmi_soc *soc, uint32_t pdev_idx);
371
Govind Singhd475ea92016-03-06 19:55:02 +0530372/**
Govind Singhd7468a52016-03-09 14:32:57 +0530373 * UMAC Callback to process fw event.
Govind Singh89727882016-04-15 13:58:27 +0530374 * @param wmi_handle : handle to WMI.
375 * @param evt_buf : wmi event buffer
Govind Singhd475ea92016-03-06 19:55:02 +0530376 */
Govind Singhd475ea92016-03-06 19:55:02 +0530377void wmi_process_fw_event(struct wmi_unified *wmi_handle, wmi_buf_t evt_buf);
378uint16_t wmi_get_max_msg_len(wmi_unified_t wmi_handle);
Govind Singh3ddda1f2016-03-09 11:34:12 +0530379
380
Govind Singhd7468a52016-03-09 14:32:57 +0530381QDF_STATUS wmi_unified_vdev_create_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530382 uint8_t macaddr[IEEE80211_ADDR_LEN],
383 struct vdev_create_params *param);
384
Govind Singhd7468a52016-03-09 14:32:57 +0530385QDF_STATUS wmi_unified_vdev_delete_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530386 uint8_t if_id);
387
Govind Singhd7468a52016-03-09 14:32:57 +0530388QDF_STATUS wmi_unified_vdev_restart_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530389 uint8_t macaddr[IEEE80211_ADDR_LEN],
390 struct vdev_start_params *param);
391
Govind Singhd7468a52016-03-09 14:32:57 +0530392QDF_STATUS wmi_unified_vdev_stop_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530393 uint8_t vdev_id);
394
Govind Singhd7468a52016-03-09 14:32:57 +0530395QDF_STATUS wmi_unified_vdev_up_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530396 uint8_t bssid[IEEE80211_ADDR_LEN],
397 struct vdev_up_params *params);
398
Govind Singhd7468a52016-03-09 14:32:57 +0530399QDF_STATUS wmi_unified_vdev_down_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530400 uint8_t vdev_id);
401
Himanshu Agarwal7e4f4bc2016-03-09 16:49:38 +0530402QDF_STATUS wmi_unified_vdev_start_send(void *wmi_hdl,
403 struct vdev_start_params *req);
Chaithanya Garrepalli140a0532018-01-18 14:19:41 +0530404/**
405 * wmi_unified_vdev_set_nac_rssi_send() - send NAC_RSSI command to fw
406 * @param wmi_handle : handle to WMI
407 * @param req : pointer to hold nac rssi request data
408 *
409 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
410 */
411QDF_STATUS wmi_unified_vdev_set_nac_rssi_send(void *wmi_hdl,
412 struct vdev_scan_nac_rssi_params *req);
Himanshu Agarwal7e4f4bc2016-03-09 16:49:38 +0530413
414QDF_STATUS wmi_unified_hidden_ssid_vdev_restart_send(void *wmi_hdl,
415 struct hidden_ssid_vdev_restart_params *restart_params);
416
Govind Singhd7468a52016-03-09 14:32:57 +0530417QDF_STATUS wmi_unified_vdev_set_param_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530418 struct vdev_set_params *param);
419
Govind Singhd7468a52016-03-09 14:32:57 +0530420QDF_STATUS wmi_unified_peer_delete_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530421 uint8_t
422 peer_addr[IEEE80211_ADDR_LEN],
423 uint8_t vdev_id);
424
Govind Singhd7468a52016-03-09 14:32:57 +0530425QDF_STATUS wmi_unified_peer_flush_tids_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530426 uint8_t peer_addr[IEEE80211_ADDR_LEN],
427 struct peer_flush_params *param);
428
Govind Singhd7468a52016-03-09 14:32:57 +0530429QDF_STATUS wmi_set_peer_param_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530430 uint8_t peer_addr[IEEE80211_ADDR_LEN],
431 struct peer_set_params *param);
432
Govind Singhd7468a52016-03-09 14:32:57 +0530433QDF_STATUS wmi_unified_peer_create_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530434 struct peer_create_params *param);
435
Govind Singhd7468a52016-03-09 14:32:57 +0530436QDF_STATUS wmi_unified_stats_request_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530437 uint8_t macaddr[IEEE80211_ADDR_LEN],
438 struct stats_request_params *param);
439
Govind Singhd7468a52016-03-09 14:32:57 +0530440QDF_STATUS wmi_unified_green_ap_ps_send(void *wmi_hdl,
Himanshu Agarwal0d578ff2018-01-10 14:21:53 +0530441 uint32_t value, uint8_t pdev_id);
Govind Singh3ddda1f2016-03-09 11:34:12 +0530442
Will Huang5325c7c2017-11-17 13:19:16 +0800443#ifdef FEATURE_WLAN_D0WOW
444QDF_STATUS wmi_unified_d0wow_enable_send(void *wmi_hdl,
445 uint8_t mac_id);
446QDF_STATUS wmi_unified_d0wow_disable_send(void *wmi_hdl,
447 uint8_t mac_id);
448#endif
Govind Singh3ddda1f2016-03-09 11:34:12 +0530449
Govind Singhd7468a52016-03-09 14:32:57 +0530450QDF_STATUS wmi_unified_wow_enable_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530451 struct wow_cmd_params *param,
452 uint8_t mac_id);
453
Jeff Johnson6b8bda42016-10-07 13:03:02 -0700454QDF_STATUS wmi_unified_wow_wakeup_send(void *wmi_hdl);
455
456QDF_STATUS wmi_unified_wow_add_wakeup_event_send(void *wmi_hdl,
457 struct wow_add_wakeup_params *param);
458
459QDF_STATUS wmi_unified_wow_add_wakeup_pattern_send(void *wmi_hdl,
460 struct wow_add_wakeup_pattern_params *param);
461
462QDF_STATUS wmi_unified_wow_remove_wakeup_pattern_send(void *wmi_hdl,
463 struct wow_remove_wakeup_pattern_params *param);
464
Kiran Venkatappa9da7e042016-08-09 22:52:35 +0530465#ifndef CONFIG_MCL
Govind Singh89727882016-04-15 13:58:27 +0530466QDF_STATUS wmi_unified_packet_log_enable_send(void *wmi_hdl,
Keyur Parekh483138e2017-05-07 08:54:47 -0700467 WMI_HOST_PKTLOG_EVENT PKTLOG_EVENT, uint8_t mac_id);
Govind Singh89727882016-04-15 13:58:27 +0530468#else
Govind Singhd7468a52016-03-09 14:32:57 +0530469QDF_STATUS wmi_unified_packet_log_enable_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530470 uint8_t macaddr[IEEE80211_ADDR_LEN],
471 struct packet_enable_params *param);
Govind Singh89727882016-04-15 13:58:27 +0530472#endif
Govind Singh3ddda1f2016-03-09 11:34:12 +0530473
Keyur Parekh483138e2017-05-07 08:54:47 -0700474QDF_STATUS wmi_unified_packet_log_disable_send(void *wmi_hdl, uint8_t mac_id);
Govind Singh3ddda1f2016-03-09 11:34:12 +0530475
Govind Singhd7468a52016-03-09 14:32:57 +0530476QDF_STATUS wmi_unified_suspend_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530477 struct suspend_params *param,
478 uint8_t mac_id);
479
Govind Singhd7468a52016-03-09 14:32:57 +0530480QDF_STATUS wmi_unified_resume_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530481 uint8_t mac_id);
482
Govind Singhd7468a52016-03-09 14:32:57 +0530483QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530484wmi_unified_pdev_param_send(void *wmi_hdl,
485 struct pdev_params *param,
486 uint8_t mac_id);
487
Govind Singh89727882016-04-15 13:58:27 +0530488QDF_STATUS wmi_unified_beacon_tmpl_send_cmd(void *wmi_hdl,
489 struct beacon_tmpl_params *param);
490
491
Govind Singhd7468a52016-03-09 14:32:57 +0530492QDF_STATUS wmi_unified_beacon_send_cmd(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530493 struct beacon_params *param);
494
Govind Singhd7468a52016-03-09 14:32:57 +0530495QDF_STATUS wmi_unified_peer_assoc_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530496 struct peer_assoc_params *param);
497
Govind Singhd7468a52016-03-09 14:32:57 +0530498QDF_STATUS wmi_unified_sta_ps_cmd_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530499 struct sta_ps_params *param);
500
Govind Singhd7468a52016-03-09 14:32:57 +0530501QDF_STATUS wmi_unified_ap_ps_cmd_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530502 uint8_t macaddr[IEEE80211_ADDR_LEN],
503 struct ap_ps_params *param);
504
Govind Singhd7468a52016-03-09 14:32:57 +0530505QDF_STATUS wmi_unified_scan_start_cmd_send(void *wmi_hdl,
Om Prakash Tripathi91452bf2017-02-25 15:53:30 +0530506 struct scan_req_params *param);
Govind Singh3ddda1f2016-03-09 11:34:12 +0530507
Govind Singhd7468a52016-03-09 14:32:57 +0530508QDF_STATUS wmi_unified_scan_stop_cmd_send(void *wmi_hdl,
Om Prakash Tripathi91452bf2017-02-25 15:53:30 +0530509 struct scan_cancel_param *param);
Govind Singh3ddda1f2016-03-09 11:34:12 +0530510
Govind Singhd7468a52016-03-09 14:32:57 +0530511QDF_STATUS wmi_unified_scan_chan_list_cmd_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530512 struct scan_chan_list_params *param);
513
514
Govind Singhd7468a52016-03-09 14:32:57 +0530515QDF_STATUS wmi_crash_inject(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530516 struct crash_inject *param);
517
Govind Singhd7468a52016-03-09 14:32:57 +0530518QDF_STATUS wmi_unified_pdev_utf_cmd_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530519 struct pdev_utf_params *param,
520 uint8_t mac_id);
521
Govind Singhd7468a52016-03-09 14:32:57 +0530522QDF_STATUS wmi_unified_dbglog_cmd_send(void *wmi_hdl,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530523 struct dbglog_params *param);
524
Govind Singhd7468a52016-03-09 14:32:57 +0530525QDF_STATUS wmi_mgmt_unified_cmd_send(void *wmi_hdl,
Govind Singh50988cc2016-02-26 18:09:36 +0530526 struct wmi_mgmt_params *param);
527
Kiran Venkatappa25c47022017-03-19 22:58:09 +0530528QDF_STATUS wmi_offchan_data_tx_cmd_send(void *wmi_hdl,
529 struct wmi_offchan_data_tx_params *param);
530
Govind Singhd7468a52016-03-09 14:32:57 +0530531QDF_STATUS wmi_unified_modem_power_state(void *wmi_hdl,
Govind Singh50988cc2016-02-26 18:09:36 +0530532 uint32_t param_value);
533
Govind Singhd7468a52016-03-09 14:32:57 +0530534QDF_STATUS wmi_unified_set_sta_ps_mode(void *wmi_hdl,
Govind Singh50988cc2016-02-26 18:09:36 +0530535 uint32_t vdev_id, uint8_t val);
Govind Singhd7468a52016-03-09 14:32:57 +0530536QDF_STATUS
Govind Singh50988cc2016-02-26 18:09:36 +0530537wmi_unified_set_sta_uapsd_auto_trig_cmd(void *wmi_hdl,
538 struct sta_uapsd_trig_params *param);
539
Govind Singhd7468a52016-03-09 14:32:57 +0530540QDF_STATUS wmi_unified_get_temperature(void *wmi_hdl);
Govind Singh50988cc2016-02-26 18:09:36 +0530541
Govind Singhd7468a52016-03-09 14:32:57 +0530542QDF_STATUS wmi_unified_set_p2pgo_oppps_req(void *wmi_hdl,
Govind Singh50988cc2016-02-26 18:09:36 +0530543 struct p2p_ps_params *oppps);
544
Govind Singhd7468a52016-03-09 14:32:57 +0530545QDF_STATUS wmi_unified_set_p2pgo_noa_req_cmd(void *wmi_hdl,
Govind Singh50988cc2016-02-26 18:09:36 +0530546 struct p2p_ps_params *noa);
547
Wu Gao07ba6b42017-03-13 20:17:34 +0800548#ifdef CONVERGED_P2P_ENABLE
549QDF_STATUS wmi_unified_p2p_lo_start_cmd(void *wmi_hdl,
550 struct p2p_lo_start *param);
551
552QDF_STATUS wmi_unified_p2p_lo_stop_cmd(void *wmi_hdl, uint8_t vdev_id);
553#endif
554
Govind Singhd7468a52016-03-09 14:32:57 +0530555QDF_STATUS wmi_unified_set_smps_params(void *wmi_hdl, uint8_t vdev_id,
Govind Singh50988cc2016-02-26 18:09:36 +0530556 int value);
557
Govind Singhd7468a52016-03-09 14:32:57 +0530558QDF_STATUS wmi_unified_set_mimops(void *wmi_hdl, uint8_t vdev_id, int value);
Govind Singhe7b800c2016-03-01 15:30:53 +0530559
Zhang Qian74a66aa2018-01-05 16:50:53 +0800560#ifdef WLAN_FEATURE_DSRC
561/**
562 * wmi_unified_ocb_start_timing_advert() - start sending the timing
563 * advertisement frames on a channel
564 * @wmi_handle: pointer to the wmi handle
565 * @timing_advert: pointer to the timing advertisement struct
566 *
567 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
568 */
569QDF_STATUS wmi_unified_ocb_start_timing_advert(struct wmi_unified *wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530570 struct ocb_timing_advert_param *timing_advert);
571
Zhang Qian74a66aa2018-01-05 16:50:53 +0800572/**
573 * wmi_unified_ocb_stop_timing_advert() - stop sending the timing
574 * advertisement frames on a channel
575 * @wmi_handle: pointer to the wmi handle
576 * @timing_advert: pointer to the timing advertisement struct
577 *
578 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
579 */
580QDF_STATUS wmi_unified_ocb_stop_timing_advert(struct wmi_unified *wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530581 struct ocb_timing_advert_param *timing_advert);
582
Zhang Qian74a66aa2018-01-05 16:50:53 +0800583/**
584 * wmi_unified_ocb_set_config() - send the OCB config to the FW
585 * @wmi_handle: pointer to the wmi handle
586 * @config: the OCB configuration
587 *
588 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures
589 */
590QDF_STATUS wmi_unified_ocb_set_config(struct wmi_unified *wmi_handle,
591 struct ocb_config *config);
Govind Singhe7b800c2016-03-01 15:30:53 +0530592
Zhang Qian74a66aa2018-01-05 16:50:53 +0800593/**
594 * wmi_unified_ocb_get_tsf_timer() - get ocb tsf timer val
595 * @wmi_handle: pointer to the wmi handle
596 * @req: request for tsf timer
597 *
598 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
599 */
600QDF_STATUS wmi_unified_ocb_get_tsf_timer(struct wmi_unified *wmi_handle,
601 struct ocb_get_tsf_timer_param *req);
602
603/**
604 * wmi_unified_ocb_set_utc_time_cmd() - get ocb tsf timer val
605 * @wmi_handle: pointer to the wmi handle
606 * @vdev_id: vdev id
607 *
608 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
609 */
610QDF_STATUS wmi_unified_ocb_set_utc_time_cmd(struct wmi_unified *wmi_handle,
611 struct ocb_utc_param *utc);
612
613/**
614 * wmi_unified_dcc_get_stats_cmd() - get the DCC channel stats
615 * @wmi_handle: pointer to the wmi handle
616 * @get_stats_param: pointer to the dcc stats
617 *
618 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
619 */
620QDF_STATUS wmi_unified_dcc_get_stats_cmd(struct wmi_unified *wmi_handle,
621 struct ocb_dcc_get_stats_param *get_stats_param);
622
623/**
624 * wmi_unified_dcc_clear_stats() - command to clear the DCC stats
625 * @wmi_handle: pointer to the wmi handle
626 * @clear_stats_param: parameters to the command
627 *
628 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
629 */
630QDF_STATUS wmi_unified_dcc_clear_stats(struct wmi_unified *wmi_handle,
631 struct ocb_dcc_clear_stats_param *clear_stats_param);
632
633/**
634 * wmi_unified_dcc_update_ndl() - command to update the NDL data
635 * @wmi_handle: pointer to the wmi handle
636 * @update_ndl_param: pointer to the request parameters
637 *
638 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures
639 */
640QDF_STATUS wmi_unified_dcc_update_ndl(struct wmi_unified *wmi_handle,
641 struct ocb_dcc_update_ndl_param *update_ndl_param);
642
643/**
644 * wmi_extract_ocb_set_channel_config_resp() - extract status from wmi event
645 * @wmi_handle: wmi handle
646 * @evt_buf: pointer to event buffer
647 * @status: status buffer
648 *
649 * Return: QDF_STATUS_SUCCESS on success
650 */
651QDF_STATUS
652wmi_extract_ocb_set_channel_config_resp(struct wmi_unified *wmi_handle,
653 void *evt_buf,
654 uint32_t *status);
655
656/**
657 * wmi_extract_ocb_tsf_timer() - extract tsf timer from wmi event
658 * @wmi_handle: wmi handle
659 * @evt_buf: pointer to event buffer
660 * @resp: tsf timer
661 *
662 * Return: QDF_STATUS_SUCCESS on success
663 */
664QDF_STATUS wmi_extract_ocb_tsf_timer(struct wmi_unified *wmi_handle,
665 void *evt_buf,
666 struct ocb_get_tsf_timer_response *resp);
667
668/**
669 * wmi_extract_dcc_update_ndl_resp() - extract NDL update from wmi event
670 * @wmi_handle: wmi handle
671 * @evt_buf: pointer to event buffer
672 * @resp: ndl update status
673 *
674 * Return: QDF_STATUS_SUCCESS on success
675 */
676QDF_STATUS wmi_extract_dcc_update_ndl_resp(struct wmi_unified *wmi_handle,
677 void *evt_buf, struct ocb_dcc_update_ndl_response *resp);
678
679/**
680 * wmi_extract_dcc_stats() - extract DCC stats from wmi event
681 * @wmi_handle: wmi handle
682 * @evt_buf: pointer to event buffer
683 * @resp: DCC stats
684 *
685 * Since length of the response is variable, response buffer will be allocated.
686 * The caller must free the response buffer.
687 *
688 * Return: QDF_STATUS_SUCCESS on success
689 */
690QDF_STATUS wmi_extract_dcc_stats(struct wmi_unified *wmi_handle,
691 void *evt_buf,
692 struct ocb_dcc_get_stats_response **response);
693#endif
Govind Singhe7b800c2016-03-01 15:30:53 +0530694
Govind Singhd7468a52016-03-09 14:32:57 +0530695QDF_STATUS wmi_unified_lro_config_cmd(void *wmi_hdl,
Govind Singh9bad0002016-03-01 15:54:59 +0530696 struct wmi_lro_config_cmd_t *wmi_lro_cmd);
697
Govind Singhd7468a52016-03-09 14:32:57 +0530698QDF_STATUS wmi_unified_set_thermal_mgmt_cmd(void *wmi_hdl,
Govind Singh9bad0002016-03-01 15:54:59 +0530699 struct thermal_cmd_params *thermal_info);
700
Poddar, Siddarth794b9962016-04-28 15:49:11 +0530701QDF_STATUS wmi_unified_peer_rate_report_cmd(void *wmi_hdl,
702 struct wmi_peer_rate_report_params *rate_report_params);
703
Govind Singhd7468a52016-03-09 14:32:57 +0530704QDF_STATUS wmi_unified_set_mcc_channel_time_quota_cmd
Govind Singh9bad0002016-03-01 15:54:59 +0530705 (void *wmi_hdl,
706 uint32_t adapter_1_chan_freq,
707 uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq);
708
Govind Singhd7468a52016-03-09 14:32:57 +0530709QDF_STATUS wmi_unified_set_mcc_channel_time_latency_cmd
Govind Singh9bad0002016-03-01 15:54:59 +0530710 (void *wmi_hdl,
711 uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency);
712
Govind Singhd7468a52016-03-09 14:32:57 +0530713QDF_STATUS wmi_unified_set_enable_disable_mcc_adaptive_scheduler_cmd(
Govind Singh608e8892016-04-16 19:24:23 -0700714 void *wmi_hdl, uint32_t mcc_adaptive_scheduler,
715 uint32_t pdev_id);
Govind Singhae855362016-03-07 14:24:22 +0530716
Kiran Venkatappa9da7e042016-08-09 22:52:35 +0530717#ifdef CONFIG_MCL
Govind Singhd7468a52016-03-09 14:32:57 +0530718QDF_STATUS wmi_unified_bcn_buf_ll_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530719 wmi_bcn_send_from_host_cmd_fixed_param *param);
Govind Singh89727882016-04-15 13:58:27 +0530720#endif
Govind Singhae855362016-03-07 14:24:22 +0530721
Govind Singhd7468a52016-03-09 14:32:57 +0530722QDF_STATUS wmi_unified_set_sta_sa_query_param_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530723 uint8_t vdev_id, uint32_t max_retries,
724 uint32_t retry_interval);
725
726
Govind Singhd7468a52016-03-09 14:32:57 +0530727QDF_STATUS wmi_unified_set_sta_keep_alive_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530728 struct sta_params *params);
729
Govind Singhd7468a52016-03-09 14:32:57 +0530730QDF_STATUS wmi_unified_vdev_set_gtx_cfg_cmd(void *wmi_hdl, uint32_t if_id,
Govind Singhae855362016-03-07 14:24:22 +0530731 struct wmi_gtx_config *gtx_info);
732
Govind Singhd7468a52016-03-09 14:32:57 +0530733QDF_STATUS wmi_unified_process_update_edca_param(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530734 uint8_t vdev_id,
Vikram Kandukurid2e75802017-06-01 16:47:51 +0530735 struct wmi_host_wme_vparams wmm_vparams[WMI_MAX_NUM_AC]);
Govind Singhae855362016-03-07 14:24:22 +0530736
Govind Singhd7468a52016-03-09 14:32:57 +0530737QDF_STATUS wmi_unified_probe_rsp_tmpl_send_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530738 uint8_t vdev_id,
Krunal Soni36f17d42017-11-14 15:42:48 -0800739 struct wmi_probe_resp_params *probe_rsp_info);
Govind Singhae855362016-03-07 14:24:22 +0530740
Himanshu Agarwal9efd9bf2016-03-09 18:49:18 +0530741QDF_STATUS wmi_unified_setup_install_key_cmd(void *wmi_hdl,
742 struct set_key_params *key_params);
743
Nachiket Kukadee42cd4b2017-12-20 17:28:29 +0530744#ifdef WLAN_FEATURE_DISA
745/**
746 * wmi_unified_encrypt_decrypt_send_cmd() - send encryptdecrypt cmd to fw
747 * @wmi_hdl: wmi handle
748 * @params: encrypt/decrypt params
749 *
750 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
751 */
Padma, Santhosh Kumar73524052016-09-11 18:24:59 +0530752QDF_STATUS wmi_unified_encrypt_decrypt_send_cmd(void *wmi_hdl,
Nachiket Kukadee42cd4b2017-12-20 17:28:29 +0530753 struct disa_encrypt_decrypt_req_params *params);
754
755/**
756 * wmi_extract_encrypt_decrypt_resp_params() -
757 * extract encrypt decrypt resp params from event buffer
758 * @wmi_handle: wmi handle
759 * @evt_buf: pointer to event buffer
760 * @resp: encrypt decrypt resp params
761 *
762 * Return: QDF_STATUS_SUCCESS for success or error code
763 */
764QDF_STATUS wmi_extract_encrypt_decrypt_resp_params(void *wmi_hdl,
765 uint8_t *evt_buf,
766 struct disa_encrypt_decrypt_resp_params *resp);
767#endif
Padma, Santhosh Kumar73524052016-09-11 18:24:59 +0530768
Govind Singhd7468a52016-03-09 14:32:57 +0530769QDF_STATUS wmi_unified_p2p_go_set_beacon_ie_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530770 A_UINT32 vdev_id, uint8_t *p2p_ie);
771
772
Govind Singhd7468a52016-03-09 14:32:57 +0530773QDF_STATUS wmi_unified_set_gateway_params_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530774 struct gateway_update_req_param *req);
775
Govind Singhd7468a52016-03-09 14:32:57 +0530776QDF_STATUS wmi_unified_set_rssi_monitoring_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530777 struct rssi_monitor_param *req);
778
Govind Singhd7468a52016-03-09 14:32:57 +0530779QDF_STATUS wmi_unified_scan_probe_setoui_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530780 struct scan_mac_oui *psetoui);
781
Govind Singhd7468a52016-03-09 14:32:57 +0530782QDF_STATUS wmi_unified_reset_passpoint_network_list_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530783 struct wifi_passpoint_req_param *req);
784
Govind Singhd7468a52016-03-09 14:32:57 +0530785QDF_STATUS wmi_unified_set_passpoint_network_list_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530786 struct wifi_passpoint_req_param *req);
787
Kiran Venkatappa9da7e042016-08-09 22:52:35 +0530788#ifdef CONFIG_MCL
Himanshu Agarwal5f2d0482016-03-09 15:25:44 +0530789QDF_STATUS wmi_unified_roam_scan_offload_mode_cmd(void *wmi_hdl,
790 wmi_start_scan_cmd_fixed_param *scan_cmd_fp,
791 struct roam_offload_scan_params *roam_req);
Govind Singh89727882016-04-15 13:58:27 +0530792#endif
Himanshu Agarwal5f2d0482016-03-09 15:25:44 +0530793
Varun Reddy Yeturu4cae4292017-07-20 09:45:01 -0700794/**
795 * wmi_unified_roam_mawc_params_cmd() - configure roaming MAWC parameters
796 * @wmi_hdl: wmi handle
797 * @params: Parameters to be configured
798 *
799 * Pass the MAWC(Motion Aided wireless connectivity) related roaming
800 * parameters from the host to the target
801 *
802 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
803 */
804QDF_STATUS wmi_unified_roam_mawc_params_cmd(void *wmi_hdl,
805 struct wmi_mawc_roam_params *params);
806
Himanshu Agarwal5f2d0482016-03-09 15:25:44 +0530807QDF_STATUS wmi_unified_roam_scan_offload_rssi_thresh_cmd(void *wmi_hdl,
808 struct roam_offload_scan_rssi_params *roam_req);
809
810QDF_STATUS wmi_unified_roam_scan_filter_cmd(void *wmi_hdl,
811 struct roam_scan_filter_params *roam_req);
812
Govind Singhd7468a52016-03-09 14:32:57 +0530813QDF_STATUS wmi_unified_set_epno_network_list_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530814 struct wifi_enhanched_pno_params *req);
815
Govind Singhd7468a52016-03-09 14:32:57 +0530816QDF_STATUS wmi_unified_ipa_offload_control_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530817 struct ipa_offload_control_params *ipa_offload);
818
Govind Singhd7468a52016-03-09 14:32:57 +0530819QDF_STATUS wmi_unified_extscan_get_capabilities_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530820 struct extscan_capabilities_params *pgetcapab);
821
Govind Singhd7468a52016-03-09 14:32:57 +0530822QDF_STATUS wmi_unified_extscan_get_cached_results_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530823 struct extscan_cached_result_params *pcached_results);
824
825
Govind Singhd7468a52016-03-09 14:32:57 +0530826QDF_STATUS wmi_unified_extscan_stop_change_monitor_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530827 struct extscan_capabilities_reset_params *reset_req);
828
829
Govind Singhd7468a52016-03-09 14:32:57 +0530830QDF_STATUS wmi_unified_extscan_start_change_monitor_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530831 struct extscan_set_sig_changereq_params *
832 psigchange);
833
Govind Singhd7468a52016-03-09 14:32:57 +0530834QDF_STATUS wmi_unified_extscan_stop_hotlist_monitor_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530835 struct extscan_bssid_hotlist_reset_params *photlist_reset);
836
Govind Singhd7468a52016-03-09 14:32:57 +0530837QDF_STATUS wmi_unified_stop_extscan_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530838 struct extscan_stop_req_params *pstopcmd);
839
Govind Singhd7468a52016-03-09 14:32:57 +0530840QDF_STATUS wmi_unified_start_extscan_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530841 struct wifi_scan_cmd_req_params *pstart);
842
Govind Singhd7468a52016-03-09 14:32:57 +0530843QDF_STATUS wmi_unified_plm_stop_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530844 const struct plm_req_params *plm);
845
Govind Singhd7468a52016-03-09 14:32:57 +0530846QDF_STATUS wmi_unified_plm_start_cmd(void *wmi_hdl,
Govind Singhae855362016-03-07 14:24:22 +0530847 const struct plm_req_params *plm,
848 uint32_t *gchannel_list);
849
Govind Singhd7468a52016-03-09 14:32:57 +0530850QDF_STATUS wmi_unified_pno_stop_cmd(void *wmi_hdl, uint8_t vdev_id);
Govind Singhae855362016-03-07 14:24:22 +0530851
Govind Singh89727882016-04-15 13:58:27 +0530852#ifdef FEATURE_WLAN_SCAN_PNO
Govind Singhd7468a52016-03-09 14:32:57 +0530853QDF_STATUS wmi_unified_pno_start_cmd(void *wmi_hdl,
Abhishek Singhd4184662017-03-03 22:09:07 +0530854 struct pno_scan_req_params *pno);
Govind Singh89727882016-04-15 13:58:27 +0530855#endif
Govind Singhae855362016-03-07 14:24:22 +0530856
Varun Reddy Yeturu4fa519b2017-07-24 16:11:22 -0700857QDF_STATUS wmi_unified_nlo_mawc_cmd(void *wmi_hdl,
858 struct nlo_mawc_params *params);
859
Govind Singhd7468a52016-03-09 14:32:57 +0530860QDF_STATUS wmi_unified_set_ric_req_cmd(void *wmi_hdl, void *msg,
Govind Singhae855362016-03-07 14:24:22 +0530861 uint8_t is_add_ts);
862
Govind Singhd7468a52016-03-09 14:32:57 +0530863QDF_STATUS wmi_unified_process_ll_stats_clear_cmd
Govind Singhae855362016-03-07 14:24:22 +0530864 (void *wmi_hdl, const struct ll_stats_clear_params *clear_req,
865 uint8_t addr[IEEE80211_ADDR_LEN]);
866
Govind Singhd7468a52016-03-09 14:32:57 +0530867QDF_STATUS wmi_unified_process_ll_stats_set_cmd
Govind Singhae855362016-03-07 14:24:22 +0530868 (void *wmi_hdl, const struct ll_stats_set_params *set_req);
869
Govind Singhd7468a52016-03-09 14:32:57 +0530870QDF_STATUS wmi_unified_process_ll_stats_get_cmd
Govind Singhae855362016-03-07 14:24:22 +0530871 (void *wmi_hdl, const struct ll_stats_get_params *get_req,
872 uint8_t addr[IEEE80211_ADDR_LEN]);
873
Padma, Santhosh Kumard3261902017-03-21 19:09:35 +0530874/**
875 * wmi_unified_congestion_request_cmd() - send request to fw to get CCA
876 * @wmi_hdl: wma handle
877 * @vdev_id: vdev id
878 *
879 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
880 */
881QDF_STATUS wmi_unified_congestion_request_cmd(void *wmi_hdl,
882 uint8_t vdev_id);
883
Govind Singhd7468a52016-03-09 14:32:57 +0530884QDF_STATUS wmi_unified_snr_request_cmd(void *wmi_hdl);
Govind Singh229bc0d2016-03-07 15:33:31 +0530885
Govind Singhd7468a52016-03-09 14:32:57 +0530886QDF_STATUS wmi_unified_snr_cmd(void *wmi_hdl, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530887
Govind Singhd7468a52016-03-09 14:32:57 +0530888QDF_STATUS wmi_unified_link_status_req_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530889 struct link_status_params *link_status);
890
Kiran Venkatappa9da7e042016-08-09 22:52:35 +0530891#ifdef CONFIG_MCL
Govind Singhd7468a52016-03-09 14:32:57 +0530892QDF_STATUS wmi_unified_process_dhcp_ind(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530893 wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind);
894
Govind Singhd7468a52016-03-09 14:32:57 +0530895QDF_STATUS wmi_unified_get_link_speed_cmd(void *wmi_hdl,
Govind Singh89727882016-04-15 13:58:27 +0530896 wmi_mac_addr peer_macaddr);
Himanshu Agarwal0d578ff2018-01-10 14:21:53 +0530897#endif
Govind Singh229bc0d2016-03-07 15:33:31 +0530898
Himanshu Agarwal0d578ff2018-01-10 14:21:53 +0530899#ifdef WLAN_SUPPORT_GREEN_AP
Govind Singhd7468a52016-03-09 14:32:57 +0530900QDF_STATUS wmi_unified_egap_conf_params_cmd(void *wmi_hdl,
Himanshu Agarwal0d578ff2018-01-10 14:21:53 +0530901 struct wlan_green_ap_egap_params *egap_params);
Govind Singh89727882016-04-15 13:58:27 +0530902#endif
Govind Singh229bc0d2016-03-07 15:33:31 +0530903
Govind Singhd7468a52016-03-09 14:32:57 +0530904QDF_STATUS wmi_unified_fw_profiling_data_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530905 uint32_t cmd, uint32_t value1, uint32_t value2);
906
Naveen Rawat7f70d662017-10-26 18:50:19 -0700907QDF_STATUS wmi_unified_wow_timer_pattern_cmd(void *wmi_hdl, uint8_t vdev_id,
908 uint32_t cookie, uint32_t time);
909
Govind Singhd7468a52016-03-09 14:32:57 +0530910QDF_STATUS wmi_unified_nat_keepalive_en_cmd(void *wmi_hdl, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530911
Paul Zhang6a857a92017-12-08 16:08:00 +0800912/**
913 * wmi_unified_set_latency_config_cmd()
914 * @wmi_handle: wmi handle
915 * @param: WLM parameters
916 *
917 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
918 */
919QDF_STATUS wmi_unified_wlm_latency_level_cmd(void *wmi_hdl,
920 struct wlm_latency_level_param *param);
921
Govind Singhd7468a52016-03-09 14:32:57 +0530922QDF_STATUS wmi_unified_csa_offload_enable(void *wmi_hdl, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530923
Naveen Rawat90bc8fd2017-05-13 15:56:57 -0700924#ifdef WLAN_FEATURE_CIF_CFR
925/**
926 * wmi_unified_oem_dma_ring_cfg() - configure OEM DMA rings
927 * @wmi_handle: wmi handle
928 * @data_len: len of dma cfg req
929 * @data: dma cfg req
930 *
931 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
932 */
933QDF_STATUS wmi_unified_oem_dma_ring_cfg(void *wmi_hdl,
934 wmi_oem_dma_ring_cfg_req_fixed_param *cfg);
935#endif
936
Sathish Kumar3d3cf4f2017-11-17 17:30:41 +0530937/**
938 * wmi_unified_dbr_ring_cfg: Configure direct buffer rx rings
939 * @wmi_hdl: WMI handle
940 * @cfg: pointer to direct buffer rx config request
941 *
942 * Return: QDF status of operation
943 */
944QDF_STATUS wmi_unified_dbr_ring_cfg(void *wmi_hdl,
945 struct direct_buf_rx_cfg_req *cfg);
946
Govind Singhd7468a52016-03-09 14:32:57 +0530947QDF_STATUS wmi_unified_start_oem_data_cmd(void *wmi_hdl,
Krishna Kumaar Natarajan7a59ca02016-07-21 15:02:44 -0700948 uint32_t data_len,
Govind Singh229bc0d2016-03-07 15:33:31 +0530949 uint8_t *data);
950
Govind Singhd7468a52016-03-09 14:32:57 +0530951QDF_STATUS wmi_unified_dfs_phyerr_filter_offload_en_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530952 bool dfs_phyerr_filter_offload);
953
Kiran Venkatappa9da7e042016-08-09 22:52:35 +0530954#ifdef CONFIG_MCL
Govind Singhd7468a52016-03-09 14:32:57 +0530955QDF_STATUS wmi_unified_pktlog_wmi_send_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530956 WMI_PKTLOG_EVENT pktlog_event,
Nirav Shah9d1f1ac2016-07-27 19:06:13 +0530957 uint32_t cmd_id,
958 uint8_t user_triggered);
Govind Singh89727882016-04-15 13:58:27 +0530959#endif
Govind Singh229bc0d2016-03-07 15:33:31 +0530960
Govind Singhd7468a52016-03-09 14:32:57 +0530961QDF_STATUS wmi_unified_wow_delete_pattern_cmd(void *wmi_hdl, uint8_t ptrn_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530962 uint8_t vdev_id);
963
Govind Singhd7468a52016-03-09 14:32:57 +0530964QDF_STATUS wmi_unified_host_wakeup_ind_to_fw_cmd(void *wmi_hdl);
965QDF_STATUS wmi_unified_del_ts_cmd(void *wmi_hdl, uint8_t vdev_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530966 uint8_t ac);
967
Govind Singhd7468a52016-03-09 14:32:57 +0530968QDF_STATUS wmi_unified_aggr_qos_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530969 struct aggr_add_ts_param *aggr_qos_rsp_msg);
970
Govind Singhd7468a52016-03-09 14:32:57 +0530971QDF_STATUS wmi_unified_add_ts_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530972 struct add_ts_param *msg);
973
Govind Singhd7468a52016-03-09 14:32:57 +0530974QDF_STATUS wmi_unified_process_add_periodic_tx_ptrn_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530975 struct periodic_tx_pattern *
976 pAddPeriodicTxPtrnParams,
977 uint8_t vdev_id);
978
Govind Singhd7468a52016-03-09 14:32:57 +0530979QDF_STATUS wmi_unified_process_del_periodic_tx_ptrn_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530980 uint8_t vdev_id,
981 uint8_t pattern_id);
982
Govind Singhd7468a52016-03-09 14:32:57 +0530983QDF_STATUS wmi_unified_stats_ext_req_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530984 struct stats_ext_params *preq);
985
Govind Singhd7468a52016-03-09 14:32:57 +0530986QDF_STATUS wmi_unified_enable_ext_wow_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530987 struct ext_wow_params *params);
988
Govind Singhd7468a52016-03-09 14:32:57 +0530989QDF_STATUS wmi_unified_set_app_type2_params_in_fw_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530990 struct app_type2_params *appType2Params);
991
Govind Singhd7468a52016-03-09 14:32:57 +0530992QDF_STATUS wmi_unified_set_auto_shutdown_timer_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530993 uint32_t timer_val);
994
Govind Singhd7468a52016-03-09 14:32:57 +0530995QDF_STATUS wmi_unified_nan_req_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +0530996 struct nan_req_params *nan_req);
997
Govind Singhd7468a52016-03-09 14:32:57 +0530998QDF_STATUS wmi_unified_process_dhcpserver_offload_cmd(void *wmi_hdl,
Jeff Johnson645f7a12017-10-04 19:19:20 -0700999 struct dhcp_offload_info_params *params);
Govind Singh229bc0d2016-03-07 15:33:31 +05301000
Govind Singhd7468a52016-03-09 14:32:57 +05301001QDF_STATUS wmi_unified_process_ch_avoid_update_cmd(void *wmi_hdl);
Govind Singh229bc0d2016-03-07 15:33:31 +05301002
Govind Singhd7468a52016-03-09 14:32:57 +05301003QDF_STATUS wmi_unified_send_regdomain_info_to_fw_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +05301004 uint32_t reg_dmn, uint16_t regdmn2G,
Rajeev Kumar Sirasanagandlaacf22bf2017-06-06 13:27:56 +05301005 uint16_t regdmn5G, uint8_t ctl2G,
1006 uint8_t ctl5G);
Govind Singh229bc0d2016-03-07 15:33:31 +05301007
Govind Singhd7468a52016-03-09 14:32:57 +05301008QDF_STATUS wmi_unified_set_tdls_offchan_mode_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +05301009 struct tdls_channel_switch_params *chan_switch_params);
1010
Govind Singhd7468a52016-03-09 14:32:57 +05301011QDF_STATUS wmi_unified_update_fw_tdls_state_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +05301012 void *tdls_param, uint8_t tdls_state);
1013
Govind Singhd7468a52016-03-09 14:32:57 +05301014QDF_STATUS wmi_unified_update_tdls_peer_state_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +05301015 struct tdls_peer_state_params *peerStateParams,
1016 uint32_t *ch_mhz);
1017
Govind Singhd7468a52016-03-09 14:32:57 +05301018QDF_STATUS wmi_unified_process_fw_mem_dump_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +05301019 struct fw_dump_req_param *mem_dump_req);
1020
Govind Singhd7468a52016-03-09 14:32:57 +05301021QDF_STATUS wmi_unified_process_set_ie_info_cmd(void *wmi_hdl,
Govind Singh229bc0d2016-03-07 15:33:31 +05301022 struct vdev_ie_info_param *ie_info);
1023
Govind Singhd7468a52016-03-09 14:32:57 +05301024QDF_STATUS wmi_unified_save_fw_version_cmd(void *wmi_hdl,
Govind Singh71ee2d72016-03-07 16:30:32 +05301025 void *evt_buf);
1026
Govind Singhd7468a52016-03-09 14:32:57 +05301027QDF_STATUS wmi_unified_set_base_macaddr_indicate_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301028 uint8_t *custom_addr);
1029
Govind Singhd7468a52016-03-09 14:32:57 +05301030QDF_STATUS wmi_unified_log_supported_evt_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301031 uint8_t *event,
1032 uint32_t len);
1033
Govind Singhd7468a52016-03-09 14:32:57 +05301034QDF_STATUS wmi_unified_enable_specific_fw_logs_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301035 struct wmi_wifi_start_log *start_log);
1036
Govind Singhd7468a52016-03-09 14:32:57 +05301037QDF_STATUS wmi_unified_flush_logs_to_fw_cmd(void *wmi_hdl);
Govind Singh2ae94372016-03-07 16:45:38 +05301038
Manishekar Chandrasekaranb8c59382016-04-21 19:16:32 +05301039QDF_STATUS wmi_unified_pdev_set_pcl_cmd(void *wmi_hdl,
1040 struct wmi_pcl_chan_weights *msg);
Govind Singh2ae94372016-03-07 16:45:38 +05301041
Govind Singhd7468a52016-03-09 14:32:57 +05301042QDF_STATUS wmi_unified_soc_set_hw_mode_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301043 uint32_t hw_mode_index);
1044
Manishekar Chandrasekaran81d7aaa2016-04-27 12:52:51 +05301045QDF_STATUS wmi_unified_pdev_set_dual_mac_config_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301046 struct wmi_dual_mac_config *msg);
1047
Govind Singhd7468a52016-03-09 14:32:57 +05301048QDF_STATUS wmi_unified_set_led_flashing_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301049 struct flashing_req_params *flashing);
1050
Govind Singhd7468a52016-03-09 14:32:57 +05301051QDF_STATUS wmi_unified_app_type1_params_in_fw_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301052 struct app_type1_params *app_type1_params);
1053
Govind Singhd7468a52016-03-09 14:32:57 +05301054QDF_STATUS wmi_unified_set_ssid_hotlist_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301055 struct ssid_hotlist_request_params *request);
1056
Govind Singhd7468a52016-03-09 14:32:57 +05301057QDF_STATUS wmi_unified_roam_synch_complete_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301058 uint8_t vdev_id);
1059
Govind Singhd7468a52016-03-09 14:32:57 +05301060QDF_STATUS wmi_unified_unit_test_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301061 struct wmi_unit_test_cmd *wmi_utest);
1062
Govind Singhd7468a52016-03-09 14:32:57 +05301063QDF_STATUS wmi_unified_roam_invoke_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301064 struct wmi_roam_invoke_cmd *roaminvoke,
1065 uint32_t ch_hz);
1066
Govind Singhd7468a52016-03-09 14:32:57 +05301067QDF_STATUS wmi_unified_roam_scan_offload_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301068 uint32_t command, uint32_t vdev_id);
1069
Kiran Venkatappa9da7e042016-08-09 22:52:35 +05301070#ifdef CONFIG_MCL
Govind Singhd7468a52016-03-09 14:32:57 +05301071QDF_STATUS wmi_unified_send_roam_scan_offload_ap_cmd(void *wmi_hdl,
Himanshu Agarwalf9524e12017-09-28 11:51:35 +05301072 struct ap_profile_params *ap_profile);
Govind Singh89727882016-04-15 13:58:27 +05301073#endif
Govind Singh2ae94372016-03-07 16:45:38 +05301074
Govind Singhd7468a52016-03-09 14:32:57 +05301075QDF_STATUS wmi_unified_roam_scan_offload_scan_period(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301076 uint32_t scan_period,
1077 uint32_t scan_age,
1078 uint32_t vdev_id);
1079
Govind Singhd7468a52016-03-09 14:32:57 +05301080QDF_STATUS wmi_unified_roam_scan_offload_chan_list_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301081 uint8_t chan_count,
Varun Reddy Yeturub47fa402016-07-07 17:42:49 -07001082 uint32_t *chan_list,
Govind Singh2ae94372016-03-07 16:45:38 +05301083 uint8_t list_type, uint32_t vdev_id);
1084
Govind Singhd7468a52016-03-09 14:32:57 +05301085QDF_STATUS wmi_unified_roam_scan_offload_rssi_change_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301086 uint32_t vdev_id,
1087 int32_t rssi_change_thresh,
1088 uint32_t bcn_rssi_weight,
1089 uint32_t hirssi_delay_btw_scans);
1090
Kapil Guptaf6eb7312017-02-24 15:50:03 +05301091/**
1092 * wmi_unified_set_per_roam_config() - set PER roam config in FW
1093 * @wmi_hdl: wmi handle
1094 * @req_buf: per roam config request buffer
1095 *
1096 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
1097 */
1098QDF_STATUS wmi_unified_set_per_roam_config(void *wmi_hdl,
1099 struct wmi_per_roam_config_req *req_buf);
1100
Govind Singhd7468a52016-03-09 14:32:57 +05301101QDF_STATUS wmi_unified_get_buf_extscan_hotlist_cmd(void *wmi_hdl,
Govind Singh2ae94372016-03-07 16:45:38 +05301102 struct ext_scan_setbssi_hotlist_params *
1103 photlist, int *buf_len);
Govind Singh89727882016-04-15 13:58:27 +05301104
Dustin Brown4def3162017-01-13 15:24:07 -08001105/**
1106 * wmi_unified_set_active_bpf_mode_cmd() - config active BPF mode in FW
1107 * @wmi_hdl: the WMI handle
1108 * @vdev_id: the Id of the vdev to apply the configuration to
1109 * @ucast_mode: the active BPF mode to configure for unicast packets
1110 * @mcast_bcast_mode: the active BPF mode to configure for multicast/broadcast
1111 * packets
1112 */
1113QDF_STATUS wmi_unified_set_active_bpf_mode_cmd(void *wmi_hdl,
1114 uint8_t vdev_id,
1115 enum wmi_host_active_bpf_mode ucast_mode,
1116 enum wmi_host_active_bpf_mode mcast_bcast_mode);
1117
Govind Singh89727882016-04-15 13:58:27 +05301118QDF_STATUS wmi_unified_stats_request_send(void *wmi_hdl,
1119 uint8_t macaddr[IEEE80211_ADDR_LEN],
1120 struct stats_request_params *param);
1121
1122QDF_STATUS wmi_unified_pdev_get_tpc_config_cmd_send(void *wmi_hdl,
1123 uint32_t param);
1124
Sathish Kumar50232d72016-08-09 16:50:46 +05301125QDF_STATUS wmi_unified_set_bwf_cmd_send(void *wmi_hdl,
1126 struct set_bwf_params *param);
1127
Sathish Kumar7e2eaed2016-11-14 17:44:29 +05301128QDF_STATUS wmi_send_get_user_position_cmd(void *wmi_hdl, uint32_t value);
1129
1130QDF_STATUS wmi_send_get_peer_mumimo_tx_count_cmd(void *wmi_hdl, uint32_t value);
1131
1132QDF_STATUS wmi_send_reset_peer_mumimo_tx_count_cmd(void *wmi_hdl,
1133 uint32_t value);
1134
1135QDF_STATUS wmi_send_pdev_caldata_version_check_cmd(void *wmi_hdl,
1136 uint32_t value);
1137
1138QDF_STATUS wmi_unified_send_btcoex_wlan_priority_cmd(void *wmi_hdl,
Sathish Kumar7e566c52016-11-10 15:30:22 +05301139 struct btcoex_cfg_params *param);
1140
1141QDF_STATUS wmi_unified_send_btcoex_duty_cycle_cmd(void *wmi_hdl,
1142 struct btcoex_cfg_params *param);
Sathish Kumar7e2eaed2016-11-14 17:44:29 +05301143
Sathish Kumar612d0c22017-01-19 14:57:37 +05301144QDF_STATUS wmi_unified_send_coex_ver_cfg_cmd(void *wmi_hdl,
1145 coex_ver_cfg_t *param);
1146
Sathish Kumar125754e2017-04-24 11:36:00 +05301147QDF_STATUS wmi_unified_send_coex_config_cmd(void *wmi_hdl,
1148 struct coex_config_params *param);
1149
Govind Singh89727882016-04-15 13:58:27 +05301150QDF_STATUS wmi_unified_set_atf_cmd_send(void *wmi_hdl,
1151 struct set_atf_params *param);
1152
1153QDF_STATUS wmi_unified_pdev_fips_cmd_send(void *wmi_hdl,
1154 struct fips_params *param);
1155
1156QDF_STATUS wmi_unified_wlan_profile_enable_cmd_send(void *wmi_hdl,
1157 struct wlan_profile_params *param);
1158
1159QDF_STATUS wmi_unified_wlan_profile_trigger_cmd_send(void *wmi_hdl,
1160 struct wlan_profile_params *param);
1161
1162QDF_STATUS wmi_unified_set_chan_cmd_send(void *wmi_hdl,
1163 struct channel_param *param);
1164
1165QDF_STATUS wmi_unified_set_ht_ie_cmd_send(void *wmi_hdl,
1166 struct ht_ie_params *param);
1167
1168QDF_STATUS wmi_unified_set_vht_ie_cmd_send(void *wmi_hdl,
1169 struct vht_ie_params *param);
1170
1171QDF_STATUS wmi_unified_wmm_update_cmd_send(void *wmi_hdl,
1172 struct wmm_update_params *param);
1173
1174QDF_STATUS wmi_unified_set_ant_switch_tbl_cmd_send(void *wmi_hdl,
1175 struct ant_switch_tbl_params *param);
1176
1177QDF_STATUS wmi_unified_set_ratepwr_table_cmd_send(void *wmi_hdl,
1178 struct ratepwr_table_params *param);
1179
1180QDF_STATUS wmi_unified_get_ratepwr_table_cmd_send(void *wmi_hdl);
1181
1182QDF_STATUS wmi_unified_set_ctl_table_cmd_send(void *wmi_hdl,
1183 struct ctl_table_params *param);
1184
1185QDF_STATUS wmi_unified_set_mimogain_table_cmd_send(void *wmi_hdl,
1186 struct mimogain_table_params *param);
1187
1188QDF_STATUS wmi_unified_set_ratepwr_chainmsk_cmd_send(void *wmi_hdl,
1189 struct ratepwr_chainmsk_params *param);
1190
1191QDF_STATUS wmi_unified_set_macaddr_cmd_send(void *wmi_hdl,
1192 struct macaddr_params *param);
1193
1194QDF_STATUS wmi_unified_pdev_scan_start_cmd_send(void *wmi_hdl);
1195
1196QDF_STATUS wmi_unified_pdev_scan_end_cmd_send(void *wmi_hdl);
1197
1198QDF_STATUS wmi_unified_set_acparams_cmd_send(void *wmi_hdl,
1199 struct acparams_params *param);
1200
1201QDF_STATUS wmi_unified_set_vap_dscp_tid_map_cmd_send(void *wmi_hdl,
1202 struct vap_dscp_tid_map_params *param);
1203
1204QDF_STATUS wmi_unified_proxy_ast_reserve_cmd_send(void *wmi_hdl,
1205 struct proxy_ast_reserve_params *param);
1206
1207QDF_STATUS wmi_unified_pdev_qvit_cmd_send(void *wmi_hdl,
1208 struct pdev_qvit_params *param);
1209
1210QDF_STATUS wmi_unified_mcast_group_update_cmd_send(void *wmi_hdl,
1211 struct mcast_group_update_params *param);
1212
1213QDF_STATUS wmi_unified_peer_add_wds_entry_cmd_send(void *wmi_hdl,
1214 struct peer_add_wds_entry_params *param);
1215
1216QDF_STATUS wmi_unified_peer_del_wds_entry_cmd_send(void *wmi_hdl,
1217 struct peer_del_wds_entry_params *param);
1218
Jeevan Kukkalli28e8a162017-06-16 18:07:28 +05301219/**
1220 * wmi_unified_set_bridge_mac_addr_cmd_send() - WMI set bridge mac addr cmd function
1221 * @param wmi_hdl : handle to WMI.
1222 * @param param : pointer to hold bridge mac addr param
1223 *
1224 * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
1225 */
1226QDF_STATUS wmi_unified_set_bridge_mac_addr_cmd_send(void *wmi_hdl,
1227 struct set_bridge_mac_addr_params *param);
1228
1229
Govind Singh89727882016-04-15 13:58:27 +05301230QDF_STATUS wmi_unified_peer_update_wds_entry_cmd_send(void *wmi_hdl,
1231 struct peer_update_wds_entry_params *param);
1232
1233QDF_STATUS wmi_unified_phyerr_enable_cmd_send(void *wmi_hdl);
1234
1235QDF_STATUS wmi_unified_phyerr_enable_cmd_send(void *wmi_hdl);
1236
1237QDF_STATUS wmi_unified_phyerr_disable_cmd_send(void *wmi_hdl);
1238
1239QDF_STATUS wmi_unified_smart_ant_enable_cmd_send(void *wmi_hdl,
1240 struct smart_ant_enable_params *param);
1241
1242QDF_STATUS wmi_unified_smart_ant_set_rx_ant_cmd_send(void *wmi_hdl,
1243 struct smart_ant_rx_ant_params *param);
1244
1245QDF_STATUS wmi_unified_smart_ant_set_tx_ant_cmd_send(void *wmi_hdl,
1246 uint8_t macaddr[IEEE80211_ADDR_LEN],
1247 struct smart_ant_tx_ant_params *param);
1248
1249QDF_STATUS wmi_unified_smart_ant_set_training_info_cmd_send(void *wmi_hdl,
1250 uint8_t macaddr[IEEE80211_ADDR_LEN],
1251 struct smart_ant_training_info_params *param);
1252
1253QDF_STATUS wmi_unified_smart_ant_node_config_cmd_send(void *wmi_hdl,
1254 uint8_t macaddr[IEEE80211_ADDR_LEN],
1255 struct smart_ant_node_config_params *param);
1256
1257QDF_STATUS wmi_unified_smart_ant_enable_tx_feedback_cmd_send(void *wmi_hdl,
1258 struct smart_ant_enable_tx_feedback_params *param);
1259
1260QDF_STATUS wmi_unified_vdev_spectral_configure_cmd_send(void *wmi_hdl,
1261 struct vdev_spectral_configure_params *param);
1262
1263QDF_STATUS wmi_unified_vdev_spectral_enable_cmd_send(void *wmi_hdl,
1264 struct vdev_spectral_enable_params *param);
1265
1266QDF_STATUS wmi_unified_bss_chan_info_request_cmd_send(void *wmi_hdl,
1267 struct bss_chan_info_request_params *param);
1268
1269QDF_STATUS wmi_unified_thermal_mitigation_param_cmd_send(void *wmi_hdl,
1270 struct thermal_mitigation_params *param);
1271
1272QDF_STATUS wmi_unified_vdev_set_neighbour_rx_cmd_send(void *wmi_hdl,
1273 uint8_t macaddr[IEEE80211_ADDR_LEN],
1274 struct set_neighbour_rx_params *param);
1275
1276QDF_STATUS wmi_unified_vdev_set_fwtest_param_cmd_send(void *wmi_hdl,
1277 struct set_fwtest_params *param);
1278
1279QDF_STATUS wmi_unified_vdev_config_ratemask_cmd_send(void *wmi_hdl,
1280 struct config_ratemask_params *param);
1281
Sathish Kumar6190e772017-11-08 14:49:58 +05301282/**
1283 * wmi_unified_vdev_set_custom_aggr_size_cmd_send() - WMI set custom aggr
1284 * size command
1285 * @param wmi_hdl : handle to WMI.
1286 * @param param : pointer to hold custom aggr size param
1287 *
1288 * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
1289 */
1290QDF_STATUS wmi_unified_vdev_set_custom_aggr_size_cmd_send(void *wmi_hdl,
1291 struct set_custom_aggr_size_params *param);
Govind Singh89727882016-04-15 13:58:27 +05301292
Venkateswara Swamy Bandaru81f40dc2017-12-22 17:16:19 +05301293/**
1294 * wmi_unified_vdev_set_qdepth_thresh_cmd_send() - WMI set qdepth threshold
1295 * @param wmi_hdl : handle to WMI.
1296 * @param param : pointer to hold set qdepth thresh param
1297 *
1298 * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
1299 */
1300QDF_STATUS wmi_unified_vdev_set_qdepth_thresh_cmd_send(void *wmi_hdl,
1301 struct set_qdepth_thresh_params *param);
1302
Govind Singh89727882016-04-15 13:58:27 +05301303QDF_STATUS wmi_unified_pdev_set_regdomain_cmd_send(void *wmi_hdl,
1304 struct pdev_set_regdomain_params *param);
1305
1306QDF_STATUS wmi_unified_set_quiet_mode_cmd_send(void *wmi_hdl,
1307 struct set_quiet_mode_params *param);
1308
1309QDF_STATUS wmi_unified_set_beacon_filter_cmd_send(void *wmi_hdl,
1310 struct set_beacon_filter_params *param);
1311
1312QDF_STATUS wmi_unified_remove_beacon_filter_cmd_send(void *wmi_hdl,
1313 struct remove_beacon_filter_params *param);
1314
1315QDF_STATUS wmi_unified_addba_clearresponse_cmd_send(void *wmi_hdl,
1316 uint8_t macaddr[IEEE80211_ADDR_LEN],
1317 struct addba_clearresponse_params *param);
1318
1319QDF_STATUS wmi_unified_addba_send_cmd_send(void *wmi_hdl,
1320 uint8_t macaddr[IEEE80211_ADDR_LEN],
1321 struct addba_send_params *param);
1322
1323QDF_STATUS wmi_unified_delba_send_cmd_send(void *wmi_hdl,
1324 uint8_t macaddr[IEEE80211_ADDR_LEN],
1325 struct delba_send_params *param);
1326
1327QDF_STATUS wmi_unified_addba_setresponse_cmd_send(void *wmi_hdl,
1328 uint8_t macaddr[IEEE80211_ADDR_LEN],
1329 struct addba_setresponse_params *param);
1330
1331QDF_STATUS wmi_unified_singleamsdu_cmd_send(void *wmi_hdl,
1332 uint8_t macaddr[IEEE80211_ADDR_LEN],
1333 struct singleamsdu_params *param);
1334
1335QDF_STATUS wmi_unified_set_qboost_param_cmd_send(void *wmi_hdl,
1336 uint8_t macaddr[IEEE80211_ADDR_LEN],
1337 struct set_qboost_params *param);
1338
1339QDF_STATUS wmi_unified_mu_scan_cmd_send(void *wmi_hdl,
1340 struct mu_scan_params *param);
1341
1342QDF_STATUS wmi_unified_lteu_config_cmd_send(void *wmi_hdl,
1343 struct lteu_config_params *param);
1344
1345QDF_STATUS wmi_unified_set_psmode_cmd_send(void *wmi_hdl,
1346 struct set_ps_mode_params *param);
1347
1348QDF_STATUS wmi_unified_init_cmd_send(void *wmi_hdl,
Kiran Venkatappaaf1dae32016-12-23 19:58:54 +05301349 struct wmi_init_cmd_param *param);
Govind Singh89727882016-04-15 13:58:27 +05301350
1351bool wmi_service_enabled(void *wmi_hdl, uint32_t service_id);
1352
Kiran Venkatappa34bea522017-09-01 17:02:34 +05301353/**
1354 * wmi_save_service_bitmap() - save service bitmap
1355 * @wmi_handle: wmi handle
1356 * @param evt_buf: pointer to event buffer
1357 *
1358 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS failure code
1359 */
Rajeev Kumar5d8497b2017-02-12 02:12:17 -08001360QDF_STATUS wmi_save_service_bitmap(void *wmi_hdl, void *evt_buf,
1361 void *bitmap_buf);
Govind Singh89727882016-04-15 13:58:27 +05301362
Kiran Venkatappa34bea522017-09-01 17:02:34 +05301363/**
1364 * wmi_save_ext_service_bitmap() - save extended service bitmap
1365 * @wmi_handle: wmi handle
1366 * @param evt_buf: pointer to event buffer
1367 *
1368 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS failure code
1369 */
1370QDF_STATUS wmi_save_ext_service_bitmap(void *wmi_hdl, void *evt_buf,
1371 void *bitmap_buf);
1372
Govind Singh89727882016-04-15 13:58:27 +05301373QDF_STATUS wmi_save_fw_version(void *wmi_hdl, void *evt_buf);
1374
1375QDF_STATUS wmi_get_target_cap_from_service_ready(void *wmi_hdl,
Rajeev Kumar0b6b2852017-02-03 00:39:49 -08001376 void *evt_buf,
1377 struct wlan_psoc_target_capability_info *ev);
Govind Singh89727882016-04-15 13:58:27 +05301378
1379QDF_STATUS wmi_extract_hal_reg_cap(void *wmi_hdl, void *evt_buf,
Rajeev Kumar0b6b2852017-02-03 00:39:49 -08001380 struct wlan_psoc_hal_reg_capability *hal_reg_cap);
Govind Singh89727882016-04-15 13:58:27 +05301381
1382host_mem_req *wmi_extract_host_mem_req_from_service_ready(void *wmi_hdl,
1383 void *evt_buf, uint8_t *num_entries);
1384
1385uint32_t wmi_ready_extract_init_status(void *wmi_hdl, void *ev);
1386
1387QDF_STATUS wmi_ready_extract_mac_addr(void *wmi_hdl,
1388 void *ev, uint8_t *macaddr);
1389
Manoj Ekbote66496392017-07-09 23:28:56 -07001390wmi_host_mac_addr *wmi_ready_extract_mac_addr_list(void *wmi_hdl, void *ev,
1391 uint8_t *num_mac_addr);
1392
Kiran Venkatappaa40870a2017-11-10 20:50:12 +05301393/**
1394 * wmi_extract_ready_params() - Extract data from ready event apart from
1395 * status, macaddr and version.
1396 * @wmi_handle: Pointer to WMI handle.
1397 * @evt_buf: Pointer to Ready event buffer.
1398 * @ev_param: Pointer to host defined struct to copy the data from event.
1399 *
1400 * Return: QDF_STATUS_SUCCESS on success.
1401 */
1402QDF_STATUS wmi_extract_ready_event_params(void *wmi_hdl,
1403 void *evt_buf, struct wmi_host_ready_ev_param *ev_param);
1404
Govind Singh89727882016-04-15 13:58:27 +05301405QDF_STATUS wmi_extract_fw_version(void *wmi_hdl,
1406 void *ev, struct wmi_host_fw_ver *fw_ver);
1407
1408QDF_STATUS wmi_extract_fw_abi_version(void *wmi_hdl,
1409 void *ev, struct wmi_host_fw_abi_ver *fw_ver);
1410
1411QDF_STATUS wmi_check_and_update_fw_version(void *wmi_hdl, void *ev);
1412
1413uint8_t *wmi_extract_dbglog_data_len(void *wmi_hdl,
Rajeev Kumar45fdf7f2017-01-25 12:46:21 -08001414 void *evt_b, uint32_t *len);
Govind Singh89727882016-04-15 13:58:27 +05301415
1416QDF_STATUS wmi_send_ext_resource_config(void *wmi_hdl,
1417 wmi_host_ext_resource_config *ext_cfg);
1418
1419QDF_STATUS wmi_unified_nf_dbr_dbm_info_get_cmd_send(void *wmi_hdl);
1420
1421QDF_STATUS wmi_unified_packet_power_info_get_cmd_send(void *wmi_hdl,
1422 struct packet_power_info_params *param);
1423
1424QDF_STATUS wmi_unified_gpio_config_cmd_send(void *wmi_hdl,
1425 struct gpio_config_params *param);
1426
1427QDF_STATUS wmi_unified_gpio_output_cmd_send(void *wmi_hdl,
1428 struct gpio_output_params *param);
1429
1430QDF_STATUS wmi_unified_rtt_meas_req_test_cmd_send(void *wmi_hdl,
1431 struct rtt_meas_req_test_params *param);
1432
1433QDF_STATUS wmi_unified_rtt_meas_req_cmd_send(void *wmi_hdl,
1434 struct rtt_meas_req_params *param);
1435
1436QDF_STATUS wmi_unified_rtt_keepalive_req_cmd_send(void *wmi_hdl,
1437 struct rtt_keepalive_req_params *param);
1438
1439QDF_STATUS wmi_unified_lci_set_cmd_send(void *wmi_hdl,
1440 struct lci_set_params *param);
1441
1442QDF_STATUS wmi_unified_lcr_set_cmd_send(void *wmi_hdl,
1443 struct lcr_set_params *param);
1444
1445QDF_STATUS wmi_unified_send_periodic_chan_stats_config_cmd(void *wmi_hdl,
1446 struct periodic_chan_stats_params *param);
1447
1448QDF_STATUS
1449wmi_send_atf_peer_request_cmd(void *wmi_hdl,
1450 struct atf_peer_request_params *param);
1451
1452QDF_STATUS
1453wmi_send_set_atf_grouping_cmd(void *wmi_hdl,
1454 struct atf_grouping_params *param);
1455/* Extract APIs */
1456
1457QDF_STATUS wmi_extract_wds_addr_event(void *wmi_hdl,
1458 void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);
1459
1460QDF_STATUS wmi_extract_dcs_interference_type(void *wmi_hdl,
Kiran Venkatappa9b7a9592016-12-29 18:09:32 +05301461 void *evt_buf, struct wmi_host_dcs_interference_param *param);
Govind Singh89727882016-04-15 13:58:27 +05301462
1463QDF_STATUS wmi_extract_dcs_cw_int(void *wmi_hdl, void *evt_buf,
1464 wmi_host_ath_dcs_cw_int *cw_int);
1465
1466QDF_STATUS wmi_extract_dcs_im_tgt_stats(void *wmi_hdl, void *evt_buf,
1467 wmi_host_dcs_im_tgt_stats_t *wlan_stat);
1468
Govind Singh89727882016-04-15 13:58:27 +05301469QDF_STATUS wmi_extract_fips_event_data(void *wmi_hdl, void *evt_buf,
Kiran Venkatappa9f5fcc02016-12-29 22:07:14 +05301470 struct wmi_host_fips_event_param *param);
1471
Govind Singh89727882016-04-15 13:58:27 +05301472QDF_STATUS wmi_extract_vdev_start_resp(void *wmi_hdl, void *evt_buf,
1473 wmi_host_vdev_start_resp *vdev_rsp);
Sathish Kumar744fbf72017-05-17 18:05:15 +05301474
Om Prakash Tripathi105b04b2017-11-24 16:53:07 +05301475/**
1476 * wmi_extract_vdev_delete_resp - api to extract vdev delete
1477 * response event params
1478 * @wmi_handle: wma handle
1479 * @evt_buf: pointer to event buffer
1480 * @delele_rsp: pointer to hold delete response from firmware
1481 *
1482 * Return: QDF_STATUS_SUCCESS for successful event parse
1483 * else QDF_STATUS_E_INVAL or QDF_STATUS_E_FAILURE
1484 */
1485QDF_STATUS wmi_extract_vdev_delete_resp(void *wmi_hdl, void *evt_buf,
1486 struct wmi_host_vdev_delete_resp *delele_rsp);
1487
Govind Singh89727882016-04-15 13:58:27 +05301488QDF_STATUS wmi_extract_tbttoffset_update_params(void *wmi_hdl, void *evt_buf,
Sathish Kumar744fbf72017-05-17 18:05:15 +05301489 uint8_t idx, struct tbttoffset_params *tbtt_param);
1490
1491QDF_STATUS wmi_extract_ext_tbttoffset_update_params(void *wmi_hdl,
1492 void *evt_buf, uint8_t idx,
1493 struct tbttoffset_params *tbtt_param);
1494
1495QDF_STATUS wmi_extract_tbttoffset_num_vdevs(void *wmi_hdl, void *evt_buf,
1496 uint32_t *num_vdevs);
1497
1498QDF_STATUS wmi_extract_ext_tbttoffset_num_vdevs(void *wmi_hdl, void *evt_buf,
1499 uint32_t *num_vdevs);
Govind Singh89727882016-04-15 13:58:27 +05301500
1501QDF_STATUS wmi_extract_mgmt_rx_params(void *wmi_hdl, void *evt_buf,
Himanshu Agarwal53d526b2017-01-05 14:23:18 +05301502 struct mgmt_rx_event_params *hdr, uint8_t **bufp);
Govind Singh89727882016-04-15 13:58:27 +05301503
1504QDF_STATUS wmi_extract_vdev_stopped_param(void *wmi_hdl, void *evt_buf,
1505 uint32_t *vdev_id);
1506
1507QDF_STATUS wmi_extract_vdev_roam_param(void *wmi_hdl, void *evt_buf,
1508 wmi_host_roam_event *ev);
1509
1510QDF_STATUS wmi_extract_vdev_scan_ev_param(void *wmi_hdl, void *evt_buf,
Om Prakash Tripathi91452bf2017-02-25 15:53:30 +05301511 struct scan_event *param);
Govind Singh89727882016-04-15 13:58:27 +05301512
Frank Liu0ba573b2017-03-15 17:51:43 +08001513#ifdef CONVERGED_TDLS_ENABLE
1514/**
1515 * wmi_extract_vdev_tdls_ev_param - extract vdev tdls param from event
1516 * @wmi_handle: wmi handle
1517 * @param evt_buf: pointer to event buffer
1518 * @param param: Pointer to hold vdev tdls param
1519 *
1520 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
1521 */
1522QDF_STATUS wmi_extract_vdev_tdls_ev_param(void *wmi_hdl, void *evt_buf,
1523 struct tdls_event_info *param);
1524#endif
1525
Govind Singh89727882016-04-15 13:58:27 +05301526QDF_STATUS wmi_extract_mu_ev_param(void *wmi_hdl, void *evt_buf,
1527 wmi_host_mu_report_event *param);
1528
Sathish Kumar7e2eaed2016-11-14 17:44:29 +05301529QDF_STATUS wmi_extract_mu_db_entry(void *wmi_hdl, void *evt_buf,
1530 uint8_t idx, wmi_host_mu_db_entry *param);
1531
1532QDF_STATUS wmi_extract_mumimo_tx_count_ev_param(void *wmi_hdl, void *evt_buf,
1533 wmi_host_peer_txmu_cnt_event *param);
1534
1535QDF_STATUS wmi_extract_peer_gid_userpos_list_ev_param(void *wmi_hdl,
1536 void *evt_buf, wmi_host_peer_gid_userpos_list_event *param);
1537
1538QDF_STATUS wmi_extract_pdev_caldata_version_check_ev_param(void *wmi_hdl,
1539 void *evt_buf, wmi_host_pdev_check_cal_version_event *param);
1540
Govind Singh89727882016-04-15 13:58:27 +05301541QDF_STATUS wmi_extract_pdev_tpc_config_ev_param(void *wmi_hdl, void *evt_buf,
1542 wmi_host_pdev_tpc_config_event *param);
1543
1544QDF_STATUS wmi_extract_gpio_input_ev_param(void *wmi_hdl,
1545 void *evt_buf, uint32_t *gpio_num);
1546
1547QDF_STATUS wmi_extract_pdev_reserve_ast_ev_param(void *wmi_hdl,
Kiran Venkatappa3f061a92017-02-08 14:57:16 +05301548 void *evt_buf, struct wmi_host_proxy_ast_reserve_param *param);
Govind Singh89727882016-04-15 13:58:27 +05301549
1550QDF_STATUS wmi_extract_nfcal_power_ev_param(void *wmi_hdl, void *evt_buf,
1551 wmi_host_pdev_nfcal_power_all_channels_event *param);
1552
1553QDF_STATUS wmi_extract_pdev_tpc_ev_param(void *wmi_hdl, void *evt_buf,
1554 wmi_host_pdev_tpc_event *param);
1555
1556QDF_STATUS wmi_extract_pdev_generic_buffer_ev_param(void *wmi_hdl,
1557 void *evt_buf,
1558 wmi_host_pdev_generic_buffer_event *param);
1559
1560QDF_STATUS wmi_extract_mgmt_tx_compl_param(void *wmi_hdl, void *evt_buf,
1561 wmi_host_mgmt_tx_compl_event *param);
1562
Kiran Venkatappa25c47022017-03-19 22:58:09 +05301563QDF_STATUS wmi_extract_offchan_data_tx_compl_param(void *wmi_hdl, void *evt_buf,
1564 struct wmi_host_offchan_data_tx_compl_event *param);
1565
Sathish Kumar907a7462017-02-27 10:35:40 +05301566QDF_STATUS wmi_extract_pdev_csa_switch_count_status(void *wmi_hdl,
1567 void *evt_buf,
1568 struct pdev_csa_switch_count_status *param);
1569
Sathish Kumar744fbf72017-05-17 18:05:15 +05301570QDF_STATUS wmi_extract_swba_num_vdevs(void *wmi_hdl, void *evt_buf,
1571 uint32_t *num_vdevs);
Govind Singh89727882016-04-15 13:58:27 +05301572
1573QDF_STATUS wmi_extract_swba_tim_info(void *wmi_hdl, void *evt_buf,
1574 uint32_t idx, wmi_host_tim_info *tim_info);
1575
1576QDF_STATUS wmi_extract_swba_noa_info(void *wmi_hdl, void *evt_buf,
1577 uint32_t idx, wmi_host_p2p_noa_info *p2p_desc);
1578
Wu Gao07ba6b42017-03-13 20:17:34 +08001579#ifdef CONVERGED_P2P_ENABLE
1580QDF_STATUS wmi_extract_p2p_lo_stop_ev_param(void *wmi_hdl,
1581 void *evt_buf, struct p2p_lo_event *param);
1582
1583QDF_STATUS wmi_extract_p2p_noa_ev_param(void *wmi_hdl,
1584 void *evt_buf, struct p2p_noa_info *param);
1585#endif
1586
Govind Singh89727882016-04-15 13:58:27 +05301587QDF_STATUS wmi_extract_peer_sta_ps_statechange_ev(void *wmi_hdl,
1588 void *evt_buf, wmi_host_peer_sta_ps_statechange_event *ev);
1589
1590QDF_STATUS wmi_extract_peer_sta_kickout_ev(void *wmi_hdl, void *evt_buf,
1591 wmi_host_peer_sta_kickout_event *ev);
1592
1593QDF_STATUS wmi_extract_peer_ratecode_list_ev(void *wmi_hdl, void *evt_buf,
1594 uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap);
1595
Jeff Johnson6b8bda42016-10-07 13:03:02 -07001596QDF_STATUS wmi_extract_bcnflt_stats(void *wmi_hdl, void *evt_buf,
1597 uint32_t index, wmi_host_bcnflt_stats *bcnflt_stats);
1598
Govind Singh89727882016-04-15 13:58:27 +05301599QDF_STATUS wmi_extract_rtt_hdr(void *wmi_hdl, void *evt_buf,
1600 wmi_host_rtt_event_hdr *ev);
1601
1602QDF_STATUS wmi_extract_rtt_ev(void *wmi_hdl, void *evt_buf,
1603 wmi_host_rtt_meas_event *ev, uint8_t *hdump,
1604 uint16_t hdump_len);
1605
1606QDF_STATUS wmi_extract_rtt_error_report_ev(void *wmi_hdl, void *evt_buf,
1607 wmi_host_rtt_error_report_event *ev);
1608
Jeff Johnson6b8bda42016-10-07 13:03:02 -07001609QDF_STATUS wmi_extract_chan_stats(void *wmi_hdl, void *evt_buf,
1610 uint32_t index, wmi_host_chan_stats *chan_stats);
1611
Govind Singh89727882016-04-15 13:58:27 +05301612QDF_STATUS wmi_extract_thermal_stats(void *wmi_hdl, void *evt_buf,
Om Prakash Tripathi2f54fbb2017-04-19 16:57:31 +05301613 uint32_t *temp, uint32_t *level, uint32_t *pdev_id);
Govind Singh89727882016-04-15 13:58:27 +05301614
1615QDF_STATUS wmi_extract_thermal_level_stats(void *wmi_hdl, void *evt_buf,
1616 uint8_t idx, uint32_t *levelcount, uint32_t *dccount);
1617
1618QDF_STATUS wmi_extract_comb_phyerr(void *wmi_hdl, void *evt_buf,
1619 uint16_t datalen, uint16_t *buf_offset,
1620 wmi_host_phyerr_t *phyerr);
1621
1622QDF_STATUS wmi_extract_single_phyerr(void *wmi_hdl, void *evt_buf,
1623 uint16_t datalen, uint16_t *buf_offset,
1624 wmi_host_phyerr_t *phyerr);
1625
1626QDF_STATUS wmi_extract_composite_phyerr(void *wmi_hdl, void *evt_buf,
1627 uint16_t datalen, wmi_host_phyerr_t *phyerr);
1628
1629QDF_STATUS wmi_extract_profile_ctx(void *wmi_hdl, void *evt_buf,
1630 wmi_host_wlan_profile_ctx_t *profile_ctx);
1631
Govind Singh41da3152016-05-06 20:20:25 +05301632QDF_STATUS wmi_extract_profile_data(void *wmi_hdl, void *evt_buf, uint8_t idx,
Govind Singh89727882016-04-15 13:58:27 +05301633 wmi_host_wlan_profile_t *profile_data);
1634
1635QDF_STATUS wmi_extract_chan_info_event(void *wmi_hdl, void *evt_buf,
1636 wmi_host_chan_info_event *chan_info);
1637
1638QDF_STATUS wmi_extract_channel_hopping_event(void *wmi_hdl, void *evt_buf,
1639 wmi_host_pdev_channel_hopping_event *ch_hopping);
1640
1641QDF_STATUS wmi_extract_stats_param(void *wmi_hdl, void *evt_buf,
1642 wmi_host_stats_event *stats_param);
1643
1644QDF_STATUS wmi_extract_pdev_stats(void *wmi_hdl, void *evt_buf,
1645 uint32_t index,
1646 wmi_host_pdev_stats *pdev_stats);
1647
Adil Saeed Musthafa0b6c7602017-08-23 17:32:11 -07001648QDF_STATUS wmi_extract_unit_test(void *wmi_hdl, void *evt_buf,
1649 wmi_unit_test_event *unit_test, uint32_t maxspace);
1650
Govind Singh89727882016-04-15 13:58:27 +05301651QDF_STATUS wmi_extract_pdev_ext_stats(void *wmi_hdl, void *evt_buf,
1652 uint32_t index,
1653 wmi_host_pdev_ext_stats *pdev_ext_stats);
1654
1655QDF_STATUS wmi_extract_peer_extd_stats(void *wmi_hdl, void *evt_buf,
1656 uint32_t index,
1657 wmi_host_peer_extd_stats *peer_extd_stats);
1658
1659QDF_STATUS wmi_extract_bss_chan_info_event(void *wmi_hdl, void *evt_buf,
1660 wmi_host_pdev_bss_chan_info_event *bss_chan_info);
1661
1662QDF_STATUS wmi_extract_inst_rssi_stats_event(void *wmi_hdl, void *evt_buf,
1663 wmi_host_inst_stats_resp *inst_rssi_resp);
1664
1665QDF_STATUS wmi_extract_peer_stats(void *wmi_hdl, void *evt_buf,
1666 uint32_t index, wmi_host_peer_stats *peer_stats);
1667
1668QDF_STATUS wmi_extract_tx_data_traffic_ctrl_ev(void *wmi_hdl, void *evt_buf,
1669 wmi_host_tx_data_traffic_ctrl_event *ev);
1670
Sathish Kumar7e2eaed2016-11-14 17:44:29 +05301671QDF_STATUS wmi_extract_atf_peer_stats_ev(void *wmi_hdl, void *evt_buf,
1672 wmi_host_atf_peer_stats_event *ev);
1673
1674QDF_STATUS wmi_extract_atf_token_info_ev(void *wmi_hdl, void *evt_buf,
1675 uint8_t idx, wmi_host_atf_peer_stats_info *atf_token_info);
1676
Govind Singh89727882016-04-15 13:58:27 +05301677QDF_STATUS wmi_extract_vdev_stats(void *wmi_hdl, void *evt_buf,
1678 uint32_t index, wmi_host_vdev_stats *vdev_stats);
1679
1680QDF_STATUS wmi_extract_vdev_extd_stats(void *wmi_hdl, void *evt_buf,
1681 uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats);
Govind Singhc10bde82016-05-02 17:59:24 +05301682
Gurumoorthi Gnanasambandhan18977552017-11-06 22:04:17 +05301683QDF_STATUS wmi_extract_bcn_stats(void *wmi_hdl, void *evt_buf,
1684 uint32_t index, wmi_host_bcn_stats *vdev_bcn_stats);
1685
Chaithanya Garrepalli140a0532018-01-18 14:19:41 +05301686/**
1687 * wmi_extract_vdev_nac_rssi_stats() - extract NAC_RSSI stats from event
1688 * @wmi_handle: wmi handle
1689 * @param evt_buf: pointer to event buffer
1690 * @param vdev_extd_stats: Pointer to hold nac rssi stats
1691 *
1692 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
1693 */
1694QDF_STATUS wmi_extract_vdev_nac_rssi_stats(void *wmi_hdl, void *evt_buf,
1695 struct wmi_host_vdev_nac_rssi_event *vdev_nac_rssi_stats);
1696
Govind Singhc10bde82016-05-02 17:59:24 +05301697QDF_STATUS wmi_unified_send_power_dbg_cmd(void *wmi_hdl,
1698 struct wmi_power_dbg_params *param);
Sathish Kumar907a7462017-02-27 10:35:40 +05301699
1700QDF_STATUS wmi_unified_send_multiple_vdev_restart_req_cmd(void *wmi_hdl,
1701 struct multiple_vdev_restart_params *param);
1702
Jeff Johnsonefb43392017-12-14 15:50:16 -08001703/**
1704 * wmi_unified_send_sar_limit_cmd() - send sar limit cmd to fw
1705 * @wmi_hdl: wmi handle
1706 * @params: sar limit command params
1707 *
1708 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
1709 */
Manikandan Mohan7e5ad482016-12-13 13:14:06 -08001710QDF_STATUS wmi_unified_send_sar_limit_cmd(void *wmi_hdl,
Jeff Johnsonefb43392017-12-14 15:50:16 -08001711 struct sar_limit_cmd_params *params);
1712
1713/**
1714 * wmi_unified_get_sar_limit_cmd() - request current SAR limits from FW
1715 * @wmi_hdl: wmi handle
1716 *
1717 * Return: QDF_STATUS_SUCCESS for success or error code
1718 */
1719QDF_STATUS wmi_unified_get_sar_limit_cmd(void *wmi_hdl);
1720
1721/**
1722 * wmi_unified_extract_sar_limit_event() - extract SAR limits from FW event
1723 * @wmi_hdl: wmi handle
1724 * @evt_buf: event buffer received from firmware
1725 * @event: SAR limit event which is to be populated by data extracted from
1726 * the @evt_buf buffer
1727 *
1728 * Return: QDF_STATUS_SUCCESS for success or error code
1729 */
1730QDF_STATUS wmi_unified_extract_sar_limit_event(void *wmi_hdl,
1731 uint8_t *evt_buf,
1732 struct sar_limit_event *event);
1733
Gupta, Kapil7b768002016-04-25 19:14:19 +05301734QDF_STATUS wmi_unified_send_adapt_dwelltime_params_cmd(void *wmi_hdl,
1735 struct wmi_adaptive_dwelltime_params *
1736 wmi_param);
Anurag Chouhan4d41be72016-07-22 20:19:54 +05301737QDF_STATUS wmi_unified_fw_test_cmd(void *wmi_hdl,
1738 struct set_fwtest_params *wmi_fwtest);
1739
Leo Chang8184e9c2016-09-28 13:43:36 -07001740QDF_STATUS wmi_unified_peer_rx_reorder_queue_setup_send(void *wmi_hdl,
1741 struct rx_reorder_queue_setup_params *param);
1742QDF_STATUS wmi_unified_peer_rx_reorder_queue_remove_send(void *wmi_hdl,
1743 struct rx_reorder_queue_remove_params *param);
Kiran Venkatappa9c71b362016-08-10 23:55:40 +05301744
1745QDF_STATUS wmi_extract_service_ready_ext(void *wmi_hdl, uint8_t *evt_buf,
Rajeev Kumar0b6b2852017-02-03 00:39:49 -08001746 struct wlan_psoc_host_service_ext_param *param);
Kiran Venkatappa9c71b362016-08-10 23:55:40 +05301747QDF_STATUS wmi_extract_hw_mode_cap_service_ready_ext(
1748 void *wmi_hdl,
1749 uint8_t *evt_buf, uint8_t hw_mode_idx,
Rajeev Kumar0b6b2852017-02-03 00:39:49 -08001750 struct wlan_psoc_host_hw_mode_caps *param);
Kiran Venkatappa9c71b362016-08-10 23:55:40 +05301751QDF_STATUS wmi_extract_mac_phy_cap_service_ready_ext(
1752 void *wmi_hdl,
Kiran Venkatappa176fe6c2016-12-26 15:38:06 +05301753 uint8_t *evt_buf,
1754 uint8_t hw_mode_id,
1755 uint8_t phy_id,
Rajeev Kumar0b6b2852017-02-03 00:39:49 -08001756 struct wlan_psoc_host_mac_phy_caps *param);
Kiran Venkatappa9c71b362016-08-10 23:55:40 +05301757QDF_STATUS wmi_extract_reg_cap_service_ready_ext(
1758 void *wmi_hdl,
1759 uint8_t *evt_buf, uint8_t phy_idx,
Rajeev Kumar0b6b2852017-02-03 00:39:49 -08001760 struct wlan_psoc_host_hal_reg_capabilities_ext *param);
Sathish Kumar3d3cf4f2017-11-17 17:30:41 +05301761
1762/**
1763 * wmi_extract_dbr_ring_cap_service_ready_ext: Extract direct buffer rx
1764 * capability received through
1765 * extended service ready event
1766 * @wmi_hdl: WMI handle
1767 * @evt_buf: Event buffer
1768 * @idx: Index of the module for which capability is received
1769 * @param: Pointer to direct buffer rx ring cap struct
1770 *
1771 * Return: QDF status of operation
1772 */
1773QDF_STATUS wmi_extract_dbr_ring_cap_service_ready_ext(
1774 void *wmi_hdl,
1775 uint8_t *evt_buf, uint8_t idx,
1776 struct wlan_psoc_host_dbr_ring_caps *param);
1777
1778/**
1779 * wmi_extract_dbr_buf_release_fixed : Extract direct buffer rx fixed param
1780 * from buffer release event
1781 * @wmi_hdl: WMI handle
1782 * @evt_buf: Event buffer
1783 * @param: Pointer to direct buffer rx response struct
1784 *
1785 * Return: QDF status of operation
1786 */
1787QDF_STATUS wmi_extract_dbr_buf_release_fixed(
1788 void *wmi_hdl,
1789 uint8_t *evt_buf,
1790 struct direct_buf_rx_rsp *param);
1791
1792/**
1793 * wmi_extract_dbr_buf_release_entry: Extract direct buffer rx buffer tlv
1794 *
1795 * @wmi_hdl: WMI handle
1796 * @evt_buf: Event buffer
1797 * @idx: Index of the module for which capability is received
1798 * @param: Pointer to direct buffer rx entry
1799 *
1800 * Return: QDF status of operation
1801 */
1802QDF_STATUS wmi_extract_dbr_buf_release_entry(
1803 void *wmi_hdl,
1804 uint8_t *evt_buf, uint8_t idx,
1805 struct direct_buf_rx_entry *param);
Sathish Kumar617535c2017-01-24 17:51:26 +05301806QDF_STATUS wmi_extract_pdev_utf_event(void *wmi_hdl,
1807 uint8_t *evt_buf,
1808 struct wmi_host_pdev_utf_event *param);
Vijay Pamidipatiadd0ba72017-01-17 12:53:05 +05301809
Kiran Venkatappa3d514982017-02-28 14:19:17 +05301810QDF_STATUS wmi_extract_pdev_qvit_event(void *wmi_hdl,
1811 uint8_t *evt_buf,
1812 struct wmi_host_pdev_qvit_event *param);
1813
Vijay Pamidipatiadd0ba72017-01-17 12:53:05 +05301814QDF_STATUS wmi_extract_peer_delete_response_event(void *wmi_hdl,
1815 uint8_t *evt_buf,
1816 struct wmi_host_peer_delete_response_event *param);
Arif Hussain85604fb2017-01-07 18:21:55 -08001817
Vikram Kandukuric83feb62017-03-07 18:40:13 +05301818QDF_STATUS wmi_extract_chainmask_tables(void *wmi_hdl, uint8_t *evt_buf,
1819 struct wlan_psoc_host_chainmask_table *chainmask_table);
Arif Hussain85604fb2017-01-07 18:21:55 -08001820/**
1821 * wmi_unified_dfs_phyerr_offload_en_cmd() - enable dfs phyerr offload
1822 * @wmi_handle: wmi handle
1823 * @pdev_id: pdev id
1824 *
1825 * Return: QDF_STATUS
1826 */
1827QDF_STATUS wmi_unified_dfs_phyerr_offload_en_cmd(void *wmi_hdl,
1828 uint32_t pdev_id);
1829
1830/**
1831 * wmi_unified_dfs_phyerr_offload_dis_cmd() - disable dfs phyerr offload
1832 * @wmi_handle: wmi handle
1833 * @pdev_id: pdev id
1834 *
1835 * Return: QDF_STATUS
1836 */
1837QDF_STATUS wmi_unified_dfs_phyerr_offload_dis_cmd(void *wmi_hdl,
1838 uint32_t pdev_id);
Dustin Browne58fbc72017-04-03 17:00:07 -07001839
Kiran Kumar Lokeree70e6052017-04-24 00:56:03 -07001840QDF_STATUS wmi_unified_set_country_cmd_send(void *wmi_hdl,
1841 struct set_country *param);
Vignesh Viswanathan90cd7742017-09-25 14:36:38 +05301842/*
1843 * wmi_unified_set_del_pmkid_cache() - set delete PMKID
1844 * @wmi_hdl: wma handle
1845 * @pmksa: pointer to pmk cache entry
1846 *
1847 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
1848 */
1849QDF_STATUS wmi_unified_set_del_pmkid_cache(void *wmi_hdl,
1850 struct wmi_unified_pmk_cache *pmksa);
1851
1852#if defined(WLAN_FEATURE_FILS_SK)
1853/*
1854 * wmi_unified_roam_send_hlp_cmd() -send HLP command info
1855 * @wmi_hdl: wma handle
1856 * @req_buf: Pointer to HLP params
1857 *
1858 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
1859 */
1860QDF_STATUS wmi_unified_roam_send_hlp_cmd(void *wmi_hdl,
1861 struct hlp_params *req_buf);
1862#endif
Kiran Kumar Lokeree70e6052017-04-24 00:56:03 -07001863
Rajeev Kumar Sirasanagandlacddf6fe2016-11-22 21:28:54 +05301864/**
1865 * wmi_unified_send_request_get_rcpi_cmd() - command to request rcpi value
1866 * @wmi_hdl: wma handle
1867 * @get_rcpi_param: rcpi params
1868 *
1869 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
1870 */
1871QDF_STATUS wmi_unified_send_request_get_rcpi_cmd(void *wmi_hdl,
1872 struct rcpi_req *get_rcpi_param);
1873
1874/**
1875 * wmi_extract_rcpi_response_event - api to extract RCPI event params
1876 * @wmi_handle: wma handle
1877 * @evt_buf: pointer to event buffer
1878 * @res: pointer to hold rcpi response from firmware
1879 *
1880 * Return: QDF_STATUS_SUCCESS for successful event parse
1881 * else QDF_STATUS_E_INVAL or QDF_STATUS_E_FAILURE
1882 */
1883QDF_STATUS wmi_extract_rcpi_response_event(void *wmi_hdl, void *evt_buf,
1884 struct rcpi_res *res);
1885
Dustin Browne58fbc72017-04-03 17:00:07 -07001886#ifdef WMI_INTERFACE_EVENT_LOGGING
1887void wmi_print_cmd_log(wmi_unified_t wmi, uint32_t count,
1888 qdf_abstract_print *print, void *print_priv);
1889
1890void wmi_print_cmd_tx_cmp_log(wmi_unified_t wmi, uint32_t count,
1891 qdf_abstract_print *print, void *print_priv);
1892
1893void wmi_print_mgmt_cmd_log(wmi_unified_t wmi, uint32_t count,
1894 qdf_abstract_print *print, void *print_priv);
1895
1896void wmi_print_mgmt_cmd_tx_cmp_log(wmi_unified_t wmi, uint32_t count,
1897 qdf_abstract_print *print, void *print_priv);
1898
1899void wmi_print_event_log(wmi_unified_t wmi, uint32_t count,
1900 qdf_abstract_print *print, void *print_priv);
1901
1902void wmi_print_rx_event_log(wmi_unified_t wmi, uint32_t count,
1903 qdf_abstract_print *print, void *print_priv);
1904
1905void wmi_print_mgmt_event_log(wmi_unified_t wmi, uint32_t count,
1906 qdf_abstract_print *print, void *print_priv);
Kiran Kumar Lokeree70e6052017-04-24 00:56:03 -07001907
Dustin Browne58fbc72017-04-03 17:00:07 -07001908#endif /* WMI_INTERFACE_EVENT_LOGGING */
1909
Nitesh Shahfb9e88b2017-05-22 15:49:00 +05301910QDF_STATUS wmi_unified_send_dbs_scan_sel_params_cmd(void *wmi_hdl,
1911 struct wmi_dbs_scan_sel_params *wmi_param);
Ganesh Kondabattini20b086b2017-07-10 11:54:11 +05301912
1913QDF_STATUS wmi_unified_send_limit_off_chan_cmd(void *wmi_hdl,
1914 struct wmi_limit_off_chan_param *wmi_param);
Anurag Chouhanc1705422017-09-11 14:56:30 +05301915QDF_STATUS wmi_unified_set_arp_stats_req(void *wmi_hdl,
1916 struct set_arp_stats *req_buf);
1917QDF_STATUS wmi_unified_get_arp_stats_req(void *wmi_hdl,
1918 struct get_arp_stats *req_buf);
Kiran Venkatappaf9b1de32017-11-08 19:32:23 +05301919
1920/**
1921 * wmi_send_bcn_offload_control_cmd - send beacon ofload control cmd to fw
1922 * @wmi_hdl: wmi handle
1923 * @bcn_ctrl_param: pointer to bcn_offload_control param
1924 *
1925 * Return: QDF_STATUS_SUCCESS for success or error code
1926 */
1927QDF_STATUS wmi_send_bcn_offload_control_cmd(void *wmi_hdl,
1928 struct bcn_offload_control *bcn_ctrl_param);
Rathees kumar Chinannanaff64b02017-11-22 17:03:57 +05301929/**
1930 * wmi_unified_send_wds_entry_list_cmd() - WMI function to get list of
1931 * wds entries from FW
Arif Hussain2cfde1d2017-12-27 16:23:45 -08001932 * @wmi_hdl: wmi handle
Rathees kumar Chinannanaff64b02017-11-22 17:03:57 +05301933 *
1934 * Send WMI_PDEV_WDS_ENTRY_LIST_CMDID parameters to fw.
1935 *
1936 * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
1937 */
1938
1939QDF_STATUS wmi_unified_send_dump_wds_table_cmd(void *wmi_hdl);
1940
1941/**
1942 * wmi_extract_wds_entry - api to extract wds entry
Arif Hussain2cfde1d2017-12-27 16:23:45 -08001943 * @wmi_hdl: wmi handle
Rathees kumar Chinannanaff64b02017-11-22 17:03:57 +05301944 * @evt_buf: pointer to event buffer
1945 * @wds_entry: wds entry
1946 * @idx: index to point wds entry in event buffer
1947 *
1948 * Return: QDF_STATUS_SUCCESS for successful event parse
1949 * else QDF_STATUS_E_INVAL or QDF_STATUS_E_FAILURE
1950 */
1951
1952QDF_STATUS wmi_extract_wds_entry(void *wmi_hdl, uint8_t *evt_buf,
1953 struct wdsentry *wds_entry, u_int32_t idx);
Naveen Rawat79a787c2017-12-14 13:24:31 -08001954
1955#ifdef WLAN_FEATURE_NAN_CONVERGENCE
1956/**
1957 * wmi_unified_ndp_initiator_req_cmd_send - api to send initiator request to FW
1958 * @wmi_hdl: wma handle
1959 * @req: pointer to request buffer
1960 *
1961 * Return: status of operation
1962 */
1963QDF_STATUS wmi_unified_ndp_initiator_req_cmd_send(void *wmi_hdl,
1964 struct nan_datapath_initiator_req *req);
1965
1966/**
1967 * wmi_unified_ndp_responder_req_cmd_send - api to send responder request to FW
1968 * @wmi_hdl: wma handle
1969 * @req: pointer to request buffer
1970 *
1971 * Return: status of operation
1972 */
1973QDF_STATUS wmi_unified_ndp_responder_req_cmd_send(void *wmi_hdl,
1974 struct nan_datapath_responder_req *req);
1975
1976/**
1977 * wmi_unified_ndp_end_req_cmd_send - api to send end request to FW
1978 * @wmi_hdl: wma handle
1979 * @req: pointer to request buffer
1980 *
1981 * Return: status of operation
1982 */
1983QDF_STATUS wmi_unified_ndp_end_req_cmd_send(void *wmi_hdl,
1984 struct nan_datapath_end_req *req);
1985
1986/**
1987 * wmi_extract_ndp_initiator_rsp - api to extract initiator rsp from even buffer
1988 * @wmi_hdl: wma handle
1989 * @data: event buffer
1990 * @rsp: buffer to populate
1991 *
1992 * Return: status of operation
1993 */
1994QDF_STATUS wmi_extract_ndp_initiator_rsp(wmi_unified_t wmi_handle,
1995 uint8_t *data, struct nan_datapath_initiator_rsp **rsp);
1996
1997/**
1998 * wmi_extract_ndp_ind - api to extract ndp indication struct from even buffer
1999 * @wmi_hdl: wma handle
2000 * @data: event buffer
2001 * @ind: buffer to populate
2002 *
2003 * Return: status of operation
2004 */
2005QDF_STATUS wmi_extract_ndp_ind(wmi_unified_t wmi_handle, uint8_t *data,
2006 struct nan_datapath_indication_event **ind);
2007
2008/**
2009 * wmi_extract_ndp_confirm - api to extract ndp confim struct from even buffer
2010 * @wmi_hdl: wma handle
2011 * @data: event buffer
2012 * @ev: buffer to populate
2013 *
2014 * Return: status of operation
2015 */
2016QDF_STATUS wmi_extract_ndp_confirm(wmi_unified_t wmi_handle, uint8_t *data,
2017 struct nan_datapath_confirm_event **ev);
2018
2019/**
2020 * wmi_extract_ndp_responder_rsp - api to extract responder rsp from even buffer
2021 * @wmi_hdl: wma handle
2022 * @data: event buffer
2023 * @rsp: buffer to populate
2024 *
2025 * Return: status of operation
2026 */
2027QDF_STATUS wmi_extract_ndp_responder_rsp(wmi_unified_t wmi_handle,
2028 uint8_t *data, struct nan_datapath_responder_rsp **rsp);
2029
2030/**
2031 * wmi_extract_ndp_end_rsp - api to extract ndp end rsp from even buffer
2032 * @wmi_hdl: wma handle
2033 * @data: event buffer
2034 * @rsp: buffer to populate
2035 *
2036 * Return: status of operation
2037 */
2038QDF_STATUS wmi_extract_ndp_end_rsp(wmi_unified_t wmi_handle, uint8_t *data,
2039 struct nan_datapath_end_rsp_event **rsp);
2040
2041/**
2042 * wmi_extract_ndp_end_ind - api to extract ndp end indication from even buffer
2043 * @wmi_hdl: wma handle
2044 * @data: event buffer
2045 * @ind: buffer to populate
2046 *
2047 * Return: status of operation
2048 */
2049QDF_STATUS wmi_extract_ndp_end_ind(wmi_unified_t wmi_handle, uint8_t *data,
2050 struct nan_datapath_end_indication_event **ind);
2051
2052#endif
Subrat Mishra7c9427e2017-09-27 14:41:20 +05302053
yeshwanth sriram guntuka230af892017-09-01 17:56:07 +05302054/**
2055 * wmi_unified_send_btm_config() - Send BTM config to fw
2056 * @wmi_hdl: wmi handle
2057 * @params: pointer to wmi_btm_config
2058 *
2059 * Return: QDF_STATUS
2060 */
2061QDF_STATUS wmi_unified_send_btm_config(void *wmi_hdl,
2062 struct wmi_btm_config *params);
Arif Hussain2cfde1d2017-12-27 16:23:45 -08002063
2064/**
2065 * wmi_unified_send_obss_detection_cfg_cmd() - WMI function to send obss
2066 * detection configuration to FW.
2067 * @wmi_hdl: wmi handle
2068 * @cfg: obss detection configuration
2069 *
2070 * Send WMI_SAP_OBSS_DETECTION_CFG_CMDID parameters to fw.
2071 *
2072 * Return: QDF_STATUS
2073 */
2074
2075QDF_STATUS wmi_unified_send_obss_detection_cfg_cmd(void *wmi_hdl,
2076 struct wmi_obss_detection_cfg_param *cfg);
Arif Hussainf9f26b52018-01-12 13:15:04 -08002077
2078/**
2079 * wmi_unified_extract_obss_detection_info() - WMI function to extract obss
2080 * detection info from FW.
2081 * @wmi_hdl: wmi handle
2082 * @data: event data from firmware
2083 * @info: Pointer to hold obss detection info
2084 *
2085 * This function is used to extract obss info from firmware.
2086 *
2087 * Return: QDF_STATUS
2088 */
2089
2090QDF_STATUS wmi_unified_extract_obss_detection_info(void *wmi_hdl,
2091 uint8_t *data,
2092 struct wmi_obss_detect_info
2093 *info);
2094
Himanshu Agarwal3f5d65a2018-01-24 22:24:17 +05302095#ifdef WLAN_SUPPORT_GREEN_AP
2096QDF_STATUS wmi_extract_green_ap_egap_status_info(
2097 void *wmi_hdl, uint8_t *evt_buf,
2098 struct wlan_green_ap_egap_status_info *egap_status_info_params);
2099#endif
2100
Subrat Mishra7c9427e2017-09-27 14:41:20 +05302101#ifdef WLAN_SUPPORT_FILS
2102/**
2103 * wmi_unified_fils_vdev_config_send_cmd() - send FILS config cmd to fw
2104 * @wmi_hdl: wmi handle
2105 * @param: fils config params
2106 *
2107 * Return: QDF_STATUS_SUCCESS for success or error code
2108 */
2109QDF_STATUS
2110wmi_unified_fils_vdev_config_send_cmd(void *wmi_hdl,
2111 struct config_fils_params *param);
2112
2113/**
2114 * wmi_extract_swfda_vdev_id() - api to extract vdev id
2115 * @wmi_hdl: wmi handle
2116 * @evt_buf: pointer to event buffer
2117 * @vdev_id: pointer to vdev id
2118 *
2119 * Return: QDF_STATUS_SUCCESS for success or error code
2120 */
2121QDF_STATUS wmi_extract_swfda_vdev_id(void *wmi_hdl, void *evt_buf,
2122 uint32_t *vdev_id);
2123
2124/**
2125 * wmi_unified_fils_discovery_send_cmd() - send FILS discovery cmd to fw
2126 * @wmi_hdl: wmi handle
2127 * @param: fils discovery params
2128 *
2129 * Return: QDF_STATUS_SUCCESS for success or error code
2130 */
2131QDF_STATUS wmi_unified_fils_discovery_send_cmd(void *wmi_hdl,
2132 struct fd_params *param);
2133#endif /* WLAN_SUPPORT_FILS */
Vignesh Viswanathan51994e32018-01-18 19:06:40 +05302134
2135/**
2136 * wmi_unified_offload_11k_cmd() - send 11k offload command
2137 * @wmi_hdl: wmi handle
2138 * @params: 11k offload params
2139 *
2140 * This function passes the 11k offload command params to FW
2141 *
2142 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
2143 */
2144QDF_STATUS wmi_unified_offload_11k_cmd(void *wmi_hdl,
2145 struct wmi_11k_offload_params *params);
2146/**
2147 * wmi_unified_invoke_neighbor_report_cmd() - send invoke neighbor report cmd
2148 * @wmi_hdl: wmi handle
2149 * @params: invoke neighbor report params
2150 *
2151 * This function passes the invoke neighbor report command to fw
2152 *
2153 * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
2154 */
2155QDF_STATUS wmi_unified_invoke_neighbor_report_cmd(void *wmi_hdl,
2156 struct wmi_invoke_neighbor_report_params *params);
Govind Singhd475ea92016-03-06 19:55:02 +05302157#endif /* _WMI_UNIFIED_API_H_ */