qcacmn: Change to store peer_id locally and use

Get peer_id from peer structure to a local variable and pass to hal api
in order to avoid race condition between peer delete and peer unmap.

Change-Id: Ib6a89f1defcfc8f66c1146a330a373a760520aa7
CRs-Fixed: 3444998
Cette révision appartient à :
Hariharan Ramanathan
2023-03-28 13:06:50 +05:30
révisé par Madan Koyyalamudi
Parent 6f685b0907
révision 543c9847e4

Voir le fichier

@@ -2442,15 +2442,18 @@ void dp_peer_rx_reo_shared_qaddr_delete(struct dp_soc *soc,
struct dp_peer *peer)
{
uint8_t tid;
uint16_t peer_id;
if (peer->peer_id > soc->max_peer_id)
peer_id = peer->peer_id;
if (peer_id > soc->max_peer_id)
return;
if (IS_MLO_DP_LINK_PEER(peer))
return;
if (hal_reo_shared_qaddr_is_enable(soc->hal_soc)) {
for (tid = 0; tid < DP_MAX_TIDS; tid++)
hal_reo_shared_qaddr_write(soc->hal_soc,
peer->peer_id, tid, 0);
peer_id, tid, 0);
}
}
#endif