diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index af3fda007ddc..25398cf010ac 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -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; }