aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrew Price <andy@andrewprice.me.uk>2009-01-10 14:38:05 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 16:00:21 -0500
commit217875a37d4db3354c4c297d07b359abbf52e5e1 (patch)
tree7a6adf9ca1ef17e79e3fc62e607c5ecbcab996a4 /drivers
parentebe6c7ba9b63539d3b1daba1a8ef4cc9ed0f6941 (diff)
rt2400,rt2500: init led_qual for LED_MODE_DEFAULT
Add a check for LED_MODE_DEFAULT so that we use the link LED for rt2400 and rt2500 devices. Signed-off-by: Andrew Price <andy@andrewprice.me.uk> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/rt2x00/rt2400pci.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt2500pci.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt2500usb.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c
index ae8bfd6b59df..76c6cb518f24 100644
--- a/drivers/net/wireless/rt2x00/rt2400pci.c
+++ b/drivers/net/wireless/rt2x00/rt2400pci.c
@@ -1395,7 +1395,7 @@ static int rt2400pci_init_eeprom(struct rt2x00_dev *rt2x00dev)
1395 value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE); 1395 value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE);
1396 1396
1397 rt2400pci_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO); 1397 rt2400pci_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO);
1398 if (value == LED_MODE_TXRX_ACTIVITY) 1398 if (value == LED_MODE_TXRX_ACTIVITY || value == LED_MODE_DEFAULT)
1399 rt2400pci_init_led(rt2x00dev, &rt2x00dev->led_qual, 1399 rt2400pci_init_led(rt2x00dev, &rt2x00dev->led_qual,
1400 LED_TYPE_ACTIVITY); 1400 LED_TYPE_ACTIVITY);
1401#endif /* CONFIG_RT2X00_LIB_LEDS */ 1401#endif /* CONFIG_RT2X00_LIB_LEDS */
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c
index bca6798be153..c1203e37a6fd 100644
--- a/drivers/net/wireless/rt2x00/rt2500pci.c
+++ b/drivers/net/wireless/rt2x00/rt2500pci.c
@@ -1552,7 +1552,7 @@ 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) 1555 if (value == LED_MODE_TXRX_ACTIVITY || value == LED_MODE_DEFAULT)
1556 rt2500pci_init_led(rt2x00dev, &rt2x00dev->led_qual, 1556 rt2500pci_init_led(rt2x00dev, &rt2x00dev->led_qual,
1557 LED_TYPE_ACTIVITY); 1557 LED_TYPE_ACTIVITY);
1558#endif /* CONFIG_RT2X00_LIB_LEDS */ 1558#endif /* CONFIG_RT2X00_LIB_LEDS */
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index 27a6971df579..67dd84ce58b0 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -1603,7 +1603,7 @@ static int rt2500usb_init_eeprom(struct rt2x00_dev *rt2x00dev)
1603 value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE); 1603 value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE);
1604 1604
1605 rt2500usb_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO); 1605 rt2500usb_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO);
1606 if (value == LED_MODE_TXRX_ACTIVITY) 1606 if (value == LED_MODE_TXRX_ACTIVITY || value == LED_MODE_DEFAULT)
1607 rt2500usb_init_led(rt2x00dev, &rt2x00dev->led_qual, 1607 rt2500usb_init_led(rt2x00dev, &rt2x00dev->led_qual,
1608 LED_TYPE_ACTIVITY); 1608 LED_TYPE_ACTIVITY);
1609#endif /* CONFIG_RT2X00_LIB_LEDS */ 1609#endif /* CONFIG_RT2X00_LIB_LEDS */