/* deal with seq counter wrapping correctly. refer to timer_after() for jiffies wrapping handling  */
static int tkip_replay_check(u32 iv32_n, u16 iv16_n, u32 iv32_o, u16 iv16_o)
/* deal with seq counter wrapping correctly. refer to timer_after() for jiffies wrapping handling  */
static int tkip_replay_check(u32 iv32_n, u16 iv16_n, u32 iv32_o, u16 iv16_o)
{
	if ((s32)iv32_n - (s32)iv32_o < 0 ||
	    (iv32_n == iv32_o && iv16_n <= iv16_o))
		return 1;
	return 0;
}