summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_uath.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-12-16 15:32:06 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-12-16 15:32:06 +0000
commitaf0d8c33f5dbdd079c3da7701f93b92c04963596 (patch)
tree66780b66bfe674c3a829cb8686bc5ae192568840 /sys/dev/usb/if_uath.c
parent28333e63009caef49ed2f71baedb15c259085c20 (diff)
trim 802.11 FCS from received frames.
noticed by jsg@
Diffstat (limited to 'sys/dev/usb/if_uath.c')
-rw-r--r--sys/dev/usb/if_uath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_uath.c b/sys/dev/usb/if_uath.c
index a5b1d9ec5c4..0425dad107b 100644
--- a/sys/dev/usb/if_uath.c
+++ b/sys/dev/usb/if_uath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_uath.c,v 1.14 2006/12/03 17:51:41 damien Exp $ */
+/* $OpenBSD: if_uath.c,v 1.15 2006/12/16 15:32:05 damien Exp $ */
/*-
* Copyright (c) 2006
@@ -1243,8 +1243,8 @@ uath_data_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv,
/* finalize mbuf */
m->m_pkthdr.rcvif = ifp;
m->m_data = data->buf + sizeof (uint32_t);
- m->m_pkthdr.len = m->m_len =
- betoh32(desc->len) - sizeof (struct uath_rx_desc);
+ m->m_pkthdr.len = m->m_len = betoh32(desc->len) -
+ sizeof (struct uath_rx_desc) - IEEE80211_CRC_LEN;
data = ndata;