From e03a81b08afde7d2270c2ef258962162883d483a Mon Sep 17 00:00:00 2001 From: Rathees kumar Chinannan Date: Thu, 10 Oct 2019 15:00:21 +0530 Subject: [PATCH] qcacmn: Fix to add AST entry during WDS to static roaming Fix to add AST entry during WDS to static roaming Change-Id: I761eef2d1ea384832e152a64252f08d2c71652cc CRs-fixed: 2539088 --- dp/wifi3.0/dp_peer.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dp/wifi3.0/dp_peer.c b/dp/wifi3.0/dp_peer.c index 4593147d60..07aa27359f 100644 --- a/dp/wifi3.0/dp_peer.c +++ b/dp/wifi3.0/dp_peer.c @@ -647,8 +647,15 @@ int dp_peer_add_ast(struct dp_soc *soc, return 0; } if (is_peer_found) { - qdf_spin_unlock_bh(&soc->ast_lock); - return 0; + /* During WDS to static roaming, peer is added + * to the list before static AST entry create. + * So, allow AST entry for STATIC type + * even if peer is present + */ + if (type != CDP_TXRX_AST_TYPE_STATIC) { + qdf_spin_unlock_bh(&soc->ast_lock); + return 0; + } } } else { /* For HWMWDS_SEC entries can be added for same mac address