rtlwifi: rtl8192cu: Update the power index registers
This patch uses the newly introduced power index register routines. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Stable <stable@vger.kernel.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
97204e93f0
commit
9806eacf5d
@@ -101,6 +101,15 @@ void rtl92cu_dm_dynamic_txpower(struct ieee80211_hw *hw)
|
|||||||
"PHY_SetTxPowerLevel8192S() Channel = %d\n",
|
"PHY_SetTxPowerLevel8192S() Channel = %d\n",
|
||||||
rtlphy->current_channel);
|
rtlphy->current_channel);
|
||||||
rtl92c_phy_set_txpower_level(hw, 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;
|
rtlpriv->dm.last_dtp_lvl = rtlpriv->dm.dynamic_txhighpower_lvl;
|
||||||
|
|||||||
@@ -30,3 +30,6 @@
|
|||||||
#include "../rtl8192ce/dm.h"
|
#include "../rtl8192ce/dm.h"
|
||||||
|
|
||||||
void rtl92cu_dm_dynamic_txpower(struct ieee80211_hw *hw);
|
void rtl92cu_dm_dynamic_txpower(struct ieee80211_hw *hw);
|
||||||
|
void dm_savepowerindex(struct ieee80211_hw *hw);
|
||||||
|
void dm_writepowerindex(struct ieee80211_hw *hw, u8 value);
|
||||||
|
void dm_restorepowerindex(struct ieee80211_hw *hw);
|
||||||
|
|||||||
Reference in New Issue
Block a user