qcacmn: Delete peer AST entries as part of peer unmap

In roam HO failure, peer unmap indication is processed
even before Host initiates the peer cleanup. In the cleanup,
as part of cdp_peer_teardown, AST entries are freed up without
removing it from the peer AST list since get_peer_by_ref_id
returns NULL peer pointer as peer is moved to inactive state.

Fix is to delete peer AST entries as part of peer unmap
indication so that the entries are removed from the AST list.

Change-Id: I1b04517e8cc392b33bb439501e61e3d5534d8307
CRs-Fixed: 2763825
此提交包含在:
Yeshwanth Sriram Guntuka
2020-08-27 10:52:25 +05:30
提交者 snandini
父節點 6812dd9d09
當前提交 4c12885407
共有 3 個檔案被更改,包括 28 行新增24 行删除

查看文件

@@ -1591,6 +1591,9 @@ static void
dp_peer_clean_wds_entries(struct dp_soc *soc, struct dp_peer *peer,
uint32_t free_wds_count)
{
qdf_spin_lock_bh(&soc->ast_lock);
dp_peer_delete_ast_entries(soc, peer);
qdf_spin_unlock_bh(&soc->ast_lock);
}
#endif