IEEE 802.11 sequence numbers wrap around at 0xfff, not 0xffff.
ok phessler@ kevlo@
-/* $OpenBSD: ieee80211_input.c,v 1.231 2021/03/23 12:03:44 stsp Exp $ */
+/* $OpenBSD: ieee80211_input.c,v 1.232 2021/03/26 10:18:55 stsp Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
/* XXX hack to workaround calling convention */
IEEE80211_SEND_MGMT(ic, ni,
IEEE80211_FC0_SUBTYPE_AUTH,
- IEEE80211_STATUS_ALG << 16 | ((seq + 1) & 0xffff));
+ IEEE80211_STATUS_ALG << 16 | ((seq + 1) & 0xfff));
}
#endif
return;