From bdabc6cbdadea7952d3cbaff6c3d3e58b2e39820 Mon Sep 17 00:00:00 2001 From: Sathish Kumar Date: Wed, 12 Oct 2016 14:41:25 +0530 Subject: [PATCH] qcacmn: Populate RSSI information during single phyerr WMI event extraction Extraction API for phy error event handling does not populate single phyerr RSSI info for DFS radar event, but was populating the value in case of spectral event. Single phyerr RSSI info is required for both DFS and Spectral operations. As a result of this change, single phyerr RSSI info is updated on receiving DFS event as well. Change-Id: Idca3e4075e1869eda0d200a102e2ca2b7d33bf70 CRs-Fixed: 1076872 --- wmi/src/wmi_unified_non_tlv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wmi/src/wmi_unified_non_tlv.c b/wmi/src/wmi_unified_non_tlv.c index bb50de2b5044..8d6a1090352c 100644 --- a/wmi/src/wmi_unified_non_tlv.c +++ b/wmi/src/wmi_unified_non_tlv.c @@ -6541,6 +6541,10 @@ QDF_STATUS extract_single_phyerr_non_tlv(wmi_unified_t wmi_handle, phyerr->buf_len = ev->hdr.buf_len; #endif /* ATH_SUPPORT_DFS */ + /* populate the rf info */ + phyerr->rf_info.rssi_comb = + WMI_UNIFIED_RSSI_COMB_GET(&ev->hdr); + #if ATH_SUPPORT_SPECTRAL /* @@ -6561,10 +6565,6 @@ QDF_STATUS extract_single_phyerr_non_tlv(wmi_unified_t wmi_handle, phyerr->rf_info.noise_floor[3] = WMI_UNIFIED_NF_CHAIN_GET(&ev->hdr, 3); - /* populate the rf info */ - phyerr->rf_info.rssi_comb = - WMI_UNIFIED_RSSI_COMB_GET(&ev->hdr); - /* Need to unroll loop due to macro * constraints * chain 0 */