projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8991fd8
)
xtensa: ISS: enable iss_net_set_mac
author
Max Filippov
<jcmvbkbc@gmail.com>
Sun, 10 Nov 2013 12:05:48 +0000
(16:05 +0400)
committer
Chris Zankel
<chris@zankel.net>
Tue, 14 Jan 2014 18:19:50 +0000
(10:19 -0800)
This allows changing MAC address of the device.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/platforms/iss/network.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/xtensa/platforms/iss/network.c
b/arch/xtensa/platforms/iss/network.c
index f7709c7efca4500a666bdddc49f2ac698b4ebc97..b33ed0c535478e9772ea43cd399b359c21c26337 100644
(file)
--- a/
arch/xtensa/platforms/iss/network.c
+++ b/
arch/xtensa/platforms/iss/network.c
@@
-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;
}