Avoid enabling AirportBrcmFixup without wifi

This commit is contained in:
Mykola Grymalyuk
2021-11-17 21:41:27 -07:00
parent 1486859d79
commit 48380afdd5

View File

@@ -274,7 +274,8 @@ class BuildOpenCore:
else: else:
print("- Unable to run Wireless hardware detection") print("- Unable to run Wireless hardware detection")
if not self.constants.custom_model and self.computer.wifi: if not self.constants.custom_model:
if self.computer.wifi:
if isinstance(self.computer.wifi, device_probe.Broadcom): if isinstance(self.computer.wifi, device_probe.Broadcom):
# This works around OCLP spoofing the Wifi card and therefore unable to actually detect the correct device # This works around OCLP spoofing the Wifi card and therefore unable to actually detect the correct device
if self.computer.wifi.chipset == device_probe.Broadcom.Chipsets.AirportBrcmNIC and self.constants.validate is False and self.computer.wifi.country_code: if self.computer.wifi.chipset == device_probe.Broadcom.Chipsets.AirportBrcmNIC and self.constants.validate is False and self.computer.wifi.country_code: