qcacmn: Fix crash in frag path by using correct API to obtain PDEV

PDEV was being obtained using lmac_id by directly indexing the
pdev_list array. Instead, we need to use dp_get_pdev_for_lmac_id.

Change-Id: I1c4a0f3df5db59390e17666a5f712c5412e22bb1
CRs-Fixed: 2627909
Šī revīzija ir iekļauta:
Amit Shukla
2020-02-24 09:37:26 -08:00
revīziju iesūtīja nshrivas
vecāks c749787a01
revīzija 28432f1195

Parādīt failu

@@ -1719,7 +1719,7 @@ uint32_t dp_rx_frag_handle(struct dp_soc *soc, hal_ring_desc_t ring_desc,
}
/* all buffers in MSDU link belong to same pdev */
pdev = soc->pdev_list[rx_desc->pool_id];
pdev = dp_get_pdev_for_lmac_id(soc, rx_desc->pool_id);
*mac_id = rx_desc->pool_id;
msdu = rx_desc->nbuf;