diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2009-12-30 11:36:33 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-05 16:17:51 -0500 |
commit | 301a8234ea81938f0f083ae4e274d9c9296f3c86 (patch) | |
tree | 7d8576b70dfb0590a928d4837912c30349a6bcd3 | |
parent | b59a52f12e483b79e7d32da7ec30dcf3b2e0210b (diff) | |
download | linux-3.10-301a8234ea81938f0f083ae4e274d9c9296f3c86.tar.gz linux-3.10-301a8234ea81938f0f083ae4e274d9c9296f3c86.tar.bz2 linux-3.10-301a8234ea81938f0f083ae4e274d9c9296f3c86.zip |
rt2x00: Fix LED configuration setting for rt2800.
rt2800_blink_set uses an illegal value to set the LED_CFG_G_LED_MODE
field of the LED_CFG register. This field is only 2 bits large, so
should be initialized with value that fits. Use default value from
the vendor driver.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 27bf887f145..9deae41cb78 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c @@ -340,7 +340,7 @@ static int rt2800_blink_set(struct led_classdev *led_cdev, rt2x00_set_field32(®, LED_CFG_OFF_PERIOD, *delay_off); rt2x00_set_field32(®, LED_CFG_SLOW_BLINK_PERIOD, 3); rt2x00_set_field32(®, LED_CFG_R_LED_MODE, 3); - rt2x00_set_field32(®, LED_CFG_G_LED_MODE, 12); + rt2x00_set_field32(®, LED_CFG_G_LED_MODE, 3); rt2x00_set_field32(®, LED_CFG_Y_LED_MODE, 3); rt2x00_set_field32(®, LED_CFG_LED_POLAR, 1); rt2800_register_write(led->rt2x00dev, LED_CFG, reg); |