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:
56230d5
)
[PATCH] sundance: support ETHTOOL_GPERMADDR
author
John W. Linville
<linville@tuxdriver.com>
Mon, 12 Sep 2005 14:48:58 +0000
(10:48 -0400)
committer
Jeff Garzik
<jgarzik@pobox.com>
Wed, 14 Sep 2005 12:30:02 +0000
(08:30 -0400)
Add support for ETHTOOL_GPERMADDR to sundance.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/sundance.c
patch
|
blob
|
history
diff --git
a/drivers/net/sundance.c
b/drivers/net/sundance.c
index d500a5771dbc5c05f5f03428b71f58e21b96530f..e148a7212073195976de970e2c60f6b3ce5ffe68 100644
(file)
--- a/
drivers/net/sundance.c
+++ b/
drivers/net/sundance.c
@@
-549,6
+549,7
@@
static int __devinit sundance_probe1 (struct pci_dev *pdev,
for (i = 0; i < 3; i++)
((u16 *)dev->dev_addr)[i] =
le16_to_cpu(eeprom_read(ioaddr, i + EEPROM_SA_OFFSET));
+ memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
dev->base_addr = (unsigned long)ioaddr;
dev->irq = irq;
@@
-1619,6
+1620,7
@@
static struct ethtool_ops ethtool_ops = {
.get_link = get_link,
.get_msglevel = get_msglevel,
.set_msglevel = set_msglevel,
+ .get_perm_addr = ethtool_op_get_perm_addr,
};
static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)