Fix incrementing wrong counter
This commit is contained in:
parent
0ada8502a1
commit
edaa29b022
@ -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) 2001 Atsushi Onoe
|
||||||
* Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
|
* 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 $");
|
__FBSDID("$FreeBSD: src/sys/net80211/ieee80211_input.c,v 1.81 2005/08/10 16:22:29 sam Exp $");
|
||||||
#endif
|
#endif
|
||||||
#ifdef __NetBSD__
|
#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
|
#endif
|
||||||
|
|
||||||
#ifdef _KERNEL_OPT
|
#ifdef _KERNEL_OPT
|
||||||
@ -780,7 +780,7 @@ ieee80211_deliver_data(struct ieee80211com *ic,
|
|||||||
len = m1->m_pkthdr.len;
|
len = m1->m_pkthdr.len;
|
||||||
IFQ_ENQUEUE(&ifp->if_snd, m1, error);
|
IFQ_ENQUEUE(&ifp->if_snd, m1, error);
|
||||||
if (error) {
|
if (error) {
|
||||||
ifp->if_omcasts++;
|
ifp->if_oerrors++;
|
||||||
m = NULL;
|
m = NULL;
|
||||||
}
|
}
|
||||||
ifp->if_obytes += len;
|
ifp->if_obytes += len;
|
||||||
|
Loading…
Reference in New Issue
Block a user