diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2012-09-16 16:29:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-24 14:59:12 -0400 |
commit | d961e447a616c83ab7a7022bd98d60ec086f07ab (patch) | |
tree | c1981ac52e93798d1b0094ff75a4c28e75ae42ac /drivers | |
parent | 8c6728b08ee589ae3c7a75f0d1aa5d73a9c042f1 (diff) |
rt2x00: rt2800 - Fix default vgc values for RT3572
Align with the values used by the RT3572 Ralink vendor driver v2.5.0.0.
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')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index cec4a992374e..17b8a281094f 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -2904,16 +2904,21 @@ static u8 rt2800_get_default_vgc(struct rt2x00_dev *rt2x00dev) | |||
2904 | rt2x00_rt(rt2x00dev, RT3090) || | 2904 | rt2x00_rt(rt2x00dev, RT3090) || |
2905 | rt2x00_rt(rt2x00dev, RT3290) || | 2905 | rt2x00_rt(rt2x00dev, RT3290) || |
2906 | rt2x00_rt(rt2x00dev, RT3390) || | 2906 | rt2x00_rt(rt2x00dev, RT3390) || |
2907 | rt2x00_rt(rt2x00dev, RT3572) || | ||
2907 | rt2x00_rt(rt2x00dev, RT5390) || | 2908 | rt2x00_rt(rt2x00dev, RT5390) || |
2908 | rt2x00_rt(rt2x00dev, RT5392)) | 2909 | rt2x00_rt(rt2x00dev, RT5392)) |
2909 | vgc = 0x1c + (2 * rt2x00dev->lna_gain); | 2910 | vgc = 0x1c + (2 * rt2x00dev->lna_gain); |
2910 | else | 2911 | else |
2911 | vgc = 0x2e + rt2x00dev->lna_gain; | 2912 | vgc = 0x2e + rt2x00dev->lna_gain; |
2912 | } else { /* 5GHZ band */ | 2913 | } else { /* 5GHZ band */ |
2913 | if (!test_bit(CONFIG_CHANNEL_HT40, &rt2x00dev->flags)) | 2914 | if (rt2x00_rt(rt2x00dev, RT3572)) |
2914 | vgc = 0x32 + (rt2x00dev->lna_gain * 5) / 3; | 2915 | vgc = 0x22 + (rt2x00dev->lna_gain * 5) / 3; |
2915 | else | 2916 | else { |
2916 | vgc = 0x3a + (rt2x00dev->lna_gain * 5) / 3; | 2917 | if (!test_bit(CONFIG_CHANNEL_HT40, &rt2x00dev->flags)) |
2918 | vgc = 0x32 + (rt2x00dev->lna_gain * 5) / 3; | ||
2919 | else | ||
2920 | vgc = 0x3a + (rt2x00dev->lna_gain * 5) / 3; | ||
2921 | } | ||
2917 | } | 2922 | } |
2918 | 2923 | ||
2919 | return vgc; | 2924 | return vgc; |