mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-23 21:13:41 +00:00
rtl8188eu: Remove symbol MAX_RF_PATH_NUMS
This one is always equal to RF_PATH_MAX. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
379691b761
commit
f9dbfb74dc
4 changed files with 9 additions and 11 deletions
|
@ -138,7 +138,7 @@ int rtl8188eu_oid_rt_pro_write_rf_reg_hdl(struct oid_par_priv *poid_par_priv)
|
|||
|
||||
pbbreg = (struct rf_reg_param *)(poid_par_priv->information_buf);
|
||||
|
||||
if (pbbreg->path >= MAX_RF_PATH_NUMS)
|
||||
if (pbbreg->path >= RF_PATH_MAX)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
if (pbbreg->offset > 0xFF)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
|
@ -179,7 +179,7 @@ int rtl8188eu_oid_rt_pro_read_rf_reg_hdl(struct oid_par_priv *poid_par_priv)
|
|||
|
||||
pbbreg = (struct rf_reg_param *)(poid_par_priv->information_buf);
|
||||
|
||||
if (pbbreg->path >= MAX_RF_PATH_NUMS)
|
||||
if (pbbreg->path >= RF_PATH_MAX)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
if (pbbreg->offset > 0xFF)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
|
|
|
@ -315,7 +315,7 @@ void Hal_SetOFDMTxPower(struct adapter *pAdapter, u8 *TxPower)
|
|||
void Hal_SetAntennaPathPower(struct adapter *pAdapter)
|
||||
{
|
||||
struct hal_data_8188e *pHalData = GET_HAL_DATA(pAdapter);
|
||||
u8 TxPowerLevel[MAX_RF_PATH_NUMS];
|
||||
u8 TxPowerLevel[RF_PATH_MAX];
|
||||
u8 rfPath;
|
||||
|
||||
TxPowerLevel[RF_PATH_A] = pAdapter->mppriv.txpoweridx;
|
||||
|
@ -352,10 +352,10 @@ void Hal_SetTxPower(struct adapter *pAdapter)
|
|||
{
|
||||
struct hal_data_8188e *pHalData = GET_HAL_DATA(pAdapter);
|
||||
u8 TxPower = pAdapter->mppriv.txpoweridx;
|
||||
u8 TxPowerLevel[MAX_RF_PATH_NUMS];
|
||||
u8 TxPowerLevel[RF_PATH_MAX];
|
||||
u8 rf, rfPath;
|
||||
|
||||
for (rf = 0; rf < MAX_RF_PATH_NUMS; rf++)
|
||||
for (rf = 0; rf < RF_PATH_MAX; rf++)
|
||||
TxPowerLevel[rf] = TxPower;
|
||||
|
||||
switch (pAdapter->mppriv.antenna_tx) {
|
||||
|
|
|
@ -358,8 +358,6 @@ enum mp_mode_{
|
|||
MP_PACKET_RX
|
||||
};
|
||||
|
||||
#define MAX_RF_PATH_NUMS RF_PATH_MAX
|
||||
|
||||
extern u8 mpdatarate[NumRates];
|
||||
|
||||
/* MP set force data rate base on the definition. */
|
||||
|
|
|
@ -6584,7 +6584,7 @@ static int rtw_mp_read_reg(struct net_device *dev,
|
|||
|
||||
/*
|
||||
* Input Format: %d,%x,%x
|
||||
* %d is RF path, should be smaller than MAX_RF_PATH_NUMS
|
||||
* %d is RF path, should be smaller than RF_PATH_MAX
|
||||
* 1st %x is address(offset)
|
||||
* 2st %x is data to write
|
||||
*/
|
||||
|
@ -6600,7 +6600,7 @@ static int rtw_mp_read_reg(struct net_device *dev,
|
|||
if (ret < 3)
|
||||
return -EINVAL;
|
||||
|
||||
if (path >= MAX_RF_PATH_NUMS)
|
||||
if (path >= RF_PATH_MAX)
|
||||
return -EINVAL;
|
||||
if (addr > 0xFF)
|
||||
return -EINVAL;
|
||||
|
@ -6619,7 +6619,7 @@ static int rtw_mp_read_reg(struct net_device *dev,
|
|||
|
||||
/*
|
||||
* Input Format: %d,%x
|
||||
* %d is RF path, should be smaller than MAX_RF_PATH_NUMS
|
||||
* %d is RF path, should be smaller than RF_PATH_MAX
|
||||
* %x is address(offset)
|
||||
*
|
||||
* Return:
|
||||
|
@ -6647,7 +6647,7 @@ static int rtw_mp_read_rf(struct net_device *dev,
|
|||
if (ret < 2)
|
||||
return -EINVAL;
|
||||
|
||||
if (path >= MAX_RF_PATH_NUMS)
|
||||
if (path >= RF_PATH_MAX)
|
||||
return -EINVAL;
|
||||
if (addr > 0xFF)
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Reference in a new issue