diff options
author | 2006-05-08 18:32:11 +0000 | |
---|---|---|
committer | 2006-05-08 18:32:11 +0000 | |
commit | 382fa57b36ebf9135061d9192feeb524a19e12e9 (patch) | |
tree | a06aef5475a1951ec6a72883bfdc2f100562a6c2 | |
parent | add 'link-timeout n' seconds option to grammer, from fkr@hazardous.org (diff) | |
download | wireguard-openbsd-382fa57b36ebf9135061d9192feeb524a19e12e9.tar.xz wireguard-openbsd-382fa57b36ebf9135061d9192feeb524a19e12e9.zip |
Make ath_attach() return error if the RF is unsupported so the PCI code
can disable its shutdown hooks, otherwise we will panic upon halt.
Okay jsg@ and brad@.
-rw-r--r-- | sys/dev/ic/ath.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c index bb5071f3273..bb1f4090432 100644 --- a/sys/dev/ic/ath.c +++ b/sys/dev/ic/ath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ath.c,v 1.48 2006/04/20 20:29:56 miod Exp $ */ +/* $OpenBSD: ath.c,v 1.49 2006/05/08 18:32:11 pedro Exp $ */ /* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */ /*- @@ -255,6 +255,7 @@ ath_attach(u_int16_t devid, struct ath_softc *sc) if (ah->ah_radio_5ghz_revision >= AR5K_SREV_RAD_UNSUPP || ah->ah_radio_2ghz_revision >= AR5K_SREV_RAD_UNSUPP) { printf(": RF radio not supported\n"); + error = EOPNOTSUPP; goto bad; } |