]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rt2x00: rt2800lib: fix default TX power check for RT55xx
authorGabor Juhos <juhosg@openwrt.org>
Tue, 25 Jun 2013 20:57:29 +0000 (22:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2013 21:07:29 +0000 (14:07 -0700)
commit0530bd4a6cc3c04d1e621299e05d2da2c99736c4
treee332d9e3531dbfdb9c219c91f12271370342b7b6
parent24e095cdc2d7781e756b052291ef0ca7c9edac93
rt2x00: rt2800lib: fix default TX power check for RT55xx

commit 0847beb2865f5ef1c8626ec1a37def18f3d6c41a upstream.

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 <juhosg@openwrt.org>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/rt2x00/rt2800lib.c