qcacmn: Do cleanup related to peer_map_unmap_v2
AST entry delete logic has some conditional checks making code with respect to HTT V1 and V2 messages making it tough to follow. Change-Id: I229324446134b32021a956fb689e4726256fcc28
This commit is contained in:

committed by
nshrivas

parent
03a9f5b19c
commit
64b4848aa0
@@ -6240,7 +6240,7 @@ void dp_peer_unref_delete(struct dp_peer *peer)
|
||||
struct cdp_peer_cookie peer_cookie;
|
||||
enum wlan_op_mode vdev_opmode;
|
||||
uint8_t vdev_mac_addr[QDF_MAC_ADDR_SIZE];
|
||||
|
||||
struct dp_ast_entry *peer_ast_entry = NULL;
|
||||
|
||||
/*
|
||||
* Hold the lock all the way from checking if the peer ref count
|
||||
@@ -6272,7 +6272,9 @@ void dp_peer_unref_delete(struct dp_peer *peer)
|
||||
|
||||
qdf_spin_lock_bh(&soc->ast_lock);
|
||||
if (peer->self_ast_entry) {
|
||||
dp_peer_del_ast(soc, peer->self_ast_entry);
|
||||
peer_ast_entry = peer->self_ast_entry;
|
||||
dp_peer_unlink_ast_entry(soc, peer_ast_entry);
|
||||
dp_peer_free_ast_entry(soc, peer_ast_entry);
|
||||
peer->self_ast_entry = NULL;
|
||||
}
|
||||
qdf_spin_unlock_bh(&soc->ast_lock);
|
||||
|
Reference in New Issue
Block a user