Opened 3 years ago

Last modified 10 months ago

#14455 new defect

TD-W8970 ath9k WiFi LED not working

Reported by: fld@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: td-w8970, tdw8970, ath9k, gpio, led Cc:


root@OpenWrt:~# ls /sys/class/leds/
adsl/        ath9k-phy0/  internet/    usb/         usb2/        wps/

root@OpenWrt:~# ls /sys/class/leds/ath9k-phy0/
brightness      max_brightness  trigger

root@OpenWrt:~# cat /sys/class/leds/ath9k-phy0/trigger
[none] nand-disk timer heartbeat default-on netdev usbdev phy0rx phy0tx phy0assoc phy0radio phy0tpt

root@OpenWrt:~# echo 1 > /sys/class/leds/ath9k-phy0/brightness

And the LED does not light up.

Attachments (0)

Change History (5)

comment:1 Changed 3 years ago by anonymous

Try to first enable the LED. It's trigger is 'none', meaning completely off.

echo default-on > /sys/class/leds/ath9k-phy0/trigger


echo phy0tpt > /sys/class/leds/ath9k-phy0/trigger

Also, the brightness value goes from 0 to 255. A value of 1 might not be visible easily.

Finally, this question was probably better asked on the forums, as this is not a bug.

comment:2 Changed 3 years ago by lpm11

Enter these commands:

echo 1>/sys/kernel/debug/ieee80211/phy0/ath9k/gpio_mask
echo 1>/sys/kernel/debug/ieee80211/phy0/ath9k/gpio_val

Bring up wireless interface (ifconfig wlan0 up), and the led turns on!
I don't know how to use it, it doesn't flash. It only lights.

comment:3 Changed 2 years ago by anonymous

You should close this ticket - LED is inverted, but it works OK

comment:4 Changed 21 months ago by anonymous

LED is inverted, yes.

The LED does not work by default as in /etc/uci-defaults/01_leds there is no default for the board of the W8970.

comment:5 Changed 10 months ago by VittGam

I've fixed the LED inversion in r47909, r47910, r47911 and r47913.

Also with the latest trunk an entry for the phy0tpt LED trigger is automatically created in the newer 01_leds.

So this ticket can be finally closed.

Last edited 10 months ago by VittGam (previous) (diff)

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.