xtensa: ISS: enable iss_net_set_mac
This allows changing MAC address of the device. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
This commit is contained in:
parent
8991fd8835
commit
f6ac5a177d
1 changed files with 2 additions and 3 deletions
|
@ -467,15 +467,14 @@ static void iss_net_tx_timeout(struct net_device *dev)
|
||||||
|
|
||||||
static int iss_net_set_mac(struct net_device *dev, void *addr)
|
static int iss_net_set_mac(struct net_device *dev, void *addr)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
struct iss_net_private *lp = netdev_priv(dev);
|
struct iss_net_private *lp = netdev_priv(dev);
|
||||||
struct sockaddr *hwaddr = addr;
|
struct sockaddr *hwaddr = addr;
|
||||||
|
|
||||||
|
if (!is_valid_ether_addr(hwaddr->sa_data))
|
||||||
|
return -EADDRNOTAVAIL;
|
||||||
spin_lock(&lp->lock);
|
spin_lock(&lp->lock);
|
||||||
memcpy(dev->dev_addr, hwaddr->sa_data, ETH_ALEN);
|
memcpy(dev->dev_addr, hwaddr->sa_data, ETH_ALEN);
|
||||||
spin_unlock(&lp->lock);
|
spin_unlock(&lp->lock);
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue