Thanks Pavel for your reply.
What is option sysfs means? Is it the path to /sys/class/leds/?
I have the following led defined and you can see all entries there:
>>ls /sys/class/leds/wifired
brightness device max_brightness subsystem trigger
uevent
what should I put in sysfs for this LED?
Here is the content of trigger for this LED. I am wonder if it is correct.
>>cat /sys/class/leds/wifired/trigger
[none] nand-disk mmc0 timer oneshot heartbeat backlight gpio cpu0 default-on
transient
Thanks again.
Farid
On Monday, March 2, 2015 8:56 AM, Pavel Volkov <[email protected]>
wrote:
On Wednesday, February 18, 2015 11:13:01 PM MSK, Farid Farid wrote:
> Hi Everyone,
> I have a question about LED pattern for WIFI. I am using
> Openwrt Barrier Breaker - kernel 3-10-xx
> Is there anyway to tie a GPIO' Led to hostapd or wpa_supplicant
> in order to have proper LED pattern for WIFI?Do these utility
> drive any GPIO ?
> I am using hostapd-20130807
> And another question :
> I know there is LED support in Kernel ( kmod-leds) . In my
> system I do have all LEDs defined in /sys/class/gpio/gpioxx/
> How can I map kernel LED driver on my LED lines?
For my router I've put this into /etc/config/system:
config led wlan_led
option name 'WLAN'
option sysfs 'bcm47xx:blue:wlan'
option trigger 'netdev'
option dev 'wlan0'
option mode 'link tx rx'
You should replace with your LED's name from /sys.
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users