xref: /wlan-driver/qcacld-3.0/components/umac/mlme/sap/ll_sap/core/src/wlan_ll_lt_sap_main.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 /**
18  * DOC: contains ll_sap_definitions specific to the ll_sap module
19  */
20 
21 #ifndef _WLAN_LL_LT_SAP_MAIN_H_
22 #define _WLAN_LL_LT_SAP_MAIN_H_
23 
24 #include "wlan_ll_sap_main.h"
25 #include "wlan_mlme_public_struct.h"
26 #include <i_qdf_types.h>
27 #include <qdf_types.h>
28 #include "wlan_ll_sap_main.h"
29 #include "wlan_ll_sap_public_structs.h"
30 
31 /**
32  * ll_lt_sap_is_supported() - Check if ll_lt_sap is supported or not
33  * @psoc: Pointer to psoc object
34  * Return: True/False
35  */
36 bool ll_lt_sap_is_supported(struct wlan_objmgr_psoc *psoc);
37 
38 /**
39  * ll_lt_sap_get_freq_list() - API to get frequency list for LL_LT_SAP
40  * @psoc: Pointer to psoc object
41  * @freq_list: Pointer to wlan_ll_lt_sap_freq_list structure
42  * @vdev_id: Vdev Id
43  *
44  * Return: QDF_STATUS
45  */
46 QDF_STATUS ll_lt_sap_get_freq_list(struct wlan_objmgr_psoc *psoc,
47 				   struct wlan_ll_lt_sap_freq_list *freq_list,
48 				   uint8_t vdev_id);
49 
50 /**
51  * ll_lt_sap_get_valid_freq() - API to get valid frequency for LL_LT_SAP
52  * @psoc: Pointer to psoc object
53  * @vdev_id: Vdev Id of ll_lt_sap
54  *
55  * Return: QDF_STATUS
56  */
57 QDF_STATUS ll_lt_sap_get_valid_freq(struct wlan_objmgr_psoc *psoc,
58 				    uint8_t vdev_id);
59 
60 /*
61  * ll_lt_sap_init() - Initialize ll_lt_sap infrastructure
62  * @vdev: Pointer to vdev
63  *
64  * Return: QDF_STATUS_SUCCESS if ll_lt_sap infra initialized successfully else
65  * error code
66  */
67 QDF_STATUS ll_lt_sap_init(struct wlan_objmgr_vdev *vdev);
68 
69 /**
70  * ll_lt_sap_deinit() - De-initialize ll_lt_sap infrastructure
71  * @vdev: Pointer to vdev
72  *
73  * Return: QDF_STATUS_SUCCESS if ll_lt_sap infra de-initialized successfully
74  * else error code
75  */
76 QDF_STATUS ll_lt_sap_deinit(struct wlan_objmgr_vdev *vdev);
77 #endif /* _WLAN_LL_SAP_MAIN_H_ */
78