linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rt2x00: Fix radio LED type check
@ 2009-01-02  8:05 Andrew Price
  2009-01-02 11:14 ` Ivo Van Doorn
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Price @ 2009-01-02  8:05 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless

Since commit 9a95dba32735534bda59def40c747bf606fedf05 "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>
---
 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);
 }
 
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-01-08 19:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-02  8:05 [PATCH] rt2x00: Fix radio LED type check Andrew Price
2009-01-02 11:14 ` Ivo Van Doorn
2009-01-02 14:10   ` Marcel Holtmann
2009-01-02 14:21     ` Ivo van Doorn
2009-01-08 18:10   ` Andrew Price
2009-01-08 18:49     ` Ivo van Doorn
2009-01-08 18:50     ` John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).