From f2e9cc10f1c2aae249a3f43f0ac254e84416c392 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Thu, 24 Dec 2020 16:33:37 +0530 Subject: [PATCH] qcacmn: Rate limit invalid channel number messages Channel number can be invalid when finding out the enumeration for the channel. Rate limit the messages for the same. Change-Id: Ie6cf178482647547d58d4d9555763332d6598846 CRs-Fixed: 2843978 --- 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 ab644c1706ef..da767ff807dc 100644 --- a/umac/regulatory/core/src/reg_services_common.c +++ b/umac/regulatory/core/src/reg_services_common.c @@ -1101,7 +1101,7 @@ enum channel_enum reg_get_chan_enum(uint8_t chan_num) if (channel_map[count].chan_num == chan_num) return count; - reg_err("invalid channel number %d", chan_num); + reg_err_rl("invalid channel number %d", chan_num); return INVALID_CHANNEL; }