Fix incrementing wrong counter

This commit is contained in:
ozaki-r 2017-03-06 08:36:20 +00:00
parent 0ada8502a1
commit edaa29b022

View File

@ -1,4 +1,4 @@
/* $NetBSD: ieee80211_input.c,v 1.87 2017/02/02 10:05:35 nonaka Exp $ */
/* $NetBSD: ieee80211_input.c,v 1.88 2017/03/06 08:36:20 ozaki-r Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
* Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@ -36,7 +36,7 @@
__FBSDID("$FreeBSD: src/sys/net80211/ieee80211_input.c,v 1.81 2005/08/10 16:22:29 sam Exp $");
#endif
#ifdef __NetBSD__
__KERNEL_RCSID(0, "$NetBSD: ieee80211_input.c,v 1.87 2017/02/02 10:05:35 nonaka Exp $");
__KERNEL_RCSID(0, "$NetBSD: ieee80211_input.c,v 1.88 2017/03/06 08:36:20 ozaki-r Exp $");
#endif
#ifdef _KERNEL_OPT
@ -780,7 +780,7 @@ ieee80211_deliver_data(struct ieee80211com *ic,
len = m1->m_pkthdr.len;
IFQ_ENQUEUE(&ifp->if_snd, m1, error);
if (error) {
ifp->if_omcasts++;
ifp->if_oerrors++;
m = NULL;
}
ifp->if_obytes += len;