Commit e554fb2f authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Greg Kroah-Hartman

Staging: rt3070: remove dead MULTIPLE_CARD_SUPPORT code

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9ab6d90b
...@@ -53,11 +53,6 @@ MODULE_VERSION(STA_DRIVER_VERSION); ...@@ -53,11 +53,6 @@ MODULE_VERSION(STA_DRIVER_VERSION);
#endif #endif
#endif // CONFIG_STA_SUPPORT // #endif // CONFIG_STA_SUPPORT //
#ifdef MULTIPLE_CARD_SUPPORT
// record whether the card in the card list is used in the card file
extern UINT8 MC_CardUsed[];
#endif // MULTIPLE_CARD_SUPPORT //
/* Kernel thread and vars, which handles packets that are completed. Only /* Kernel thread and vars, which handles packets that are completed. Only
* packets that have a "complete" function are sent here. This way, the * packets that have a "complete" function are sent here. This way, the
* completion is run out of kernel context, and doesn't block the rest of * completion is run out of kernel context, and doesn't block the rest of
...@@ -782,11 +777,6 @@ static void _rtusb_disconnect(struct usb_device *dev, PRTMP_ADAPTER pAd) ...@@ -782,11 +777,6 @@ static void _rtusb_disconnect(struct usb_device *dev, PRTMP_ADAPTER pAd)
dev->bus->bus_name, dev->devpath)); dev->bus->bus_name, dev->devpath));
if (!pAd) if (!pAd)
{ {
#ifdef MULTIPLE_CARD_SUPPORT
if ((pAd->MC_RowID >= 0) && (pAd->MC_RowID <= MAX_NUM_OF_MULTIPLE_CARD))
MC_CardUsed[pAd->MC_RowID] = 0; // not clear MAC address
#endif // MULTIPLE_CARD_SUPPORT //
usb_put_dev(dev); usb_put_dev(dev);
printk("rtusb_disconnect: pAd == NULL!\n"); printk("rtusb_disconnect: pAd == NULL!\n");
......
...@@ -95,9 +95,6 @@ typedef int (*HARD_START_XMIT_FUNC)(struct sk_buff *skb, struct net_device *net_ ...@@ -95,9 +95,6 @@ typedef int (*HARD_START_XMIT_FUNC)(struct sk_buff *skb, struct net_device *net_
#define STA_RT2870_IMAGE_FILE_NAME "/etc/Wireless/RT2870STA/rt2870.bin" #define STA_RT2870_IMAGE_FILE_NAME "/etc/Wireless/RT2870STA/rt2870.bin"
#define STA_NIC_DEVICE_NAME "RT2870STA" #define STA_NIC_DEVICE_NAME "RT2870STA"
#define STA_DRIVER_VERSION "2.0.1.0" #define STA_DRIVER_VERSION "2.0.1.0"
#ifdef MULTIPLE_CARD_SUPPORT
#define CARD_INFO_PATH "/etc/Wireless/RT2870STA/RT2870STACard.dat"
#endif // MULTIPLE_CARD_SUPPORT //
#endif // RT2870 // #endif // RT2870 //
#endif // CONFIG_STA_SUPPORT // #endif // CONFIG_STA_SUPPORT //
......
This diff is collapsed.
...@@ -919,9 +919,6 @@ NDIS_STATUS RTMPReadParametersHook( ...@@ -919,9 +919,6 @@ NDIS_STATUS RTMPReadParametersHook(
IF_DEV_CONFIG_OPMODE_ON_STA(pAd) IF_DEV_CONFIG_OPMODE_ON_STA(pAd)
src = STA_PROFILE_PATH; src = STA_PROFILE_PATH;
#endif // CONFIG_STA_SUPPORT // #endif // CONFIG_STA_SUPPORT //
#ifdef MULTIPLE_CARD_SUPPORT
src = pAd->MC_FileName;
#endif // MULTIPLE_CARD_SUPPORT //
// Save uid and gid used for filesystem access. // Save uid and gid used for filesystem access.
// Set user and group to 0 (root) // Set user and group to 0 (root)
......
...@@ -2965,11 +2965,6 @@ typedef struct _RTMP_ADAPTER ...@@ -2965,11 +2965,6 @@ typedef struct _RTMP_ADAPTER
struct net_device_stats stats; struct net_device_stats stats;
#ifdef MULTIPLE_CARD_SUPPORT
INT32 MC_RowID;
UCHAR MC_FileName[256];
#endif // MULTIPLE_CARD_SUPPORT //
ULONG TbttTickCount; ULONG TbttTickCount;
#ifdef PCI_MSI_SUPPORT #ifdef PCI_MSI_SUPPORT
BOOLEAN HaveMsi; BOOLEAN HaveMsi;
......
...@@ -123,11 +123,6 @@ ...@@ -123,11 +123,6 @@
#define LOCAL_TXBUF_SIZE 2048 #define LOCAL_TXBUF_SIZE 2048
#endif // RT2870 // #endif // RT2870 //
#ifdef MULTIPLE_CARD_SUPPORT
// MC: Multple Cards
#define MAX_NUM_OF_MULTIPLE_CARD 32
#endif // MULTIPLE_CARD_SUPPORT //
#define MAX_RX_PROCESS 128 //64 //32 #define MAX_RX_PROCESS 128 //64 //32
#define NUM_OF_LOCAL_TXBUF 2 #define NUM_OF_LOCAL_TXBUF 2
#define TXD_SIZE 16 #define TXD_SIZE 16
......
...@@ -5013,9 +5013,6 @@ INT RTMPQueryInformation( ...@@ -5013,9 +5013,6 @@ INT RTMPQueryInformation(
case RT_OID_QUERY_MULTIPLE_CARD_SUPPORT: case RT_OID_QUERY_MULTIPLE_CARD_SUPPORT:
wrq->u.data.length = sizeof(UCHAR); wrq->u.data.length = sizeof(UCHAR);
i = 0; i = 0;
#ifdef MULTIPLE_CARD_SUPPORT
i = 1;
#endif // MULTIPLE_CARD_SUPPORT //
if (copy_to_user(wrq->u.data.pointer, &i, wrq->u.data.length)) if (copy_to_user(wrq->u.data.pointer, &i, wrq->u.data.length))
{ {
Status = -EFAULT; Status = -EFAULT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment