1 /*
2  * Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2022 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  * DOC: offload lmac interface APIs for tdls
22  *
23  */
24 
25 #ifndef __TARGET_IF_TDLS_H__
26 #define __TARGET_IF_TDLS_H__
27 
28 struct tdls_info;
29 struct wlan_objmgr_psoc;
30 struct tdls_peer_update_state;
31 struct tdls_channel_switch_params;
32 struct sta_uapsd_trig_params;
33 
34 /**
35  * target_if_tdls_update_fw_state() - lmac handler to update tdls fw state
36  * @psoc: psoc object
37  * @param: tdls state parameter
38  *
39  * Return: QDF_STATUS
40  */
41 QDF_STATUS
42 target_if_tdls_update_fw_state(struct wlan_objmgr_psoc *psoc,
43 			       struct tdls_info *param);
44 
45 /**
46  * target_if_tdls_update_peer_state() - lmac handler to update tdls peer state
47  * @psoc: psoc object
48  * @peer_params: tdls peer state params
49  *
50  * Return: QDF_STATUS
51  */
52 QDF_STATUS
53 target_if_tdls_update_peer_state(struct wlan_objmgr_psoc *psoc,
54 				 struct tdls_peer_update_state *peer_params);
55 
56 /**
57  * target_if_tdls_set_offchan_mode() - lmac handler to set tdls off channel mode
58  * @psoc: psoc object
59  * @params: tdls channel switch params
60  *
61  * Return: QDF_STATUS
62  */
63 QDF_STATUS
64 target_if_tdls_set_offchan_mode(struct wlan_objmgr_psoc *psoc,
65 				struct tdls_channel_switch_params *params);
66 
67 /**
68  * target_if_tdls_register_event_handler() - lmac handler to register tdls event
69  * handler
70  * @psoc : psoc object
71  * @arg: argument passed to lmac
72  *
73  * Return: QDF_STATUS
74  */
75 QDF_STATUS
76 target_if_tdls_register_event_handler(struct wlan_objmgr_psoc *psoc,
77 				      void *arg);
78 
79 /**
80  * target_if_tdls_unregister_event_handler() - lmac handler to unregister tdls
81  * event handler
82  * @psoc : psoc object
83  * @arg: argument passed to lmac
84  *
85  * Return: QDF_STATUS
86  */
87 QDF_STATUS
88 target_if_tdls_unregister_event_handler(struct wlan_objmgr_psoc *psoc,
89 					void *arg);
90 
91 /**
92  * target_if_tdls_register_tx_ops() - lmac handler to register tdls tx ops
93  * callback functions
94  * @tx_ops: wlan_lmac_if_tx_ops object
95  *
96  * Return: QDF_STATUS
97  */
98 QDF_STATUS
99 target_if_tdls_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops);
100 #endif
101