From 9d09a01e36c05c59a0165ce28376412bbe22f64c Mon Sep 17 00:00:00 2001 From: bings Date: Mon, 18 Dec 2017 16:56:53 +0800 Subject: [PATCH] qcacmn: Restore WMI_DFS_RADAR_EVENTID for Rome FW Currently WMI handler for WMI_PHYERR_EVENTID is used to handle DFS and spectral scan phy errors; but Rome FW still uses WMI_PHYERR_EVENTID and WMI_DFS_RADAR_EVENTID and does not have spectral scan phy errors. Restore WMI_PHYERR_EVENTID and WMI_DFS_RADAR_EVENTID as Rome FW requirement. Change-Id: I23ca4ff6c9be0ba6a0f21f0e0ef9161b1942f629 CRs-Fixed: 2160431 --- wmi_unified_dfs_api.h | 17 ++++++++++++++++- wmi_unified_priv.h | 4 ++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/wmi_unified_dfs_api.h b/wmi_unified_dfs_api.h index b0d13ebdac..5a35821b00 100644 --- a/wmi_unified_dfs_api.h +++ b/wmi_unified_dfs_api.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -54,4 +54,19 @@ QDF_STATUS wmi_extract_dfs_radar_detection_event(void *wmi_hdl, struct radar_found_info *radar_found, uint32_t len); +#ifdef QCA_MCL_DFS_SUPPORT +/** + * wmi_extract_wlan_radar_event_info() - function to handle radar pulse event. + * @wmi_hdl: wmi handle + * @evt_buf: event buffer + * @wlan_radar_event: pointer to radar event info structure + * @len: length of buffer + * + * Return: QDF_STATUS + */ +QDF_STATUS wmi_extract_wlan_radar_event_info(void *wmi_hdl, + uint8_t *evt_buf, + struct radar_event_info *wlan_radar_event, + uint32_t len); +#endif #endif /* _WMI_UNIFIED_DFS_API_H_ */ diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index ecb284463a..cb363cac91 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1462,6 +1462,10 @@ QDF_STATUS (*extract_dfs_radar_detection_event)(wmi_unified_t wmi_handle, uint8_t *evt_buf, struct radar_found_info *radar_found, uint32_t len); +QDF_STATUS (*extract_wlan_radar_event_info)(wmi_unified_t wmi_handle, + uint8_t *evt_buf, + struct radar_event_info *wlan_radar_event, + uint32_t len); #endif QDF_STATUS (*send_set_country_cmd)(wmi_unified_t wmi_handle, struct set_country *param);