diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2400pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2400pci.c | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index 5b3adbae4820..fc162122617e 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -524,18 +524,10 @@ static void rt2400pci_enable_led(struct rt2x00_dev *rt2x00dev) | |||
524 | 524 | ||
525 | rt2x00_set_field32(®, LEDCSR_ON_PERIOD, 70); | 525 | rt2x00_set_field32(®, LEDCSR_ON_PERIOD, 70); |
526 | rt2x00_set_field32(®, LEDCSR_OFF_PERIOD, 30); | 526 | rt2x00_set_field32(®, LEDCSR_OFF_PERIOD, 30); |
527 | 527 | rt2x00_set_field32(®, LEDCSR_LINK, | |
528 | if (rt2x00dev->led_mode == LED_MODE_TXRX_ACTIVITY) { | 528 | (rt2x00dev->led_mode != LED_MODE_ASUS)); |
529 | rt2x00_set_field32(®, LEDCSR_LINK, 1); | 529 | rt2x00_set_field32(®, LEDCSR_ACTIVITY, |
530 | rt2x00_set_field32(®, LEDCSR_ACTIVITY, 0); | 530 | (rt2x00dev->led_mode != LED_MODE_TXRX_ACTIVITY)); |
531 | } else if (rt2x00dev->led_mode == LED_MODE_ASUS) { | ||
532 | rt2x00_set_field32(®, LEDCSR_LINK, 0); | ||
533 | rt2x00_set_field32(®, LEDCSR_ACTIVITY, 1); | ||
534 | } else { | ||
535 | rt2x00_set_field32(®, LEDCSR_LINK, 1); | ||
536 | rt2x00_set_field32(®, LEDCSR_ACTIVITY, 1); | ||
537 | } | ||
538 | |||
539 | rt2x00pci_register_write(rt2x00dev, LEDCSR, reg); | 531 | rt2x00pci_register_write(rt2x00dev, LEDCSR, reg); |
540 | } | 532 | } |
541 | 533 | ||
@@ -1110,12 +1102,12 @@ static void rt2400pci_kick_tx_queue(struct rt2x00_dev *rt2x00dev, | |||
1110 | } | 1102 | } |
1111 | 1103 | ||
1112 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); | 1104 | rt2x00pci_register_read(rt2x00dev, TXCSR0, ®); |
1113 | if (queue == IEEE80211_TX_QUEUE_DATA0) | 1105 | rt2x00_set_field32(®, TXCSR0_KICK_PRIO, |
1114 | rt2x00_set_field32(®, TXCSR0_KICK_PRIO, 1); | 1106 | (queue == IEEE80211_TX_QUEUE_DATA0)); |
1115 | else if (queue == IEEE80211_TX_QUEUE_DATA1) | 1107 | rt2x00_set_field32(®, TXCSR0_KICK_TX, |
1116 | rt2x00_set_field32(®, TXCSR0_KICK_TX, 1); | 1108 | (queue == IEEE80211_TX_QUEUE_DATA1)); |
1117 | else if (queue == IEEE80211_TX_QUEUE_AFTER_BEACON) | 1109 | rt2x00_set_field32(®, TXCSR0_KICK_ATIM, |
1118 | rt2x00_set_field32(®, TXCSR0_KICK_ATIM, 1); | 1110 | (queue == IEEE80211_TX_QUEUE_AFTER_BEACON)); |
1119 | rt2x00pci_register_write(rt2x00dev, TXCSR0, reg); | 1111 | rt2x00pci_register_write(rt2x00dev, TXCSR0, reg); |
1120 | } | 1112 | } |
1121 | 1113 | ||