diff options
author | 2006-02-11 09:31:42 +0000 | |
---|---|---|
committer | 2006-02-11 09:31:42 +0000 | |
commit | dd47a3740456f6fab65a21d7ce4f2fe66ce95eaa (patch) | |
tree | daf73c8b3f1769c163ff1039120afe1e45f56ea7 /sys/dev/usb/if_ral.c | |
parent | add musycc(4) as a MLINK to art(4) (diff) | |
download | wireguard-openbsd-dd47a3740456f6fab65a21d7ce4f2fe66ce95eaa.tar.xz wireguard-openbsd-dd47a3740456f6fab65a21d7ce4f2fe66ce95eaa.zip |
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/usb/if_ral.c')
-rw-r--r-- | sys/dev/usb/if_ral.c | 4 |
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(); |