diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 60f729044427..4f8e388700c0 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -517,18 +517,10 @@ static void rt2500usb_enable_led(struct rt2x00_dev *rt2x00dev) | |||
517 | rt2500usb_register_write(rt2x00dev, MAC_CSR21, reg); | 517 | rt2500usb_register_write(rt2x00dev, MAC_CSR21, reg); |
518 | 518 | ||
519 | rt2500usb_register_read(rt2x00dev, MAC_CSR20, ®); | 519 | rt2500usb_register_read(rt2x00dev, MAC_CSR20, ®); |
520 | 520 | rt2x00_set_field16(®, MAC_CSR20_LINK, | |
521 | if (rt2x00dev->led_mode == LED_MODE_TXRX_ACTIVITY) { | 521 | (rt2x00dev->led_mode != LED_MODE_ASUS)); |
522 | rt2x00_set_field16(®, MAC_CSR20_LINK, 1); | 522 | rt2x00_set_field16(®, MAC_CSR20_ACTIVITY, |
523 | rt2x00_set_field16(®, MAC_CSR20_ACTIVITY, 0); | 523 | (rt2x00dev->led_mode != LED_MODE_TXRX_ACTIVITY)); |
524 | } else if (rt2x00dev->led_mode == LED_MODE_ASUS) { | ||
525 | rt2x00_set_field16(®, MAC_CSR20_LINK, 0); | ||
526 | rt2x00_set_field16(®, MAC_CSR20_ACTIVITY, 1); | ||
527 | } else { | ||
528 | rt2x00_set_field16(®, MAC_CSR20_LINK, 1); | ||
529 | rt2x00_set_field16(®, MAC_CSR20_ACTIVITY, 1); | ||
530 | } | ||
531 | |||
532 | rt2500usb_register_write(rt2x00dev, MAC_CSR20, reg); | 524 | rt2500usb_register_write(rt2x00dev, MAC_CSR20, reg); |
533 | } | 525 | } |
534 | 526 | ||
@@ -765,9 +757,11 @@ static int rt2500usb_init_registers(struct rt2x00_dev *rt2x00dev) | |||
765 | 757 | ||
766 | if (rt2x00_rev(&rt2x00dev->chip) >= RT2570_VERSION_C) { | 758 | if (rt2x00_rev(&rt2x00dev->chip) >= RT2570_VERSION_C) { |
767 | rt2500usb_register_read(rt2x00dev, PHY_CSR2, ®); | 759 | rt2500usb_register_read(rt2x00dev, PHY_CSR2, ®); |
768 | reg &= ~0x0002; | 760 | rt2x00_set_field16(®, PHY_CSR2_LNA, 0); |
769 | } else { | 761 | } else { |
770 | reg = 0x3002; | 762 | reg = 0; |
763 | rt2x00_set_field16(®, PHY_CSR2_LNA, 1); | ||
764 | rt2x00_set_field16(®, PHY_CSR2_LNA_MODE, 3); | ||
771 | } | 765 | } |
772 | rt2500usb_register_write(rt2x00dev, PHY_CSR2, reg); | 766 | rt2500usb_register_write(rt2x00dev, PHY_CSR2, reg); |
773 | 767 | ||