xref: /wlan-driver/qcacld-3.0/components/p2p/dispatcher/inc/wlan_p2p_cfg_api.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /**
21  * DOC: Contains p2p configures interface definitions
22  */
23 
24 #ifndef _WLAN_P2P_CFG_API_H_
25 #define _WLAN_P2P_CFG_API_H_
26 
27 #include <qdf_types.h>
28 
29 struct wlan_objmgr_psoc;
30 
31 /**
32  * cfg_p2p_get_go_keepalive_period() - get go keepalive period
33  * @psoc:        pointer to psoc object
34  * @period:      go keepalive period
35  *
36  * This function gets go keepalive period to p2p component
37  */
38 QDF_STATUS
39 cfg_p2p_get_go_keepalive_period(struct wlan_objmgr_psoc *psoc,
40 				uint32_t *period);
41 
42 /**
43  * cfg_p2p_get_go_link_monitor_period() - get go link monitor period
44  * @psoc:        pointer to psoc object
45  * @period:      go link monitor period
46  *
47  * This function gets go link monitor period to p2p component
48  */
49 QDF_STATUS
50 cfg_p2p_get_go_link_monitor_period(struct wlan_objmgr_psoc *psoc,
51 				   uint32_t *period);
52 
53 /**
54  * cfg_p2p_get_device_addr_admin() - get enable/disable p2p device
55  * addr administrated
56  * @psoc:        pointer to psoc object
57  * @enable:      enable/disable p2p device addr administrated
58  *
59  * This function gets enable/disable p2p device addr administrated
60  */
61 QDF_STATUS
62 cfg_p2p_get_device_addr_admin(struct wlan_objmgr_psoc *psoc,
63 			      bool *enable);
64 
65 /**
66  * cfg_p2p_is_roam_config_disabled() - get disable roam config on sta interface
67  * during p2p connection
68  * @psoc:        pointer to psoc object
69  *
70  * Get disable roam configuration during p2p connection
71  */
72 bool cfg_p2p_is_roam_config_disabled(struct wlan_objmgr_psoc *psoc);
73 
74 /**
75  * cfg_p2p_is_go_ignore_non_p2p_probe_req() - Is P2P GO ignore non-P2P probe
76  * req enabled
77  * @psoc:        pointer to psoc object
78  *
79  * If P2P GO ignore non-P2P probe req enabled, don't send probe rsp to STA
80  */
81 bool cfg_p2p_is_go_ignore_non_p2p_probe_req(struct wlan_objmgr_psoc *psoc);
82 #endif /* _WLAN_P2P_CFG_API_H_ */
83