xref: /wlan-driver/qca-wifi-host-cmn/umac/scan/dispatcher/inc/wlan_extscan_ucfg_api.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for
5*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
6*5113495bSYour Name  * above copyright notice and this permission notice appear in all
7*5113495bSYour Name  * copies.
8*5113495bSYour Name  *
9*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
17*5113495bSYour Name  */
18*5113495bSYour Name 
19*5113495bSYour Name /**
20*5113495bSYour Name  * DOC: This file contains UCFG APIs of EXTSCAN component
21*5113495bSYour Name  */
22*5113495bSYour Name 
23*5113495bSYour Name #ifndef _WLAN_EXTSCAN_UCFG_API_H_
24*5113495bSYour Name #define _WLAN_EXTSCAN_UCFG_API_H_
25*5113495bSYour Name 
26*5113495bSYour Name #include "wlan_extscan_api.h"
27*5113495bSYour Name #include <wlan_objmgr_psoc_obj.h>
28*5113495bSYour Name #include <wlan_objmgr_pdev_obj.h>
29*5113495bSYour Name #include <wlan_objmgr_vdev_obj.h>
30*5113495bSYour Name 
31*5113495bSYour Name #ifdef FEATURE_WLAN_EXTSCAN
32*5113495bSYour Name 
33*5113495bSYour Name /**
34*5113495bSYour Name  * ucfg_extscan_get_enable() - API to get extscan enable value
35*5113495bSYour Name  * @psoc: pointer to psoc object
36*5113495bSYour Name  *
37*5113495bSYour Name  * Return: true if enabled else false.
38*5113495bSYour Name  */
39*5113495bSYour Name static inline
ucfg_extscan_get_enable(struct wlan_objmgr_psoc * psoc)40*5113495bSYour Name bool ucfg_extscan_get_enable(struct wlan_objmgr_psoc *psoc)
41*5113495bSYour Name {
42*5113495bSYour Name 	return extscan_get_enable(psoc);
43*5113495bSYour Name }
44*5113495bSYour Name 
45*5113495bSYour Name /**
46*5113495bSYour Name  * ucfg_extscan_get_passive_max_time() - API to get passive
47*5113495bSYour Name  *					 max channel time
48*5113495bSYour Name  * @psoc: pointer to psoc object
49*5113495bSYour Name  * @passive_max_chn_time: extscan passive max channel time
50*5113495bSYour Name  *
51*5113495bSYour Name  * Return: none
52*5113495bSYour Name  */
53*5113495bSYour Name static inline
ucfg_extscan_get_passive_max_time(struct wlan_objmgr_psoc * psoc,uint32_t * passive_max_chn_time)54*5113495bSYour Name void ucfg_extscan_get_passive_max_time(struct wlan_objmgr_psoc *psoc,
55*5113495bSYour Name 				       uint32_t *passive_max_chn_time)
56*5113495bSYour Name {
57*5113495bSYour Name 	extscan_get_passive_max_time(psoc,
58*5113495bSYour Name 				     passive_max_chn_time);
59*5113495bSYour Name }
60*5113495bSYour Name 
61*5113495bSYour Name /**
62*5113495bSYour Name  * ucfg_extscan_get_active_max_time() - API to get active
63*5113495bSYour Name  *					max channel time
64*5113495bSYour Name  * @psoc: pointer to psoc object
65*5113495bSYour Name  * @active_max_chn_time: extscan active max channel time
66*5113495bSYour Name  *
67*5113495bSYour Name  * Return: none
68*5113495bSYour Name  */
69*5113495bSYour Name static inline
ucfg_extscan_get_active_max_time(struct wlan_objmgr_psoc * psoc,uint32_t * active_max_chn_time)70*5113495bSYour Name void ucfg_extscan_get_active_max_time(struct wlan_objmgr_psoc *psoc,
71*5113495bSYour Name 				      uint32_t *active_max_chn_time)
72*5113495bSYour Name {
73*5113495bSYour Name 	extscan_get_active_max_time(psoc,
74*5113495bSYour Name 				    active_max_chn_time);
75*5113495bSYour Name }
76*5113495bSYour Name 
77*5113495bSYour Name /**
78*5113495bSYour Name  * ucfg_extscan_get_active_min_time() - API to set active
79*5113495bSYour Name  *					min channel time
80*5113495bSYour Name  * @psoc: pointer to psoc object
81*5113495bSYour Name  * @active_min_chn_time: extscan active min channel time
82*5113495bSYour Name  *
83*5113495bSYour Name  * Return: none
84*5113495bSYour Name  */
85*5113495bSYour Name static inline
ucfg_extscan_get_active_min_time(struct wlan_objmgr_psoc * psoc,uint32_t * active_min_chn_time)86*5113495bSYour Name void ucfg_extscan_get_active_min_time(struct wlan_objmgr_psoc *psoc,
87*5113495bSYour Name 				      uint32_t *active_min_chn_time)
88*5113495bSYour Name {
89*5113495bSYour Name 	extscan_get_active_min_time(psoc,
90*5113495bSYour Name 				    active_min_chn_time);
91*5113495bSYour Name }
92*5113495bSYour Name 
93*5113495bSYour Name #else
94*5113495bSYour Name 
95*5113495bSYour Name static inline
ucfg_extscan_get_enable(struct wlan_objmgr_psoc * psoc)96*5113495bSYour Name bool ucfg_extscan_get_enable(struct wlan_objmgr_psoc *psoc)
97*5113495bSYour Name {
98*5113495bSYour Name 	return false;
99*5113495bSYour Name }
100*5113495bSYour Name 
101*5113495bSYour Name #endif
102*5113495bSYour Name #endif
103