From 841cdd632d58c28c0debf5aa8ee7ebebfa4e65fd Mon Sep 17 00:00:00 2001 From: Arun Kumar Khandavalli Date: Mon, 1 Nov 2021 15:44:32 +0530 Subject: [PATCH] qcacld-3.0: unblock the state control param thread at end of SSR Currently the state control param thread is unblocked 1st and then the psoc transition is completed, there could be a chance that SSR thread got scheduled out and wifi thread tried to comeup and issue interface up which could fail because psoc transition is till in progress. So, unblock the wifi thread waiting on state control param after stopping the psoc transition at the end of SSR. Change-Id: I4631fb9aae6a5416ba70b24fe3c053528bd3b7d9 CRs-Fixed: 3066968 --- core/hdd/src/wlan_hdd_driver_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c index 6a0822a8c41b..7f782feffdb9 100644 --- a/core/hdd/src/wlan_hdd_driver_ops.c +++ b/core/hdd/src/wlan_hdd_driver_ops.c @@ -754,7 +754,6 @@ static int __hdd_soc_recovery_reinit(struct device *dev, } hdd_soc_load_unlock(dev); - hdd_start_complete(0); return 0; @@ -811,6 +810,7 @@ static int hdd_soc_recovery_reinit(struct device *dev, osif_psoc_sync_trans_stop(psoc_sync); + hdd_start_complete(0); return errno; }