static int netdev_ioctl (struct net_device *dev, struct ifreq
*rq, int cmd)
struct rtl8139_private *tp = dev->priv;
struct mii_ioctl_data *data = (struct mii_ioctl_data
int rc = 0;
int phy = tp->phys & 0x3f;
if (!netif_running(dev)) <==============
return -EINVAL; <==============
I have a qustion about the driver 8139too.c. Why should
we force the running state up before we do ioctl action? I
think user should be allowed to setup some parameters
even the nic is down.
Thanks and Merry Christmas.