Wake on Lan and pci_enable_wake()

Andy Johnson johnsonzjo at gmail.com
Tue May 14 08:20:36 EDT 2013


Hello,
As far as I know, Wake On Lan is disabled by default in Linux.

Now I try this on p2p1:
ethtool -i p2p1
...
driver: r8169
...


 ethtool p2p1
..
Wake-on: g
...

this means, according to the man, that
 Wake on Lan is enabled for MagicPacket packets
on p2p1

Now I looked in the code of the driver and I cannot see
anywhere a call to pci_enable_wake();
see
drivers/net/ethernet/realtek/r8169.c


So any ideas how come that the Wake on Lan is enabled for this
driver after boot ?

rgs,
Andy



More information about the Kernelnewbies mailing list