aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelmut Schaa <helmut.schaa@googlemail.com>2010-04-07 03:06:34 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-08 15:24:12 -0400
commit403820edc4ba1f2fb2514c022f2662c498ce0d11 (patch)
tree93db6b21b0a220f64548724722809e6f7a89dab0
parent2eb46d9bda44b3f85727fee6865d9b25725e6bf9 (diff)
rt2x00: use rt2800_config_channel_rt3x for rt2872
rt2872 needs the same rf register setup as rt3070 and rt3090, hence use rt2800_config_channel_rt3x instead of rt2800_config_channel_rt2x. This change allows me to actually switch channels and hence scan all configured channels on the RT305x SoC platform (which uses a rt2872) here. 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> Tested-by: Luis Correia <luis.f.correia@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/rt2x00/rt2800lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index 68d0cfee3f20..ec3ec786f350 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -827,7 +827,8 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev,
827 u8 bbp; 827 u8 bbp;
828 828
829 if ((rt2x00_rt(rt2x00dev, RT3070) || 829 if ((rt2x00_rt(rt2x00dev, RT3070) ||
830 rt2x00_rt(rt2x00dev, RT3090)) && 830 rt2x00_rt(rt2x00dev, RT3090) ||
831 rt2x00_rt(rt2x00dev, RT2872)) &&
831 (rt2x00_rf(rt2x00dev, RF2020) || 832 (rt2x00_rf(rt2x00dev, RF2020) ||
832 rt2x00_rf(rt2x00dev, RF3020) || 833 rt2x00_rf(rt2x00dev, RF3020) ||
833 rt2x00_rf(rt2x00dev, RF3021) || 834 rt2x00_rf(rt2x00dev, RF3021) ||