From c83573954f27aeeb10fc5ed689c7130b74568821 Mon Sep 17 00:00:00 2001 From: bings Date: Wed, 3 Jan 2018 16:38:00 +0800 Subject: [PATCH] qcacmn: Extend radar event structure for ETSI chirp radar detection The pulse_delta_peak of chirp radar is not zero, which is one more radar detection rule for ETSI chirp. Driver need delta peak related information from FW for ETSI chirp radar detection. Two more fields pulse_delta_peak and pulse_delta_diff are added in wmi_dfs_radar_event_fixed_param. Change-Id: Ief8dbea1c1336f45a24195853d5e1356bf3cad27 CRs-Fixed: 2179933 --- umac/dfs/core/src/filtering/dfs_process_phyerr.c | 4 ++-- umac/dfs/dispatcher/inc/wlan_dfs_public_struct.h | 2 ++ wmi/src/wmi_unified_tlv.c | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/umac/dfs/core/src/filtering/dfs_process_phyerr.c b/umac/dfs/core/src/filtering/dfs_process_phyerr.c index 6856014445de..bf9da70381ef 100644 --- a/umac/dfs/core/src/filtering/dfs_process_phyerr.c +++ b/umac/dfs/core/src/filtering/dfs_process_phyerr.c @@ -938,8 +938,8 @@ void dfs_process_phyerr_filter_offload(struct wlan_dfs *dfs, * Index of peak magnitude */ event->re_sidx = wlan_radar_event->peak_sidx; - event->re_delta_diff = 0; - event->re_delta_peak = 0; + event->re_delta_diff = wlan_radar_event->delta_diff; + event->re_delta_peak = wlan_radar_event->delta_peak; event->re_flags = 0; /* diff --git a/umac/dfs/dispatcher/inc/wlan_dfs_public_struct.h b/umac/dfs/dispatcher/inc/wlan_dfs_public_struct.h index bd22e6a3fdbe..b8aad06ae48e 100644 --- a/umac/dfs/dispatcher/inc/wlan_dfs_public_struct.h +++ b/umac/dfs/dispatcher/inc/wlan_dfs_public_struct.h @@ -89,6 +89,8 @@ struct radar_event_info { uint32_t upload_fullts_high; int32_t peak_sidx; uint8_t pdev_id; + uint8_t delta_diff; + int8_t delta_peak; }; /** diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index d16e77f0afd1..9e988b10784b 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -20790,6 +20790,8 @@ static QDF_STATUS extract_wlan_radar_event_info_tlv( wlan_radar_event->upload_fullts_high = radar_event->upload_fullts_high; wlan_radar_event->upload_fullts_low = radar_event->upload_fullts_low; wlan_radar_event->peak_sidx = radar_event->peak_sidx; + wlan_radar_event->delta_peak = radar_event->pulse_delta_peak; + wlan_radar_event->delta_diff = radar_event->pulse_delta_diff; wlan_radar_event->pdev_id = radar_event->pdev_id; return QDF_STATUS_SUCCESS;