Skip to content

Commit

Permalink
WOL optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
fischerscode committed Jan 25, 2020
1 parent 1ac38be commit 09e05c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions IntelMausiEthernet/IntelMausiEthernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -991,8 +991,9 @@ IOReturn IntelMausi::setWakeOnMagicPacket(bool active)
DebugLog("setWakeOnMagicPacket() ===>\n");

if (wolCapable) {
wolActive = active;
DebugLog("Ethernet [IntelMausi]: Wake on magic packet %s.\n", active ? "enabled" : "disabled");
bool tmp = 0;
wolActive = ! PE_parse_boot_argn("-mausi_no_wol", &tmp, 0);
DebugLog("Ethernet [IntelMausi]: Wake on magic packet %s.\n", wolActive ? "enabled" : "disabled");
result = kIOReturnSuccess;
}

Expand Down

0 comments on commit 09e05c7

Please sign in to comment.