xref: /wlan-dirver/qca-wifi-host-cmn/target_if/dfs/inc/target_if_dfs_partial_offload.h (revision 6ecd284e5a94a1c96e26d571dd47419ac305990d)
1 /*
2  * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
3  *
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: target_if_dfs_partial_offload.h
22  * This file contains dfs target interface for partial offload.
23  */
24 
25 #ifndef _TARGET_IF_DFS_PARTIAL_OFFLOAD_H_
26 #define _TARGET_IF_DFS_PARTIAL_OFFLOAD_H_
27 
28 /**
29  * target_if_dfs_reg_phyerr_events() - register phyerror events.
30  * @psoc: Pointer to psoc object.
31  *
32  * Return: QDF_STATUS
33  */
34 #if defined(WLAN_DFS_PARTIAL_OFFLOAD)
35 QDF_STATUS target_if_dfs_reg_phyerr_events(struct wlan_objmgr_psoc *psoc);
36 #else
37 static QDF_STATUS
38 target_if_dfs_reg_phyerr_events(struct wlan_objmgr_psoc *psoc)
39 {
40 	return QDF_STATUS_SUCCESS;
41 }
42 #endif
43 
44 /**
45  * target_if_dfs_get_caps() - get dfs caps.
46  * @pdev: Pointer to DFS pdev object.
47  * @dfs_caps: Pointer to dfs_caps structure.
48  *
49  * Return: QDF_STATUS
50  */
51 #if defined(WLAN_DFS_PARTIAL_OFFLOAD)
52 QDF_STATUS target_if_dfs_get_caps(struct wlan_objmgr_pdev *pdev,
53 		struct wlan_dfs_caps *dfs_caps);
54 #else
55 static QDF_STATUS target_if_dfs_get_caps(struct wlan_objmgr_pdev *pdev,
56 		struct wlan_dfs_caps *dfs_caps)
57 {
58 	return QDF_STATUS_SUCCESS;
59 }
60 #endif
61 #endif /* _TARGET_IF_DFS_PARTIAL_OFFLOAD_H_ */
62