mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: rtl8723au: Nuke HW_VAR_BCN_FUNC
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7c82a2b91d
commit
dc451608f3
@ -9378,7 +9378,6 @@ u8 disconnect_hdl23a(struct rtw_adapter *padapter, unsigned char *pbuf)
|
|||||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||||
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
||||||
struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network;
|
struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network;
|
||||||
u8 val8;
|
|
||||||
|
|
||||||
if (is_client_associated_to_ap23a(padapter))
|
if (is_client_associated_to_ap23a(padapter))
|
||||||
{
|
{
|
||||||
@ -9395,12 +9394,9 @@ u8 disconnect_hdl23a(struct rtw_adapter *padapter, unsigned char *pbuf)
|
|||||||
/* restore to initial setting. */
|
/* restore to initial setting. */
|
||||||
update_tx_basic_rate23a(padapter, padapter->registrypriv.wireless_mode);
|
update_tx_basic_rate23a(padapter, padapter->registrypriv.wireless_mode);
|
||||||
|
|
||||||
if (((pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE) || ((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE))
|
if (((pmlmeinfo->state & 0x03) == WIFI_FW_ADHOC_STATE) ||
|
||||||
{
|
((pmlmeinfo->state & 0x03) == WIFI_FW_AP_STATE))
|
||||||
/* Stop BCN */
|
rtl8723a_set_bcn_func(padapter, 0); /* Stop BCN */
|
||||||
val8 = 0;
|
|
||||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_BCN_FUNC, (u8 *)(&val8));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* set MSR to no link state -> infra. mode */
|
/* set MSR to no link state -> infra. mode */
|
||||||
Set_MSR23a(padapter, _HW_STATE_STATION_);
|
Set_MSR23a(padapter, _HW_STATE_STATION_);
|
||||||
|
@ -3139,10 +3139,6 @@ void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
|
|||||||
rtl8723a_set_tx_pause(padapter, *val);
|
rtl8723a_set_tx_pause(padapter, *val);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HW_VAR_BCN_FUNC:
|
|
||||||
rtl8723a_set_bcn_func(padapter, *val);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case HW_VAR_DM_FLAG:
|
case HW_VAR_DM_FLAG:
|
||||||
rtl8723a_odm_support_ability_write(padapter, *val32);
|
rtl8723a_odm_support_ability_write(padapter, *val32);
|
||||||
break;
|
break;
|
||||||
|
@ -38,7 +38,6 @@ enum _CHIP_TYPE {
|
|||||||
enum HW_VARIABLES {
|
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_RF_TYPE,
|
HW_VAR_RF_TYPE,
|
||||||
HW_VAR_DM_FLAG,
|
HW_VAR_DM_FLAG,
|
||||||
HW_VAR_DM_FUNC_OP,
|
HW_VAR_DM_FUNC_OP,
|
||||||
|
Loading…
Reference in New Issue
Block a user