Staging: rt3070: remove dead RALINK_ATE code
[safe/jmp/linux-2.6] / drivers / staging / rt3070 / rt_main_dev.c
index 8513dd4..f0d32c2 100644 (file)
@@ -47,10 +47,6 @@ UINT8  MC_CardUsed[MAX_NUM_OF_MULTIPLE_CARD];
 static UINT8  MC_CardMac[MAX_NUM_OF_MULTIPLE_CARD][6];
 #endif // MULTIPLE_CARD_SUPPORT //
 
-#ifdef CONFIG_APSTA_MIXED_SUPPORT
-UINT32 CW_MAX_IN_BITS;
-#endif // CONFIG_APSTA_MIXED_SUPPORT //
-
 /*---------------------------------------------------------------------*/
 /* Private Variables Used                                              */
 /*---------------------------------------------------------------------*/
@@ -87,10 +83,6 @@ static void CfgInitHook(PRTMP_ADAPTER pAd);
 extern const struct iw_handler_def rt28xx_iw_handler_def;
 #endif // CONFIG_STA_SUPPORT //
 
-#ifdef CONFIG_APSTA_MIXED_SUPPORT
-extern const struct iw_handler_def rt28xx_ap_iw_handler_def;
-#endif // CONFIG_APSTA_MIXED_SUPPORT //
-
 #if WIRELESS_EXT >= 12
 // This function will be called when query /proc
 struct iw_statistics *rt28xx_get_wireless_stats(
@@ -715,27 +707,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->ml_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 //
 
@@ -864,15 +835,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
@@ -1448,15 +1410,6 @@ int rt28xx_packet_xmit(struct sk_buff *skb)
        int status = 0;
        PNDIS_PACKET pPacket = (PNDIS_PACKET) skb;
 
-       /* RT2870STA does this in RTMPSendPackets() */
-#ifdef RALINK_ATE
-       if (ATE_ON(pAd))
-       {
-               RELEASE_NDIS_PACKET(pAd, pPacket, NDIS_STATUS_RESOURCES);
-               return 0;
-       }
-#endif // RALINK_ATE //
-
 #ifdef CONFIG_STA_SUPPORT
        IF_DEV_CONFIG_OPMODE_ON_STA(pAd)
        {