diff --git a/core/dp/htt/htt.c b/core/dp/htt/htt.c index dbe9363ae0f8..5839ac977923 100644 --- a/core/dp/htt/htt.c +++ b/core/dp/htt/htt.c @@ -666,7 +666,6 @@ void htt_detach(htt_pdev_handle pdev) HTT_TX_MUTEX_DESTROY(&pdev->credit_mutex); HTT_TX_MUTEX_DESTROY(&pdev->htt_tx_mutex); HTT_TX_NBUF_QUEUE_MUTEX_DESTROY(pdev); - htt_rx_dbg_rxbuf_deinit(pdev); } /** diff --git a/core/dp/htt/htt_rx.c b/core/dp/htt/htt_rx.c index 715e16a20972..f717d39594ec 100644 --- a/core/dp/htt/htt_rx.c +++ b/core/dp/htt/htt_rx.c @@ -689,6 +689,7 @@ void htt_rx_detach(struct htt_pdev_t *pdev) { qdf_timer_stop(&pdev->rx_ring.refill_retry_timer); qdf_timer_free(&pdev->rx_ring.refill_retry_timer); + htt_rx_dbg_rxbuf_deinit(pdev); if (pdev->cfg.is_full_reorder_offload) { qdf_mem_free_consistent(pdev->osdev, pdev->osdev->dev,