mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacld-3.0: Disable wlan suspend for monitor mode
Wlan suspend and WOW is not supported in monitor mode, disable them. Change-Id: I5654cb837d01f78d08ae006040cc4f16cd6b3a36 CRs-Fixed: 2500835
This commit is contained in:
parent
703c4866a0
commit
763f9d726f
1 changed files with 8 additions and 4 deletions
|
|
@ -1612,8 +1612,10 @@ static int __wlan_hdd_cfg80211_resume_wlan(struct wiphy *wiphy)
|
|||
goto exit_with_code;
|
||||
}
|
||||
|
||||
if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) {
|
||||
hdd_err("Command not allowed in FTM mode");
|
||||
if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam() ||
|
||||
QDF_GLOBAL_MONITOR_MODE == hdd_get_conparam()) {
|
||||
hdd_err("Command not allowed in mode %d",
|
||||
hdd_get_conparam());
|
||||
exit_code = -EINVAL;
|
||||
goto exit_with_code;
|
||||
}
|
||||
|
|
@ -1717,8 +1719,10 @@ static int __wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy,
|
|||
|
||||
hdd_enter();
|
||||
|
||||
if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) {
|
||||
hdd_err("Command not allowed in FTM mode");
|
||||
if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam() ||
|
||||
QDF_GLOBAL_MONITOR_MODE == hdd_get_conparam()) {
|
||||
hdd_err("Command not allowed in mode %d",
|
||||
hdd_get_conparam());
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue