source: trunk/target/linux/au1000/patches-2.6.39/003-au1000_eth_ioctl.patch @ 27104

Last change on this file since 27104 was 27104, checked in by florian, 5 years ago

[kernel] update to 2.6.39.1

patch from Peter Wagner

File size: 492 bytes
  • drivers/net/au1000_eth.c

    a b static void au1000_multicast_list(struct 
    993993        writel(reg, &aup->mac->control); 
    994994} 
    995995 
     996#define AU1000_KNOWN_PHY_IOCTLS        (SIOCGMIIPHY & 0xfff0) 
    996997static int au1000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) 
    997998{ 
    998999        struct au1000_private *aup = netdev_priv(dev); 
    9991000 
     1001        if((cmd & AU1000_KNOWN_PHY_IOCTLS) != AU1000_KNOWN_PHY_IOCTLS) 
     1002                return -EINVAL; 
     1003 
    10001004        if (!netif_running(dev)) 
    10011005                return -EINVAL; 
    10021006 
Note: See TracBrowser for help on using the repository browser.