From 1178ae7db8186e5546c6c291330eb49d643f30eb Mon Sep 17 00:00:00 2001 From: Chaoli Zhou Date: Mon, 18 May 2020 19:15:43 +0800 Subject: [PATCH] qcacld-3.0: Fix htt_status & A_STATUS map dp status wrong issue Convert the tx complete status or A_STATUS to the correct dp status before pass to qdf_dp_trace_ptr Change-Id: I1ad94c8c293c29c9789e6dc761244911a7520707 --- core/dp/txrx/ol_tx_send.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/dp/txrx/ol_tx_send.c b/core/dp/txrx/ol_tx_send.c index bd48b0480883..ac9a7ad5cc0a 100644 --- a/core/dp/txrx/ol_tx_send.c +++ b/core/dp/txrx/ol_tx_send.c @@ -333,16 +333,17 @@ ol_tx_download_done_hl_free(void *txrx_pdev, struct ol_txrx_pdev_t *pdev = txrx_pdev; struct ol_tx_desc_t *tx_desc; bool is_frame_freed; + uint8_t dp_status; tx_desc = ol_tx_desc_find(pdev, msdu_id); qdf_assert(tx_desc); - + dp_status = qdf_dp_get_status_from_a_status(status); DPTRACE(qdf_dp_trace_ptr(msdu, QDF_DP_TRACE_FREE_PACKET_PTR_RECORD, QDF_TRACE_DEFAULT_PDEV_ID, qdf_nbuf_data_addr(msdu), sizeof(qdf_nbuf_data(msdu)), tx_desc->id, - status)); + dp_status)); is_frame_freed = ol_tx_download_done_base(pdev, status, msdu, msdu_id); @@ -1015,6 +1016,7 @@ ol_tx_completion_handler(ol_txrx_pdev_handle pdev, ol_tx_desc_list tx_descs; uint64_t tx_tsf64; uint8_t tid; + uint8_t dp_status; TAILQ_INIT(&tx_descs); @@ -1096,12 +1098,13 @@ ol_tx_completion_handler(ol_txrx_pdev_handle pdev, netbuf, status, TX_DATA_PKT); } #endif + dp_status = qdf_dp_get_status_from_htt(status); DPTRACE(qdf_dp_trace_ptr(netbuf, QDF_DP_TRACE_FREE_PACKET_PTR_RECORD, QDF_TRACE_DEFAULT_PDEV_ID, qdf_nbuf_data_addr(netbuf), - sizeof(qdf_nbuf_data(netbuf)), tx_desc->id, status)); + sizeof(qdf_nbuf_data(netbuf)), tx_desc->id, dp_status)); htc_pm_runtime_put(pdev->htt_pdev->htc_pdev); /* * If credits are reported through credit_update_ind then do not