From b50c8bde9980e3186301e2fc5f376fcd2eabca24 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Thu, 2 Jun 2005 03:18:55 +0000 Subject: [PATCH] restore led state on resume Submitted by: markus --- sys/dev/ath/if_ath.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index f6553006492..90fd55e3785 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