1 /*
2 * Copyright (c) 2018-2019 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(struct wlan_regulatory_psoc_priv_obj *soc_reg);
35
36 /**
37 * reg_11d_host_scan_init() - Init 11d host scan resource
38 * @psoc: soc context
39 *
40 * This function gets called during pdev create notification callback to
41 * init the 11d scan related resource.
42 *
43 * Return: QDF_STATUS_SUCCESS - in case of success
44 */
45 QDF_STATUS reg_11d_host_scan_init(struct wlan_objmgr_psoc *psoc);
46
47 /**
48 * reg_11d_host_scan_deinit() - Deinit 11d host scan resource
49 * @psoc: soc context
50 *
51 * This function gets called during pdev destroy notification callback to
52 * deinit the 11d scan related resource.
53 *
54 * Return: QDF_STATUS_SUCCESS - in case of success
55 */
56 QDF_STATUS reg_11d_host_scan_deinit(struct wlan_objmgr_psoc *psoc);
57 #else
58
reg_11d_host_scan(struct wlan_regulatory_psoc_priv_obj * soc_reg)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
reg_11d_host_scan_init(struct wlan_objmgr_psoc * psoc)65 static inline QDF_STATUS reg_11d_host_scan_init(struct wlan_objmgr_psoc *psoc)
66 {
67 return QDF_STATUS_SUCCESS;
68 }
69
reg_11d_host_scan_deinit(struct wlan_objmgr_psoc * psoc)70 static inline QDF_STATUS reg_11d_host_scan_deinit(struct wlan_objmgr_psoc *psoc)
71 {
72 return QDF_STATUS_SUCCESS;
73 }
74 #endif
75 #endif
76