From: Gabor Juhos Date: Thu, 3 Oct 2013 18:00:40 +0000 (+0200) Subject: rt2x00: rt2800lib: fix VGC adjustment for RT5592 X-Git-Tag: v3.13-rc1~105^2~181^2^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0beb1bbf19c72f17809e42b8f33522a55c2cc18c;p=pandora-kernel.git rt2x00: rt2800lib: fix VGC adjustment for RT5592 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. Cc: stable@vger.kernel.org Signed-off-by: Gabor Juhos Acked-by: Stanislaw Gruszka Signed-off-by: John W. Linville --- Reading git-diff-tree failed