txpath = RF_MASK_A | RF_MASK_B;
rxpath = RF_MASK_A | RF_MASK_B;
tx2path = false;
- ret = rtlpriv->phydm.ops->phydm_trx_mode(rtlpriv, txpath, rxpath,
+ return rtlpriv->phydm.ops->phydm_trx_mode(rtlpriv, txpath, rxpath,
tx2path);
-
- return ret;
}
static void _rtl8822be_phy_init_tx_power_by_rate(struct ieee80211_hw *hw)
else
tx_num = RF_1TX;
- tx_pwr_diff = (char)(rtlphy->tx_power_by_rate_offset[band][path][tx_num]
+ return (char)(rtlphy->tx_power_by_rate_offset[band][path][tx_num]
[rate] &
0xff);
-
- return tx_pwr_diff;
}
u8 rtl8822be_get_txpower_index(struct ieee80211_hw *hw, u8 path, u8 rate,
u8 txpwridx)
{
long offset;
- long pwrout_dbm;
switch (wirelessmode) {
case WIRELESS_MODE_B:
offset = -8;
break;
}
- pwrout_dbm = txpwridx / 2 + offset;
- return pwrout_dbm;
+ return txpwridx / 2 + offset;
}
void rtl8822be_phy_scan_operation_backup(struct ieee80211_hw *hw, u8 operation)
if (rfpwr_state == ppsc->rfpwr_state)
return bresult;
- bresult = _rtl8822be_phy_set_rf_power_state(hw, rfpwr_state);
- return bresult;
+ return _rtl8822be_phy_set_rf_power_state(hw, rfpwr_state);
}