Bug 12841
Summary: | Wifi LED not working with ath5k on AR242x device | ||
---|---|---|---|
Product: | Networking | Reporter: | Martin Bammer (mrb74) |
Component: | Wireless | Assignee: | Bob Copeland (me) |
Status: | RESOLVED CODE_FIX | ||
Severity: | enhancement | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.27.18 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
Patch to add support for wifi led
led patch v2 |
Description
Martin Bammer
2009-03-08 04:28:46 UTC
Created attachment 20453 [details]
Patch to add support for wifi led
Thanks for the report - but it needs to be based on your subsystem id instead. I can prep a patch based on the LED rework in wireless-testing. subsystem_vendor=0x1a3b subsystem_device=0x1026 Created attachment 20578 [details]
led patch v2
Ok this is on top of wireless-testing. Can you check to see if led_on = 1 is correct or if it should be 0? All the other netbooks use 0. One way to tell is to echo 0 or 1 directly into the files under /sys/class/leds/ (you can turn off the triggers ahead of time by echoing 'none' into the trigger files).
led_on=0 also works, but the advantage of led_on=1 is that I can see if the driver is up and running. It's then like the status of the leds at the ethernet connectors => When a cable is connected the led is on. In the case of traffic the led is shortly turned off. Understood - but from that I gather that led_on=0 is "right" even if it is wrong :) Otherwise once we fix the blink stuff then you will see everything backwards, and things like s2ram that try to turn the led off before suspend will do the wrong thing (not that it'll likely matter). One way to get a similar effect is to put something like this in your init scripts: echo radio > /sys/class/leds/ath5k::tx/trigger Then it should stay on until you do RX at which point it will start toggling the LED. (NB I don't know the exact path name at the moment since my laptop has no LEDs, but hopefully that gives you the idea.) Fix for this went into wireless-testing git tree for 2.6.31, commit id: 287ccaf0cb4da5dae078ec5cc204c9b1634d1677 |