浏览代码

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
Ashish Kumar Dhanotiya 5 年之前
父节点
当前提交
bf3742bb12
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/wma/src/wma_features.c

+ 1 - 1
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;
 	}