summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 9958a7571817..6312b5125b21 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -22418,7 +22418,11 @@ int __wlan_hdd_cfg80211_resume_wlan(struct wiphy *wiphy)
result = wma_resume_fw();
if (result) {
hddLog(LOGE, FL("Failed to resume FW err:%d"), result);
- VOS_BUG(0);
+ /* Do not panic (VOS_BUG(0)) if FW dump is in progress.
+ * Otherwise, the FW dump will be incomplete.
+ */
+ if (!vos_is_logp_in_progress(VOS_MODULE_ID_HDD, NULL))
+ VOS_BUG(0);
return -EBUSY;
}
}