summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_ral.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2008-08-27 10:34:25 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2008-08-27 10:34:25 +0000
commit09cf2138ee942c24f9ceafa01504099fc3e446a8 (patch)
tree474e4fb1ce72e489bd6bad266cac7c43419831f1 /sys/dev/usb/if_ral.c
parent058252399cdc56566c0481b7236564d830441438 (diff)
pass FCS to radiotap.
Diffstat (limited to 'sys/dev/usb/if_ral.c')
-rw-r--r--sys/dev/usb/if_ral.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c
index 0adacf6c1bd..f84f4ddbbba 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.107 2008/08/27 09:05:03 damien Exp $ */
+/* $OpenBSD: if_ral.c,v 1.108 2008/08/27 10:34:24 damien Exp $ */
/*-
* Copyright (c) 2005, 2006
@@ -771,7 +771,6 @@ 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_adj(m, -IEEE80211_CRC_LEN); /* trim FCS */
s = splnet();
@@ -780,7 +779,7 @@ ural_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
struct mbuf mb;
struct ural_rx_radiotap_header *tap = &sc->sc_rxtap;
- tap->wr_flags = 0;
+ tap->wr_flags = IEEE80211_RADIOTAP_F_FCS;
tap->wr_rate = ural_rxrate(desc);
tap->wr_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq);
tap->wr_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags);
@@ -796,6 +795,7 @@ ural_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
bpf_mtap(sc->sc_drvbpf, &mb, BPF_DIRECTION_IN);
}
#endif
+ m_adj(m, -IEEE80211_CRC_LEN); /* trim FCS */
wh = mtod(m, struct ieee80211_frame *);
ni = ieee80211_find_rxnode(ic, wh);