mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
staging: rtl8723bs: rename RegPowerBase to reg_power_base
Rename RegPowerBase to reg_power_base to avoid CamelCase. Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com> Link: https://patch.msgid.link/20260127012118.43037-4-ethantidmore06@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a3f440616a
commit
43e165f7e0
|
|
@ -752,6 +752,7 @@ s8 phy_get_tx_pwr_lmt(struct adapter *adapter, u32 reg_pwr_tbl_sel,
|
|||
void PHY_ConvertTxPowerLimitToPowerIndex(struct adapter *Adapter)
|
||||
{
|
||||
struct hal_com_data *pHalData = GET_HAL_DATA(Adapter);
|
||||
struct registry_priv *r = &Adapter->registrypriv;
|
||||
u8 BW40PwrBasedBm2_4G = 0x2E;
|
||||
u8 regulation, bw, channel, rateSection;
|
||||
s8 tempValue = 0, tempPwrLmt = 0;
|
||||
|
|
@ -772,7 +773,7 @@ void PHY_ConvertTxPowerLimitToPowerIndex(struct adapter *Adapter)
|
|||
else if (rateSection == 0) /* CCK */
|
||||
BW40PwrBasedBm2_4G = PHY_GetTxPowerByRateBase(Adapter, rfPath, CCK);
|
||||
} else
|
||||
BW40PwrBasedBm2_4G = Adapter->registrypriv.RegPowerBase * 2;
|
||||
BW40PwrBasedBm2_4G = r->reg_power_base * 2;
|
||||
|
||||
if (tempPwrLmt != MAX_POWER_INDEX) {
|
||||
tempValue = tempPwrLmt - BW40PwrBasedBm2_4G;
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ struct registry_priv {
|
|||
/* define for tx power adjust */
|
||||
u8 reg_enable_tx_power_limit;
|
||||
u8 reg_enable_tx_power_by_rate;
|
||||
u8 RegPowerBase;
|
||||
u8 reg_power_base;
|
||||
u8 RegPwrTblSel;
|
||||
s8 TxBBSwing_2G;
|
||||
u8 AmplifierType_2G;
|
||||
|
|
|
|||
|
|
@ -262,7 +262,7 @@ static void loadparam(struct adapter *padapter, struct net_device *pnetdev)
|
|||
registry_par->reg_enable_tx_power_limit = (u8)rtw_tx_pwr_lmt_enable;
|
||||
registry_par->reg_enable_tx_power_by_rate = (u8)rtw_tx_pwr_by_rate;
|
||||
|
||||
registry_par->RegPowerBase = 14;
|
||||
registry_par->reg_power_base = 14;
|
||||
registry_par->TxBBSwing_2G = 0xFF;
|
||||
registry_par->bEn_RFE = 1;
|
||||
registry_par->RFE_Type = 64;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user