summaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-22 17:00:20 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-22 17:00:20 +0000
commit1784b56f801381430670c56b267f1d2c50ec48b2 (patch)
tree6447ed8b5f4d7b46798884ccb599a8808fa73a23 /target/linux
parente713ba8d94869c77f944429988bb6edc8556a4f5 (diff)
atheros: reset ethernet mac when running ifconfig eth0 up, so that changing the mac address works
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13720 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/atheros/files/drivers/net/ar2313/ar2313.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/atheros/files/drivers/net/ar2313/ar2313.c b/target/linux/atheros/files/drivers/net/ar2313/ar2313.c
index 985af024c..995325a91 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);