From e6c5458e7f75770f4837290b617ba9ca4037d3ef Mon Sep 17 00:00:00 2001 From: Lincoln Tran Date: Tue, 12 Jan 2021 14:29:48 -0800 Subject: [PATCH] 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 --- umac/regulatory/core/src/reg_services_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umac/regulatory/core/src/reg_services_common.c b/umac/regulatory/core/src/reg_services_common.c index 2f855e329c68..1d0c06e6ce05 100644 --- a/umac/regulatory/core/src/reg_services_common.c +++ b/umac/regulatory/core/src/reg_services_common.c @@ -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; }