staging: rtl8723au: Eliminate HW_VAR_ACK_PREAMBLE
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7b7aefaab1
commit
093dd41e03
|
@ -1562,22 +1562,19 @@ void update_capinfo23a(struct rtw_adapter *Adapter, u16 updateCap)
|
|||
{
|
||||
struct mlme_ext_priv *pmlmeext = &Adapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
||||
bool ShortPreamble;
|
||||
|
||||
if (updateCap & cShortPreamble) {
|
||||
/* Short Preamble */
|
||||
if (pmlmeinfo->preamble_mode != PREAMBLE_SHORT) {
|
||||
/* PREAMBLE_LONG or PREAMBLE_AUTO */
|
||||
ShortPreamble = true;
|
||||
pmlmeinfo->preamble_mode = PREAMBLE_SHORT;
|
||||
rtw_hal_set_hwreg23a(Adapter, HW_VAR_ACK_PREAMBLE, (u8 *)&ShortPreamble);
|
||||
rtl8723a_ack_preamble(Adapter, true);
|
||||
}
|
||||
} else { /* Long Preamble */
|
||||
if (pmlmeinfo->preamble_mode != PREAMBLE_LONG) {
|
||||
/* PREAMBLE_SHORT or PREAMBLE_AUTO */
|
||||
ShortPreamble = false;
|
||||
pmlmeinfo->preamble_mode = PREAMBLE_LONG;
|
||||
rtw_hal_set_hwreg23a(Adapter, HW_VAR_ACK_PREAMBLE, (u8 *)&ShortPreamble);
|
||||
rtl8723a_ack_preamble(Adapter, false);
|
||||
}
|
||||
}
|
||||
if (updateCap & cIBSS) {
|
||||
|
|
|
@ -3143,10 +3143,6 @@ void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
|
|||
rtl8723a_set_bcn_func(padapter, *val);
|
||||
break;
|
||||
|
||||
case HW_VAR_ACK_PREAMBLE:
|
||||
rtl8723a_ack_preamble(padapter, *val);
|
||||
break;
|
||||
|
||||
case HW_VAR_SEC_CFG:
|
||||
rtl8723a_set_sec_cfg(padapter, *val);
|
||||
break;
|
||||
|
|
|
@ -39,7 +39,6 @@ enum HW_VARIABLES {
|
|||
HW_VAR_INIT_RTS_RATE,
|
||||
HW_VAR_TXPAUSE,
|
||||
HW_VAR_BCN_FUNC,
|
||||
HW_VAR_ACK_PREAMBLE,
|
||||
HW_VAR_SEC_CFG,
|
||||
HW_VAR_RF_TYPE,
|
||||
HW_VAR_DM_FLAG,
|
||||
|
|
Loading…
Reference in a new issue