1*5113495bSYour Name /*
2*5113495bSYour Name * Copyright (c) 2020, The Linux Foundation. All rights reserved.
3*5113495bSYour Name *
4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for any
5*5113495bSYour Name * purpose with or without fee is hereby granted, provided that the above
6*5113495bSYour Name * copyright notice and this permission notice appear in all copies.
7*5113495bSYour Name *
8*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9*5113495bSYour Name * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10*5113495bSYour Name * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11*5113495bSYour Name * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12*5113495bSYour Name * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13*5113495bSYour Name * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14*5113495bSYour Name * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*5113495bSYour Name */
16*5113495bSYour Name
17*5113495bSYour Name #include <wmi_unified_api.h>
18*5113495bSYour Name #include <target_if_iot_sim.h>
19*5113495bSYour Name #include <init_deinit_lmac.h>
20*5113495bSYour Name #include <target_if.h>
21*5113495bSYour Name #include <qdf_module.h>
22*5113495bSYour Name
23*5113495bSYour Name QDF_STATUS
target_if_iot_sim_send_cmd(struct wlan_objmgr_pdev * pdev,struct simulation_test_params * param)24*5113495bSYour Name target_if_iot_sim_send_cmd(struct wlan_objmgr_pdev *pdev,
25*5113495bSYour Name struct simulation_test_params *param)
26*5113495bSYour Name {
27*5113495bSYour Name if (pdev && pdev->tgt_if_handle) {
28*5113495bSYour Name struct wmi_unified *wmi_hdl;
29*5113495bSYour Name
30*5113495bSYour Name wmi_hdl = pdev->tgt_if_handle->wmi_handle;
31*5113495bSYour Name return wmi_unified_simulation_test_cmd_send(wmi_hdl, param);
32*5113495bSYour Name } else
33*5113495bSYour Name return QDF_STATUS_E_FAILURE;
34*5113495bSYour Name }
35*5113495bSYour Name
target_if_iot_sim_register_tx_ops(struct wlan_lmac_if_tx_ops * tx_ops)36*5113495bSYour Name void target_if_iot_sim_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
37*5113495bSYour Name {
38*5113495bSYour Name tx_ops->iot_sim_tx_ops.iot_sim_send_cmd =
39*5113495bSYour Name target_if_iot_sim_send_cmd;
40*5113495bSYour Name }
41*5113495bSYour Name
42*5113495bSYour Name qdf_export_symbol(target_if_iot_sim_register_tx_ops);
43*5113495bSYour Name
44