Browse Source

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
Sathish Kumar 8 years ago
parent
commit
bdabc6cbda
1 changed files with 4 additions and 4 deletions
  1. 4 4
      wmi/src/wmi_unified_non_tlv.c

+ 4 - 4
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 */