|
@@ -101,6 +101,15 @@ void rtl92cu_dm_dynamic_txpower(struct ieee80211_hw *hw)
|
|
|
"PHY_SetTxPowerLevel8192S() Channel = %d\n",
|
|
|
rtlphy->current_channel);
|
|
|
rtl92c_phy_set_txpower_level(hw, rtlphy->current_channel);
|
|
|
+ if (rtlpriv->dm.dynamic_txhighpower_lvl ==
|
|
|
+ TXHIGHPWRLEVEL_NORMAL)
|
|
|
+ dm_restorepowerindex(hw);
|
|
|
+ else if (rtlpriv->dm.dynamic_txhighpower_lvl ==
|
|
|
+ TXHIGHPWRLEVEL_LEVEL1)
|
|
|
+ dm_writepowerindex(hw, 0x14);
|
|
|
+ else if (rtlpriv->dm.dynamic_txhighpower_lvl ==
|
|
|
+ TXHIGHPWRLEVEL_LEVEL2)
|
|
|
+ dm_writepowerindex(hw, 0x10);
|
|
|
}
|
|
|
|
|
|
rtlpriv->dm.last_dtp_lvl = rtlpriv->dm.dynamic_txhighpower_lvl;
|