qcacmn: Handle flood of update ast messages

Avoid duplicate update AST WMI messages being sent to FW.

Change-Id: Ic2dac80a3ec13e1bef57140b512555dcbabd0587
This commit is contained in:
syed touqeer pasha
2019-03-01 18:06:50 +05:30
committed by nshrivas
父節點 0255314127
當前提交 8a0928bf2f

查看文件

@@ -904,6 +904,15 @@ int dp_peer_update_ast(struct dp_soc *soc, struct dp_peer *peer,
(ast_entry->type == CDP_TXRX_AST_TYPE_WDS_HM_SEC))
return 0;
/*
* Avoids flood of WMI update messages sent to FW for same peer.
*/
if (qdf_unlikely(ast_entry->peer == peer) &&
(ast_entry->type == CDP_TXRX_AST_TYPE_WDS) &&
(ast_entry->vdev_id == peer->vdev->vdev_id) &&
(ast_entry->is_active))
return 0;
old_peer = ast_entry->peer;
TAILQ_REMOVE(&old_peer->ast_entry_list, ast_entry, ase_list_elem);