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

index d3f7d08..80090eb 100644 (file)
@@ -103,14 +103,6 @@ VOID StopNetIfQueue(
        }
        else
 #endif // APCLI_SUPPORT //
-#ifdef WDS_SUPPORT
-       if (RTMP_GET_PACKET_NET_DEVICE(pPacket) >= MIN_NET_DEVICE_FOR_WDS)
-       {
-               IfIdx = (RTMP_GET_PACKET_NET_DEVICE(pPacket) - MIN_NET_DEVICE_FOR_WDS) % MAX_WDS_ENTRY;
-               NetDev = pAd->WdsTab.WdsEntry[IfIdx].dev;
-       }
-       else
-#endif // WDS_SUPPORT //
        {
 #ifdef MBSS_SUPPORT
                if (pAd->OpMode == OPMODE_AP)
index b3650ec..390615f 100644 (file)
@@ -1060,27 +1060,6 @@ VOID NotifyChSwAnnToPeerAPs(
        IN UINT8 ChSwMode,
        IN UINT8 Channel)
 {
-#ifdef WDS_SUPPORT
-       if (!((pRA[0] & 0xff) == 0xff)) // is pRA a broadcase address.
-       {
-               INT i;
-               // info neighbor APs that Radar signal found throgh WDS link.
-               for (i = 0; i < MAX_WDS_ENTRY; i++)
-               {
-                       if (ValidWdsEntry(pAd, i))
-                       {
-                               PUCHAR pDA = pAd->WdsTab.WdsEntry[i].PeerWdsAddr;
-
-                               // DA equal to SA. have no necessary orignal AP which found Radar signal.
-                               if (MAC_ADDR_EQUAL(pTA, pDA))
-                                       continue;
-
-                               // send Channel Switch Action frame to info Neighbro APs.
-                               EnqueueChSwAnn(pAd, pDA, ChSwMode, Channel);
-                       }
-               }
-       }
-#endif // WDS_SUPPORT //
 }
 
 static VOID StartDFSProcedure(
index 6c4396f..201ad4a 100644 (file)
@@ -214,11 +214,6 @@ int rt28xx_close(IN PNET_DEV dev)
        if (pAd == NULL)
                return 0; // close ok
 
-
-#ifdef WDS_SUPPORT
-       WdsDown(pAd);
-#endif // WDS_SUPPORT //
-
 #ifdef CONFIG_STA_SUPPORT
        IF_DEV_CONFIG_OPMODE_ON_STA(pAd)
        {