summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_run.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2009-06-17 16:04:30 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2009-06-17 16:04:30 +0000
commitae85d06989c3c75f2c405176f399418aaff553b4 (patch)
tree864dab6e35e07840c33ccbe29f633dd4b8a4359d /sys/dev/usb/if_run.c
parent3d6ef233ef24e57be4aab741699e91ab79d9eeb4 (diff)
fix endianness issue on BE.
Diffstat (limited to 'sys/dev/usb/if_run.c')
-rw-r--r--sys/dev/usb/if_run.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_run.c b/sys/dev/usb/if_run.c
index 0e2d367cedd..b4612ea6b96 100644
--- a/sys/dev/usb/if_run.c
+++ b/sys/dev/usb/if_run.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_run.c,v 1.28 2009/06/04 19:04:25 damien Exp $ */
+/* $OpenBSD: if_run.c,v 1.29 2009/06/17 16:04:29 damien Exp $ */
/*-
* Copyright (c) 2008,2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -1791,7 +1791,7 @@ run_rx_frame(struct run_softc *sc, uint8_t *buf, int dmalen)
rxi.rxi_flags |= IEEE80211_RXI_HWDEC;
}
- if (rxd->flags & RT2860_RX_L2PAD) {
+ if (flags & RT2860_RX_L2PAD) {
u_int hdrlen = ieee80211_get_hdrlen(wh);
ovbcopy(wh, (caddr_t)wh + 2, hdrlen);
wh = (struct ieee80211_frame *)((caddr_t)wh + 2);