xref: /wlan-dirver/qca-wifi-host-cmn/umac/regulatory/core/src/reg_host_11d.h (revision dae10a5fbc53d54c53c4ba24fa018ad8b1e7c008)
1 /*
2  * Copyright (c) 2018 The Linux Foundation. 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: Defines host 11d scan utility functions
21  */
22 #ifndef _REG_HOST_11D_H_
23 #define _REG_HOST_11D_H_
24 
25 #ifdef HOST_11D_SCAN
26 /**
27  * reg_11d_host_scan() - Start/stop 11d scan
28  * @soc_reg: soc regulatory context
29  *
30  * This function gets called upon 11d scan enable/disable changed.
31  *
32  * Return: QDF_STATUS_SUCCESS - in case of success
33  */
34 QDF_STATUS reg_11d_host_scan(
35 	struct wlan_regulatory_psoc_priv_obj *soc_reg);
36 
37 /**
38  * reg_11d_host_scan_init() - Inid 11d host scan resource
39  * @psoc: soc context
40  *
41  * This function gets called during pdev create notification callback to
42  * init the 11d scan related resouce.
43  *
44  * Return: QDF_STATUS_SUCCESS - in case of success
45  */
46 QDF_STATUS reg_11d_host_scan_init(struct wlan_objmgr_psoc *psoc);
47 
48 /**
49  * reg_11d_host_scan_deinit() - Deinit 11d host scan resource
50  * @psoc: soc context
51  *
52  * This function gets called during pdev destroy notification callback to
53  * deinit the 11d scan related resouce.
54  *
55  * Return: QDF_STATUS_SUCCESS - in case of success
56  */
57 QDF_STATUS reg_11d_host_scan_deinit(struct wlan_objmgr_psoc *psoc);
58 #else
59 static inline QDF_STATUS reg_11d_host_scan(
60 	struct wlan_regulatory_psoc_priv_obj *soc_reg)
61 {
62 	return QDF_STATUS_SUCCESS;
63 }
64 
65 static inline QDF_STATUS reg_11d_host_scan_init(struct wlan_objmgr_psoc *psoc)
66 {
67 	return QDF_STATUS_SUCCESS;
68 }
69 
70 static inline QDF_STATUS reg_11d_host_scan_deinit(
71 	struct wlan_objmgr_psoc *psoc)
72 {
73 	return QDF_STATUS_SUCCESS;
74 }
75 #endif
76 #endif
77