summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-06-02 03:18:55 +0000
committersam <sam@FreeBSD.org>2005-06-02 03:18:55 +0000
commitf881572c38f379b576078f99b85171fdcb3ef5f0 (patch)
tree189005d44a3a2e7963b955f5f2f280fde8f45bc5
parentbb0683448edc2a4b6cb58dff4f8f7a1a8b8acd99 (diff)
downloadFreeBSD-src-f881572c38f379b576078f99b85171fdcb3ef5f0.zip
FreeBSD-src-f881572c38f379b576078f99b85171fdcb3ef5f0.tar.gz
restore led state on resume
Submitted by: markus
-rw-r--r--sys/dev/ath/if_ath.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index f655300..90fd55e 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -649,6 +649,10 @@ ath_resume(struct ath_softc *sc)
if (ifp->if_flags & IFF_RUNNING)
ath_start(ifp);
}
+ if (sc->sc_softled) {
+ ath_hal_gpioCfgOutput(sc->sc_ah, sc->sc_ledpin);
+ ath_hal_gpioset(sc->sc_ah, sc->sc_ledpin, !sc->sc_ledon);
+ }
}
void
OpenPOWER on IntegriCloud