diff options
author | 2006-11-06 08:48:49 +0000 | |
---|---|---|
committer | 2006-11-06 08:48:49 +0000 | |
commit | 347bfc5f3823ade110d385104be7bab559fc92bf (patch) | |
tree | a03a7f630c4555e917530017a2bcf88ef6b67dc0 /sys/dev/ic/ath.c | |
parent | add a note that there a tons of BUGS in VMware and the underlying host (diff) | |
download | wireguard-openbsd-347bfc5f3823ade110d385104be7bab559fc92bf.tar.xz wireguard-openbsd-347bfc5f3823ade110d385104be7bab559fc92bf.zip |
figured out by tdeval@:
>During factorization in 1.57, the switch block was moved too early.
>Hence it's updating an uninitialized ah structure.
Diffstat (limited to 'sys/dev/ic/ath.c')
-rw-r--r-- | sys/dev/ic/ath.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c index 265e30b2f35..be126db4c65 100644 --- a/sys/dev/ic/ath.c +++ b/sys/dev/ic/ath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ath.c,v 1.58 2006/10/19 10:55:56 tom Exp $ */ +/* $OpenBSD: ath.c,v 1.59 2006/11/06 08:48:49 reyk Exp $ */ /* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */ /*- @@ -221,23 +221,6 @@ ath_attach(u_int16_t devid, struct ath_softc *sc) bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ); sc->sc_flags &= ~ATH_ATTACHED; /* make sure that it's not attached */ - switch (devid) { - case PCI_PRODUCT_ATHEROS_AR2413: - case PCI_PRODUCT_ATHEROS_AR5413: - case PCI_PRODUCT_ATHEROS_AR5424: - /* - * Known single chip solutions - */ - ah->ah_single_chip = AH_TRUE; - break; - default: - /* - * Multi chip solutions - */ - ah->ah_single_chip = AH_FALSE; - break; - } - ah = ath_hal_attach(devid, sc, sc->sc_st, sc->sc_sh, &status); if (ah == NULL) { printf("%s: unable to attach hardware; HAL status %d\n", |