From 540dca4c31e2279ba38002d7658736cfb205e5c2 Mon Sep 17 00:00:00 2001 From: Bala Venkatesh Date: Wed, 11 Sep 2019 17:20:10 +0530 Subject: [PATCH] qcacld-3.0: Remove connected peer count check to reset the tdls peers Currently, in function tdls_process_reset_all_peers before checking the tdls peer state connected peer count is checked and if is zero then returned without checking the peer id. If peer is created but the peer count is not increased then TDLS component will not notify to delete the peer and this can lead to subsequent add peer denials. Change-Id: I2fd1d6945eb9dca478f11cd05ba0ee4a9ed007ea CRs-Fixed: 2524442 --- components/tdls/core/src/wlan_tdls_main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/components/tdls/core/src/wlan_tdls_main.c b/components/tdls/core/src/wlan_tdls_main.c index 780563d73320..bd8bdf3a0cc8 100644 --- a/components/tdls/core/src/wlan_tdls_main.c +++ b/components/tdls/core/src/wlan_tdls_main.c @@ -489,11 +489,6 @@ static QDF_STATUS tdls_process_reset_all_peers(struct wlan_objmgr_vdev *vdev) return status; } - if (!tdls_soc->connected_peer_count) { - tdls_debug("No tdls connected peers"); - return status; - } - reset_session_id = tdls_vdev->session_id; for (staidx = 0; staidx < tdls_soc->max_num_tdls_sta; staidx++) {