1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-18 06:53:08 +02:00

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
This commit is contained in:
nbd 2008-12-22 17:00:20 +00:00
parent e713ba8d94
commit 1784b56f80

View File

@ -1121,6 +1121,9 @@ static int ar2313_open(struct net_device *dev)
{ {
struct ar2313_private *sp = netdev_priv(dev); struct ar2313_private *sp = netdev_priv(dev);
/* reset the hardware, in case the MAC address changed */
ar2313_reset_reg(dev);
dev->mtu = 1500; dev->mtu = 1500;
netif_start_queue(dev); netif_start_queue(dev);