Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130485
b: refs/heads/master
c: eb83bbf
h: refs/heads/master
i:
  130483: ca7ed90
v: v3
  • Loading branch information
Larry Finger authored and John W. Linville committed Jan 29, 2009
1 parent 5eeb51a commit af18425
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6a271651e9e7810c1802bb8375967f6efa4baea
refs/heads/master: eb83bbf57429ab80f49b413e3e44d3b19c3fdc5a
10 changes: 8 additions & 2 deletions trunk/drivers/net/wireless/rtl818x/rtl8187_rtl8225.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ static void rtl8225_rf_set_tx_power(struct ieee80211_hw *dev, int channel)
ofdm_power = priv->channels[channel - 1].hw_value >> 4;

cck_power = min(cck_power, (u8)11);
ofdm_power = min(ofdm_power, (u8)35);
if (ofdm_power > (u8)15)
ofdm_power = 25;
else
ofdm_power += 10;

rtl818x_iowrite8(priv, &priv->map->TX_GAIN_CCK,
rtl8225_tx_gain_cck_ofdm[cck_power / 6] >> 1);
Expand Down Expand Up @@ -536,7 +539,10 @@ static void rtl8225z2_rf_set_tx_power(struct ieee80211_hw *dev, int channel)
cck_power += priv->txpwr_base & 0xF;
cck_power = min(cck_power, (u8)35);

ofdm_power = min(ofdm_power, (u8)15);
if (ofdm_power > (u8)15)
ofdm_power = 25;
else
ofdm_power += 10;
ofdm_power += priv->txpwr_base >> 4;
ofdm_power = min(ofdm_power, (u8)35);

Expand Down

0 comments on commit af18425

Please sign in to comment.