Skip to contentSkip to conversation

staging: vt6656: dead code remove ioctl.c/h

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

lore
Share & tools
lore
#0 lore raw

PATCH 5/10 staging: vt6656: dead code remove ioctl.c/h

---
 drivers/staging/vt6656/Makefile   |    1 -
 drivers/staging/vt6656/ioctl.c    |  648 -------------------------------------
 drivers/staging/vt6656/ioctl.h    |   54 ----
 drivers/staging/vt6656/iwctl.c    |    5 -
 drivers/staging/vt6656/main_usb.c |   24 --
 5 files changed, 732 deletions(-)
 delete mode 100644 drivers/staging/vt6656/ioctl.c
 delete mode 100644 drivers/staging/vt6656/ioctl.h
drivers/staging/vt6656/Makefile +0 -1
index 41ed06b..c998547 100644
@@ -20,7 +20,6 @@ vt6656_stage-y +=	main_usb.o \
 			rc4.o \
 			tether.o \
 			tcrc.o \
-			ioctl.o \
 			hostap.o \
 			wpa.o \
 			key.o \
drivers/staging/vt6656/ioctl.c deleted +0 -648

648 lines not on this page · raw message

drivers/staging/vt6656/ioctl.h deleted +0 -54

54 lines not on this page · raw message

drivers/staging/vt6656/iwctl.c +0 -5
index 11d2903..f344b55 100644
@@ -32,7 +32,6 @@
 
 #include "device.h"
 #include "iwctl.h"
-#include "iocmd.h"
 #include "mac.h"
 #include "card.h"
 #include "hostap.h"
@@ -1826,10 +1825,6 @@ static const iw_handler iwctl_private_handler[] = {
 	NULL, // SIOCIWFIRSTPRIV
 };
 
-const struct iw_priv_args iwctl_private_args[] = {
-	{ IOCTL_CMD_SET, IW_PRIV_TYPE_CHAR | 1024, 0, "set" },
-};
-
 const struct iw_handler_def iwctl_handler_def = {
 	.get_wireless_stats	= &iwctl_get_wireless_stats,
 	.num_standard		= ARRAY_SIZE(iwctl_handler),
drivers/staging/vt6656/main_usb.c +0 -24
index 5e55752..a667e39 100644
@@ -61,7 +61,6 @@
 #include "bssdb.h"
 #include "hostap.h"
 #include "wpactl.h"
-#include "ioctl.h"
 #include "iwctl.h"
 #include "dpc.h"
 #include "datarate.h"
@@ -956,12 +955,6 @@ BOOL device_alloc_frag_buf(PSDevice pDevice, PSDeFragControlBlock pDeF) {
 static int  device_open(struct net_device *dev) {
     PSDevice    pDevice=(PSDevice) netdev_priv(dev);
 
-     extern SWPAResult wpa_Result;
-     memset(wpa_Result.ifname,0,sizeof(wpa_Result.ifname));
-     wpa_Result.proto = 0;
-     wpa_Result.key_mgmt = 0;
-     wpa_Result.eap_type = 0;
-     wpa_Result.authenticated = FALSE;
      pDevice->fWPA_Authened = FALSE;
 
     DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " device_open...\n");
@@ -1550,23 +1543,6 @@ static int  device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) {
       //	 pReq->wResult = MAGIC_CODE+1;    //disconnect status:0x3143
         break;
 
-    case IOCTL_CMD_SET:
-		if (!(pDevice->flags & DEVICE_FLAGS_OPENED) &&
-		       (((PSCmdRequest)rq)->wCmdCode !=WLAN_CMD_SET_WPA))
-		{
-		    rc = -EFAULT;
-		    break;
-		} else {
-		    rc = 0;
-		}
-
-	    if (test_and_set_bit( 0, (void*)&(pMgmt->uCmdBusy))) {
-		    return -EBUSY;
-	    }
-        rc = private_ioctl(pDevice, rq);
-        clear_bit( 0, (void*)&(pMgmt->uCmdBusy));
-        break;
-
     case IOCTL_CMD_HOSTAPD:
 
 		if (!(pDevice->flags & DEVICE_FLAGS_OPENED)) {
Signature · 1 line
1.7.10.4