projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62a720b
)
[PATCH] b44: support ETHTOOL_GPERMADDR
author
John W. Linville
<linville@tuxdriver.com>
Mon, 12 Sep 2005 14:48:55 +0000
(10:48 -0400)
committer
Jeff Garzik
<jgarzik@pobox.com>
Wed, 14 Sep 2005 12:29:31 +0000
(08:29 -0400)
Add support for ETHTOOL_GPERMADDR to b44.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/b44.c
patch
|
blob
|
history
diff --git
a/drivers/net/b44.c
b/drivers/net/b44.c
index 94939f570f78988e7c54c9dbcab685ca59385253..d27e870e59abb2da1a5a9e2fcd69ef7a81fc36fb 100644
(file)
--- a/
drivers/net/b44.c
+++ b/
drivers/net/b44.c
@@
-1676,6
+1676,7
@@
static struct ethtool_ops b44_ethtool_ops = {
.set_pauseparam = b44_set_pauseparam,
.get_msglevel = b44_get_msglevel,
.set_msglevel = b44_set_msglevel,
+ .get_perm_addr = ethtool_op_get_perm_addr,
};
static int b44_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
@@
-1718,6
+1719,7
@@
static int __devinit b44_get_invariants(struct b44 *bp)
bp->dev->dev_addr[3] = eeprom[80];
bp->dev->dev_addr[4] = eeprom[83];
bp->dev->dev_addr[5] = eeprom[82];
+ memcpy(bp->dev->perm_addr, bp->dev->dev_addr, bp->dev->addr_len);
bp->phy_addr = eeprom[90] & 0x1f;