rt2x00: Fix radio LED type check

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, January 15, 2009 - 7:03 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d1b294...
Commit:     d1b29405bd3590bc97c4d3ff2c9139ca55e56ccd
Parent:     8476a6571005f9440adda08ca4d6c69c7f4db30b
Author:     Andrew Price <andy@andrewprice.me.uk>
AuthorDate: Fri Jan 2 08:05:27 2009 +0000
Committer:  John W. Linville <linville@tuxdriver.com>
CommitDate: Mon Jan 12 14:24:49 2009 -0500

    rt2x00: Fix radio LED type check
    
    Since "rt2x00: Fix LED state handling", rt2x00leds_led_radio wrongly
    checks that the LED type is LED_TYPE_ASSOC. This patch makes it check
    for LED_TYPE_RADIO once again.
    
    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>
---
 drivers/net/wireless/rt2x00/rt2x00leds.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/rt2x00/rt2x00leds.c b/drivers/net/wireless/rt2x00/rt2x00leds.c
index 68f4e0f..a0cd35b 100644
--- a/drivers/net/wireless/rt2x00/rt2x00leds.c
+++ b/drivers/net/wireless/rt2x00/rt2x00leds.c
@@ -97,7 +97,7 @@ void rt2x00leds_led_assoc(struct rt2x00_dev *rt2x00dev, bool enabled)
 
 void rt2x00leds_led_radio(struct rt2x00_dev *rt2x00dev, bool enabled)
 {
-	if (rt2x00dev->led_radio.type == LED_TYPE_ASSOC)
+	if (rt2x00dev->led_radio.type == LED_TYPE_RADIO)
 		rt2x00led_led_simple(&rt2x00dev->led_radio, enabled);
 }
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
rt2x00: Fix radio LED type check, Linux Kernel Mailing ..., (Thu Jan 15, 7:03 pm)