summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2005-08-28 02:53:50 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2005-08-28 02:53:50 +0000
commit99ec734f9db9c18b5b313a35757d0ce78ce6b02a (patch)
tree71a735364c3fe6720f614717492d421695810726 /sys/dev/usb
parent3a2b01fcd41da8f9cea81e6818ea2033afea3608 (diff)
Write back IPG values in a manner more likely to work.
ok dlg@ deraadt@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/if_axe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c
index 8252a23068a..6ab2090afc3 100644
--- a/sys/dev/usb/if_axe.c
+++ b/sys/dev/usb/if_axe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_axe.c,v 1.35 2005/08/28 02:51:05 jsg Exp $ */
+/* $OpenBSD: if_axe.c,v 1.36 2005/08/28 02:53:49 jsg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000-2003
@@ -1211,8 +1211,8 @@ axe_init(void *xsc)
/* Set transmitter IPG values */
if (sc->axe_flags & AX178)
axe_cmd(sc, AXE_178_CMD_WRITE_IPG012, 0,
- (sc->axe_ipgs[0] << 2) | (sc->axe_ipgs[1] << 1) |
- (sc->axe_ipgs[2]), NULL);
+ (sc->axe_ipgs[0]) | (sc->axe_ipgs[1] << 8) |
+ (sc->axe_ipgs[2] << 16), NULL);
else {
axe_cmd(sc, AXE_172_CMD_WRITE_IPG0, 0, sc->axe_ipgs[0], NULL);
axe_cmd(sc, AXE_172_CMD_WRITE_IPG1, 0, sc->axe_ipgs[1], NULL);