diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2012-02-06 17:45:10 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-08 15:26:30 -0500 |
commit | 569ffa56344e7e2a1d635a9c620215196f5c7298 (patch) | |
tree | 59ad3f348e9871b8c4ad9805e866fa2afd1d3e09 | |
parent | 5d137dff36dce1eda0617a00eb87b57e48300045 (diff) |
rt2x00: Fix RFCSR 12 & 13 programming on RT3572 channel switching.
Align with v2.5.0.0 Ralink RT3572 driver for 2.4GHz band channel switch.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.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 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 3873a1555871..80a2087fcf8c 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -1783,8 +1783,7 @@ static void rt2800_config_channel_rf3052(struct rt2x00_dev *rt2x00dev, | |||
1783 | if (rf->channel <= 14) { | 1783 | if (rf->channel <= 14) { |
1784 | rt2x00_set_field8(&rfcsr, RFCSR12_DR0, 3); | 1784 | rt2x00_set_field8(&rfcsr, RFCSR12_DR0, 3); |
1785 | rt2x00_set_field8(&rfcsr, RFCSR12_TX_POWER, | 1785 | rt2x00_set_field8(&rfcsr, RFCSR12_TX_POWER, |
1786 | (info->default_power1 & 0x3) | | 1786 | info->default_power1); |
1787 | ((info->default_power1 & 0xC) << 1)); | ||
1788 | } else { | 1787 | } else { |
1789 | rt2x00_set_field8(&rfcsr, RFCSR12_DR0, 7); | 1788 | rt2x00_set_field8(&rfcsr, RFCSR12_DR0, 7); |
1790 | rt2x00_set_field8(&rfcsr, RFCSR12_TX_POWER, | 1789 | rt2x00_set_field8(&rfcsr, RFCSR12_TX_POWER, |
@@ -1797,8 +1796,7 @@ static void rt2800_config_channel_rf3052(struct rt2x00_dev *rt2x00dev, | |||
1797 | if (rf->channel <= 14) { | 1796 | if (rf->channel <= 14) { |
1798 | rt2x00_set_field8(&rfcsr, RFCSR13_DR0, 3); | 1797 | rt2x00_set_field8(&rfcsr, RFCSR13_DR0, 3); |
1799 | rt2x00_set_field8(&rfcsr, RFCSR13_TX_POWER, | 1798 | rt2x00_set_field8(&rfcsr, RFCSR13_TX_POWER, |
1800 | (info->default_power2 & 0x3) | | 1799 | info->default_power2); |
1801 | ((info->default_power2 & 0xC) << 1)); | ||
1802 | } else { | 1800 | } else { |
1803 | rt2x00_set_field8(&rfcsr, RFCSR13_DR0, 7); | 1801 | rt2x00_set_field8(&rfcsr, RFCSR13_DR0, 7); |
1804 | rt2x00_set_field8(&rfcsr, RFCSR13_TX_POWER, | 1802 | rt2x00_set_field8(&rfcsr, RFCSR13_TX_POWER, |