mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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:
parent
91cbd1db84
commit
f0f81ad646
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue