qcacmn: Use lmac_id to get the rx_desc_pool instead of pdev_id

Use lmac_id to get the rx_desc_pool while freeing
the rx_desc_pool for rx_desc_buf.

Change-Id: I549e7f54b267d2c82dceb391a766297dfe18ceb7
CRs-Fixed: 2608209
This commit is contained in:
Pavankumar Nandeshwar
2020-01-22 15:09:20 +05:30
committed by nshrivas
parent 7f64ef005b
commit 29c280ef73

View File

@@ -4193,7 +4193,7 @@ static void dp_pdev_detach(struct cdp_pdev *txrx_pdev, int force)
}
if (dp_is_soc_reinit(soc)) {
rx_desc_pool = &soc->rx_desc_buf[pdev->pdev_id];
rx_desc_pool = &soc->rx_desc_buf[pdev->lmac_id];
dp_rx_desc_pool_free(soc, rx_desc_pool);
}