aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/rt2x00/rt2x00lib.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-10-03 20:00:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-11-29 10:42:16 -0800
commita8ead97858e2b84ef7b73b7700ef99fafcf8a18c (patch)
tree0c64a81b6c82839f5a9f514cef71c66e227e66a3 /drivers/net/wireless/rt2x00/rt2x00lib.h
parente1480ff74d696c55a6b253b9c16266ae60da37c9 (diff)
rt2x00: rt2800lib: fix VGC adjustment for RT5592
commit 0beb1bbf19c72f17809e42b8f33522a55c2cc18c upstream. In commit 3d81535ea5940446510a8a5cee1c6ad23c90c753 (rt2800: 5592: add chip specific vgc calculations) the rt2800_link_tuner function has been modified to adjust VGC level for the RT5592 chipset. On the RT5592 chipset, the VGC level must be adjusted only if rssi is greater than -65. However the current code adjusts the VGC value by 0x10 regardless of the actual chipset if the rssi value is between -80 and -65. Fix the broken behaviour by reordering the if-else statements. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Acked-by: Stanislaw Gruszka <stf_xl@wp.pl> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00lib.h')
0 files changed, 0 insertions, 0 deletions