1 /*
2 * Copyright (c) 2021 The Linux Foundation. All rights reserved.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for
5 * any purpose with or without fee is hereby granted, provided that the
6 * above copyright notice and this permission notice appear in all
7 * copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 * PERFORMANCE OF THIS SOFTWARE.
17 */
18 /**
19 * DOC: Implement API's specific to WDS component.
20 */
21
22 #include <wmi_unified_priv.h>
23 #include <wmi_unified_wds_api.h>
24
25 QDF_STATUS
wmi_unified_peer_add_wds_entry_cmd(wmi_unified_t wmi_hdl,struct peer_add_wds_entry_params * param)26 wmi_unified_peer_add_wds_entry_cmd(wmi_unified_t wmi_hdl,
27 struct peer_add_wds_entry_params *param)
28 {
29 if (wmi_hdl->ops->send_peer_add_wds_entry_cmd)
30 return wmi_hdl->ops->send_peer_add_wds_entry_cmd(wmi_hdl,
31 param);
32 return QDF_STATUS_E_FAILURE;
33 }
34
35 QDF_STATUS
wmi_unified_peer_del_wds_entry_cmd(wmi_unified_t wmi_hdl,struct peer_del_wds_entry_params * param)36 wmi_unified_peer_del_wds_entry_cmd(wmi_unified_t wmi_hdl,
37 struct peer_del_wds_entry_params *param)
38 {
39 if (wmi_hdl->ops->send_peer_del_wds_entry_cmd)
40 return wmi_hdl->ops->send_peer_del_wds_entry_cmd(wmi_hdl,
41 param);
42 return QDF_STATUS_E_FAILURE;
43 }
44
45 QDF_STATUS
wmi_unified_update_wds_entry_cmd(wmi_unified_t wmi_hdl,struct peer_update_wds_entry_params * param)46 wmi_unified_update_wds_entry_cmd(wmi_unified_t wmi_hdl,
47 struct peer_update_wds_entry_params *param)
48 {
49 if (wmi_hdl->ops->send_peer_update_wds_entry_cmd)
50 return wmi_hdl->ops->send_peer_update_wds_entry_cmd(wmi_hdl,
51 param);
52 return QDF_STATUS_E_FAILURE;
53 }
54