|
@@ -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);
|