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>
This commit is contained in:
Родитель
5e79002362
Коммит
3d3e451ff7
|
@ -1395,7 +1395,9 @@ static int rt2400pci_init_eeprom(struct rt2x00_dev *rt2x00dev)
|
|||
value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE);
|
||||
|
||||
rt2400pci_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO);
|
||||
if (value == LED_MODE_TXRX_ACTIVITY || value == LED_MODE_DEFAULT)
|
||||
if (value == LED_MODE_TXRX_ACTIVITY ||
|
||||
value == LED_MODE_DEFAULT ||
|
||||
value == LED_MODE_ASUS)
|
||||
rt2400pci_init_led(rt2x00dev, &rt2x00dev->led_qual,
|
||||
LED_TYPE_ACTIVITY);
|
||||
#endif /* CONFIG_RT2X00_LIB_LEDS */
|
||||
|
|
|
@ -1552,7 +1552,9 @@ static int rt2500pci_init_eeprom(struct rt2x00_dev *rt2x00dev)
|
|||
value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE);
|
||||
|
||||
rt2500pci_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO);
|
||||
if (value == LED_MODE_TXRX_ACTIVITY || value == LED_MODE_DEFAULT)
|
||||
if (value == LED_MODE_TXRX_ACTIVITY ||
|
||||
value == LED_MODE_DEFAULT ||
|
||||
value == LED_MODE_ASUS)
|
||||
rt2500pci_init_led(rt2x00dev, &rt2x00dev->led_qual,
|
||||
LED_TYPE_ACTIVITY);
|
||||
#endif /* CONFIG_RT2X00_LIB_LEDS */
|
||||
|
|
|
@ -1603,7 +1603,9 @@ static int rt2500usb_init_eeprom(struct rt2x00_dev *rt2x00dev)
|
|||
value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE);
|
||||
|
||||
rt2500usb_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO);
|
||||
if (value == LED_MODE_TXRX_ACTIVITY || value == LED_MODE_DEFAULT)
|
||||
if (value == LED_MODE_TXRX_ACTIVITY ||
|
||||
value == LED_MODE_DEFAULT ||
|
||||
value == LED_MODE_ASUS)
|
||||
rt2500usb_init_led(rt2x00dev, &rt2x00dev->led_qual,
|
||||
LED_TYPE_ACTIVITY);
|
||||
#endif /* CONFIG_RT2X00_LIB_LEDS */
|
||||
|
|
Загрузка…
Ссылка в новой задаче