rtl8187: Change TX power settings
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 31 Oct 2008 16:40:44 +0000 (09:40 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 10 Nov 2008 20:17:42 +0000 (15:17 -0500)
The latest vendor driver (rtl8187B_linux_26.1036.0708.2008) has a different
CCK power setting code as compared with the Linux driver.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Piter Punk <piterpk@terra.com.br>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtl8187_rtl8225.c

index 38333b1..69030be 100644 (file)
@@ -625,7 +625,7 @@ static void rtl8225z2_b_rf_set_tx_power(struct ieee80211_hw *dev, int channel)
                rtl8225_write_phy_cck(dev, 0x44 + i, *tmp++);
 
        rtl818x_iowrite8(priv, &priv->map->TX_GAIN_CCK,
-                        rtl8225z2_tx_gain_cck_ofdm[cck_power]);
+                        rtl8225z2_tx_gain_cck_ofdm[cck_power] << 1);
        msleep(1);
 
        rtl818x_iowrite8(priv, &priv->map->TX_GAIN_OFDM,