Commit 093dd41e authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Eliminate HW_VAR_ACK_PREAMBLE

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7b7aefaa
...@@ -1562,22 +1562,19 @@ void update_capinfo23a(struct rtw_adapter *Adapter, u16 updateCap) ...@@ -1562,22 +1562,19 @@ void update_capinfo23a(struct rtw_adapter *Adapter, u16 updateCap)
{ {
struct mlme_ext_priv *pmlmeext = &Adapter->mlmeextpriv; struct mlme_ext_priv *pmlmeext = &Adapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info; struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
bool ShortPreamble;
if (updateCap & cShortPreamble) { if (updateCap & cShortPreamble) {
/* Short Preamble */ /* Short Preamble */
if (pmlmeinfo->preamble_mode != PREAMBLE_SHORT) { if (pmlmeinfo->preamble_mode != PREAMBLE_SHORT) {
/* PREAMBLE_LONG or PREAMBLE_AUTO */ /* PREAMBLE_LONG or PREAMBLE_AUTO */
ShortPreamble = true;
pmlmeinfo->preamble_mode = PREAMBLE_SHORT; pmlmeinfo->preamble_mode = PREAMBLE_SHORT;
rtw_hal_set_hwreg23a(Adapter, HW_VAR_ACK_PREAMBLE, (u8 *)&ShortPreamble); rtl8723a_ack_preamble(Adapter, true);
} }
} else { /* Long Preamble */ } else { /* Long Preamble */
if (pmlmeinfo->preamble_mode != PREAMBLE_LONG) { if (pmlmeinfo->preamble_mode != PREAMBLE_LONG) {
/* PREAMBLE_SHORT or PREAMBLE_AUTO */ /* PREAMBLE_SHORT or PREAMBLE_AUTO */
ShortPreamble = false;
pmlmeinfo->preamble_mode = PREAMBLE_LONG; pmlmeinfo->preamble_mode = PREAMBLE_LONG;
rtw_hal_set_hwreg23a(Adapter, HW_VAR_ACK_PREAMBLE, (u8 *)&ShortPreamble); rtl8723a_ack_preamble(Adapter, false);
} }
} }
if (updateCap & cIBSS) { if (updateCap & cIBSS) {
......
...@@ -3143,10 +3143,6 @@ void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val) ...@@ -3143,10 +3143,6 @@ void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
rtl8723a_set_bcn_func(padapter, *val); rtl8723a_set_bcn_func(padapter, *val);
break; break;
case HW_VAR_ACK_PREAMBLE:
rtl8723a_ack_preamble(padapter, *val);
break;
case HW_VAR_SEC_CFG: case HW_VAR_SEC_CFG:
rtl8723a_set_sec_cfg(padapter, *val); rtl8723a_set_sec_cfg(padapter, *val);
break; break;
......
...@@ -39,7 +39,6 @@ enum HW_VARIABLES { ...@@ -39,7 +39,6 @@ enum HW_VARIABLES {
HW_VAR_INIT_RTS_RATE, HW_VAR_INIT_RTS_RATE,
HW_VAR_TXPAUSE, HW_VAR_TXPAUSE,
HW_VAR_BCN_FUNC, HW_VAR_BCN_FUNC,
HW_VAR_ACK_PREAMBLE,
HW_VAR_SEC_CFG, HW_VAR_SEC_CFG,
HW_VAR_RF_TYPE, HW_VAR_RF_TYPE,
HW_VAR_DM_FLAG, HW_VAR_DM_FLAG,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment