From 89b6d79dff0c28f6a87dded7e3c0e598a1669e32 Mon Sep 17 00:00:00 2001 From: phadiman Date: Wed, 29 Jan 2020 11:48:13 +0530 Subject: [PATCH] qcacmn: Fix incorrect access to lmac_id pdev_id and mac_id were incorrectly passed as arguments to dp_get_lmac_id_for_pdev_id Fix passing the arguments in right order to the API to access appropriate lmac_id Change-Id: I42773a6ccae2f87f128d3c462e6a332fe658f45e CRs-Fixed: 2611926 --- dp/wifi3.0/dp_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 8cb164b7696b..442857f49f56 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -4072,7 +4072,7 @@ static void dp_pdev_deinit(struct cdp_pdev *txrx_pdev, int force) for (mac_id = 0; mac_id < NUM_RXDMA_RINGS_PER_PDEV; mac_id++) { int lmac_id = - dp_get_lmac_id_for_pdev_id(soc, pdev->pdev_id, mac_id); + dp_get_lmac_id_for_pdev_id(soc, mac_id, pdev->pdev_id); dp_mon_ring_deinit(soc, pdev, lmac_id);