ath updates - AR5416 (and later) LED fixes

Adrian Chadd adrian at freebsd.org
Fri Dec 23 09:57:31 UTC 2011


Hi,

I've found some issues with the LED code in the HAL.

The short version: we're not programming the LED pins right.

The long version:

* The GPIO multiplexer wasn't being programmed correctly;
* The values being written into AR_MAC_LED (which control what the MAC
network state and power LEDs are doing) were wrong;
* We're not programming both LEDs - I think we're just programming the
network LED.

I've fixed things up so the Link LED on my D-Link AR5416 NIC works. I
bet that other 11n NICs now work (if they have LEDs, or the LEDs are
wired to the board.) I unfortunately don't have anything to test
though.
No wait, I lie - the onboard AR9280 in this IBM thinkpad has GPIO 1
wired into the wireless lan LED, and that's now happily blinking away
when I flip on the right softled configuration.

So maybe we'll finally have working wireless LAN LED blinking for the
11n NICs. :)

Ok, so if someone would like a bit of a mini-project, I can give you
all the relevant documentation and braindump what I've managed to
figure out re: LED handling. It's going to be a bit messy as there's a
whole load of potential ways that the LEDs can be configured but I
think it's worthwhile to get right. Especially if you'd like an
introductory project.



Adrian


More information about the freebsd-wireless mailing list