diff options
author | Stanislaw Gruszka <stf_xl@wp.pl> | 2013-04-17 08:08:12 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-04-22 15:20:16 -0400 |
commit | f9cdcbb133e6976501449dcae52e809f1cb516ce (patch) | |
tree | 799782ed88b845c03031b80157df05b669ea62c8 /drivers/net/wireless/rt2x00 | |
parent | ce94ede923ce8c0a2e62a367ae9352f8ceb47cb7 (diff) |
rt2800: move RFCSR29_RSSI_GAIN to 3290 specific rfcsr init
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 6e9ca3e00f1d..40a37fe58262 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -4504,6 +4504,8 @@ static void rt2800_init_rfcsr_30xx(struct rt2x00_dev *rt2x00dev) | |||
4504 | 4504 | ||
4505 | static void rt2800_init_rfcsr_3290(struct rt2x00_dev *rt2x00dev) | 4505 | static void rt2800_init_rfcsr_3290(struct rt2x00_dev *rt2x00dev) |
4506 | { | 4506 | { |
4507 | u8 rfcsr; | ||
4508 | |||
4507 | rt2800_rf_init_calibration(rt2x00dev, 2); | 4509 | rt2800_rf_init_calibration(rt2x00dev, 2); |
4508 | 4510 | ||
4509 | rt2800_rfcsr_write(rt2x00dev, 1, 0x0f); | 4511 | rt2800_rfcsr_write(rt2x00dev, 1, 0x0f); |
@@ -4552,6 +4554,10 @@ static void rt2800_init_rfcsr_3290(struct rt2x00_dev *rt2x00dev) | |||
4552 | rt2800_rfcsr_write(rt2x00dev, 59, 0x09); | 4554 | rt2800_rfcsr_write(rt2x00dev, 59, 0x09); |
4553 | rt2800_rfcsr_write(rt2x00dev, 60, 0x45); | 4555 | rt2800_rfcsr_write(rt2x00dev, 60, 0x45); |
4554 | rt2800_rfcsr_write(rt2x00dev, 61, 0xc1); | 4556 | rt2800_rfcsr_write(rt2x00dev, 61, 0xc1); |
4557 | |||
4558 | rt2800_rfcsr_read(rt2x00dev, 29, &rfcsr); | ||
4559 | rt2x00_set_field8(&rfcsr, RFCSR29_RSSI_GAIN, 3); | ||
4560 | rt2800_rfcsr_write(rt2x00dev, 29, rfcsr); | ||
4555 | } | 4561 | } |
4556 | 4562 | ||
4557 | static void rt2800_init_rfcsr_3352(struct rt2x00_dev *rt2x00dev) | 4563 | static void rt2800_init_rfcsr_3352(struct rt2x00_dev *rt2x00dev) |
@@ -5119,12 +5125,6 @@ static int rt2800_init_rfcsr(struct rt2x00_dev *rt2x00dev) | |||
5119 | rt2800_rfcsr_write(rt2x00dev, 27, rfcsr); | 5125 | rt2800_rfcsr_write(rt2x00dev, 27, rfcsr); |
5120 | } | 5126 | } |
5121 | 5127 | ||
5122 | if (rt2x00_rt(rt2x00dev, RT3290)) { | ||
5123 | rt2800_rfcsr_read(rt2x00dev, 29, &rfcsr); | ||
5124 | rt2x00_set_field8(&rfcsr, RFCSR29_RSSI_GAIN, 3); | ||
5125 | rt2800_rfcsr_write(rt2x00dev, 29, rfcsr); | ||
5126 | } | ||
5127 | |||
5128 | return 0; | 5128 | return 0; |
5129 | } | 5129 | } |
5130 | 5130 | ||