From 3e765ab111f8bc5de1872399b69ee6b7423cc2ee Mon Sep 17 00:00:00 2001 From: Gururaj Pandurangi Date: Thu, 15 Oct 2020 16:28:23 -0700 Subject: [PATCH] qcacmn: Rate limit log in reg_get_chan_enum_for_freq Rate limit log in reg_get_chan_enum_for_freq() API to prevent excessive logging. Change-Id: I52248877b5741f1f6a459b3f5240cabafbf1af05 CRs-Fixed: 2798752 --- 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 a0f922b9280f..e9ecb213996c 100644 --- a/umac/regulatory/core/src/reg_services_common.c +++ b/umac/regulatory/core/src/reg_services_common.c @@ -3184,7 +3184,7 @@ enum channel_enum reg_get_chan_enum_for_freq(qdf_freq_t freq) if (channel_map[count].center_freq == freq) return count; - reg_err("invalid channel center frequency %d", freq); + reg_err_rl("invalid channel center frequency %d", freq); return INVALID_CHANNEL; }