qcacmn: Clean up wmi.h in target_if_scan.c

Add WMI unified APIs to extract PNO related WMI events in order to
remove wmi.h inclusion in target_if_scan.c.

Change-Id: I7fd28f175de002b48c294783f69b819ce2f3e37a
CRs-fixed: 2519032
This commit is contained in:
Yue Ma
2019-11-01 17:06:57 -07:00
committed by nshrivas
parent 28d1d127aa
commit 4b48131ce2
5 changed files with 142 additions and 19 deletions

View File

@@ -1903,6 +1903,30 @@ wmi_extract_vdev_scan_ev_param(wmi_unified_t wmi_handle, void *evt_buf,
return QDF_STATUS_E_FAILURE;
}
#ifdef FEATURE_WLAN_SCAN_PNO
QDF_STATUS
wmi_extract_nlo_match_ev_param(wmi_unified_t wmi_handle, void *evt_buf,
struct scan_event *param)
{
if (wmi_handle->ops->extract_nlo_match_ev_param)
return wmi_handle->ops->extract_nlo_match_ev_param(wmi_handle,
evt_buf, param);
return QDF_STATUS_E_FAILURE;
}
QDF_STATUS
wmi_extract_nlo_complete_ev_param(wmi_unified_t wmi_handle, void *evt_buf,
struct scan_event *param)
{
if (wmi_handle->ops->extract_nlo_complete_ev_param)
return wmi_handle->ops->extract_nlo_complete_ev_param(
wmi_handle, evt_buf, param);
return QDF_STATUS_E_FAILURE;
}
#endif
QDF_STATUS
wmi_extract_mu_ev_param(wmi_unified_t wmi_handle, void *evt_buf,
wmi_host_mu_report_event *param)