mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-15 17:51:41 -04:00
staging: rtl8723au: Make direct calls for HW_VAR_TXDMA_AGG_PG_TH
This was in fact turned into a no-op for the RTL8723AU, but it looks like a bug, so this reenables it. Keep an eye out for side-effects here and revert this, if it causes issues. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6952905d21
commit
1e7b6ebe19
@@ -2193,13 +2193,10 @@ void rtw_joinbss_reset23a(struct rtw_adapter *padapter)
|
||||
threshold = 1;
|
||||
else
|
||||
threshold = 0;
|
||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_RXDMA_AGG_PG_TH,
|
||||
(u8 *)(&threshold));
|
||||
} else {
|
||||
} else
|
||||
threshold = 1;
|
||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_RXDMA_AGG_PG_TH,
|
||||
(u8 *)(&threshold));
|
||||
}
|
||||
|
||||
rtl8723a_set_rxdma_agg_pg_th(padapter, threshold);
|
||||
}
|
||||
|
||||
/* the fucntion is >= passive_level */
|
||||
|
||||
@@ -132,13 +132,13 @@ static void sreset_restore_network_station(struct rtw_adapter *padapter)
|
||||
threshold = 1;
|
||||
else
|
||||
threshold = 0;
|
||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_RXDMA_AGG_PG_TH, (u8 *)(&threshold));
|
||||
} else {
|
||||
} else
|
||||
threshold = 1;
|
||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_RXDMA_AGG_PG_TH, (u8 *)(&threshold));
|
||||
}
|
||||
|
||||
set_channel_bwmode23a(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
|
||||
rtl8723a_set_rxdma_agg_pg_th(padapter, threshold);
|
||||
|
||||
set_channel_bwmode23a(padapter, pmlmeext->cur_channel,
|
||||
pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
|
||||
|
||||
/* disable dynamic functions, such as high power, DIG */
|
||||
/* Switch_DM_Func23a(padapter, DYNAMIC_FUNC_DISABLE, false); */
|
||||
|
||||
@@ -3153,10 +3153,6 @@ void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
|
||||
rtl8723a_odm_support_ability_clr(padapter, *val32);
|
||||
break;
|
||||
|
||||
case HW_VAR_RXDMA_AGG_PG_TH:
|
||||
rtl8723a_set_rxdma_agg_pg_th(padapter, *val);
|
||||
break;
|
||||
|
||||
case HW_VAR_H2C_FW_PWRMODE:
|
||||
rtl8723a_set_FwPwrMode_cmd(padapter, *val);
|
||||
break;
|
||||
|
||||
@@ -1519,8 +1519,6 @@ static void rtl8723au_trigger_gpio_0(struct rtw_adapter *padapter)
|
||||
static void SetHwReg8723AU(struct rtw_adapter *Adapter, u8 variable, u8 *val)
|
||||
{
|
||||
switch (variable) {
|
||||
case HW_VAR_RXDMA_AGG_PG_TH:
|
||||
break;
|
||||
case HW_VAR_SET_RPWM:
|
||||
rtl8723a_set_rpwm(Adapter, *val);
|
||||
break;
|
||||
|
||||
@@ -44,7 +44,6 @@ enum HW_VARIABLES {
|
||||
HW_VAR_DM_FUNC_SET,
|
||||
HW_VAR_DM_FUNC_CLR,
|
||||
HW_VAR_CAM_READ,
|
||||
HW_VAR_RXDMA_AGG_PG_TH,
|
||||
HW_VAR_SET_RPWM,
|
||||
HW_VAR_H2C_FW_PWRMODE,
|
||||
HW_VAR_H2C_FW_JOINBSSRPT,
|
||||
|
||||
Reference in New Issue
Block a user