qcacmn: Finding ast entry based on vdev

Currently,  ast entry is not found when VDEV ALL
is there. Change is finding the ast entry when
particular vdev is passed and, also when vdev
all is passed.

Change-Id: Ib71b843c74b9a64cb15f221577ee8e2d30614973
CRs-Fixed: 3575721
This commit is contained in:
Gaurav Saini
2023-07-31 14:39:25 +05:30
committed by Rahul Choudhary
parent bb6139453b
commit a211d644c5

View File

@@ -287,8 +287,12 @@ struct dp_peer *dp_find_peer_by_macaddr(struct dp_soc *soc, uint8_t *mac_addr,
uint16_t peer_id;
qdf_spin_lock_bh(&soc->ast_lock);
ast_entry = dp_peer_ast_hash_find_by_vdevid(soc, mac_addr,
vdev_id);
if (vdev_id == DP_VDEV_ALL)
ast_entry = dp_peer_ast_hash_find_soc(soc, mac_addr);
else
ast_entry = dp_peer_ast_hash_find_by_vdevid
(soc, mac_addr, vdev_id);
if (!ast_entry) {
qdf_spin_unlock_bh(&soc->ast_lock);