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:
Jinwei Chen 2019-08-07 10:45:33 +08:00 • committed by nshrivas
commit 763f9d726f

View file

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