From fcce322e495a95d413b7d7442e5dcb6f1bf3ed7d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 22 Dec 2008 17:00:20 +0000 Subject: atheros: reset ethernet mac when running ifconfig eth0 up, so that changing the mac address works SVN-Revision: 13720 --- target/linux/atheros/files/drivers/net/ar2313/ar2313.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'target/linux/atheros') diff --git a/target/linux/atheros/files/drivers/net/ar2313/ar2313.c b/target/linux/atheros/files/drivers/net/ar2313/ar2313.c index 985af024c7..995325a913 100644 --- a/target/linux/atheros/files/drivers/net/ar2313/ar2313.c +++ b/target/linux/atheros/files/drivers/net/ar2313/ar2313.c @@ -1121,6 +1121,9 @@ static int ar2313_open(struct net_device *dev) { struct ar2313_private *sp = netdev_priv(dev); + /* reset the hardware, in case the MAC address changed */ + ar2313_reset_reg(dev); + dev->mtu = 1500; netif_start_queue(dev); -- cgit v1.2.3