From eed6e8f8487fe77e6e8c8dd652d17f911945a1e7 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Thu, 5 Dec 2019 15:10:23 -0800 Subject: [PATCH] qcacld-3.0: Rate limit suspend not allowed log for test modes In FTM and monitor test modes cfg80211 suspend op is not allowed. If OS tries to do frequent suspend in FTM or monitor mode it can lead to excessive console logging and hence to avoid excessive console logging and its side effects rate limit the console logging for FTM and monitor test modes. Change-Id: I8d51db21f861f038f0538865f4c0634efd983f8c CRs-Fixed: 2580927 --- core/hdd/src/wlan_hdd_power.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index 8dc590105d79..fdffa94c2cf4 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -1806,8 +1806,8 @@ static int __wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy, 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()); + hdd_err_rl("Command not allowed in mode %d", + hdd_get_conparam()); return -EINVAL; }