From bf3742bb129d198b953954a7ec4186cc951b9acd Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Tue, 21 Jan 2020 14:21:33 +0530 Subject: [PATCH] qcacld-3.0: Change logging in wma_chan_phy_mode to ratelimit Currently logs for invalid channel width are set as error logs, if invalid channel width is passed to this api very frequently, error logs are getting flooded. To address this issue make the logs as rate limit. Change-Id: I493002b63ab72438cce2b61c858a32acf12ea6b6 CRs-Fixed: 2607361 --- core/wma/src/wma_features.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 32ecc4885a24..f8454cd3151f 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -542,7 +542,7 @@ enum wlan_phymode wma_chan_phy_mode(uint32_t freq, enum phy_ch_width chan_width, } if (chan_width >= CH_WIDTH_INVALID) { - WMA_LOGE("%s : Invalid channel width", __func__); + wma_err_rl("%s : Invalid channel width", __func__); return WLAN_PHYMODE_AUTO; }