Commit 09f1d87d authored by Adam Kropelin's avatar Adam Kropelin Committed by Jeff Garzik

[netdrvr ewrk3] allow user to change MAC address via SIOCSIFHWADDR

parent f385dd77
...@@ -707,12 +707,20 @@ static void ewrk3_init(struct net_device *dev) ...@@ -707,12 +707,20 @@ static void ewrk3_init(struct net_device *dev)
struct ewrk3_private *lp = (struct ewrk3_private *) dev->priv; struct ewrk3_private *lp = (struct ewrk3_private *) dev->priv;
u_char csr, page; u_char csr, page;
u_long iobase = dev->base_addr; u_long iobase = dev->base_addr;
int i;
/* /*
** Enable any multicasts ** Enable any multicasts
*/ */
set_multicast_list(dev); set_multicast_list(dev);
/*
** Set hardware MAC address. Address is initialized from the EEPROM
** during startup but may have since been changed by the user.
*/
for (i=0; i<ETH_ALEN; i++)
outb(dev->dev_addr[i], EWRK3_PAR0 + i);
/* /*
** Clean out any remaining entries in all the queues here ** Clean out any remaining entries in all the queues here
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment