Browse Source

qcacmn: Initialize variable before use in process_tx_info

Initialize type specific data in process_tx_info
while processing full tx pktlog messages.

Change-Id: Icbdd20e7e4604f117912e5a4402f7aa5048e671e
CRs-Fixed: 2468471
Venkata Sharath Chandra Manchala 5 years ago
parent
commit
a28e0144fe
1 changed files with 2 additions and 0 deletions
  1. 2 0
      utils/pktlog/pktlog_internal.c

+ 2 - 0
utils/pktlog/pktlog_internal.c

@@ -511,6 +511,8 @@ A_STATUS process_tx_info(struct cdp_pdev *txrx_pdev, void *data)
 	pl_hdr.size = (*(pl_tgt_hdr + ATH_PKTLOG_HDR_SIZE_OFFSET) &
 		       ATH_PKTLOG_HDR_SIZE_MASK) >> ATH_PKTLOG_HDR_SIZE_SHIFT;
 	pl_hdr.timestamp = *(pl_tgt_hdr + ATH_PKTLOG_HDR_TIMESTAMP_OFFSET);
+	pl_hdr.type_specific_data =
+		*(pl_tgt_hdr + ATH_PKTLOG_HDR_TYPE_SPECIFIC_DATA_OFFSET);
 
 	pl_info = pl_dev->pl_info;