aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorGertjan van Wingerde <gwingerde@gmail.com>2009-11-09 16:59:58 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-16 14:14:13 -0500
commitfa6f632fba300f92d21962ef6e58411345465241 (patch)
tree6b1115508d052aad08df0e10bf5aef1d0b16c354 /drivers/net/wireless
parent235faf9b41b7b090be15b483bf900c0b9a8da4ea (diff)
rt2x00: Fix rt2800lib RF chip programming selection.
Mirror the legacy Ralink driver with respect to rt2800 RF register programming. Execute rt2800_config_channel_rt3x for all RF2020, RF3020, RF3021 & RF3022 chipsets when operating on RT3070 devices. Signed-off-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')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800lib.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index 9656699c6ef6..53baa09082d3 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -806,10 +806,14 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev,
806 unsigned int tx_pin; 806 unsigned int tx_pin;
807 u8 bbp; 807 u8 bbp;
808 808
809 if (rt2x00_rev(&rt2x00dev->chip) != RT3070_VERSION) 809 if (rt2x00_rt(&rt2x00dev->chip, RT3070) &&
810 rt2800_config_channel_rt2x(rt2x00dev, conf, rf, info); 810 (rt2x00_rf(&rt2x00dev->chip, RF2020) ||
811 else 811 rt2x00_rf(&rt2x00dev->chip, RF3020) ||
812 rt2x00_rf(&rt2x00dev->chip, RF3021) ||
813 rt2x00_rf(&rt2x00dev->chip, RF3022)))
812 rt2800_config_channel_rt3x(rt2x00dev, conf, rf, info); 814 rt2800_config_channel_rt3x(rt2x00dev, conf, rf, info);
815 else
816 rt2800_config_channel_rt2x(rt2x00dev, conf, rf, info);
813 817
814 /* 818 /*
815 * Change BBP settings 819 * Change BBP settings