Search Linux Wireless

[PATCH 1/2] rtl8180: sync radio V2 code with vendor reference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrea Merello <andreamrl@xxxxxxxxxx>

We have to set ofdm register 0x2 to 0x62 (0x64 is for rtl8187). We did this
correctly in init function, but we overwrite it when setting TX power.
As reference code suggest, we still rewrite it, but with right value.

Signed-off-by: Andrea Merello <andreamrl@xxxxxxxxxx>
Signed-off-by: Michael Wu <flamingice@xxxxxxxxxxxx>
---

 drivers/net/wireless/rtl8180_rtl8225.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/rtl8180_rtl8225.c b/drivers/net/wireless/rtl8180_rtl8225.c
index 37ac402..9dab126 100644
--- a/drivers/net/wireless/rtl8180_rtl8225.c
+++ b/drivers/net/wireless/rtl8180_rtl8225.c
@@ -504,7 +504,7 @@ static void rtl8225z2_rf_set_tx_power(struct ieee80211_hw *dev, int channel)
 	ofdm_power = min(ofdm_power, (u8)35);
 	rtl818x_iowrite8(priv, &priv->map->TX_GAIN_OFDM, ofdm_power);
 
-	rtl8225_write_phy_ofdm(dev, 2, 0x42);
+	rtl8225_write_phy_ofdm(dev, 2, 0x62);
 	rtl8225_write_phy_ofdm(dev, 5, 0x00);
 	rtl8225_write_phy_ofdm(dev, 6, 0x40);
 	rtl8225_write_phy_ofdm(dev, 7, 0x00);


-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux