From 28746bbe2b03ae4aa5f5265a1bb50f48785b2a23 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Thu, 12 Aug 2021 09:04:49 -0600 Subject: [PATCH] Fix country code device ID injection Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/435 --- Resources/Build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Build.py b/Resources/Build.py index 8ec6e891a..c7ba92774 100644 --- a/Resources/Build.py +++ b/Resources/Build.py @@ -245,7 +245,7 @@ class BuildOpenCore: # self.config["DeviceProperties"]["Add"][arpt_path] = {"device-id": binascii.unhexlify("ba430000"), "compatible": "pci14e4,43ba"} if not self.constants.custom_model and self.computer.wifi and self.constants.validate is False and self.computer.wifi.country_code: print(f"- Applying fake ID for WiFi, setting Country Code: {self.computer.wifi.country_code}") - self.config["DeviceProperties"]["Add"][arpt_path].update({"brcmfx-country": self.computer.wifi.country_code}) + self.config["DeviceProperties"]["Add"][arpt_path] = {"brcmfx-country": self.computer.wifi.country_code} if self.constants.enable_wake_on_wlan is True: print("- Enabling Wake on WLAN support") self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += f" -brcmfxwowl"