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
This commit is contained in:
Gururaj Pandurangi 2020-10-15 16:28:23 -07:00 • committed by snandini
commit 3e765ab111

View file

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