aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00
diff options
context:
space:
mode:
authorStanislaw Gruszka <stf_xl@wp.pl>2013-03-16 14:19:42 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-03-18 16:38:33 -0400
commitd5ae7a6bd09792ddf0e9dfaf97ad34b9ad6dc146 (patch)
tree42e55b0222cefd20a6e1d3c6dea1f44535ff8091 /drivers/net/wireless/rt2x00
parentc267548755a184ef97301071300c1739a564e135 (diff)
rt2800: 5592: setup LDO_CFG0 when configuring channel
Based on: RT5592_ChipSwitchChannel() from: DPO_RT5572_LinuxSTA_2.6.1.3_20121022/chips/rt5592.c Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl> Tested-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index 93b9def5f08a..189c8809009c 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -2187,12 +2187,17 @@ static void rt2800_config_channel_rf55xx(struct rt2x00_dev *rt2x00dev,
2187 struct channel_info *info) 2187 struct channel_info *info)
2188{ 2188{
2189 u8 rfcsr, ep_reg; 2189 u8 rfcsr, ep_reg;
2190 u32 reg;
2190 int power_bound; 2191 int power_bound;
2191 2192
2192 /* TODO */ 2193 /* TODO */
2193 const bool is_11b = false; 2194 const bool is_11b = false;
2194 const bool is_type_ep = false; 2195 const bool is_type_ep = false;
2195 2196
2197 rt2800_register_read(rt2x00dev, LDO_CFG0, &reg);
2198 rt2x00_set_field32(&reg, LDO_CFG0_LDO_CORE_VLEVEL,
2199 (rf->channel > 14 || conf_is_ht40(conf)) ? 5 : 0);
2200 rt2800_register_write(rt2x00dev, LDO_CFG0, reg);
2196 2201
2197 /* Order of values on rf_channel entry: N, K, mod, R */ 2202 /* Order of values on rf_channel entry: N, K, mod, R */
2198 rt2800_rfcsr_write(rt2x00dev, 8, rf->rf1 & 0xff); 2203 rt2800_rfcsr_write(rt2x00dev, 8, rf->rf1 & 0xff);