From 52e54333f4ae1222cadd6a85af4643dcfc82069e Mon Sep 17 00:00:00 2001 From: Saket Jha Date: Tue, 10 Sep 2019 13:33:02 -0700 Subject: [PATCH] qcacmn: Delete all peers during SSR During SSR in dp_vdev_flush_peers function, the else condition finds peers to delete by calling dp_peer_find_by_id. If the delete_in_progress_ flag has already been set to TRUE, then dp_peer_find_by_id will return NULL and not delete the vdev object. Calling __dp_peer_find_by_id will always return peer id so all peers are sure to be deleted. Change-Id: I86bf2bdda7ebc5a9c2f4bbc877392ebff9cbaf59 CRs-Fixed: 2513104 --- dp/wifi3.0/dp_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index c966db665924..e4fb859c5364 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -4828,7 +4828,7 @@ static void dp_vdev_flush_peers(struct cdp_vdev *vdev_handle, bool unmap_only) 0); } } else { - peer = dp_peer_find_by_id(soc, peer_ids[i]); + peer = __dp_peer_find_by_id(soc, peer_ids[i]); if (peer) { dp_info("peer: %pM is getting flush",