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  * DOC: Implement API's specific to interop issues ap component.
20  */
21 
22 #include <wmi_unified_priv.h>
23 #include <wmi_unified_interop_issues_ap_api.h>
24 
25 QDF_STATUS
wmi_extract_interop_issues_ap_ev_param(wmi_unified_t wmi_handle,void * evt_buf,struct wlan_interop_issues_ap_event * param)26 wmi_extract_interop_issues_ap_ev_param(wmi_unified_t wmi_handle, void *evt_buf,
27 				    struct wlan_interop_issues_ap_event *param)
28 {
29 	if (wmi_handle->ops->extract_interop_issues_ap_ev_param)
30 		return wmi_handle->ops->extract_interop_issues_ap_ev_param(
31 						wmi_handle, evt_buf, param);
32 	return QDF_STATUS_E_FAILURE;
33 }
34 
wmi_unified_set_rap_ps_cmd(wmi_unified_t wmi_handle,struct wlan_interop_issues_ap_info * rap)35 QDF_STATUS wmi_unified_set_rap_ps_cmd(wmi_unified_t wmi_handle,
36 				      struct wlan_interop_issues_ap_info *rap)
37 {
38 	if (wmi_handle->ops->send_set_rap_ps_cmd)
39 		return wmi_handle->ops->send_set_rap_ps_cmd(wmi_handle, rap);
40 	return QDF_STATUS_E_FAILURE;
41 }
42