summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2019-10-06 16:11:17 +0000
committerstsp <stsp@openbsd.org>2019-10-06 16:11:17 +0000
commit100ae3fb57ecb2c231ff56b8ca8cc5942c1635ee (patch)
tree5fc77df87b0f6e5a358a816a2b8b13f340b787f2
parentFix month mask. (diff)
downloadwireguard-openbsd-100ae3fb57ecb2c231ff56b8ca8cc5942c1635ee.tar.xz
wireguard-openbsd-100ae3fb57ecb2c231ff56b8ca8cc5942c1635ee.zip
Fix net80211's accounting of discarded input control frames.
PS-poll and BA-req frames are in fact being processed. Do not count such frames as discarded control frames. OK phessler kn mpi
-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 6e192cfb3ab..389f7f775bb 100644
--- a/sys/net80211/ieee80211_input.c
+++ b/sys/net80211/ieee80211_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_input.c,v 1.210 2019/09/25 05:51:24 tobhe Exp $ */
+/* $OpenBSD: ieee80211_input.c,v 1.211 2019/10/06 16:11:17 stsp Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
@@ -535,7 +535,6 @@ ieee80211_inputm(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node *ni,
return;
case IEEE80211_FC0_TYPE_CTL:
- ic->ic_stats.is_rx_ctl++;
switch (subtype) {
#ifndef IEEE80211_STA_ONLY
case IEEE80211_FC0_SUBTYPE_PS_POLL:
@@ -546,6 +545,7 @@ ieee80211_inputm(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node *ni,
ieee80211_recv_bar(ic, m, ni);
break;
default:
+ ic->ic_stats.is_rx_ctl++;
break;
}
goto out;