diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2005-03-17 11:04:31 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2005-03-17 11:04:31 +0000 |
commit | 57f267103cb3eb9a0e88a21e854653cda2d9e529 (patch) | |
tree | c757d993ef7eda58351b4930a14a7e4f42f5e08c /sys/dev | |
parent | e14c29a80586f714f2b0f19ff0ecac7a299a345b (diff) |
fix for big endian archs
ok damien@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/if_ral.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c index 00f4e257a53..ff46e84dfa2 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.3 2005/03/17 09:01:43 damien Exp $ */ +/* $OpenBSD: if_ral.c,v 1.4 2005/03/17 11:04:30 dlg Exp $ */ /*- * Copyright (c) 2005 @@ -1723,6 +1723,7 @@ ural_read_eeprom(struct ural_softc *sc) uint16_t val; ural_eeprom_read(sc, RAL_EEPROM_CONFIG0, &val, 2); + val = letoh16(val); sc->rf_rev = (val >> 11) & 0x7; sc->hw_radio = (val >> 10) & 0x1; sc->led_mode = (val >> 6) & 0x7; |