summaryrefslogtreecommitdiff
path: root/sys/dev/ic/athn.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/athn.c')
-rw-r--r--sys/dev/ic/athn.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/ic/athn.c b/sys/dev/ic/athn.c
index dd6b17ed3b7..aaa1ee14890 100644
--- a/sys/dev/ic/athn.c
+++ b/sys/dev/ic/athn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: athn.c,v 1.31 2010/04/05 19:09:00 damien Exp $ */
+/* $OpenBSD: athn.c,v 1.32 2010/04/07 16:19:33 damien Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -242,9 +242,6 @@ athn_attach(struct athn_softc *sc)
}
base = sc->eep;
- /* We can put the chip in sleep state now. */
- athn_set_power_sleep(sc);
-
eep_ver = (base->version >> 12) & 0xf;
sc->eep_rev = (base->version & 0xfff);
if (eep_ver != AR_EEP_VER || sc->eep_rev == 0) {
@@ -252,9 +249,11 @@ athn_attach(struct athn_softc *sc)
sc->eep_rev);
return (EINVAL);
}
-
sc->ops.setup(sc);
+ /* We can put the chip in sleep state now. */
+ athn_set_power_sleep(sc);
+
IEEE80211_ADDR_COPY(ic->ic_myaddr, base->macAddr);
printf(", address %s\n", ether_sprintf(ic->ic_myaddr));