Search Linux Wireless

[PATCH] Fix transmit LED on Acer Aspire One

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've seen a whole heap of fixes for the Aspire One's wireless LED on
the web, but nothing in the kernel yet.

Here's my take on it.  My only worry is other machines with the same card.

Signed-off-by: Peter Chubb <peterc@xxxxxxxxxxxxxxxxxx>

---
---
 drivers/net/wireless/ath5k/base.c |    6 ++++++
 1 file changed, 6 insertions(+)

Index: linux-2.6/drivers/net/wireless/ath5k/base.c
===================================================================
--- linux-2.6.orig/drivers/net/wireless/ath5k/base.c	2009-02-18 10:26:48.000000000 +1100
+++ linux-2.6/drivers/net/wireless/ath5k/base.c	2009-02-18 14:06:06.000000000 +1100
@@ -2619,6 +2619,12 @@
 		sc->led_pin = 1;
 		sc->led_on = 1;  /* active high */
 	}
+	/* Enable softled on Acer Aspire One */
+	else if (pdev->subsystem_vendor == 0x105b && pdev->subsystem_device == 0xe008) {
+		__set_bit(ATH_STAT_LEDSOFT, sc->status);
+		sc->led_pin = 3;
+		sc->led_on = 0;
+	}
 	if (!test_bit(ATH_STAT_LEDSOFT, sc->status))
 		goto out;
 

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au           ERTOS within National ICT Australia
A university is a non-profit organisation only in the sense that it
spends everything it gets  ... Luca Turin.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux