From: Gabor Juhos Date: Tue, 25 Jun 2013 20:57:29 +0000 (+0200) Subject: rt2x00: rt2800lib: fix default TX power check for RT55xx X-Git-Tag: v3.11-rc1~64^2~78^2^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0847beb2865f5ef1c8626ec1a37def18f3d6c41a;p=pandora-kernel.git rt2x00: rt2800lib: fix default TX power check for RT55xx The code writes the default_power2 value into the TX field of the RFCSR50 register, however the condition in the if statement uses default_power1. Due to this, wrong TX power value might be written into the register. Use the correct value in the condition to fix the issue. Compile tested only. Signed-off-by: Gabor Juhos Cc: stable@vger.kernel.org # 3.10 Acked-by: Gertjan van Wingerde Signed-off-by: John W. Linville --- Reading git-diff-tree failed