Browse Source

qcacmn: remove the redundant API dp_peer_flush_ast_entry

Since the peer unmap handler removes all the associated
wds ast entries, the redundant API dp_peer_flush_ast_entry
can be removed.

Change-Id: Ib8fc19e846e07f9a60c73530cac66d357a00fd98
Pavankumar Nandeshwar 5 years ago
parent
commit
60561d5b3f
1 changed files with 0 additions and 32 deletions
  1. 0 32
      dp/wifi3.0/dp_main.c

+ 0 - 32
dp/wifi3.0/dp_main.c

@@ -5700,34 +5700,6 @@ static QDF_STATUS dp_vdev_register_wifi3(struct cdp_soc_t *soc,
 	return QDF_STATUS_SUCCESS;
 }
 
-/**
- * dp_peer_flush_ast_entry() - Forcibily flush all AST entry of peer
- * @soc: Datapath soc handle
- * @peer: Datapath peer handle
- * @peer_id: Peer ID
- * @vdev_id: Vdev ID
- *
- * Return: void
- */
-static void dp_peer_flush_ast_entry(struct dp_soc *soc,
-				    struct dp_peer *peer,
-				    uint16_t peer_id,
-				    uint8_t vdev_id)
-{
-	struct dp_ast_entry *ase, *tmp_ase;
-
-	if (soc->is_peer_map_unmap_v2) {
-		DP_PEER_ITERATE_ASE_LIST(peer, ase, tmp_ase) {
-				dp_rx_peer_unmap_handler
-						(soc, peer_id,
-						 vdev_id,
-						 ase->mac_addr.raw,
-						 1,
-						 DP_PEER_WDS_COUNT_INVALID);
-		}
-	}
-}
-
 /**
  * dp_vdev_flush_peers() - Forcibily Flush peers of vdev
  * @vdev: Datapath VDEV handle
@@ -5807,10 +5779,6 @@ static void dp_vdev_flush_peers(struct cdp_vdev *vdev_handle, bool unmap_only)
 		SET_PEER_REF_CNT_ONE(peer);
 		dp_info("peer: %pM is getting unmap",
 			peer->mac_addr.raw);
-		/* free AST entries of peer */
-		dp_peer_flush_ast_entry(soc, peer,
-					peer_ids[i],
-					vdev->vdev_id);
 
 		dp_rx_peer_unmap_handler(soc, peer_ids[i],
 					 vdev->vdev_id,