staging: rtl8723au: Firmware always handles adaptive rates
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 9 Feb 2015 22:52:21 +0000 (17:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 17:54:23 +0000 (09:54 -0800)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/odm.c
drivers/staging/rtl8723au/include/odm.h

index 82861e716a9354e988cff50a759253e4a34959f9..2a77fb8531669f29a81cbc164ba528b5c860ad7f 100644 (file)
@@ -1010,10 +1010,6 @@ void odm_RateAdaptiveMaskInit23a(struct dm_odm_t *pDM_Odm)
        struct odm_rate_adapt *pOdmRA = &pDM_Odm->RateAdaptive;
 
        pOdmRA->Type = DM_Type_ByDriver;
-       if (pOdmRA->Type == DM_Type_ByDriver)
-               pDM_Odm->bUseRAMask = true;
-       else
-               pDM_Odm->bUseRAMask = false;
 
        pOdmRA->RATRState = DM_RATR_STA_INIT;
        pOdmRA->HighRSSIThresh = 50;
@@ -1139,14 +1135,6 @@ void odm_RefreshRateAdaptiveMask23aCE23a(struct dm_odm_t *pDM_Odm)
                return;
        }
 
-       if (!pDM_Odm->bUseRAMask) {
-               ODM_RT_TRACE(pDM_Odm, ODM_COMP_RA_MASK, ODM_DBG_LOUD,
-                            ("<---- odm_RefreshRateAdaptiveMask23a(): driver does not control rate adaptive mask\n"));
-               return;
-       }
-
-       /* printk("==> %s \n", __func__); */
-
        for (i = 0; i < ODM_ASSOCIATE_ENTRY_NUM; i++) {
                struct sta_info *pstat = pDM_Odm->pODM_StaInfo[i];
                if (pstat) {
index 5a0561e092ac63bd4bf6ceab81ce360c537ad711..df0915dc9ef69895a8b021932f86dbf25dbf6e8f 100644 (file)
@@ -749,9 +749,6 @@ struct dm_odm_t {
        u8                      RSSI_BT;                        /* come from BT */
        bool                    bPSDinProcess;
 
-       /* for rate adaptive, in fact,  88c/92c fw will handle this */
-       u8                      bUseRAMask;
-
        struct odm_rate_adapt   RateAdaptive;