staging: rtl8192e: Remove dead code involved with TO_DO
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 13 Jul 2011 03:08:32 +0000 (22:08 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 01:23:39 +0000 (20:23 -0500)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
drivers/staging/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/rtllib_softmac.c

index 6c2e44f..8224a56 100644 (file)
@@ -1531,44 +1531,13 @@ SetRFPowerState8190(
        if (bResult) {
                priv->rtllib->eRFPowerState = eRFPowerState;
 
-               switch (priv->rf_chip )
-               {
-                       case RF_8256:
-                       switch (priv->rtllib->eRFPowerState)
-                       {
-                               case eRfOff:
-                                       if (priv->rtllib->RfOffReason==RF_CHANGE_BY_IPS ) {
-                                               #ifdef TO_DO
-                                               dev->HalFunc.LedControlHandler(dev,LED_CTL_NO_LINK);
-                                               #endif
-                                       } else {
-                                               #ifdef TO_DO
-                                               dev->HalFunc.LedControlHandler(dev, LED_CTL_POWER_OFF);
-                                               #endif
-                                       }
-                                       break;
-
-                               case eRfOn:
-                                       if ( priv->rtllib->state == RTLLIB_LINKED) {
-                                               #ifdef TO_DO
-                                               dev->HalFunc.LedControlHandler(dev, LED_CTL_LINK);
-                                               #endif
-                                       } else {
-                                               #ifdef TO_DO
-                                               dev->HalFunc.LedControlHandler(dev, LED_CTL_NO_LINK);
-                                               #endif
-                                       }
-                                       break;
-
-                               default:
-                                       break;
-                       }
-
+               switch (priv->rf_chip) {
+               case RF_8256:
                        break;
 
-                       default:
-                               RT_TRACE(COMP_ERR, "SetRFPowerState8190(): Unknown RF type\n");
-                               break;
+               default:
+                       RT_TRACE(COMP_ERR, "SetRFPowerState8190(): Unknown RF type\n");
+                       break;
                }
        }
 
index 9f7227e..b224468 100644 (file)
@@ -3974,15 +3974,6 @@ rtllib_MgntDisconnectAP(
 {
        bool bFilterOutNonAssociatedBSSID = false;
 
-
-#ifdef TO_DO
-       if (   pMgntInfo->SecurityInfo.AuthMode > RT_802_11AuthModeAutoSwitch ||
-               (pMgntInfo->bAPSuportCCKM && pMgntInfo->bCCX8021xenable) )
-       {
-               SecClearAllKeys(rtllib->dev);
-               RT_TRACE(COMP_SEC, DBG_LOUD,("======>CCKM clear key..."))
-       }
-#endif
        bFilterOutNonAssociatedBSSID = false;
        rtllib->SetHwRegHandler(rtllib->dev, HW_VAR_CECHK_BSSID, (u8*)(&bFilterOutNonAssociatedBSSID));
        rtllib_MlmeDisassociateRequest( rtllib, rtllib->current_network.bssid, asRsn );
@@ -4001,15 +3992,6 @@ rtllib_MgntDisconnect(
                 rtllib->sta_wake_up(rtllib->dev);
        }
 
-#ifdef TO_DO
-       if (pMgntInfo->mActingAsAp)
-       {
-               RT_TRACE(COMP_MLME, DBG_LOUD, ("MgntDisconnect() ===> AP_DisassociateAllStation\n"));
-               AP_DisassociateAllStation(rtllib->dev, unspec_reason);
-               return true;
-       }
-#endif
-
        if ( rtllib->state == RTLLIB_LINKED )
        {
                if ( rtllib->iw_mode == IW_MODE_ADHOC )