rt2x00: Fix quality/activity led handling
There was an obvious typo in LED structure initialization which caused the radio and quality/activity leds to be incorrectly initialized which resulted in the leds not being enabled. Additionally add the rt2x00led_led_activity() handler that will enable TX/RX activity leds when the radio is being enabled. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
44a9809b97
commit
61c2b682b8
@@ -1485,7 +1485,7 @@ static int rt2500pci_init_eeprom(struct rt2x00_dev *rt2x00dev)
|
||||
|
||||
if (value == LED_MODE_TXRX_ACTIVITY) {
|
||||
rt2x00dev->led_qual.rt2x00dev = rt2x00dev;
|
||||
rt2x00dev->led_radio.type = LED_TYPE_ACTIVITY;
|
||||
rt2x00dev->led_qual.type = LED_TYPE_ACTIVITY;
|
||||
rt2x00dev->led_qual.led_dev.brightness_set =
|
||||
rt2500pci_brightness_set;
|
||||
rt2x00dev->led_qual.led_dev.blink_set =
|
||||
|
Reference in New Issue
Block a user