From aa9ab765bf0a540fc089a549028c5ab087d9e7b2 Mon Sep 17 00:00:00 2001 From: Pankaj Singh Date: Tue, 7 Jul 2020 15:42:40 +0530 Subject: [PATCH] qcacld-3.0: Failure to create pdev before get FW ready event received During TDLS if SSR occurs then wlan driver is not deleting the tdls host peer.This lead to tdls peer leak, vdev and pdev ref leak. As pdev is not deleted after SSR new pdev create fails. Fix is to remove tdls peer information from host driver during ssr Change-ID: I9f4c2026821a166fbf38f658c75d93e7409141cc CRs-Fixed: 2726083 --- core/wma/src/wma_features.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 643cded92d6e..fcf765af5334 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -3570,7 +3570,7 @@ int wma_update_tdls_peer_state(WMA_HANDLE handle, WMA_LOGE("%s: failed to send tdls peer update state command", __func__); ret = -EIO; - goto end_tdls_peer_state; + /* Fall through to delete TDLS peer for teardown */ } /* in case of teardown, remove peer from fw */ @@ -3590,7 +3590,6 @@ int wma_update_tdls_peer_state(WMA_HANDLE handle, if (QDF_IS_STATUS_ERROR(qdf_status)) { WMA_LOGE(FL("wma_remove_peer failed")); ret = -EINVAL; - goto end_tdls_peer_state; } cdp_peer_update_last_real_peer(soc, WMI_PDEV_ID_SOC, peer_state->vdev_id,