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
@@ -185,6 +185,7 @@ static inline void rt2x00rfkill_resume(struct rt2x00_dev *rt2x00dev)
|
||||
*/
|
||||
#ifdef CONFIG_RT2X00_LIB_LEDS
|
||||
void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev, int rssi);
|
||||
void rt2x00led_led_activity(struct rt2x00_dev *rt2x00dev, bool enabled);
|
||||
void rt2x00leds_led_assoc(struct rt2x00_dev *rt2x00dev, bool enabled);
|
||||
void rt2x00leds_led_radio(struct rt2x00_dev *rt2x00dev, bool enabled);
|
||||
void rt2x00leds_register(struct rt2x00_dev *rt2x00dev);
|
||||
@@ -197,6 +198,11 @@ static inline void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev,
|
||||
{
|
||||
}
|
||||
|
||||
static inline void rt2x00led_led_activity(struct rt2x00_dev *rt2x00dev,
|
||||
bool enabled)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void rt2x00leds_led_assoc(struct rt2x00_dev *rt2x00dev,
|
||||
bool enabled)
|
||||
{
|
||||
|
Reference in New Issue
Block a user