qcacmn: Add mac address to peer unmap ops

On receiving the peer unmap event the ops
is called without the mac address of the
peer for which peer unmap is received.

Add mac address of the peer for which peer
unmap is received.

Change-Id: I9026433089963818d5a227a0660866ff504dea84
CRs-Fixed: 3238626
This commit is contained in:
Vivek
2022-07-18 17:01:44 +05:30
committed by Madan Koyyalamudi
szülő 3d3d3c4fdb
commit e70a7b87d0
2 fájl változott, egészen pontosan 6 új sor hozzáadva és 37 régi sor törölve

Fájl megtekintése

@@ -2997,36 +2997,6 @@ dp_rx_peer_map_handler(struct dp_soc *soc, uint16_t peer_id,
return err;
}
#ifdef IPA_OFFLOAD
/**
* dp_rx_peer_unmap_event() - Peer unmap event
* @soc_handle - genereic soc handle
* @peer_id - peer_id from firmware
* @vdev_id - vdev ID
* @mac_addr - mac address of the peer or wds entry
*
* Return: none
*/
static inline void
dp_rx_peer_unmap_event(struct dp_soc *soc, uint16_t peer_id,
uint8_t vdev_id, uint8_t *mac_addr)
{
if (soc->cdp_soc.ol_ops->peer_unmap_event) {
soc->cdp_soc.ol_ops->peer_unmap_event(soc->ctrl_psoc,
peer_id, vdev_id, mac_addr);
}
}
#else
static inline void
dp_rx_peer_unmap_event(struct dp_soc *soc, uint16_t peer_id,
uint8_t vdev_id, uint8_t *mac_addr)
{
if (soc->cdp_soc.ol_ops->peer_unmap_event) {
soc->cdp_soc.ol_ops->peer_unmap_event(soc->ctrl_psoc,
peer_id, vdev_id);
}
}
#endif
/**
* dp_rx_peer_unmap_handler() - handle peer unmap event from firmware
* @soc_handle - genereic soc handle
@@ -3105,7 +3075,10 @@ dp_rx_peer_unmap_handler(struct dp_soc *soc, uint16_t peer_id,
if (!soc->ast_offload_support)
dp_peer_reset_flowq_map(peer);
dp_rx_peer_unmap_event(soc, peer_id, vdev_id, peer->mac_addr.raw);
if (soc->cdp_soc.ol_ops->peer_unmap_event) {
soc->cdp_soc.ol_ops->peer_unmap_event(soc->ctrl_psoc,
peer_id, vdev_id, mac_addr);
}
vdev = peer->vdev;
dp_update_vdev_stats_on_peer_unmap(vdev, peer);