Fix Wifi build crash

This commit is contained in:
Mykola Grymalyuk
2021-06-27 22:30:58 -06:00
parent b24ee0e38c
commit 98da3a16a8

View File

@@ -265,7 +265,7 @@ class BuildOpenCore:
print(f"- Applying fake ID for WiFi, setting Country Code: {self.computer.wifi.country_code}")
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.computer.wifi.country_code:
self.config["DeviceProperties"]["Add"][arpt_path] += {"brcmfx-country": self.computer.wifi.country_code}
self.config["DeviceProperties"]["Add"][arpt_path].update({"brcmfx-country": self.computer.wifi.country_code})
# WiFi patches
# TODO: -a is not supported in Lion and older, need to add proper fix