xref: /wlan-driver/qca-wifi-host-cmn/wmi/inc/wmi_unified_wds_api.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2021 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /*
21  * This file contains the API declaration for the WDS WMI APIs.
22  */
23 
24 #ifndef _WMI_UNIFIED_WDS_API_H_
25 #define _WMI_UNIFIED_WDS_API_H_
26 
27 #ifdef WDS_CONV_TARGET_IF_OPS_ENABLE
28 #include <wmi_unified_api.h>
29 #include <wmi_unified_wds_param.h>
30 
31 /**
32  *  wmi_unified_peer_add_wds_entry_cmd() - WMI add wds entry cmd function
33  *  @wmi_handle: handle to WMI
34  *  @param: pointer to hold wds entry param
35  *
36  *  Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
37  */
38 QDF_STATUS
39 wmi_unified_peer_add_wds_entry_cmd(wmi_unified_t wmi_handle,
40 				   struct peer_add_wds_entry_params *param);
41 
42 /**
43  *  wmi_unified_peer_del_wds_entry_cmd() - WMI del wds entry cmd function
44  *  @wmi_handle: handle to WMI
45  *  @param: pointer to hold wds entry param
46  *
47  *  Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
48  */
49 QDF_STATUS
50 wmi_unified_peer_del_wds_entry_cmd(wmi_unified_t wmi_handle,
51 				   struct peer_del_wds_entry_params *param);
52 
53 /**
54  *  wmi_unified_update_wds_entry_cmd() - WMI update wds entry
55  *  cmd function
56  *  @wmi_handle: handle to WMI
57  *  @param: pointer to hold wds entry param
58  *
59  *  Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
60  */
61 QDF_STATUS
62 wmi_unified_update_wds_entry_cmd(wmi_unified_t wmi_handle,
63 				 struct peer_update_wds_entry_params *param);
64 
65 /**
66  * wmi_wds_attach_tlv() - attach wds tlv handlers
67  * @wmi_handle: wmi handle
68  *
69  * Return: void
70  */
71 void wmi_wds_attach_tlv(wmi_unified_t wmi_handle);
72 #else
73 /**
74  * wmi_wds_attach_tlv() - attach wds tlv handlers
75  * @wmi_handle: wmi handle
76  *
77  * Return: void
78  */
79 static inline void
wmi_wds_attach_tlv(struct wmi_unified * wmi_handle)80 wmi_wds_attach_tlv(struct wmi_unified *wmi_handle)
81 {
82 }
83 #endif /*WDS_CONV_TARGET_IF_OPS*/
84 #endif /*_WMI_UNIFIED_WDS_API_H_*/
85