|
@@ -161,7 +161,9 @@ void dp_mon_rings_deinit_1_0(struct dp_pdev *pdev)
|
|
|
|
|
|
pdev_cfg_ctx = pdev->wlan_cfg_ctx;
|
|
|
|
|
|
- for (mac_id = 0; mac_id < NUM_RXDMA_RINGS_PER_PDEV; mac_id++) {
|
|
|
+ for (mac_id = 0;
|
|
|
+ mac_id < soc->wlan_cfg_ctx->num_rxdma_status_rings_per_pdev;
|
|
|
+ mac_id++) {
|
|
|
int lmac_id = dp_get_lmac_id_for_pdev_id(soc, mac_id,
|
|
|
pdev->pdev_id);
|
|
|
|
|
@@ -181,7 +183,9 @@ void dp_mon_rings_free_1_0(struct dp_pdev *pdev)
|
|
|
|
|
|
pdev_cfg_ctx = pdev->wlan_cfg_ctx;
|
|
|
|
|
|
- for (mac_id = 0; mac_id < NUM_RXDMA_RINGS_PER_PDEV; mac_id++) {
|
|
|
+ for (mac_id = 0;
|
|
|
+ mac_id < soc->wlan_cfg_ctx->num_rxdma_status_rings_per_pdev;
|
|
|
+ mac_id++) {
|
|
|
int lmac_id = dp_get_lmac_id_for_pdev_id(soc, mac_id,
|
|
|
pdev->pdev_id);
|
|
|
|
|
@@ -200,7 +204,9 @@ QDF_STATUS dp_mon_rings_init_1_0(struct dp_pdev *pdev)
|
|
|
|
|
|
pdev_cfg_ctx = pdev->wlan_cfg_ctx;
|
|
|
|
|
|
- for (mac_id = 0; mac_id < NUM_RXDMA_RINGS_PER_PDEV; mac_id++) {
|
|
|
+ for (mac_id = 0;
|
|
|
+ mac_id < soc->wlan_cfg_ctx->num_rxdma_status_rings_per_pdev;
|
|
|
+ mac_id++) {
|
|
|
int lmac_id = dp_get_lmac_id_for_pdev_id(soc, mac_id,
|
|
|
pdev->pdev_id);
|
|
|
|
|
@@ -231,7 +237,9 @@ QDF_STATUS dp_mon_rings_alloc_1_0(struct dp_pdev *pdev)
|
|
|
|
|
|
pdev_cfg_ctx = pdev->wlan_cfg_ctx;
|
|
|
|
|
|
- for (mac_id = 0; mac_id < NUM_RXDMA_RINGS_PER_PDEV; mac_id++) {
|
|
|
+ for (mac_id = 0;
|
|
|
+ mac_id < soc->wlan_cfg_ctx->num_rxdma_status_rings_per_pdev;
|
|
|
+ mac_id++) {
|
|
|
int lmac_id =
|
|
|
dp_get_lmac_id_for_pdev_id(soc, mac_id, pdev->pdev_id);
|
|
|
entries = wlan_cfg_get_dma_mon_stat_ring_size(pdev_cfg_ctx);
|
|
@@ -636,6 +644,9 @@ QDF_STATUS dp_mon_htt_srng_setup_1_0(struct dp_soc *soc,
|
|
|
if (status != QDF_STATUS_SUCCESS)
|
|
|
return status;
|
|
|
|
|
|
+ if (!soc->rxdma_mon_status_ring[mac_id].hal_srng)
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
+
|
|
|
status = htt_srng_setup(soc->htt_handle, mac_for_pdev,
|
|
|
soc->rxdma_mon_status_ring[mac_id]
|
|
|
.hal_srng,
|