Prevent the ioctl from handling even unsupported ioctls
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 6 Aug 2007 20:28:10 +0000 (20:28 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 6 Aug 2007 20:28:10 +0000 (20:28 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8360 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/rdc-2.6/files/drivers/net/r6040.c

index 350145e94e394f00801e72a7b0fb8a2259f9fee9..376b6ecfe9f7f30bf13e1bcb592df281303890fa 100644 (file)
@@ -638,8 +638,8 @@ static int netdev_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)
                if(args[0]&(1<<27))phy_write(ioaddr,29,20,(phy_read(ioaddr,29,20)|0x2000));     /* port 2 */
                if(args[0]&(1<<25))phy_write(ioaddr,29,20,(phy_read(ioaddr,29,20)|0x0020));     /* port 3 */
 
-       }
-       return 0;
+       } 
+       return -EOPNOTSUPP;
 }
 
 /**