summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2016-02-05 19:42:04 +0000
committerstsp <stsp@openbsd.org>2016-02-05 19:42:04 +0000
commit84decc6c3faa74bca2f013dfc68c3b8788056f23 (patch)
tree1ce640cd56024a52724c8155f0cb68f44093bbe1
parentGuard against integer overflow when checking whether (diff)
downloadwireguard-openbsd-84decc6c3faa74bca2f013dfc68c3b8788056f23.tar.xz
wireguard-openbsd-84decc6c3faa74bca2f013dfc68c3b8788056f23.zip
Count A-MPDU subframes with sequence number below the current BA window as
duplicates rather than input errors. These subframes have either already been received, or the window was moved by the gap timeout which should only happen with buggy APs. Neither condition indicates a severe problem. Perhaps we will introduce a separate counter for this later.
-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 6b8106106fb..6db5e492915 100644
--- a/sys/net80211/ieee80211_input.c
+++ b/sys/net80211/ieee80211_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_input.c,v 1.157 2016/02/05 16:07:57 stsp Exp $ */
+/* $OpenBSD: ieee80211_input.c,v 1.158 2016/02/05 19:42:04 stsp Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
@@ -707,7 +707,7 @@ ieee80211_input_ba(struct ieee80211com *ic, struct mbuf *m,
timeout_add_usec(&ba->ba_to, ba->ba_timeout_val);
if (SEQ_LT(sn, ba->ba_winstart)) { /* SN < WinStartB */
- ifp->if_ierrors++;
+ ic->ic_stats.is_rx_dup++;
m_freem(m); /* discard the MPDU */
return;
}