Changeset 1355
- Timestamp:
- 12/14/05 11:04:53 (3 years ago)
- Files:
-
- trunk/ath/if_ath.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ath/if_ath.c
r1349 r1355 1814 1814 } 1815 1815 1816 if (sc->sc_softled) 1817 ath_hal_gpioCfgOutput(ah, sc->sc_ledpin); 1816 1818 /* 1817 1819 * This is needed only to setup initial state … … 1903 1905 if (sc->sc_softled) { 1904 1906 del_timer(&sc->sc_ledtimer); 1905 ath_hal_gpioset(ah, sc->sc_ledpin, 1); 1907 ath_hal_gpioset(ah, sc->sc_ledpin, !sc->sc_ledon); 1908 sc->sc_blinking=0; 1909 sc->sc_ledstate=1; 1906 1910 } 1907 1911 } … … 1914 1918 ath_beacon_free(sc); /* XXX needed? */ 1915 1919 } 1920 if (sc->sc_softled) 1921 ath_hal_gpioset(ah, sc->sc_ledpin, !sc->sc_ledon); 1922 1916 1923 return 0; 1917 1924 } … … 1989 1996 printk("%s: %s: unable to start recv logic\n", 1990 1997 dev->name, __func__); 1998 if (sc->sc_softled) 1999 ath_hal_gpioCfgOutput(ah, sc->sc_ledpin); 2000 1991 2001 /* 1992 2002 * We may be doing a reset in response to an ioctl … … 7453 7463 return EIO; 7454 7464 } 7465 7466 if (sc->sc_softled) 7467 ath_hal_gpioCfgOutput(ah, sc->sc_ledpin); 7468 7455 7469 sc->sc_curchan = hchan; 7456 7470 ath_update_txpow(sc); /* update tx power state */ … … 8965 8979 if (val != sc->sc_softled) { 8966 8980 if (val) 8967 ath_hal_gpioCfgOutput(ah, 8968 sc->sc_ledpin); 8969 ath_hal_gpioset(ah, sc->sc_ledpin,!val); 8981 ath_hal_gpioCfgOutput(ah, sc->sc_ledpin); 8982 ath_hal_gpioset(ah, sc->sc_ledpin,!sc->sc_ledon); 8970 8983 sc->sc_softled = val; 8971 8984 }
