Skip to contentSkip to conversation

staging: vt6656: dead code removal : wpactl.c/h

PATCH New Malcolm Priestley 1 participant 1 message Nov 24, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 4/10 staging: vt6656: dead code removal : wpactl.c/h

Relates to redundant viawget, a proprietary version of wpa supplicant.

---
 drivers/staging/vt6656/device.h   |    1 -
 drivers/staging/vt6656/main_usb.c |   14 +-
 drivers/staging/vt6656/wpactl.c   |  636 -------------------------------------
 drivers/staging/vt6656/wpactl.h   |    8 -
 4 files changed, 1 insertion(+), 658 deletions(-)
drivers/staging/vt6656/device.h +0 -1
index 9a04900..25bf03a 100644
@@ -793,7 +793,6 @@ typedef struct __device_info {
     //WPA supplicant daemon
 	struct net_device       *wpadev;
 	BOOL                    bWPADEVUp;
-    struct sk_buff          *skb;
     //--
 
         BOOL                 bwextstep0;
drivers/staging/vt6656/main_usb.c +1 -13
index c70bafb..5e55752 100644
@@ -1188,9 +1188,9 @@ static void vt6656_disconnect(struct usb_interface *intf)
 
 	if (device->dev) {
 		unregister_netdev(device->dev);
-		wpa_set_wpadev(device, 0);
 		free_netdev(device->dev);
 	}
+
 }
 
 static int device_dma0_tx_80211(struct sk_buff *skb, struct net_device *dev)
@@ -1579,18 +1579,6 @@ static int  device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) {
 		rc = vt6656_hostap_ioctl(pDevice, &wrq->u.data);
         break;
 
-    case IOCTL_CMD_WPA:
-
-		if (!(pDevice->flags & DEVICE_FLAGS_OPENED)) {
-		    rc = -EFAULT;
-		    break;
-		} else {
-		    rc = 0;
-		}
-
-		rc = wpa_ioctl(pDevice, &wrq->u.data);
-        break;
-
 	case SIOCETHTOOL:
         return ethtool_ioctl(dev, (void *) rq->ifr_data);
 
drivers/staging/vt6656/wpactl.c +0 -636

652 lines not on this page · raw message

drivers/staging/vt6656/wpactl.h +0 -8
index 19ab8b6..14dcf0b 100644
@@ -38,17 +38,11 @@
 //WPA related
 
 typedef enum { WPA_ALG_NONE, WPA_ALG_WEP, WPA_ALG_TKIP, WPA_ALG_CCMP } wpa_alg;
-typedef enum { CIPHER_NONE, CIPHER_WEP40, CIPHER_TKIP, CIPHER_CCMP,
-	       CIPHER_WEP104 } wpa_cipher;
-typedef enum { KEY_MGMT_802_1X, KEY_MGMT_PSK, KEY_MGMT_NONE,
-	       KEY_MGMT_802_1X_NO_WPA, KEY_MGMT_WPA_NONE, KEY_MGMT_CCKM } wpa_key_mgmt;//20080717-02,<Modify> by James Li
 
 #define AUTH_ALG_OPEN_SYSTEM	0x01
 #define AUTH_ALG_SHARED_KEY	0x02
 #define AUTH_ALG_LEAP		0x04
 
-#define GENERIC_INFO_ELEM 0xdd
-#define RSN_INFO_ELEM 0x30
 
 typedef unsigned long long NDIS_802_11_KEY_RSC;
 
@@ -58,8 +52,6 @@ typedef unsigned long long NDIS_802_11_KEY_RSC;
 
 /*---------------------  Export Functions  --------------------------*/
 
-int wpa_set_wpadev(PSDevice pDevice, int val);
-int wpa_ioctl(PSDevice pDevice, struct iw_point *p);
 int wpa_set_keys(PSDevice pDevice, void *ctx, BOOL  fcpfkernel);
 
 #endif /* __WPACL_H__ */
Signature · 1 line
1.7.10.4