diff -r 69056c46aa4d -r bc2d4bf9cbe5 devices/e100-2.6.32-ethercat.c --- a/devices/e100-2.6.32-ethercat.c Thu Sep 06 19:52:17 2012 +0200 +++ b/devices/e100-2.6.32-ethercat.c Thu Sep 06 20:22:24 2012 +0200 @@ -1205,7 +1205,7 @@ config->multicast_all = 0x1; /* 1=accept, 0=no */ /* disable WoL when up */ - if (nic->ecdev || + if (nic->ecdev || (netif_running(nic->netdev) || !(nic->flags & wol_magic))) config->magic_packet_disable = 0x1; /* 1=off, 0=on */ @@ -3239,7 +3239,7 @@ { printk(KERN_INFO DRV_NAME " " DRV_DESCRIPTION " " DRV_VERSION ", master " EC_MASTER_VERSION "\n"); - + return pci_register_driver(&e100_driver); }