summaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2016-05-02 08:12:43 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2016-05-02 08:12:43 +0000
commit3c702be99add97af0c6607ca0e072c99ebf6ef01 (patch)
treea7792321283f5f985609515eb5b7090a8ff855a2 /sys/net80211
parent7c001d9480d8de2bac256102a80cf9379f61e9ac (diff)
IEEE 802.11 sequence numbers wrap at 12 bit.
Fix a case where ieee80211_ba_input() failed to account for that. ok tb@
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c
index 2457e44d962..8c602488122 100644
--- a/sys/net80211/ieee80211_input.c
+++ b/sys/net80211/ieee80211_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_input.c,v 1.174 2016/04/28 15:00:27 stsp Exp $ */
+/* $OpenBSD: ieee80211_input.c,v 1.175 2016/05/02 08:12:42 stsp Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
@@ -740,7 +740,7 @@ ieee80211_input_ba(struct ieee80211com *ic, struct mbuf *m,
} else {
ic->ic_stats.is_ht_rx_ba_window_slide++;
ieee80211_input_ba_seq(ic, ni, tid,
- ba->ba_winstart + count);
+ (ba->ba_winstart + count) & 0xfff);
ieee80211_input_ba_flush(ic, ni, ba);
}
}