1 /*
2  * Copyright (c) 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: offload lmac interface APIs for interop issues ap
21  */
22 #ifndef __TARGET_IF_INTEROP_ISSUES_AP_H__
23 #define __TARGET_IF_INTEROP_ISSUES_AP_H__
24 
25 #ifdef WLAN_FEATURE_INTEROP_ISSUES_AP
26 #include <wlan_objmgr_cmn.h>
27 #include <wlan_objmgr_pdev_obj.h>
28 #include <qdf_status.h>
29 #include <wlan_lmac_if_def.h>
30 #include <wlan_interop_issues_ap_public_structs.h>
31 
32 /**
33  * target_if_interop_issues_ap_register_event_handler() - register callback
34  * @psoc: the pointer to psoc object
35  *
36  * Return: QDF_STATUS
37  */
38 QDF_STATUS
39 target_if_interop_issues_ap_register_event_handler(
40 						struct wlan_objmgr_psoc *psoc);
41 
42 /**
43  * target_if_interop_issues_ap_unregister_event_handler() - unregister callback
44  * @psoc: the pointer to psoc object
45  *
46  * Return: QDF_STATUS
47  */
48 QDF_STATUS
49 target_if_interop_issues_ap_unregister_event_handler(
50 						struct wlan_objmgr_psoc *psoc);
51 
52 /**
53  * target_if_interop_issues_ap_register_tx_ops() - register tx ops funcs
54  * @psoc: the pointer of psoc object
55  * @tx_ops: pointer to rap_ps tx ops
56  *
57  * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
58  */
59 QDF_STATUS
60 target_if_interop_issues_ap_register_tx_ops(struct wlan_objmgr_psoc *psoc,
61 				struct wlan_interop_issues_ap_tx_ops *tx_ops);
62 /**
63  * target_if_interop_issues_ap_unregister_tx_ops() - unregister tx ops funcs
64  * @psoc: the pointer of psoc object
65  * @tx_ops: pointer to rap_ps tx ops
66  *
67  * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
68  */
69 QDF_STATUS
70 target_if_interop_issues_ap_unregister_tx_ops(struct wlan_objmgr_psoc *psoc,
71 				 struct wlan_interop_issues_ap_tx_ops *tx_ops);
72 #endif
73 #endif /* __TARGET_IF_INTEROP_ISSUES_AP_H__ */
74