summaryrefslogtreecommitdiff
path: root/target/linux/atheros
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
commitfcce322e495a95d413b7d7442e5dcb6f1bf3ed7d (patch)
tree2bb7a9dbba9fc643e25d412d9bc51a4b124e538c /target/linux/atheros
parent1cdaa2d3dc7f31762503b95fa5e55055efc4def3 (diff)
downloadmtk-20170518-fcce322e495a95d413b7d7442e5dcb6f1bf3ed7d.zip
mtk-20170518-fcce322e495a95d413b7d7442e5dcb6f1bf3ed7d.tar.gz
mtk-20170518-fcce322e495a95d413b7d7442e5dcb6f1bf3ed7d.tar.bz2
atheros: reset ethernet mac when running ifconfig eth0 up, so that changing the mac address works
SVN-Revision: 13720
Diffstat (limited to 'target/linux/atheros')
-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 985af02..995325a 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);