Эх сурвалжийг харах

qcacmn: Do not populate meta_hdr on Tx completion path for mesh mode

Do not populate the struct meta_hdr_s into for buffers received on
Tx completion path when operating in mesh mode.

Also update the fields in tx_capture_hdr as per the new definition.

Change-Id: I6150b4ce891ca73d5ed7c7620568606c377223c6
Harsh Kumar Bijlani 3 жил өмнө
parent
commit
87edde8b30

+ 0 - 12
dp/wifi3.0/dp_tx.c

@@ -3426,7 +3426,6 @@ static
 void dp_tx_comp_fill_tx_completion_stats(struct dp_tx_desc_s *tx_desc,
 		struct hal_tx_completion_status *ts)
 {
-	struct meta_hdr_s *mhdr;
 	qdf_nbuf_t netbuf = tx_desc->nbuf;
 
 	if (!tx_desc->msdu_ext_desc) {
@@ -3437,17 +3436,6 @@ void dp_tx_comp_fill_tx_completion_stats(struct dp_tx_desc_s *tx_desc,
 			return;
 		}
 	}
-	if (qdf_nbuf_push_head(netbuf, sizeof(struct meta_hdr_s)) == NULL) {
-		QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
-			"netbuf %pK offset %zu", netbuf,
-			sizeof(struct meta_hdr_s));
-		return;
-	}
-
-	mhdr = (struct meta_hdr_s *)qdf_nbuf_data(netbuf);
-	mhdr->rssi = ts->ack_frame_rssi;
-	mhdr->band = tx_desc->pdev->operating_channel.band;
-	mhdr->channel = tx_desc->pdev->operating_channel.num;
 }
 
 #else

+ 1 - 1
dp/wifi3.0/dp_txrx_wds.c

@@ -1226,7 +1226,7 @@ dp_get_completion_indication_for_stack(struct dp_soc *soc,
 	ppdu_hdr->last_msdu = last_msdu;
 	if (qdf_unlikely(pdev->latency_capture_enable)) {
 		ppdu_hdr->tsf = ts->tsf;
-		ppdu_hdr->time_latency = time_latency;
+		ppdu_hdr->time_latency = (uint32_t)time_latency;
 	}
 
 	return QDF_STATUS_SUCCESS;