/* ERXRDPT need to be set always at odd addresses, refer to errata datasheet  */
static u16 erxrdpt_workaround(u16 next_packet_ptr, u16 start, u16 end)
/* ERXRDPT need to be set always at odd addresses, refer to errata datasheet  */
static u16 erxrdpt_workaround(u16 next_packet_ptr, u16 start, u16 end)
{
	u16 erxrdpt;
	if ((next_packet_ptr - 1 < start) || (next_packet_ptr - 1 > end))
		erxrdpt = end;
	else
		erxrdpt = next_packet_ptr - 1;
	return erxrdpt;
}