1 /*
2  * Copyright (c) 2022 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: target_if_twt_cmd.h
21  */
22 
23 #ifndef _TARGET_IF_TWT_CMD_H_
24 #define _TARGET_IF_TWT_CMD_H_
25 
26 #include <wmi_unified_param.h>
27 #include <wlan_lmac_if_def.h>
28 #include <target_if.h>
29 #include <wlan_twt_public_structs.h>
30 
31 #if defined(WLAN_SUPPORT_TWT) && defined(WLAN_TWT_CONV_SUPPORTED)
32 /**
33  * target_if_twt_enable_req() - target if twt enable request
34  * @psoc: psoc handle
35  * @req: TWT enable request structure
36  *
37  * return: QDF_STATUS
38  */
39 QDF_STATUS
40 target_if_twt_enable_req(struct wlan_objmgr_psoc *psoc,
41 			 struct twt_enable_param *req);
42 
43 /**
44  * target_if_twt_disable_req() - target if twt disable request
45  * @psoc: psoc handle
46  * @req: TWT disable request structure
47  *
48  * return: QDF_STATUS
49  */
50 QDF_STATUS
51 target_if_twt_disable_req(struct wlan_objmgr_psoc *psoc,
52 			  struct twt_disable_param *req);
53 #else
54 static inline QDF_STATUS
target_if_twt_enable_req(struct wlan_objmgr_psoc * psoc,struct twt_enable_param * params)55 target_if_twt_enable_req(struct wlan_objmgr_psoc *psoc,
56 			 struct twt_enable_param *params)
57 {
58 	return QDF_STATUS_SUCCESS;
59 }
60 
61 static inline QDF_STATUS
target_if_twt_disable_req(struct wlan_objmgr_psoc * psoc,struct twt_disable_param * params)62 target_if_twt_disable_req(struct wlan_objmgr_psoc *psoc,
63 			  struct twt_disable_param *params)
64 {
65 	return QDF_STATUS_SUCCESS;
66 }
67 
68 #endif
69 
70 #endif /* _TARGET_IF_TWT_CMD_H_ */
71