Staging: rt2870: remove dead CONFIG_APSTA_MIXED_SUPPORT code
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 26 Apr 2009 14:04:40 +0000 (16:04 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:41 +0000 (11:00 -0700)
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rt2870/common/cmm_info.c
drivers/staging/rt2870/mlme.h
drivers/staging/rt2870/rt_main_dev.c
drivers/staging/rt2870/rtmp.h
drivers/staging/rt2870/sta_ioctl.c

index 27586d344ad19cbb923f8c292b71f614ff77a9d3..e3a4add59a06651593f6f8acf180a73c9be646a7 100644 (file)
@@ -3111,37 +3111,6 @@ INT      Set_FixedTxMode_Proc(
        return TRUE;
 }
 
-#ifdef CONFIG_APSTA_MIXED_SUPPORT
-INT    Set_OpMode_Proc(
-       IN      PRTMP_ADAPTER   pAd,
-       IN      PUCHAR                  arg)
-{
-       ULONG Value;
-
-       Value = simple_strtol(arg, 0, 10);
-
-#ifdef RT2870
-       if (RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_START_UP))
-#endif // RT2870 //
-       {
-               DBGPRINT(RT_DEBUG_ERROR, ("Can not switch operate mode on interface up !! \n"));
-               return FALSE;
-       }
-
-       if (Value == 0)
-               pAd->OpMode = OPMODE_STA;
-       else if (Value == 1)
-               pAd->OpMode = OPMODE_AP;
-       else
-               return FALSE; //Invalid argument
-
-       DBGPRINT(RT_DEBUG_TRACE, ("Set_OpMode_Proc::(OpMode=%s)\n", pAd->OpMode == 1 ? "AP Mode" : "STA Mode"));
-
-       return TRUE;
-}
-#endif // CONFIG_APSTA_MIXED_SUPPORT //
-
-
 /////////////////////////////////////////////////////////////////////////
 PCHAR   RTMPGetRalinkAuthModeStr(
     IN  NDIS_802_11_AUTHENTICATION_MODE authMode)
index 52fb8e1c29065d4e4639051eac6180b2c0a431f4..151ed582dac596667778a4d351cbc34234ad2ef1 100644 (file)
 #endif
 #endif // CONFIG_STA_SUPPORT //
 
-#ifdef CONFIG_APSTA_MIXED_SUPPORT
-extern UINT32 CW_MAX_IN_BITS;
-#endif // CONFIG_APSTA_MIXED_SUPPORT //
-
 // Note: RSSI_TO_DBM_OFFSET has been changed to variable for new RF (2004-0720).
 // SHould not refer to this constant anymore
 //#define RSSI_TO_DBM_OFFSET          120 // for RT2530 RSSI-115 = dBm
index 1abd46d53dfa657b7e9f46ed60c76f4edb62134b..ec7837d6d83ce6df2bd8757fe223853018eb3f92 100644 (file)
@@ -714,27 +714,6 @@ int rt28xx_open(IN PNET_DEV dev)
                return -1;
        }
 
-#ifdef CONFIG_APSTA_MIXED_SUPPORT
-       if (pAd->OpMode == OPMODE_AP)
-       {
-               CW_MAX_IN_BITS = 6;
-       }
-       else if (pAd->OpMode == OPMODE_STA)
-       {
-               CW_MAX_IN_BITS = 10;
-       }
-
-#if WIRELESS_EXT >= 12
-       if (net_dev->priv_flags == INT_MAIN)
-       {
-               if (pAd->OpMode == OPMODE_AP)
-                       net_dev->wireless_handlers = (struct iw_handler_def *) &rt28xx_ap_iw_handler_def;
-               else if (pAd->OpMode == OPMODE_STA)
-                       net_dev->wireless_handlers = (struct iw_handler_def *) &rt28xx_iw_handler_def;
-       }
-#endif // WIRELESS_EXT >= 12 //
-#endif // CONFIG_APSTA_MIXED_SUPPORT //
-
 #ifdef CONFIG_STA_SUPPORT
 #endif // CONFIG_STA_SUPPORT //
 
@@ -876,15 +855,6 @@ static NDIS_STATUS rt_ieee80211_if_setup(struct net_device *dev, PRTMP_ADAPTER p
 #endif //WIRELESS_EXT >= 12
 #endif // CONFIG_STA_SUPPORT //
 
-#ifdef CONFIG_APSTA_MIXED_SUPPORT
-#if WIRELESS_EXT >= 12
-       if (pAd->OpMode == OPMODE_AP)
-       {
-               dev->wireless_handlers = &rt28xx_ap_iw_handler_def;
-       }
-#endif //WIRELESS_EXT >= 12
-#endif // CONFIG_APSTA_MIXED_SUPPORT //
-
 #if WIRELESS_EXT < 21
                dev->get_wireless_stats = rt28xx_get_wireless_stats;
 #endif
index c2a4784ec3381665fa36cbd3cab03e3c9c95816f..8cd2987b807b458ae6d4e51dbb02b559a60a0780 100644 (file)
@@ -6988,12 +6988,6 @@ INT      Set_FixedTxMode_Proc(
        IN      PRTMP_ADAPTER   pAd,
        IN      PUCHAR                  arg);
 
-#ifdef CONFIG_APSTA_MIXED_SUPPORT
-INT    Set_OpMode_Proc(
-       IN      PRTMP_ADAPTER   pAd,
-       IN      PUCHAR                  arg);
-#endif // CONFIG_APSTA_MIXED_SUPPORT //
-
 static inline char* GetPhyMode(
        int Mode)
 {
index 7051a1272a043bad01978a969156fa8c984c2558..659461543f9073adc336ac0d77237d10e70bed35 100644 (file)
@@ -322,9 +322,6 @@ static struct {
 
 
        {"FixedTxMode",                 Set_FixedTxMode_Proc},
-#ifdef CONFIG_APSTA_MIXED_SUPPORT
-       {"OpMode",                                              Set_OpMode_Proc},
-#endif // CONFIG_APSTA_MIXED_SUPPORT //
 #ifdef DOT11_N_SUPPORT
     {"TGnWifiTest",                 Set_TGnWifiTest_Proc},
     {"ForceGF",                                        Set_ForceGF_Proc},
@@ -5487,14 +5484,6 @@ INT rt28xx_sta_ioctl(
     //check if the interface is down
     if(!RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_INTERRUPT_IN_USE))
     {
-#ifdef CONFIG_APSTA_MIXED_SUPPORT
-           if (wrq->u.data.pointer == NULL)
-           {
-                   return Status;
-           }
-
-           if (strstr(wrq->u.data.pointer, "OpMode") == NULL)
-#endif // CONFIG_APSTA_MIXED_SUPPORT //
         {
             DBGPRINT(RT_DEBUG_TRACE, ("INFO::Network is down!\n"));
                    return -ENETDOWN;