mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
LinuxKPI: 802.11 ieee80211_sn_sub() fix
In ieee80211_sn_sub() we need to shift the mask before applying it.
This fixes the logic from 978f25e840.
Reported by: J.R. Oldroyd (fbsd opal.com)
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
128b9bf96c
commit
b3e7f403a5
1 changed files with 2 additions and 1 deletions
|
|
@ -1691,7 +1691,8 @@ static __inline uint16_t
|
|||
ieee80211_sn_sub(uint16_t sa, uint16_t sb)
|
||||
{
|
||||
|
||||
return ((sa - sb) & IEEE80211_SEQ_SEQ_MASK);
|
||||
return ((sa - sb) &
|
||||
(IEEE80211_SEQ_SEQ_MASK >> IEEE80211_SEQ_SEQ_SHIFT));
|
||||
}
|
||||
|
||||
static __inline void
|
||||
|
|
|
|||
Loading…
Reference in a new issue