Browse Source

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
phadiman 5 years ago
parent
commit
89b6d79dff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dp/wifi3.0/dp_main.c

+ 1 - 1
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);