Browse Source

qcacmn: populate duration value for rx status structure

Duration was populated under wrong TLV header. Change
place to populate with TLV header

Change-Id: Ieac59f622d92f9377d846b035d9aed7d14685e66
Keyur Parekh 7 years ago
parent
commit
e85133ca71
1 changed files with 5 additions and 6 deletions
  1. 5 6
      hal/wifi3.0/hal_api_mon.h

+ 5 - 6
hal/wifi3.0/hal_api_mon.h

@@ -508,13 +508,9 @@ hal_rx_status_get_tlv_info(void *rx_tlv, struct hal_rx_ppdu_info *ppdu_info)
 
 	case WIFIRX_PPDU_END_E:
 		QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
-				  "[%s][%d] ppdu_end_e len=%d",
-				  __func__, __LINE__, tlv_len);
+			"[%s][%d] ppdu_end_e len=%d",
+				__func__, __LINE__, tlv_len);
 		/* This is followed by sub-TLVs of PPDU_END */
-
-		ppdu_info->rx_status.duration =
-			HAL_RX_GET(rx_tlv, RXPCU_PPDU_END_INFO_8,
-					RX_PPDU_DURATION);
 		break;
 
 	case WIFIRXPCU_PPDU_END_INFO_E:
@@ -524,6 +520,9 @@ hal_rx_status_get_tlv_info(void *rx_tlv, struct hal_rx_ppdu_info *ppdu_info)
 		ppdu_info->rx_status.tsft = (ppdu_info->rx_status.tsft << 32) |
 			HAL_RX_GET(rx_tlv, RXPCU_PPDU_END_INFO_0,
 				WB_TIMESTAMP_LOWER_32);
+		ppdu_info->rx_status.duration =
+			HAL_RX_GET(rx_tlv, RXPCU_PPDU_END_INFO_8,
+				RX_PPDU_DURATION);
 		break;
 
 	case WIFIRX_PPDU_END_USER_STATS_E: