summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-02-11 09:31:43 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-02-11 09:31:43 +0000
commitdce620e3ef56a4430bdfd9e6318c0eba7a8a2730 (patch)
treebcd46a980b6121ffc0dde0643da52e618ebe0a16 /sys/dev
parent70b7542abc5a09215c70c7bf296c117073c42874 (diff)
trim FCS in the driver instead of setting the M_HASFCS flag and letting
ieee80211_input() do the job. requested by brad@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/if_ral.c4
1 files changed, 2 insertions, 2 deletions
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();