staging: rtl8723au: Fold odm_EdcaTurboCheck23aCE23a() into odm_EdcaTurboCheck23a()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 21 Jul 2014 09:24:41 +0000 (11:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jul 2014 19:09:25 +0000 (12:09 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/odm.c

index ce192de047583da69b6918b97d7215f2e7a85e8c..3292b5f3e491e14e7e367c0dbca506dbac9744ff 100644 (file)
@@ -241,8 +241,6 @@ void odm_TXPowerTrackingCheckCE23a(struct dm_odm_t *pDM_Odm);
 void odm_EdcaTurboCheck23a(struct dm_odm_t *pDM_Odm);
 void ODM_EdcaTurboInit23a(struct dm_odm_t *pDM_Odm);
 
-void odm_EdcaTurboCheck23aCE23a(struct dm_odm_t *pDM_Odm);
-
 #define                RxDefaultAnt1           0x65a9
 #define        RxDefaultAnt2           0x569a
 
@@ -1628,38 +1626,29 @@ void ODM_EdcaTurboInit23a(struct dm_odm_t *pDM_Odm)
 
 void odm_EdcaTurboCheck23a(struct dm_odm_t *pDM_Odm)
 {
+       struct rtw_adapter *Adapter = pDM_Odm->Adapter;
+       struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter);
+       struct xmit_priv *pxmitpriv = &Adapter->xmitpriv;
+       struct recv_priv *precvpriv = &Adapter->recvpriv;
+       struct registry_priv *pregpriv = &Adapter->registrypriv;
+       struct mlme_ext_priv *pmlmeext = &Adapter->mlmeextpriv;
+       struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
+       u32 trafficIndex;
+       u32 edca_param;
+       u64 cur_tx_bytes = 0;
+       u64 cur_rx_bytes = 0;
+       u8 bbtchange = false;
+
        /*  For AP/ADSL use struct rtl8723a_priv * */
        /*  For CE/NIC use struct rtw_adapter * */
 
        /*  2011/09/29 MH In HW integration first stage, we provide 4 different handle to operate */
        /*  at the same time. In the stage2/3, we need to prive universal interface and merge all */
        /*  HW dynamic mechanism. */
-       ODM_RT_TRACE(pDM_Odm, ODM_COMP_EDCA_TURBO, ODM_DBG_LOUD, ("odm_EdcaTurboCheck23a ========================>\n"));
 
        if (!(pDM_Odm->SupportAbility & ODM_MAC_EDCA_TURBO))
                return;
 
-       odm_EdcaTurboCheck23aCE23a(pDM_Odm);
-       ODM_RT_TRACE(pDM_Odm, ODM_COMP_EDCA_TURBO, ODM_DBG_LOUD, ("<======================== odm_EdcaTurboCheck23a\n"));
-
-}      /*  odm_CheckEdcaTurbo */
-
-void odm_EdcaTurboCheck23aCE23a(struct dm_odm_t *pDM_Odm)
-{
-       struct rtw_adapter *Adapter = pDM_Odm->Adapter;
-
-       u32 trafficIndex;
-       u32 edca_param;
-       u64 cur_tx_bytes = 0;
-       u64 cur_rx_bytes = 0;
-       u8 bbtchange = false;
-       struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter);
-       struct xmit_priv *pxmitpriv = &Adapter->xmitpriv;
-       struct recv_priv *precvpriv = &Adapter->recvpriv;
-       struct registry_priv *pregpriv = &Adapter->registrypriv;
-       struct mlme_ext_priv *pmlmeext = &Adapter->mlmeextpriv;
-       struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
-
        if ((pregpriv->wifi_spec == 1))/*  (pmlmeinfo->HT_enable == 0)) */
                goto dm_CheckEdcaTurbo_EXIT;