qcacmn: remove the host ast_entry after deleting in FW

Removet the host ast_entry after sending delete ast_entry
to the firmware. This will handle the situation where we
might receive an add request for the same ast_entry,
while we are waiting for delete response from the firmware.

Change-Id: I105504a9c6a1e8e53bef9f3d011c10f846fd098e
CRs-Fixed: 2347989
This commit is contained in:
Pavankumar Nandeshwar 2018-11-12 18:03:44 +05:30 • committed by nshrivas
commit 2a2b7fecb0

View file

@ -694,7 +694,6 @@ void dp_peer_del_ast(struct dp_soc *soc, struct dp_ast_entry *ast_entry)
if (ast_entry->next_hop &&
ast_entry->type != CDP_TXRX_AST_TYPE_WDS_HM_SEC) {
TAILQ_REMOVE(&peer->ast_entry_list, ast_entry, ase_list_elem);
dp_peer_ast_send_wds_del(soc, ast_entry);
} else {
/*
@ -944,6 +943,7 @@ void dp_peer_ast_send_wds_del(struct dp_soc *soc,
cdp_soc->ol_ops->peer_del_wds_entry(peer->vdev->osif_vdev,
ast_entry->mac_addr.raw);
ast_entry->wmi_sent = true;
TAILQ_REMOVE(&peer->ast_entry_list, ast_entry, ase_list_elem);
}
}