summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorpedro <pedro@openbsd.org>2006-05-08 18:32:11 +0000
committerpedro <pedro@openbsd.org>2006-05-08 18:32:11 +0000
commit382fa57b36ebf9135061d9192feeb524a19e12e9 (patch)
treea06aef5475a1951ec6a72883bfdc2f100562a6c2 /sys/dev/ic
parentadd 'link-timeout n' seconds option to grammer, from fkr@hazardous.org (diff)
downloadwireguard-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@.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ath.c3
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;
}