From 26d46df40a7648b1d3a65b411dfc9d1d4a92ff2c Mon Sep 17 00:00:00 2001 From: bings Date: Sun, 11 Feb 2018 16:40:08 +0800 Subject: [PATCH] qcacmn: Refine chirp check for ETSI type 4 radar Currently if the delta peak of the ETSI type 4 radar pulse is 0, it will be considered as radar false dection, which affects normal dfs ETSI type 4 certification test. More checks are added when delta peak of the ETSI type 4 radar pulse is 0. If psidx_diff, the difference in the FFT peak index between the short FFT and the first long FFT, is greater than 4 and less than 16, it is still considered as valid ETSI type 4 radar pulse. Change-Id: Iee9c22e0c208023bb9f0f70121f8269169b63d18 CRs-Fixed: 2173576 --- wmi_unified_tlv.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wmi_unified_tlv.c b/wmi_unified_tlv.c index be5ef006e1..902e93cc25 100644 --- a/wmi_unified_tlv.c +++ b/wmi_unified_tlv.c @@ -21203,6 +21203,14 @@ static QDF_STATUS extract_wlan_radar_event_info_tlv( 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; + if (radar_event->pulse_flags & + WMI_DFS_RADAR_PULSE_FLAG_MASK_PSIDX_DIFF_VALID) { + wlan_radar_event->is_psidx_diff_valid = true; + wlan_radar_event->psidx_diff = radar_event->psidx_diff; + } else { + wlan_radar_event->is_psidx_diff_valid = false; + } + wlan_radar_event->pdev_id = radar_event->pdev_id; return QDF_STATUS_SUCCESS;