From 2a2b7fecb0d4036f41d89521840f7ce617376c7f Mon Sep 17 00:00:00 2001 From: Pavankumar Nandeshwar Date: Mon, 12 Nov 2018 18:03:44 +0530 Subject: [PATCH] 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 --- dp/wifi3.0/dp_peer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_peer.c b/dp/wifi3.0/dp_peer.c index 746cf6d50415..0bbf4bc903b8 100644 --- a/dp/wifi3.0/dp_peer.c +++ b/dp/wifi3.0/dp_peer.c @@ -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); } }