From 4140e8bfa8cb2be4dcf1c63e89fd3ab9a5b2b032 Mon Sep 17 00:00:00 2001 From: Sourav Mohapatra Date: Tue, 25 Feb 2020 16:36:41 +0530 Subject: [PATCH] qcacld-3.0: Remove cds_trigger_recovery where not needed Currently in the driver there are places from where recovery is initiated. Some of those are not required as logic around them has changed. Remove those cds_trigger_recovery from places where it is not needed. Change-Id: Ia5a0fa60101e1c9f44077daa83c4a20d18893c0a CRs-Fixed: 2628691 --- core/mac/src/pe/lim/lim_utils.c | 2 +- core/wma/src/wma_dev_if.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c index ad3028aadf8b..f6036205104b 100644 --- a/core/mac/src/pe/lim/lim_utils.c +++ b/core/mac/src/pe/lim/lim_utils.c @@ -5116,7 +5116,7 @@ bool lim_set_nss_change(struct mac_context *mac, struct pe_session *pe_session, if (!rxNss) { pe_err("Invalid rxNss value: %u", rxNss); - cds_trigger_recovery(QDF_REASON_UNSPECIFIED); + return false; } tempParam.rxNss = rxNss; diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c index 5645aed31b50..47e4d2e84fe5 100644 --- a/core/wma/src/wma_dev_if.c +++ b/core/wma/src/wma_dev_if.c @@ -1571,7 +1571,7 @@ QDF_STATUS wma_remove_peer(tp_wma_handle wma, uint8_t *mac_addr, WMA_LOGE("%s: Can't remove peer with peer_addr %pM vdevid %d peer_count %d", __func__, peer_addr, vdev_id, wma->interfaces[vdev_id].peer_count); - cds_trigger_recovery(QDF_REASON_UNSPECIFIED); + QDF_ASSERT(0); return QDF_STATUS_E_INVAL; }