diff options
author | 2002-06-22 16:14:14 +0000 | |
---|---|---|
committer | 2002-06-22 16:14:14 +0000 | |
commit | 6ba825d32616f3a3cd7bec1b2bcfd2cb35005bb2 (patch) | |
tree | 0f9fd4394dbfb6ef4dc39f172054c01a6faeeaa2 | |
parent | Add ${PIPE} to CFLAGS (diff) | |
download | wireguard-openbsd-6ba825d32616f3a3cd7bec1b2bcfd2cb35005bb2.tar.xz wireguard-openbsd-6ba825d32616f3a3cd7bec1b2bcfd2cb35005bb2.zip |
use 8-bits when accessing the wi_cor_offset; millert@ ok.
-rw-r--r-- | sys/dev/ic/if_wi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c index 7832ea5bb65..96a0dca5091 100644 --- a/sys/dev/ic/if_wi.c +++ b/sys/dev/ic/if_wi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi.c,v 1.71 2002/06/21 20:15:37 millert Exp $ */ +/* $OpenBSD: if_wi.c,v 1.72 2002/06/22 16:14:14 fgsch Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -124,7 +124,7 @@ u_int32_t widebug = WIDEBUG; #if !defined(lint) && !defined(__OpenBSD__) static const char rcsid[] = - "$OpenBSD: if_wi.c,v 1.71 2002/06/21 20:15:37 millert Exp $"; + "$OpenBSD: if_wi.c,v 1.72 2002/06/22 16:14:14 fgsch Exp $"; #endif /* lint */ #ifdef foo @@ -908,7 +908,7 @@ wi_cor_reset(sc) * we only soft reset Symbol cards for now. */ if (sc->sc_firmware_type == WI_SYMBOL) { - cor_value = bus_space_read_2(sc->wi_ltag, sc->wi_lhandle, + cor_value = bus_space_read_1(sc->wi_ltag, sc->wi_lhandle, sc->wi_cor_offset); bus_space_write_1(sc->wi_ltag, sc->wi_lhandle, sc->wi_cor_offset, (cor_value | WI_COR_SOFT_RESET)); |