Commit dda93b486a25009456fca6b9c925ab4d7c6b6d6a

Authored by David Woodhouse
Committed by Jeff Garzik
1 parent 3d26e69533

Stop phy code from returning success to unknown ioctls.

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>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

drivers/net/phy/phy.c
... ... @@ -406,6 +406,9 @@
406 406 && phydev->drv->config_init)
407 407 phydev->drv->config_init(phydev);
408 408 break;
  409 +
  410 + default:
  411 + return -ENOTTY;
409 412 }
410 413  
411 414 return 0;