qcacmn: Rate limit error message

When sorting channels by weight, a lot of the channels can be disabled,
depending on the regulatory domain. Getting the information on disabled
channels can cause excessive error logs. Rate limit these error logs.

Change-Id: Ife70b9578bb5ce61013392d92a5dd4c4e160075d
CRs-fixed: 2852753
This commit is contained in:
Lincoln Tran 2021-01-12 14:29:48 -08:00 • committed by Gerrit - the friendly Code Review server
commit e6c5458e7f

View file

@ -3369,7 +3369,7 @@ reg_get_5g_bonded_channel_state_for_freq(struct wlan_objmgr_pdev *pdev,
const struct bonded_channel_freq *bonded_chan_ptr = NULL;
if (bw > CH_WIDTH_80P80MHZ) {
reg_err("bw passed is not good");
reg_err_rl("bw passed is not good");
return CHANNEL_STATE_INVALID;
}