diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2009-01-17 14:44:08 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:00:46 -0500 |
commit | 3d3e451ff71b4e951d4b522b460a94f36fb5b276 (patch) | |
tree | 868f440cb07d672d6268e397ceb47257a4718f33 /drivers/net/wireless/rt2x00/rt2500pci.c | |
parent | 5e790023620ee02486fd64c7e5a6115ce004495d (diff) |
rt2x00: Add LED_MODE_ASUS support
When the led mode is asus, the activity led mode must
be registered otherwise the second LED will not be enabled.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index d2b36b1e9290..b9104e28bc2e 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -1552,7 +1552,9 @@ static int rt2500pci_init_eeprom(struct rt2x00_dev *rt2x00dev) | |||
1552 | value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE); | 1552 | value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE); |
1553 | 1553 | ||
1554 | rt2500pci_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO); | 1554 | rt2500pci_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO); |
1555 | if (value == LED_MODE_TXRX_ACTIVITY || value == LED_MODE_DEFAULT) | 1555 | if (value == LED_MODE_TXRX_ACTIVITY || |
1556 | value == LED_MODE_DEFAULT || | ||
1557 | value == LED_MODE_ASUS) | ||
1556 | rt2500pci_init_led(rt2x00dev, &rt2x00dev->led_qual, | 1558 | rt2500pci_init_led(rt2x00dev, &rt2x00dev->led_qual, |
1557 | LED_TYPE_ACTIVITY); | 1559 | LED_TYPE_ACTIVITY); |
1558 | #endif /* CONFIG_RT2X00_LIB_LEDS */ | 1560 | #endif /* CONFIG_RT2X00_LIB_LEDS */ |