]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Stop phy code from returning success to unknown ioctls.
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 28 Nov 2007 19:56:34 +0000 (19:56 +0000)
committerJeff Garzik <jeff@garzik.org>
Sat, 1 Dec 2007 21:35:51 +0000 (16:35 -0500)
This kind of sucks, and prevents the Fedora installer from using the
device for network installs...

[root@efika phy]# iwconfig eth0
Warning: Driver for device eth0 has been compiled with an ancient version
of Wireless Extension, while this program support version 11 and later.
Some things may be broken...

eth0        ESSID:off/any  Nickname:""
          NWID:0  Channel:0  Access Point: 00:00:BF:81:14:E0
          Bit Rate:-1.08206e+06 kb/s   Sensitivity=0/0
          RTS thr:off   Fragment thr:off
          Encryption key:<too big>
          Power Management:off

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/phy/phy.c

index 9bc11773705b2beaf68064e6ba3166953c20a5f6..7c9e6e349503eaf2a7b91448a05a73d19e499bb8 100644 (file)
@@ -406,6 +406,9 @@ int phy_mii_ioctl(struct phy_device *phydev,
                                && phydev->drv->config_init)
                        phydev->drv->config_init(phydev);
                break;
+
+       default:
+               return -ENOTTY;
        }
 
        return 0;