1 /*
2  * Copyright (c) 2017-2019 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_reg_lte.h
22  * This file contains regulatory target LTE interface
23  */
24 
25 #ifndef __TARGET_IF_REG_LTE_H__
26 #define __TARGET_IF_REG_LTE_H__
27 
28 #include "qdf_types.h"
29 #include "target_if.h"
30 #include <wlan_objmgr_psoc_obj.h>
31 #include "target_if_reg.h"
32 #include "wmi_unified_api.h"
33 #include "wmi_unified_reg_api.h"
34 
35 #ifdef LTE_COEX
36 /**
37  * tgt_if_regulatory_register_ch_avoid_event_handler() - Register avoid channel
38  * list event handler
39  * @psoc: Pointer to psoc
40  * @arg: Pointer to argumemt list
41  *
42  * Return: QDF_STATUS
43  */
44 QDF_STATUS tgt_if_regulatory_register_ch_avoid_event_handler(
45 		struct wlan_objmgr_psoc *psoc, void *arg);
46 
47 /**
48  * tgt_if_regulatory_unregister_ch_avoid_event_handler() - Unregister avoid
49  * channel list event handler
50  * @psoc: Pointer to psoc
51  * @arg: Pointer to argumemt list
52  *
53  * Return: QDF_STATUS
54  */
55 QDF_STATUS tgt_if_regulatory_unregister_ch_avoid_event_handler(
56 		struct wlan_objmgr_psoc *psoc, void *arg);
57 
58 #else
59 
tgt_if_regulatory_register_ch_avoid_event_handler(struct wlan_objmgr_psoc * psoc,void * arg)60 static inline QDF_STATUS tgt_if_regulatory_register_ch_avoid_event_handler(
61 		struct wlan_objmgr_psoc *psoc, void *arg)
62 {
63 	return QDF_STATUS_SUCCESS;
64 }
65 
tgt_if_regulatory_unregister_ch_avoid_event_handler(struct wlan_objmgr_psoc * psoc,void * arg)66 static inline QDF_STATUS tgt_if_regulatory_unregister_ch_avoid_event_handler(
67 		struct wlan_objmgr_psoc *psoc, void *arg)
68 {
69 	return QDF_STATUS_SUCCESS;
70 }
71 #endif
72 #endif /* __TARGET_IF_REG_H__ */
73