Eliminate use of M_HASFCS.

This commit is contained in:
thorpej 2005-01-31 03:04:25 +00:00
parent f3e948e11c
commit 67568419ee
2 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: atw.c,v 1.82 2005/01/04 00:56:51 dyoung Exp $ */
/* $NetBSD: atw.c,v 1.83 2005/01/31 03:06:40 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.82 2005/01/04 00:56:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.83 2005/01/31 03:06:40 thorpej Exp $");
#include "bpfilter.h"
@ -3091,7 +3091,7 @@ atw_rxintr(struct atw_softc *sc)
ifp->if_ipackets++;
if (sc->sc_opmode & ATW_NAR_PR)
m->m_flags |= M_HASFCS;
len -= IEEE80211_CRC_LEN;
m->m_pkthdr.rcvif = ifp;
m->m_pkthdr.len = m->m_len = MIN(m->m_ext.ext_size, len);

View File

@ -1,4 +1,4 @@
/* $NetBSD: dp83932.c,v 1.10 2004/10/30 18:08:36 thorpej Exp $ */
/* $NetBSD: dp83932.c,v 1.11 2005/01/31 03:04:25 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dp83932.c,v 1.10 2004/10/30 18:08:36 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: dp83932.c,v 1.11 2005/01/31 03:04:25 thorpej Exp $");
#include "bpfilter.h"
@ -766,7 +766,7 @@ sonic_rxintr(struct sonic_softc *sc)
/*
* The SONIC includes the CRC with every packet.
*/
len = bytecount;
len = bytecount - ETHER_CRC_LEN;
/*
* Ok, if the chip is in 32-bit mode, then receive
@ -835,7 +835,6 @@ sonic_rxintr(struct sonic_softc *sc)
}
ifp->if_ipackets++;
m->m_flags |= M_HASFCS;
m->m_pkthdr.rcvif = ifp;
m->m_pkthdr.len = m->m_len = len;