svn commit: r228892 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Mon Dec 26 07:48:30 UTC 2011


Author: adrian
Date: Mon Dec 26 07:48:29 2011
New Revision: 228892
URL: http://svn.freebsd.org/changeset/base/228892

Log:
  Since the only thing with a mux is the AR5416 and later, and we're now
  doing split software/hardware LED configuration, we can now simply
  treat "softled" as an "output" mux type.
  
  This works fine on this DWA-552. Previous generation (pre-11n NICs) don't
  have a GPIO mux - only input/output configuration - so they ignore this
  field.

Modified:
  head/sys/dev/ath/if_ath_led.c

Modified: head/sys/dev/ath/if_ath_led.c
==============================================================================
--- head/sys/dev/ath/if_ath_led.c	Mon Dec 26 07:47:05 2011	(r228891)
+++ head/sys/dev/ath/if_ath_led.c	Mon Dec 26 07:48:29 2011	(r228892)
@@ -125,7 +125,7 @@ ath_led_config(struct ath_softc *sc)
 	/* Software LED blinking - GPIO controlled LED */
 	if (sc->sc_softled) {
 		ath_hal_gpioCfgOutput(sc->sc_ah, sc->sc_ledpin,
-		    HAL_GPIO_MUX_MAC_NETWORK_LED);
+		    HAL_GPIO_MUX_OUTPUT);
 		ath_hal_gpioset(sc->sc_ah, sc->sc_ledpin, !sc->sc_ledon);
 	}
 


More information about the svn-src-all mailing list