diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2007-07-16 19:15:02 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2007-07-16 19:15:02 +0000 |
commit | 21dbf0f629d123d16226d8c27451d7a4a7cf9832 (patch) | |
tree | 9a1c33bb74eb10c098b9c398c9f954f60cf21776 /sys/dev/ic/re.c | |
parent | 9af1bfbdc3c2f6b97b150692dd6332f99e28798b (diff) |
The logic determining the value of rl_eewidth for the 9346 and 9356
eeproms was backwards. This resulted in a bogus MAC address being
read from the eeprom on certain cards. From FreeBSD. OK pvalchev@
Diffstat (limited to 'sys/dev/ic/re.c')
-rw-r--r-- | sys/dev/ic/re.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index b0076b89f5c..cd59c545fdf 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.73 2007/06/06 22:02:31 pvalchev Exp $ */ +/* $OpenBSD: re.c,v 1.74 2007/07/16 19:15:01 millert Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -826,10 +826,10 @@ re_attach(struct rl_softc *sc, const char *intrstr) /* Reset the adapter. */ re_reset(sc); - sc->rl_eewidth = 6; + sc->rl_eewidth = RL_9356_ADDR_LEN; re_read_eeprom(sc, (caddr_t)&re_did, 0, 1); if (re_did != 0x8129) - sc->rl_eewidth = 8; + sc->rl_eewidth = RL_9346_ADDR_LEN; /* * Get station address from the EEPROM. |