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_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 * @pdev_id: pdev id
31 * @status: TWT status
32 */
33 struct twt_en_dis_priv {
34 uint32_t pdev_id;
35 uint32_t status;
36 };
37
38 /**
39 * osif_twt_register_cb() - Set TWT osif callbacks
40 *
41 * API to set twt callbacks to osif
42 *
43 * Return: QDF_STATUS
44 */
45 QDF_STATUS osif_twt_register_cb(void);
46
47 #else
osif_twt_register_cb(void)48 static inline QDF_STATUS osif_twt_register_cb(void)
49 {
50 return QDF_STATUS_SUCCESS;
51 }
52
53 #endif
54 #endif /* _OSIF_TWT_UTIL_H_ */
55
56