WLAN and WAN LED are not working

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
jenom
Posts: 48
Joined: Wed Jul 06, 2011 1:38 pm
Location: Canada

WLAN and WAN LED are not working

Post by jenom »

Have Gargoyle-1.5.10 installed on a D-Link DIR-615 v.C1
Neither the WAN (internet or WLAN (wifi activity) LED lights are working.
After reading open-wrt-wiki-led pages, this is where I am :

So far verified that Gargoyle has in /sys/class/leds

d-link:blue:wps d-link:green:wan
d-link:green:wlan d-d-link:orange:wan d-d-link:green:status d-d-link:green:wancpu d-d-link:orange:status

Than I have verified from their 'trigger' files that available "trigger" options are same for all of them:

[none] switch0 default-on timer phy0rx phy0tx phy0assoc phy0radio
phy0tpt netdev usbdev

Based on an example mentioned, I added a following extra script into /etc/config/system file to make WLAN LED work:

config 'led' 'wlan_led'
option 'name' 'WLAN'
option 'sysfs' 'd-link:green:wlan'
option 'trigger' 'netdev'
option 'dev' 'wlan0'
option 'mode' 'link tx rx'

Unfortunately, did not worked, WLAN LED remains off all the time !
I would appreciate any suggestion to solve this problem.
Thanks!

jenom
Posts: 48
Joined: Wed Jul 06, 2011 1:38 pm
Location: Canada

Re: WLAN and WAN LED are not working

Post by jenom »

meanwhile I have installed Open-Wrt Attitude Adjustment 12.09-RC1 to see how the LEDs work there.
In it's GUI called LUCI, there a menu item called "LED CONFIGURATION"
After a little trial & error experimentation, this is what Open-Wrt added for WLAN setup to /etc/config/system

config led
option name 'wlan'
option sysfs 'd-link:green:wlan'
option trigger 'netdev'
option dev 'wlan0'
option mode 'tx rx'
option default '1'

This setting worked fine also in Gargoyle, and it makes the green WLAN light is blinking during wifi transmit or receive.

Still not sure about the setup of the WAN LED, the best config was as shown below, but WAN LED will not turn off when cable unplugged from WAN port.

config led
option name 'wan'
option sysfs 'd-link:green:wan'
option default '1'
option trigger 'netdev'
option dev 'br-wan'
option mode 'link'

Hope, this will also help someone who is missing the WAN and WLAN LED light on a DIR-615 or TEW-632/652

Post Reply