From 6a5eb9339ce75467b57d4d862f5598d532c4077a Mon Sep 17 00:00:00 2001 From: Alan Chen Date: Mon, 12 Aug 2019 17:08:22 -0700 Subject: [PATCH] qcacld-3.0: Clear recovery flag after idle restart Clear recovery flag after idle restart such that next time wifi can turn on properly. Change-Id: I7063a9edd08334a84068f88c0564dd4f2aabf666 CRs-Fixed: 2507899 --- core/hdd/src/wlan_hdd_main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index be1a40869d4e..438047b4c8dc 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -9713,6 +9713,7 @@ static int __hdd_mode_change_psoc_idle_shutdown(struct hdd_context *hdd_ctx) int hdd_psoc_idle_shutdown(struct device *dev) { + int ret; struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD); if (!hdd_ctx) { @@ -9721,9 +9722,13 @@ int hdd_psoc_idle_shutdown(struct device *dev) } if (is_mode_change_psoc_idle_shutdown) - return __hdd_mode_change_psoc_idle_shutdown(hdd_ctx); + ret = __hdd_mode_change_psoc_idle_shutdown(hdd_ctx); else - return __hdd_psoc_idle_shutdown(hdd_ctx); + ret = __hdd_psoc_idle_shutdown(hdd_ctx); + + cds_set_recovery_in_progress(false); + + return ret; } static int __hdd_psoc_idle_restart(struct hdd_context *hdd_ctx)