diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-04-28 13:58:01 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-04-28 13:58:01 +0000 |
commit | cdfccaec90d60648b54f4ae8783e6eb5a7a03dd3 (patch) | |
tree | dfd02c5ed962de3d3ff8c4e640b6a51e92be262b | |
parent | f9a117a0409f467428d9fadd73fbfbb23c5e69d7 (diff) |
When a frame which falls into the block ack window is received, clear
counters that keep track of consecutive frames falling outside the window.
-rw-r--r-- | sys/net80211/ieee80211_input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index 7f7d1418973..d6161a5e6fa 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_input.c,v 1.172 2016/04/27 11:58:10 stsp Exp $ */ +/* $OpenBSD: ieee80211_input.c,v 1.173 2016/04/28 13:58:00 stsp Exp $ */ /*- * Copyright (c) 2001 Atsushi Onoe @@ -767,6 +767,8 @@ ieee80211_input_ba(struct ieee80211com *ic, struct mbuf *m, } /* WinStartB <= SN <= WinEndB */ + ba->ba_winmiss = 0; + ba->ba_missedsn = 0; idx = (sn - ba->ba_winstart) & 0xfff; idx = (ba->ba_head + idx) % IEEE80211_BA_MAX_WINSZ; /* store the received MPDU in the buffer */ |