Commit 38dd10b5 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Eliminate HW_VAR_BSSID usage

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3c5660e7
...@@ -695,7 +695,7 @@ static void start_bss_network(struct rtw_adapter *padapter, u8 *pbuf) ...@@ -695,7 +695,7 @@ static void start_bss_network(struct rtw_adapter *padapter, u8 *pbuf)
Set_MSR23a(padapter, _HW_STATE_AP_); Set_MSR23a(padapter, _HW_STATE_AP_);
/* Set BSSID REG */ /* Set BSSID REG */
rtw_hal_set_hwreg23a(padapter, HW_VAR_BSSID, pnetwork->MacAddress); hw_var_set_bssid(padapter, pnetwork->MacAddress);
/* Set EDCA param reg */ /* Set EDCA param reg */
acparm = 0x002F3217; /* VO */ acparm = 0x002F3217; /* VO */
......
...@@ -8008,7 +8008,7 @@ void start_create_ibss23a(struct rtw_adapter* padapter) ...@@ -8008,7 +8008,7 @@ void start_create_ibss23a(struct rtw_adapter* padapter)
} }
else else
{ {
rtw_hal_set_hwreg23a(padapter, HW_VAR_BSSID, padapter->registrypriv.dev_network.MacAddress); hw_var_set_bssid(padapter, padapter->registrypriv.dev_network.MacAddress);
join_type = 0; join_type = 0;
rtw_hal_set_hwreg23a(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type)); rtw_hal_set_hwreg23a(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
...@@ -8698,7 +8698,7 @@ void mlmeext_joinbss_event_callback23a(struct rtw_adapter *padapter, int join_re ...@@ -8698,7 +8698,7 @@ void mlmeext_joinbss_event_callback23a(struct rtw_adapter *padapter, int join_re
{ {
join_type = 1; join_type = 1;
rtw_hal_set_hwreg23a(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type)); rtw_hal_set_hwreg23a(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
rtw_hal_set_hwreg23a(padapter, HW_VAR_BSSID, null_addr); hw_var_set_bssid(padapter, null_addr);
/* 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);
...@@ -8833,7 +8833,7 @@ void mlmeext_sta_del_event_callback23a(struct rtw_adapter *padapter) ...@@ -8833,7 +8833,7 @@ void mlmeext_sta_del_event_callback23a(struct rtw_adapter *padapter)
/* set_opmode_cmd(padapter, infra_client_with_mlme); */ /* set_opmode_cmd(padapter, infra_client_with_mlme); */
hw_var_set_mlme_disconnect(padapter); hw_var_set_mlme_disconnect(padapter);
rtw_hal_set_hwreg23a(padapter, HW_VAR_BSSID, null_addr); hw_var_set_bssid(padapter, null_addr);
/* 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);
...@@ -9386,8 +9386,7 @@ u8 join_cmd_hdl23a(struct rtw_adapter *padapter, u8 *pbuf) ...@@ -9386,8 +9386,7 @@ u8 join_cmd_hdl23a(struct rtw_adapter *padapter, u8 *pbuf)
/* rtw_hal_set_hwreg23a(padapter, HW_VAR_INITIAL_GAIN, /* rtw_hal_set_hwreg23a(padapter, HW_VAR_INITIAL_GAIN,
(u8 *)(&initialgain)); */ (u8 *)(&initialgain)); */
rtw_hal_set_hwreg23a(padapter, HW_VAR_BSSID, hw_var_set_bssid(padapter, pmlmeinfo->network.MacAddress);
pmlmeinfo->network.MacAddress);
join_type = 0; join_type = 0;
rtw_hal_set_hwreg23a(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type)); rtw_hal_set_hwreg23a(padapter, HW_VAR_MLME_JOIN, (u8 *)(&join_type));
...@@ -9417,7 +9416,7 @@ u8 disconnect_hdl23a(struct rtw_adapter *padapter, unsigned char *pbuf) ...@@ -9417,7 +9416,7 @@ u8 disconnect_hdl23a(struct rtw_adapter *padapter, unsigned char *pbuf)
/* pmlmeinfo->state = WIFI_FW_NULL_STATE; */ /* pmlmeinfo->state = WIFI_FW_NULL_STATE; */
hw_var_set_mlme_disconnect(padapter); hw_var_set_mlme_disconnect(padapter);
rtw_hal_set_hwreg23a(padapter, HW_VAR_BSSID, null_addr); hw_var_set_bssid(padapter, null_addr);
/* 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);
......
...@@ -142,7 +142,7 @@ static void sreset_restore_network_station(struct rtw_adapter *padapter) ...@@ -142,7 +142,7 @@ static void sreset_restore_network_station(struct rtw_adapter *padapter)
/* disable dynamic functions, such as high power, DIG */ /* disable dynamic functions, such as high power, DIG */
/* Switch_DM_Func23a(padapter, DYNAMIC_FUNC_DISABLE, false); */ /* Switch_DM_Func23a(padapter, DYNAMIC_FUNC_DISABLE, false); */
rtw_hal_set_hwreg23a(padapter, HW_VAR_BSSID, pmlmeinfo->network.MacAddress); hw_var_set_bssid(padapter, pmlmeinfo->network.MacAddress);
{ {
u8 join_type = 0; u8 join_type = 0;
......
...@@ -3007,7 +3007,7 @@ void hw_var_set_macaddr(struct rtw_adapter *padapter, u8 *val) ...@@ -3007,7 +3007,7 @@ void hw_var_set_macaddr(struct rtw_adapter *padapter, u8 *val)
rtw_write8(padapter, (reg_macid + idx), val[idx]); rtw_write8(padapter, (reg_macid + idx), val[idx]);
} }
static void hw_var_set_bssid(struct rtw_adapter *padapter, u8 *val) void hw_var_set_bssid(struct rtw_adapter *padapter, u8 *val)
{ {
u8 idx = 0; u8 idx = 0;
u32 reg_bssid; u32 reg_bssid;
...@@ -3135,10 +3135,6 @@ void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val) ...@@ -3135,10 +3135,6 @@ void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
u32 *val32 = (u32 *)val; u32 *val32 = (u32 *)val;
switch (variable) { switch (variable) {
case HW_VAR_BSSID:
hw_var_set_bssid(padapter, val);
break;
case HW_VAR_TXPAUSE: case HW_VAR_TXPAUSE:
rtl8723a_set_tx_pause(padapter, *val); rtl8723a_set_tx_pause(padapter, *val);
break; break;
......
...@@ -36,7 +36,6 @@ enum _CHIP_TYPE { ...@@ -36,7 +36,6 @@ enum _CHIP_TYPE {
}; };
enum HW_VARIABLES { enum HW_VARIABLES {
HW_VAR_BSSID,
HW_VAR_INIT_RTS_RATE, HW_VAR_INIT_RTS_RATE,
HW_VAR_TXPAUSE, HW_VAR_TXPAUSE,
HW_VAR_BCN_FUNC, HW_VAR_BCN_FUNC,
...@@ -380,5 +379,6 @@ void hw_var_set_correct_tsf(struct rtw_adapter *padapter); ...@@ -380,5 +379,6 @@ void hw_var_set_correct_tsf(struct rtw_adapter *padapter);
void hw_var_set_mlme_disconnect(struct rtw_adapter *padapter); void hw_var_set_mlme_disconnect(struct rtw_adapter *padapter);
void hw_var_set_opmode(struct rtw_adapter *padapter, u8 mode); void hw_var_set_opmode(struct rtw_adapter *padapter, u8 mode);
void hw_var_set_macaddr(struct rtw_adapter *padapter, u8 *val); void hw_var_set_macaddr(struct rtw_adapter *padapter, u8 *val);
void hw_var_set_bssid(struct rtw_adapter *padapter, u8 *val);
#endif /* __HAL_INTF_H__ */ #endif /* __HAL_INTF_H__ */
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