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