diff options
author | 2014-03-25 07:26:50 +0000 | |
---|---|---|
committer | 2014-03-25 07:26:50 +0000 | |
commit | a01cfbd6d393ea15525c938ce9084b2ba3fecffb (patch) | |
tree | 836dd5d91bb1c45f6eb272f593b3990e28e23710 | |
parent | rework qle_put_cmd to use hto[lb]emXX as best it can. (diff) | |
download | wireguard-openbsd-a01cfbd6d393ea15525c938ce9084b2ba3fecffb.tar.xz wireguard-openbsd-a01cfbd6d393ea15525c938ce9084b2ba3fecffb.zip |
when reading from the chip you use letoh32, not htole32.
jmatthew@ agrees with me
-rw-r--r-- | sys/dev/ic/mpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index 476f5054dbf..6b5c6dedf34 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.188 2014/03/24 04:26:58 dlg Exp $ */ +/* $OpenBSD: mpi.c,v 1.189 2014/03/25 07:26:50 dlg Exp $ */ /* * Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org> @@ -2503,7 +2503,7 @@ mpi_fc_rescan(void *xsc, void *xarg) pg.current_bus == 0) setbit(devmap, pg.current_target_id); - id = htole32(pg.port_id); + id = letoh32(pg.port_id); } while (id <= 0xff0000); for (i = 0; i < sc->sc_buswidth; i++) { |