From 797a49bc7d5892dc71526298d68d597322baac4c Mon Sep 17 00:00:00 2001 From: phadiman Date: Mon, 5 Aug 2019 14:39:52 +0530 Subject: [PATCH] qcacmn: Fix incorrect access to mon buffer ring Map mac_for_pdev appropriately for both MCL & WIN, since MCL have multiple monitor buffer rings and WIN just has one mon buffer ring, below API helps identify accurate monitor buffer ring for both cases CRs-Fixed: 2502051 Change-Id: I3929f3f7717d795850a41f4148397d87b0415118 --- dp/wifi3.0/dp_rx_mon_dest.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dp/wifi3.0/dp_rx_mon_dest.c b/dp/wifi3.0/dp_rx_mon_dest.c index ca77f892bb..d10d934b0c 100644 --- a/dp/wifi3.0/dp_rx_mon_dest.c +++ b/dp/wifi3.0/dp_rx_mon_dest.c @@ -1522,6 +1522,15 @@ void dp_mon_buf_delayed_replenish(struct dp_pdev *pdev) mac_for_pdev = dp_get_mac_id_for_pdev(mac_id, pdev->pdev_id); + /* + * Map mac_for_pdev appropriately for both MCL & WIN, + * since MCL have multiple mon buf rings and WIN just + * has one mon buffer ring, below API helps identify + * accurate buffer_ring for both cases + * + */ + mac_for_pdev = dp_get_mac_id_for_mac(soc, mac_for_pdev); + dp_rx_buffers_replenish(soc, mac_for_pdev, dp_rxdma_get_mon_buf_ring(pdev, mac_for_pdev),