aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-12-22 17:00:20 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-12-22 17:00:20 +0000
commit0dfd02012d22159c8889e9a7b16b73717dca368c (patch)
tree6447ed8b5f4d7b46798884ccb599a8808fa73a23 /target/linux
parent449da846f28e7bd53e44ea852811d758a32b426b (diff)
downloadupstream-0dfd02012d22159c8889e9a7b16b73717dca368c.tar.gz
upstream-0dfd02012d22159c8889e9a7b16b73717dca368c.tar.bz2
upstream-0dfd02012d22159c8889e9a7b16b73717dca368c.zip
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 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);