mirror of https://gitee.com/openkylin/linux.git
staging: rtl8723au: Fold rtl8723a_set_nav_upper() into rtl8723au_hal_init()
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
62900ebf47
commit
d0b39f8742
|
@ -818,24 +818,6 @@ void rtl8723a_set_rxdma_agg_pg_th(struct rtw_adapter *padapter, u8 val)
|
|||
rtl8723au_write8(padapter, REG_RXDMA_AGG_PG_TH, val);
|
||||
}
|
||||
|
||||
void rtl8723a_set_nav_upper(struct rtw_adapter *padapter, u32 usNavUpper)
|
||||
{
|
||||
if (usNavUpper > HAL_8723A_NAV_UPPER_UNIT * 0xFF) {
|
||||
RT_TRACE(_module_hal_init_c_, _drv_notice_,
|
||||
("The setting value (0x%08X us) of NAV_UPPER "
|
||||
"is larger than (%d * 0xFF)!!!\n",
|
||||
usNavUpper, HAL_8723A_NAV_UPPER_UNIT));
|
||||
return;
|
||||
}
|
||||
|
||||
/* The value of ((usNavUpper + HAL_8723A_NAV_UPPER_UNIT - 1) /
|
||||
HAL_8723A_NAV_UPPER_UNIT) */
|
||||
/* is getting the upper integer. */
|
||||
usNavUpper = (usNavUpper + HAL_8723A_NAV_UPPER_UNIT - 1) /
|
||||
HAL_8723A_NAV_UPPER_UNIT;
|
||||
rtl8723au_write8(padapter, REG_NAV_UPPER, (u8) usNavUpper);
|
||||
}
|
||||
|
||||
void rtl8723a_set_initial_gain(struct rtw_adapter *padapter, u32 rx_gain)
|
||||
{
|
||||
struct hal_data_8723a *pHalData = GET_HAL_DATA(padapter);
|
||||
|
|
|
@ -780,7 +780,9 @@ static int rtl8723au_hal_init(struct rtw_adapter *Adapter)
|
|||
|
||||
rtl8723a_InitHalDm(Adapter);
|
||||
|
||||
rtl8723a_set_nav_upper(Adapter, WiFiNavUpperUs);
|
||||
val8 = ((WiFiNavUpperUs + HAL_8723A_NAV_UPPER_UNIT - 1) /
|
||||
HAL_8723A_NAV_UPPER_UNIT);
|
||||
rtl8723au_write8(Adapter, REG_NAV_UPPER, val8);
|
||||
|
||||
/* 2011/03/09 MH debug only, UMC-B cut pass 2500 S5 test, but we need to fin root cause. */
|
||||
if (((rtl8723au_read32(Adapter, rFPGA0_RFMOD) & 0xFF000000) !=
|
||||
|
|
|
@ -197,7 +197,6 @@ void rtl8723a_set_ac_param_vi(struct rtw_adapter *padapter, u32 vi);
|
|||
void rtl8723a_set_ac_param_be(struct rtw_adapter *padapter, u32 be);
|
||||
void rtl8723a_set_ac_param_bk(struct rtw_adapter *padapter, u32 bk);
|
||||
void rtl8723a_set_rxdma_agg_pg_th(struct rtw_adapter *padapter, u8 val);
|
||||
void rtl8723a_set_nav_upper(struct rtw_adapter *padapter, u32 usNavUpper);
|
||||
void rtl8723a_set_initial_gain(struct rtw_adapter *padapter, u32 rx_gain);
|
||||
|
||||
void rtl8723a_odm_support_ability_write(struct rtw_adapter *padapter, u32 val);
|
||||
|
|
Loading…
Reference in New Issue