xref: /wlan-driver/qca-wifi-host-cmn/os_if/linux/twt/inc/osif_twt_rsp.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. 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 /**
20  * DOC: osif_twt_rsp.h
21  *
22  */
23 
24 #ifndef _OSIF_TWT_RSP_H_
25 #define _OSIF_TWT_RSP_H_
26 
27 #include <wlan_objmgr_psoc_obj.h>
28 #include <wlan_twt_public_structs.h>
29 
30 #if defined(WLAN_SUPPORT_TWT) && defined(WLAN_TWT_CONV_SUPPORTED)
31 /**
32  * osif_twt_enable_complete_cb() - callback for twt enable complete event
33  * @psoc: Pointer to global psoc
34  * @event: Pointer to TWT enable dialog complete event structure
35  * @context: TWT enable context set during TWT enable request
36  *
37  * Return: QDF_STATUS
38  */
39 QDF_STATUS
40 osif_twt_enable_complete_cb(struct wlan_objmgr_psoc *psoc,
41 			    struct twt_enable_complete_event_param *event,
42 			    void *context);
43 /**
44  * osif_twt_disable_complete_cb() - callback for twt disable complete event
45  * @psoc: Pointer to global psoc
46  * @event: Pointer to TWT disable dialog complete event structure
47  * @context: TWT disable context set during TWT disable request
48  *
49  * Return: QDF_STATUS
50  */
51 QDF_STATUS
52 osif_twt_disable_complete_cb(struct wlan_objmgr_psoc *psoc,
53 			     struct twt_disable_complete_event_param *event,
54 			     void *context);
55 #else
56 static inline QDF_STATUS
osif_twt_enable_complete_cb(struct wlan_objmgr_psoc * psoc,struct twt_enable_complete_event_param * event,void * context)57 osif_twt_enable_complete_cb(struct wlan_objmgr_psoc *psoc,
58 			    struct twt_enable_complete_event_param *event,
59 			    void *context)
60 {
61 	return QDF_STATUS_SUCCESS;
62 }
63 
64 static inline QDF_STATUS
osif_twt_disable_complete_cb(struct wlan_objmgr_psoc * psoc,struct twt_disable_complete_event_param * event,void * context)65 osif_twt_disable_complete_cb(struct wlan_objmgr_psoc *psoc,
66 			     struct twt_disable_complete_event_param *event,
67 			     void *context)
68 {
69 	return QDF_STATUS_SUCCESS;
70 }
71 #endif
72 #endif /* _OSIF_TWT_RSP_H_ */
73 
74