diff --git a/dp/wifi3.0/dp_stats.c b/dp/wifi3.0/dp_stats.c index e21ebb63e6..8012ad5919 100644 --- a/dp/wifi3.0/dp_stats.c +++ b/dp/wifi3.0/dp_stats.c @@ -5208,15 +5208,24 @@ dp_print_ring_stats(struct dp_pdev *pdev) dp_print_ring_stat_from_hal(pdev->soc, &pdev->soc->tcl_data_ring[i], TCL_DATA); - for (i = 0; i < MAX_TCL_DATA_RINGS; i++) + for (i = 0; i < pdev->soc->num_tcl_data_rings; i++) dp_print_ring_stat_from_hal(pdev->soc, &pdev->soc->tx_comp_ring[i], WBM2SW_RELEASE); - lmac_id = dp_get_lmac_id_for_pdev_id(pdev->soc, 0, pdev->pdev_id); - dp_print_ring_stat_from_hal(pdev->soc, - &pdev->soc->rx_refill_buf_ring[lmac_id], - RXDMA_BUF); + if (pdev->soc->features.dmac_cmn_src_rxbuf_ring_enabled) { + for (i = 0; i < pdev->soc->num_rx_refill_buf_rings; i++) { + dp_print_ring_stat_from_hal + (pdev->soc, &pdev->soc->rx_refill_buf_ring[i], + RXDMA_BUF); + } + } else { + lmac_id = dp_get_lmac_id_for_pdev_id(pdev->soc, 0, + pdev->pdev_id); + dp_print_ring_stat_from_hal + (pdev->soc, &pdev->soc->rx_refill_buf_ring[lmac_id], + RXDMA_BUF); + } dp_print_ring_stat_from_hal(pdev->soc, &pdev->rx_refill_buf_ring2, diff --git a/dp/wifi3.0/dp_types.h b/dp/wifi3.0/dp_types.h index 8b1a3440f0..db98da06f0 100644 --- a/dp/wifi3.0/dp_types.h +++ b/dp/wifi3.0/dp_types.h @@ -74,10 +74,7 @@ #define DP_VDEV_ALL 0xff #if defined(WLAN_MAX_PDEVS) && (WLAN_MAX_PDEVS == 1) -#define MAX_PDEV_CNT 1 #define WLAN_DP_RESET_MON_BUF_RING_FILTER -#else -#define MAX_PDEV_CNT 3 #endif /* Max no. of VDEV per PSOC */