From dce620e3ef56a4430bdfd9e6318c0eba7a8a2730 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Sat, 11 Feb 2006 09:31:43 +0000 Subject: trim FCS in the driver instead of setting the M_HASFCS flag and letting ieee80211_input() do the job. requested by brad@ --- sys/dev/usb/if_ral.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/usb') diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c index f1da3128719..587fb56cdb9 100644 --- a/sys/dev/usb/if_ral.c +++ b/sys/dev/usb/if_ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ral.c,v 1.63 2006/02/04 11:40:32 damien Exp $ */ +/* $OpenBSD: if_ral.c,v 1.64 2006/02/11 09:31:42 damien Exp $ */ /*- * Copyright (c) 2005, 2006 @@ -941,7 +941,7 @@ ural_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) /* finalize mbuf */ m->m_pkthdr.rcvif = ifp; m->m_pkthdr.len = m->m_len = (letoh32(desc->flags) >> 16) & 0xfff; - m->m_flags |= M_HASFCS; /* h/w leaves FCS */ + m_adj(m, -IEEE80211_CRC_LEN); /* trim FCS */ s = splnet(); -- cgit v1.2.3