Skip to content

Commit

Permalink
Added force WOL functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Jun 14, 2021
1 parent 76e6595 commit 7cdb383
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
IntelMausi Changelog
====================
#### v1.0.7
- Added force WOL support (`mausi-force-wol` device property or `-mausiwol` boot argument)

#### v1.0.6
- Fixed loading on 10.11 and earlier (regressed in 1.0.5)

Expand Down
9 changes: 9 additions & 0 deletions IntelMausiEthernet/IntelMausiEthernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,17 @@ void IntelMausi::free()

bool IntelMausi::start(IOService *provider)
{
int tmp = 0;
bool result;

if (!PE_parse_boot_argn("-mausiwol", &tmp, sizeof(tmp))) {
tmp = provider->getProperty("mausi-force-wol") != nullptr;
}

if (tmp != 0) {
wolCapable = wolActive = true;
}

result = super::start(provider);

if (!result) {
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ as well as kernel debugging support initially provided by [aerror2](https://gith
[IntelMausiEthernetWithKernelDebugger](https://github.com/aerror2/IntelMausiEthernetWithKernelDebugger)
repository. Do use the original version when uncertain. No support or troubleshooting provided.

Wake on LAN functionality should work out of the box. On misconfigured hardware one may try to force-enable it by injecting `mausi-force-wol` device property (with any value, recommended), or `-mausiwol` boot argument (for testing purposes).

---

A few days before Christmas I started my latest project, a new driver for recent Intel onboard LAN controllers. My intention was not to replace hnak's AppleIntelE1000e.kext completely but to deliver best performance and stability on recent hardware. That's why I dropped support for a number of older NICs. Currently the driver supports:
Expand Down

0 comments on commit 7cdb383

Please sign in to comment.