]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[acpi] Support the "_RTXMAC_" format for ACPI-based MAC addresses
authorMichael Brown <mcb30@ipxe.org>
Wed, 23 Mar 2022 15:02:17 +0000 (15:02 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 25 Mar 2022 16:47:06 +0000 (16:47 +0000)
commitf58b5109f46088bdbb5345a9d94b636c54345bdf
tree0421c3bf5b6fe7d201d6ebc0770108cec0f2b3f7
parent614c3f43a12cd6be6d79d7a8a63cfa603ff9d49f
[acpi] Support the "_RTXMAC_" format for ACPI-based MAC addresses

Some newer HP products expose the host-based MAC (HBMAC) address using
an ACPI method named "RTMA" returning a part-binary string of the form
"_RTXMAC_#<mac>#", where "<mac>" comprises the raw MAC address bytes.

Extend the existing support to handle this format alongside the older
"_AUXMAC_" format (which uses a base16-encoded MAC address).

Reported-by: Andreas Hammarskjöld <junior@2PintSoftware.com>
Tested-by: Andreas Hammarskjöld <junior@2PintSoftware.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/acpimac.c
src/tests/acpi_test.c