xref: /wlan-dirver/qca-wifi-host-cmn/os_if/linux/twt/inc/osif_twt_util.h (revision 901120c066e139c7f8a2c8e4820561fdd83c67ef)
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 : osif_twt_util.h
21  *
22  */
23 
24 #ifndef _OSIF_TWT_UTIL_H_
25 #define _OSIF_TWT_UTIL_H_
26 
27 #if defined(WLAN_SUPPORT_TWT) && defined(WLAN_TWT_CONV_SUPPORTED)
28 /**
29  * struct twt_en_dis_priv - twt enable/disable private context
30  * @vdev_id: vdev id
31  */
32 struct twt_en_dis_priv {
33 	uint32_t pdev_id;
34 	uint32_t status;
35 };
36 
37 /**
38  * osif_twt_register_cb() - Set TWT osif callbacks
39  *
40  * API to set twt callbacks to osif
41  *
42  * Return: QDF_STATUS
43  */
44 QDF_STATUS osif_twt_register_cb(void);
45 
46 #else
47 static inline QDF_STATUS osif_twt_register_cb(void)
48 {
49 	return QDF_STATUS_SUCCESS;
50 }
51 
52 #endif
53 #endif /* _OSIF_TWT_UTIL_H_ */
54 
55