From: Andrea Merello <[email protected]>
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 <[email protected]>
Signed-off-by: Michael Wu <[email protected]>
---
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);
The radio seems to work fine despite this message. Remove it for now.
Signed-off-by: Michael Wu <[email protected]>
---
drivers/net/wireless/rtl8180_rtl8225.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/rtl8180_rtl8225.c b/drivers/net/wireless/rtl8180_rtl8225.c
index 9dab126..ef3832b 100644
--- a/drivers/net/wireless/rtl8180_rtl8225.c
+++ b/drivers/net/wireless/rtl8180_rtl8225.c
@@ -578,9 +578,8 @@ static void rtl8225z2_rf_init(struct ieee80211_hw *dev)
msleep(200);
rtl8225_write(dev, 0x02, 0x044D);
msleep(100);
- if (!(rtl8225_read(dev, 6) & (1 << 7)))
- printk(KERN_WARNING "%s: RF Calibration Failed! %x\n",
- wiphy_name(dev->wiphy), rtl8225_read(dev, 6));
+ /* TODO: readd calibration failure message when the calibration
+ check works */
}
rtl8225_write(dev, 0x0, 0x1B7);