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
This commit is contained in:
Ashish Kumar Dhanotiya 2020-01-21 14:21:33 +05:30 • committed by nshrivas
commit bf3742bb12

View file

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