diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2010-04-23 09:54:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-26 14:21:23 -0400 |
commit | 5a673964266438784b4ebf65ee07970cde61ab5e (patch) | |
tree | 3abdc00d91cd7bf67abaeefc4229cea51e0be2d7 /drivers/net/wireless/rt2x00/rt2800lib.c | |
parent | 2caaa5d36ee210919bd0ecc7b2e6648171544e95 (diff) |
rt2x00: rt2800: use tx_power2 in rt2800_config_channel_rf3xxx
Get closer to what the ralink driver does by setting the rf register 13
to tx_power2 during channel switch.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800lib.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 867b6527a1fd..2b9be79fc77f 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -793,6 +793,11 @@ static void rt2800_config_channel_rf3xxx(struct rt2x00_dev *rt2x00dev, | |||
793 | TXPOWER_G_TO_DEV(info->tx_power1)); | 793 | TXPOWER_G_TO_DEV(info->tx_power1)); |
794 | rt2800_rfcsr_write(rt2x00dev, 12, rfcsr); | 794 | rt2800_rfcsr_write(rt2x00dev, 12, rfcsr); |
795 | 795 | ||
796 | rt2800_rfcsr_read(rt2x00dev, 13, &rfcsr); | ||
797 | rt2x00_set_field8(&rfcsr, RFCSR13_TX_POWER, | ||
798 | TXPOWER_G_TO_DEV(info->tx_power2)); | ||
799 | rt2800_rfcsr_write(rt2x00dev, 13, rfcsr); | ||
800 | |||
796 | rt2800_rfcsr_read(rt2x00dev, 23, &rfcsr); | 801 | rt2800_rfcsr_read(rt2x00dev, 23, &rfcsr); |
797 | rt2x00_set_field8(&rfcsr, RFCSR23_FREQ_OFFSET, rt2x00dev->freq_offset); | 802 | rt2x00_set_field8(&rfcsr, RFCSR23_FREQ_OFFSET, rt2x00dev->freq_offset); |
798 | rt2800_rfcsr_write(rt2x00dev, 23, rfcsr); | 803 | rt2800_rfcsr_write(rt2x00dev, 23, rfcsr); |