summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/SERVICES/WMA/wma.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c
index 64b30a2507b5..5f0411befba9 100644
--- a/CORE/SERVICES/WMA/wma.c
+++ b/CORE/SERVICES/WMA/wma.c
@@ -35476,6 +35476,11 @@ int wma_suspend_fw(void)
if (!wma)
return -EINVAL;
+ if (wma_check_scan_in_progress(wma)) {
+ WMA_LOGE("%s: Scan in progress, Aborting suspend", __func__);
+ return -EBUSY;
+ }
+
is_wow_enabled = wma_is_wow_mode_selected(wma);
if (is_wow_enabled)
ret = wma_enable_wow_in_fw(wma, 0);