[s3c24xx] ar6000: use net_device_ops
[openwrt/svn-archive/archive.git] / target / linux / s3c24xx / files-2.6.30 / drivers / ar6000 / ar6000 / ioctl.c
index 0b6e91ad09eec59a670735644ad7221dc5fbd524..04aa911f323007cf5e7c391dd2f1fd7af0d57da7 100644 (file)
@@ -25,7 +25,6 @@ extern USER_RSSI_THOLD rssi_map[12];
 extern unsigned int wmitimeout;
 extern A_WAITQUEUE_HEAD arEvent;
 extern int tspecCompliance;
-extern int bmienable;
 extern int bypasswmi;
 
 static int
@@ -1061,14 +1060,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
 #endif /* CONFIG_HOST_TCMD_SUPPORT */
 
         case AR6000_XIOCTL_BMI_DONE:
-            if(bmienable)
-            {
-                ret = ar6000_init(dev);
-            }
-            else
-            {
-                ret = BMIDone(hifDevice);
-            }
+            ret = BMIDone(hifDevice);
             break;
 
         case AR6000_XIOCTL_BMI_READ_MEMORY: