qcacmn: Add lock for update ast entry

Add lock protection while update of ast entry for
peer

Change-Id: I0f61add9a06174303b40b017a6f1f2d202f3cf55
CRs-Fixed: 2210301
这个提交包含在:
Chaithanya Garrepalli
2018-03-23 12:20:18 +05:30
提交者 nshrivas
父节点 61f7fa32c4
当前提交 4c7099f001
修改 2 个文件,包含 7 行新增3 行删除

查看文件

@@ -317,12 +317,10 @@ static int dp_peer_update_ast_wifi3(struct cdp_soc_t *soc_hdl,
{
int status;
struct dp_soc *soc = (struct dp_soc *)soc_hdl;
qdf_spin_lock_bh(&soc->ast_lock);
status = dp_peer_update_ast(soc,
(struct dp_peer *)peer_hdl,
(struct dp_ast_entry *)ast_entry_hdl,
flags);
qdf_spin_unlock_bh(&soc->ast_lock);
return status;
}