summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2006-01-14 08:50:39 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2006-01-14 08:50:39 +0000
commitc16381e6883a61c316ad8bb3335982bf58701fcb (patch)
tree73bebef25a8181a90bae1f2c1ae1394cb7805768 /sys/dev/ic
parent835c3bbaa4e4d31856bc04ad9240c8e5ee3e3b8e (diff)
Correct the length of the rx radiotap to be that of the rx not tx
struct. ok damien@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/rt2560.c4
-rw-r--r--sys/dev/ic/rt2661.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/rt2560.c b/sys/dev/ic/rt2560.c
index 4cb5c9ab694..fa3a618e66d 100644
--- a/sys/dev/ic/rt2560.c
+++ b/sys/dev/ic/rt2560.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2560.c,v 1.8 2006/01/13 21:06:09 damien Exp $ */
+/* $OpenBSD: rt2560.c,v 1.9 2006/01/14 08:50:38 jsg Exp $ */
/*-
* Copyright (c) 2005, 2006
@@ -1344,7 +1344,7 @@ rt2560_decryption_intr(struct rt2560_softc *sc)
M_DUP_PKTHDR(&mb, m);
mb.m_data = (caddr_t)tap;
- mb.m_len = sc->sc_txtap_len;
+ mb.m_len = sc->sc_rxtap_len;
mb.m_next = m;
mb.m_pkthdr.len += mb.m_len;
bpf_mtap(sc->sc_drvbpf, &mb);
diff --git a/sys/dev/ic/rt2661.c b/sys/dev/ic/rt2661.c
index 3f49c16c96e..6db0f3e608d 100644
--- a/sys/dev/ic/rt2661.c
+++ b/sys/dev/ic/rt2661.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2661.c,v 1.6 2006/01/13 21:09:49 damien Exp $ */
+/* $OpenBSD: rt2661.c,v 1.7 2006/01/14 08:50:38 jsg Exp $ */
/*-
* Copyright (c) 2006
@@ -1240,7 +1240,7 @@ rt2661_rx_intr(struct rt2661_softc *sc)
M_DUP_PKTHDR(&mb, m);
mb.m_data = (caddr_t)tap;
- mb.m_len = sc->sc_txtap_len;
+ mb.m_len = sc->sc_rxtap_len;
mb.m_next = m;
mb.m_pkthdr.len += mb.m_len;
bpf_mtap(sc->sc_drvbpf, &mb);