qcacmn: Enable RXDMA ring configuration for monitor mode

Enable RXDMA status, desc, buffer and destination rings to
support monitor mode. The change also provides fix to properly
map pdev_id to mac_id.

CRs-Fixed: 2071602
Change-Id: Ie9caaaa0021d5842eaf28a5532b3ab5512fe507f
This commit is contained in:
Ravi Joshi
2017-06-07 21:22:08 -07:00
committed by snandini
parent 2320b6fe68
commit 8851f4eb1c
2 changed files with 28 additions and 3 deletions

View File

@@ -1616,6 +1616,23 @@ static void dp_rxdma_ring_config(struct dp_soc *soc)
RXDMA_BUF);
mac_id++;
}
/* Configure monitor mode rings */
htt_srng_setup(soc->htt_handle, i,
pdev->rxdma_mon_buf_ring.hal_srng,
RXDMA_MONITOR_BUF);
htt_srng_setup(soc->htt_handle, i,
pdev->rxdma_mon_dst_ring.hal_srng,
RXDMA_MONITOR_DST);
htt_srng_setup(soc->htt_handle, i,
pdev->rxdma_mon_status_ring.hal_srng,
RXDMA_MONITOR_STATUS);
htt_srng_setup(soc->htt_handle, i,
pdev->rxdma_mon_desc_ring.hal_srng,
RXDMA_MONITOR_DESC);
}
}
}