]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
rt2800: correct BBP1_TX_POWER_CTRL mask
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 24 Sep 2014 09:24:54 +0000 (11:24 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 26 Sep 2014 21:06:53 +0000 (17:06 -0400)
Two bits control TX power on BBP_R1 register. Correct the mask,
otherwise we clear additional bit on BBP_R1 register, what can have
unknown, possible negative effect.

Cc: stable@vger.kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800.h

index b7434df51e7c27c14347d2f62462c2f988f7aff5..ebd5625d13f1832767f266f932ef012122f72e8e 100644 (file)
@@ -2041,7 +2041,7 @@ struct mac_iveiv_entry {
  * 2 - drop tx power by 12dBm,
  * 3 - increase tx power by 6dBm
  */
-#define BBP1_TX_POWER_CTRL             FIELD8(0x07)
+#define BBP1_TX_POWER_CTRL             FIELD8(0x03)
 #define BBP1_TX_ANTENNA                        FIELD8(0x18)
 
 /*