]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rtl8723au: Make direct calls for HW_VAR_AMPDU_{MIN_SPACE,FACTOR}
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Apr 2014 21:20:32 +0000 (23:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 15:29:04 +0000 (08:29 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_ap.c
drivers/staging/rtl8723au/core/rtw_wlan_util.c
drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
drivers/staging/rtl8723au/include/hal_intf.h

index 59e161c16678f3028ead168a19db3376eeac15d7..f55e86d8be65cf36b8bcfcb475ae232480357873 100644 (file)
@@ -632,9 +632,8 @@ static void update_hw_ht_param(struct rtw_adapter *padapter)
 
        min_MPDU_spacing = (pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x1c) >> 2;
 
-       rtw_hal_set_hwreg23a(padapter, HW_VAR_AMPDU_MIN_SPACE, (u8 *)(&min_MPDU_spacing));
-
-       rtw_hal_set_hwreg23a(padapter, HW_VAR_AMPDU_FACTOR, (u8 *)(&max_AMPDU_len));
+       rtl8723a_set_ampdu_min_space(padapter, min_MPDU_spacing);
+       rtl8723a_set_ampdu_factor(padapter, max_AMPDU_len);
 
        /*  Config SM Power Save setting */
        pmlmeinfo->SM_PS = (pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info & 0x0C) >> 2;
index 2d0cc6b3c52d1113e1826070980226439816f7cf..91bb7a451fbac389af81c37cade8b5be5057d599 100644 (file)
@@ -849,9 +849,8 @@ void HTOnAssocRsp23a(struct rtw_adapter *padapter)
 
        min_MPDU_spacing = (pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x1c) >> 2;
 
-       rtw_hal_set_hwreg23a(padapter, HW_VAR_AMPDU_MIN_SPACE, (u8 *)(&min_MPDU_spacing));
-
-       rtw_hal_set_hwreg23a(padapter, HW_VAR_AMPDU_FACTOR, (u8 *)(&max_AMPDU_len));
+       rtl8723a_set_ampdu_min_space(padapter, min_MPDU_spacing);
+       rtl8723a_set_ampdu_factor(padapter, max_AMPDU_len);
 }
 
 void ERP_IE_handler23a(struct rtw_adapter *padapter, struct ndis_802_11_var_ies * pIE)
index 8c8e98b55255ef43f13d0f023eaf0f7c069f89c2..56c6654d61e045cdece9afe5090988af0e8c5ba3 100644 (file)
@@ -3157,14 +3157,6 @@ void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
                rtl8723a_odm_support_ability_clr(padapter, *val32);
                break;
 
-       case HW_VAR_AMPDU_MIN_SPACE:
-               rtl8723a_set_ampdu_min_space(padapter, *val);
-               break;
-
-       case HW_VAR_AMPDU_FACTOR:
-               rtl8723a_set_ampdu_factor(padapter, *val);
-               break;
-
        case HW_VAR_RXDMA_AGG_PG_TH:
                rtl8723a_set_rxdma_agg_pg_th(padapter, *val);
                break;
index 30398d3028d24089b340412342dc46d52c1f0d68..01aec72ab77c261856cca896f566f8e99cdd86cb 100644 (file)
@@ -45,8 +45,6 @@ enum HW_VARIABLES {
        HW_VAR_DM_FUNC_SET,
        HW_VAR_DM_FUNC_CLR,
        HW_VAR_CAM_READ,
-       HW_VAR_AMPDU_MIN_SPACE,
-       HW_VAR_AMPDU_FACTOR,
        HW_VAR_RXDMA_AGG_PG_TH,
        HW_VAR_SET_RPWM,
        HW_VAR_H2C_FW_PWRMODE,