staging: rtl8723au: Eliminate usage of HW_VAR_BASIC_RATE
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
dbdcd36b2e
commit
fa2e52092a
|
@ -715,7 +715,7 @@ static void start_bss_network(struct rtw_adapter *padapter, u8 *pbuf)
|
|||
rtw_hal_set_hwreg23a(padapter, HW_VAR_BEACON_INTERVAL, (u8 *)(&bcn_interval));
|
||||
|
||||
UpdateBrateTbl23a(padapter, pnetwork->SupportedRates);
|
||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_BASIC_RATE, pnetwork->SupportedRates);
|
||||
HalSetBrateCfg23a(padapter, pnetwork->SupportedRates);
|
||||
|
||||
if (!pmlmepriv->cur_network.join_res) {
|
||||
/* setting only at first time */
|
||||
|
|
|
@ -8724,7 +8724,7 @@ void mlmeext_joinbss_event_callback23a(struct rtw_adapter *padapter, int join_re
|
|||
/* update IOT-releated issue */
|
||||
update_IOT_info23a(padapter);
|
||||
|
||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_BASIC_RATE, cur_network->SupportedRates);
|
||||
HalSetBrateCfg23a(padapter, cur_network->SupportedRates);
|
||||
|
||||
/* BCN interval */
|
||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_BEACON_INTERVAL, (u8 *)(&pmlmeinfo->bcn_interval));
|
||||
|
|
|
@ -1452,7 +1452,7 @@ void update_tx_basic_rate23a(struct rtw_adapter *padapter, u8 wirelessmode)
|
|||
else
|
||||
update_mgnt_tx_rate23a(padapter, IEEE80211_OFDM_RATE_6MB);
|
||||
|
||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_BASIC_RATE, supported_rates);
|
||||
HalSetBrateCfg23a(padapter, supported_rates);
|
||||
}
|
||||
|
||||
unsigned char check_assoc_AP23a(u8 *pframe, uint len)
|
||||
|
|
|
@ -4677,7 +4677,7 @@ bthci_StateConnected(struct rtw_adapter *padapter,
|
|||
if (padapter->HalFunc.UpdateRAMaskHandler)
|
||||
padapter->HalFunc.UpdateRAMaskHandler(padapter, MAX_FW_SUPPORT_MACID_NUM-1-EntryNum, 0);
|
||||
|
||||
rtw_hal_set_hwreg23a(padapter, HW_VAR_BASIC_RATE, padapter->mlmepriv.cur_network.network.SupportedRates);
|
||||
HalSetBrateCfg23a(padapter, padapter->mlmepriv.cur_network.network.SupportedRates);
|
||||
BTDM_SetFwChnlInfo(padapter, RT_MEDIA_CONNECT);
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -3143,10 +3143,6 @@ void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
|
|||
hw_var_set_bssid(padapter, val);
|
||||
break;
|
||||
|
||||
case HW_VAR_BASIC_RATE:
|
||||
HalSetBrateCfg23a(padapter, val);
|
||||
break;
|
||||
|
||||
case HW_VAR_TXPAUSE:
|
||||
rtl8723a_set_tx_pause(padapter, *val);
|
||||
break;
|
||||
|
@ -3285,10 +3281,6 @@ void GetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
|
|||
struct hal_data_8723a *pHalData = GET_HAL_DATA(padapter);
|
||||
|
||||
switch (variable) {
|
||||
case HW_VAR_BASIC_RATE:
|
||||
*((u16 *) val) = pHalData->BasicRateSet;
|
||||
break;
|
||||
|
||||
case HW_VAR_TXPAUSE:
|
||||
*val = rtw_read8(padapter, REG_TXPAUSE);
|
||||
break;
|
||||
|
|
|
@ -39,7 +39,6 @@ enum HW_VARIABLES {
|
|||
HW_VAR_MAC_ADDR,
|
||||
HW_VAR_BSSID,
|
||||
HW_VAR_INIT_RTS_RATE,
|
||||
HW_VAR_BASIC_RATE,
|
||||
HW_VAR_TXPAUSE,
|
||||
HW_VAR_BCN_FUNC,
|
||||
HW_VAR_CHECK_BSSID,
|
||||
|
|
Loading…
Reference in a new issue