Browse Source

qcacld-3.0: Do not unmap mgmt buffer on tx completion for HL

Do not unmap mgmt buffer on tx completion for HL.

Change-Id: Ia3a9986a891d44a8983d5f90d7b84c15368a3328
CRs-Fixed: 2353725
Nirav Shah 6 years ago
parent
commit
36332214f0
1 changed files with 11 additions and 2 deletions
  1. 11 2
      core/wma/src/wma_mgmt.c

+ 11 - 2
core/wma/src/wma_mgmt.c

@@ -3091,6 +3091,16 @@ static const char *wma_get_status_str(uint32_t status)
 	}
 }
 
+#ifdef CONFIG_HL_SUPPORT
+static inline void wma_mgmt_unmap_buf(tp_wma_handle wma_handle, qdf_nbuf_t buf)
+{
+}
+#else
+static inline void wma_mgmt_unmap_buf(tp_wma_handle wma_handle, qdf_nbuf_t buf)
+{
+	qdf_nbuf_unmap_single(wma_handle->qdf_dev, buf, QDF_DMA_TO_DEVICE);
+}
+#endif
 /**
  * wma_process_mgmt_tx_completion() - process mgmt completion
  * @wma_handle: wma handle
@@ -3126,8 +3136,7 @@ static int wma_process_mgmt_tx_completion(tp_wma_handle wma_handle,
 	vdev_id = mgmt_txrx_get_vdev_id(pdev, desc_id);
 
 	if (buf)
-		qdf_nbuf_unmap_single(wma_handle->qdf_dev, buf,
-					  QDF_DMA_TO_DEVICE);
+		wma_mgmt_unmap_buf(wma_handle, buf);
 
 	packetdump_cb = wma_handle->wma_mgmt_tx_packetdump_cb;
 	if (packetdump_cb)