Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8f864d6 authored by Ashish Kumar Dhanotiya's avatar Ashish Kumar Dhanotiya Committed by Gerrit - the friendly Code Review server
Browse files

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
parent 4ff5ad06
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1102,7 +1102,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;
}