From 61bfe8696b9101e5ccd4dc353c7c77b8605ed1ec Mon Sep 17 00:00:00 2001 From: Sathish Kumar Date: Fri, 16 Sep 2016 17:53:55 +0530 Subject: [PATCH] qcacmn: Populate composite RSSI info received as part of phy error event Extraction API for phy error event handling does not populate composite RSSI info for DFS radar event, but was populating the value in case of spectral event. Composite RSSI info is required for both DFS and Spectral operations. As a result of this change, composite RSSI info is updated on receiving DFS event as well. Change-Id: Ia77779251ccf230f7ca4242ee0851790305d2fbc CRs-Fixed: 1066136 --- wmi_unified_non_tlv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wmi_unified_non_tlv.c b/wmi_unified_non_tlv.c index a8d9ad6c71..79a8bd41d9 100644 --- a/wmi_unified_non_tlv.c +++ b/wmi_unified_non_tlv.c @@ -6651,6 +6651,9 @@ QDF_STATUS extract_composite_phyerr_non_tlv(wmi_unified_t wmi_handle, phyerr->phy_err_mask0 = ph->phy_err_mask0; phyerr->phy_err_mask1 = ph->phy_err_mask1; + phyerr->rf_info.rssi_comb = + WMI_UNIFIED_RSSI_COMB_GET(ph); + /* Handle Spectral PHY Error */ if ((ph->phy_err_mask0 & WMI_HOST_AR900B_SPECTRAL_PHYERR_MASK)) { #if ATH_SUPPORT_SPECTRAL @@ -6667,9 +6670,6 @@ QDF_STATUS extract_composite_phyerr_non_tlv(wmi_unified_t wmi_handle, WMI_UNIFIED_NF_CHAIN_GET(ph, 3); /* populate the rf info */ - phyerr->rf_info.rssi_comb = - WMI_UNIFIED_RSSI_COMB_GET(ph); - /* Need to unroll loop due to macro constraints */ /* chain 0 */ phyerr->rf_info.pc_rssi_info[0].rssi_pri20 =