diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c index bb2575ee334c..0896078e44b3 100644 --- a/core/hdd/src/wlan_hdd_scan.c +++ b/core/hdd/src/wlan_hdd_scan.c @@ -461,6 +461,11 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy, ENTER(); + if (cds_is_fw_down()) { + hdd_err("firmware is down, scan cmd cannot be processed"); + return -EINVAL; + } + if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) { hdd_err("Command not allowed in FTM mode"); return -EINVAL;