1*5113495bSYour Name /*
2*5113495bSYour Name * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
3*5113495bSYour Name *
4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for
5*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the
6*5113495bSYour Name * above copyright notice and this permission notice appear in all
7*5113495bSYour Name * copies.
8*5113495bSYour Name *
9*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE.
17*5113495bSYour Name */
18*5113495bSYour Name
19*5113495bSYour Name /**
20*5113495bSYour Name * DOC: osif_twt_ext_rsp.h
21*5113495bSYour Name *
22*5113495bSYour Name * WLAN Host Device Driver file for TWT (Target Wake Time) support.
23*5113495bSYour Name *
24*5113495bSYour Name */
25*5113495bSYour Name
26*5113495bSYour Name #ifndef _OSIF_TWT_EXT_RSP_H_
27*5113495bSYour Name #define _OSIF_TWT_EXT_RSP_H_
28*5113495bSYour Name
29*5113495bSYour Name #include <wlan_osif_request_manager.h>
30*5113495bSYour Name
31*5113495bSYour Name #if defined(WLAN_SUPPORT_TWT) && defined(WLAN_TWT_CONV_SUPPORTED)
32*5113495bSYour Name /**
33*5113495bSYour Name * osif_twt_setup_complete_cb() - setup complete osif callback
34*5113495bSYour Name * @psoc: psoc pointer
35*5113495bSYour Name * @event: setup complete response
36*5113495bSYour Name * @renego_fail: flag to indicate if renegotiation failure case
37*5113495bSYour Name *
38*5113495bSYour Name * Return: QDF_STATUS
39*5113495bSYour Name */
40*5113495bSYour Name QDF_STATUS
41*5113495bSYour Name osif_twt_setup_complete_cb(struct wlan_objmgr_psoc *psoc,
42*5113495bSYour Name struct twt_add_dialog_complete_event *event,
43*5113495bSYour Name bool renego_fail);
44*5113495bSYour Name
45*5113495bSYour Name /**
46*5113495bSYour Name * osif_twt_teardown_complete_cb() - teardown complete osif callback
47*5113495bSYour Name * @psoc: psoc pointer
48*5113495bSYour Name * @event: teardown complete response
49*5113495bSYour Name *
50*5113495bSYour Name * Return: QDF_STATUS
51*5113495bSYour Name */
52*5113495bSYour Name QDF_STATUS
53*5113495bSYour Name osif_twt_teardown_complete_cb(struct wlan_objmgr_psoc *psoc,
54*5113495bSYour Name struct twt_del_dialog_complete_event_param *event);
55*5113495bSYour Name
56*5113495bSYour Name /**
57*5113495bSYour Name * osif_twt_pause_complete_cb() - pause complete osif callback
58*5113495bSYour Name * @psoc: psoc pointer
59*5113495bSYour Name * @event: pause complete response
60*5113495bSYour Name *
61*5113495bSYour Name * Return: QDF_STATUS
62*5113495bSYour Name */
63*5113495bSYour Name QDF_STATUS
64*5113495bSYour Name osif_twt_pause_complete_cb(struct wlan_objmgr_psoc *psoc,
65*5113495bSYour Name struct twt_pause_dialog_complete_event_param *event);
66*5113495bSYour Name
67*5113495bSYour Name /**
68*5113495bSYour Name * osif_twt_resume_complete_cb() - resume complete osif callback
69*5113495bSYour Name * @psoc: psoc pointer
70*5113495bSYour Name * @event: resume complete response
71*5113495bSYour Name *
72*5113495bSYour Name * Return: QDF_STATUS
73*5113495bSYour Name */
74*5113495bSYour Name QDF_STATUS
75*5113495bSYour Name osif_twt_resume_complete_cb(struct wlan_objmgr_psoc *psoc,
76*5113495bSYour Name struct twt_resume_dialog_complete_event_param *event);
77*5113495bSYour Name
78*5113495bSYour Name /**
79*5113495bSYour Name * osif_twt_nudge_complete_cb() - nudge complete osif callback
80*5113495bSYour Name * @psoc: psoc pointer
81*5113495bSYour Name * @event: nudge complete response
82*5113495bSYour Name *
83*5113495bSYour Name * Return: QDF_STATUS
84*5113495bSYour Name */
85*5113495bSYour Name QDF_STATUS
86*5113495bSYour Name osif_twt_nudge_complete_cb(struct wlan_objmgr_psoc *psoc,
87*5113495bSYour Name struct twt_nudge_dialog_complete_event_param *event);
88*5113495bSYour Name
89*5113495bSYour Name /**
90*5113495bSYour Name * osif_twt_notify_complete_cb() - notify complete osif callback
91*5113495bSYour Name * @psoc: psoc pointer
92*5113495bSYour Name * @event: notify complete response
93*5113495bSYour Name *
94*5113495bSYour Name * Return: QDF_STATUS
95*5113495bSYour Name */
96*5113495bSYour Name QDF_STATUS
97*5113495bSYour Name osif_twt_notify_complete_cb(struct wlan_objmgr_psoc *psoc,
98*5113495bSYour Name struct twt_notify_event_param *event);
99*5113495bSYour Name
100*5113495bSYour Name /**
101*5113495bSYour Name * osif_twt_ack_complete_cb() - ack complete osif callback
102*5113495bSYour Name * @psoc: psoc pointer
103*5113495bSYour Name * @params: ack complete response
104*5113495bSYour Name * @context: context
105*5113495bSYour Name *
106*5113495bSYour Name * Return: QDF_STATUS
107*5113495bSYour Name */
108*5113495bSYour Name QDF_STATUS
109*5113495bSYour Name osif_twt_ack_complete_cb(struct wlan_objmgr_psoc *psoc,
110*5113495bSYour Name struct twt_ack_complete_event_param *params,
111*5113495bSYour Name void *context);
112*5113495bSYour Name
113*5113495bSYour Name #else
114*5113495bSYour Name static inline QDF_STATUS
osif_twt_setup_complete_cb(struct wlan_objmgr_psoc * psoc,struct twt_add_dialog_complete_event * event,bool renego_fail)115*5113495bSYour Name osif_twt_setup_complete_cb(struct wlan_objmgr_psoc *psoc,
116*5113495bSYour Name struct twt_add_dialog_complete_event *event,
117*5113495bSYour Name bool renego_fail)
118*5113495bSYour Name {
119*5113495bSYour Name return QDF_STATUS_SUCCESS;
120*5113495bSYour Name }
121*5113495bSYour Name
122*5113495bSYour Name static inline QDF_STATUS
osif_twt_teardown_complete_cb(struct wlan_objmgr_psoc * psoc,struct twt_del_dialog_complete_event_param * event)123*5113495bSYour Name osif_twt_teardown_complete_cb(struct wlan_objmgr_psoc *psoc,
124*5113495bSYour Name struct twt_del_dialog_complete_event_param *event)
125*5113495bSYour Name {
126*5113495bSYour Name return QDF_STATUS_SUCCESS;
127*5113495bSYour Name }
128*5113495bSYour Name
129*5113495bSYour Name static inline QDF_STATUS
osif_twt_pause_complete_cb(struct wlan_objmgr_psoc * psoc,struct twt_pause_dialog_complete_event_param * event)130*5113495bSYour Name osif_twt_pause_complete_cb(struct wlan_objmgr_psoc *psoc,
131*5113495bSYour Name struct twt_pause_dialog_complete_event_param *event)
132*5113495bSYour Name {
133*5113495bSYour Name return QDF_STATUS_SUCCESS;
134*5113495bSYour Name }
135*5113495bSYour Name
136*5113495bSYour Name static inline QDF_STATUS
osif_twt_resume_complete_cb(struct wlan_objmgr_psoc * psoc,struct twt_resume_dialog_complete_event_param * event)137*5113495bSYour Name osif_twt_resume_complete_cb(struct wlan_objmgr_psoc *psoc,
138*5113495bSYour Name struct twt_resume_dialog_complete_event_param *event)
139*5113495bSYour Name {
140*5113495bSYour Name return QDF_STATUS_SUCCESS;
141*5113495bSYour Name }
142*5113495bSYour Name
143*5113495bSYour Name static inline QDF_STATUS
osif_twt_nudge_complete_cb(struct wlan_objmgr_psoc * psoc,struct twt_nudge_dialog_complete_event_param * event)144*5113495bSYour Name osif_twt_nudge_complete_cb(struct wlan_objmgr_psoc *psoc,
145*5113495bSYour Name struct twt_nudge_dialog_complete_event_param *event)
146*5113495bSYour Name {
147*5113495bSYour Name return QDF_STATUS_SUCCESS;
148*5113495bSYour Name }
149*5113495bSYour Name
150*5113495bSYour Name static inline QDF_STATUS
osif_twt_notify_complete_cb(struct wlan_objmgr_psoc * psoc,struct twt_notify_event_param * event)151*5113495bSYour Name osif_twt_notify_complete_cb(struct wlan_objmgr_psoc *psoc,
152*5113495bSYour Name struct twt_notify_event_param *event)
153*5113495bSYour Name {
154*5113495bSYour Name return QDF_STATUS_SUCCESS;
155*5113495bSYour Name }
156*5113495bSYour Name
157*5113495bSYour Name static inline QDF_STATUS
osif_twt_ack_complete_cb(struct wlan_objmgr_psoc * psoc,struct twt_ack_complete_event_param * params,void * context)158*5113495bSYour Name osif_twt_ack_complete_cb(struct wlan_objmgr_psoc *psoc,
159*5113495bSYour Name struct twt_ack_complete_event_param *params,
160*5113495bSYour Name void *context)
161*5113495bSYour Name {
162*5113495bSYour Name return QDF_STATUS_SUCCESS;
163*5113495bSYour Name }
164*5113495bSYour Name
165*5113495bSYour Name #endif
166*5113495bSYour Name #endif /* _OSIF_TWT_RSP_H_ */
167*5113495bSYour Name
168