staging: rtl8723au: Make direct calls for HW_VAR_AMPDU_{MIN_SPACE,FACTOR}
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d5cdb9e1da
commit
dce610a77f
|
@ -632,9 +632,8 @@ static void update_hw_ht_param(struct rtw_adapter *padapter)
|
|||
|
||||
min_MPDU_spacing = (pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x1c) >> 2;
|
||||
|
||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_AMPDU_MIN_SPACE, (u8 *)(&min_MPDU_spacing));
|
||||
|
||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_AMPDU_FACTOR, (u8 *)(&max_AMPDU_len));
|
||||
rtl8723a_set_ampdu_min_space(padapter, min_MPDU_spacing);
|
||||
rtl8723a_set_ampdu_factor(padapter, max_AMPDU_len);
|
||||
|
||||
/* Config SM Power Save setting */
|
||||
pmlmeinfo->SM_PS = (pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info & 0x0C) >> 2;
|
||||
|
|
|
@ -849,9 +849,8 @@ void HTOnAssocRsp23a(struct rtw_adapter *padapter)
|
|||
|
||||
min_MPDU_spacing = (pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x1c) >> 2;
|
||||
|
||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_AMPDU_MIN_SPACE, (u8 *)(&min_MPDU_spacing));
|
||||
|
||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_AMPDU_FACTOR, (u8 *)(&max_AMPDU_len));
|
||||
rtl8723a_set_ampdu_min_space(padapter, min_MPDU_spacing);
|
||||
rtl8723a_set_ampdu_factor(padapter, max_AMPDU_len);
|
||||
}
|
||||
|
||||
void ERP_IE_handler23a(struct rtw_adapter *padapter, struct ndis_802_11_var_ies * pIE)
|
||||
|
|
|
@ -3157,14 +3157,6 @@ void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
|
|||
rtl8723a_odm_support_ability_clr(padapter, *val32);
|
||||
break;
|
||||
|
||||
case HW_VAR_AMPDU_MIN_SPACE:
|
||||
rtl8723a_set_ampdu_min_space(padapter, *val);
|
||||
break;
|
||||
|
||||
case HW_VAR_AMPDU_FACTOR:
|
||||
rtl8723a_set_ampdu_factor(padapter, *val);
|
||||
break;
|
||||
|
||||
case HW_VAR_RXDMA_AGG_PG_TH:
|
||||
rtl8723a_set_rxdma_agg_pg_th(padapter, *val);
|
||||
break;
|
||||
|
|
|
@ -45,8 +45,6 @@ enum HW_VARIABLES {
|
|||
HW_VAR_DM_FUNC_SET,
|
||||
HW_VAR_DM_FUNC_CLR,
|
||||
HW_VAR_CAM_READ,
|
||||
HW_VAR_AMPDU_MIN_SPACE,
|
||||
HW_VAR_AMPDU_FACTOR,
|
||||
HW_VAR_RXDMA_AGG_PG_TH,
|
||||
HW_VAR_SET_RPWM,
|
||||
HW_VAR_H2C_FW_PWRMODE,
|
||||
|
|
Loading…
Reference in a new issue