From ca2b90a35f43b7482b0b45dcd8430a51fb332698 Mon Sep 17 00:00:00 2001 From: Arun Kumar Khandavalli Date: Mon, 2 Aug 2021 22:28:57 +0530 Subject: [PATCH] qcacld-3.0: Reset the wiphy suspended flag at the end of SSR During the wakeup sequence if there is any firmware recovery the resume would be rejected and the flag "is_wiphy_suspended" would not be reset in the system resume. So, at the end of the SSR reset the flag since the system has already resumed completely. Change-Id: I86b0adade1dfb5710df2f86a3922320308407fe9 CRs-Fixed: 3005606 --- core/hdd/src/wlan_hdd_power.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index 2942a015f224..297279b5900e 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -1871,6 +1871,10 @@ QDF_STATUS hdd_wlan_re_init(void) if (value) hdd_ssr_restart_sap(hdd_ctx); hdd_wlan_ssr_reinit_event(); + + if (hdd_ctx->is_wiphy_suspended) + hdd_ctx->is_wiphy_suspended = false; + return QDF_STATUS_SUCCESS; err_re_init: