qcacld-3.0: Reject scan command, when firmware is down

Scan command is entertained, when the firmware is down, and
it causes crash in the system.
Reject the scan command, when firmware is down.

Change-Id: Ib3501e14846dea9ea99f6fa13695108d4ae58bf0
CRs-Fixed: 2159449
This commit is contained in:
Kabilan Kannan 2017-12-14 18:04:10 -08:00 • committed by snandini
commit f0f81ad646

View file

@ -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;