/* Note that if @sn < @roq->ws, we still need a positive number; 's sign is implementation specific, so we normalize it by adding 2048 to bring it to be positive.  */
static unsigned __i2400m_roq_nsn(struct i2400m_roq *roq, unsigned sn)
/* Note that if @sn < @roq->ws, we still need a positive number; 's sign is implementation specific, so we normalize it by adding 2048 to bring it to be positive.  */
static unsigned __i2400m_roq_nsn(struct i2400m_roq *roq, unsigned sn)
{
	int r;
	r =  ((int) sn - (int) roq->ws) % 2048;
	if (r < 0)
		r += 2048;
	return r;
}