rtlwifi: rtl8192ee: simplify coding
Simplify _rtl92ee_phy_path_adda_on. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
141bcf0990
commit
a81605b149
|
@ -2414,19 +2414,10 @@ static void _rtl92ee_phy_reload_mac_registers(struct ieee80211_hw *hw,
|
||||||
static void _rtl92ee_phy_path_adda_on(struct ieee80211_hw *hw, u32 *addareg,
|
static void _rtl92ee_phy_path_adda_on(struct ieee80211_hw *hw, u32 *addareg,
|
||||||
bool is_patha_on, bool is2t)
|
bool is_patha_on, bool is2t)
|
||||||
{
|
{
|
||||||
u32 pathon;
|
|
||||||
u32 i;
|
u32 i;
|
||||||
|
|
||||||
pathon = is_patha_on ? 0x0fc01616 : 0x0fc01616;
|
for (i = 0; i < IQK_ADDA_REG_NUM; i++)
|
||||||
if (!is2t) {
|
rtl_set_bbreg(hw, addareg[i], MASKDWORD, 0x0fc01616);
|
||||||
pathon = 0x0fc01616;
|
|
||||||
rtl_set_bbreg(hw, addareg[0], MASKDWORD, 0x0fc01616);
|
|
||||||
} else {
|
|
||||||
rtl_set_bbreg(hw, addareg[0], MASKDWORD, pathon);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 1; i < IQK_ADDA_REG_NUM; i++)
|
|
||||||
rtl_set_bbreg(hw, addareg[i], MASKDWORD, pathon);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _rtl92ee_phy_mac_setting_calibration(struct ieee80211_hw *hw,
|
static void _rtl92ee_phy_mac_setting_calibration(struct ieee80211_hw *hw,
|
||||||
|
|
Loading…
Reference in New Issue