forked from Minki/linux
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
@ -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)
|
||||
{
|
||||
#if 0
|
||||
struct iss_net_private *lp = netdev_priv(dev);
|
||||
struct sockaddr *hwaddr = addr;
|
||||
|
||||
if (!is_valid_ether_addr(hwaddr->sa_data))
|
||||
return -EADDRNOTAVAIL;
|
||||
spin_lock(&lp->lock);
|
||||
memcpy(dev->dev_addr, hwaddr->sa_data, ETH_ALEN);
|
||||
spin_unlock(&lp->lock);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user