Merge pull request #432 from dortania/wifi-test

Allow plist override for BCM943224 and BCM94331 Wireless cards
This commit is contained in:
Mykola Grymalyuk
2021-08-11 20:14:30 -06:00
committed by GitHub
4 changed files with 6 additions and 4 deletions
+2
View File
@@ -11,6 +11,8 @@
- Currently limited to MacBookPro11,x - Currently limited to MacBookPro11,x
- Set iMacPro1,1 SMBIOS for Mac Pro and Xserve models - Set iMacPro1,1 SMBIOS for Mac Pro and Xserve models
- Allows for wider array of OS support (High Sierra+) - Allows for wider array of OS support (High Sierra+)
- Use plist override for BCM943224 and BCM94331 support in Big Sur+
- Allows for older OS support through OpenCore
## 0.2.4 ## 0.2.4
+2 -2
View File
@@ -223,7 +223,7 @@ class BuildOpenCore:
def wifi_fake_id(self): def wifi_fake_id(self):
self.enable_kext("AirportBrcmFixup.kext", self.constants.airportbcrmfixup_version, self.constants.airportbcrmfixup_path) self.enable_kext("AirportBrcmFixup.kext", self.constants.airportbcrmfixup_version, self.constants.airportbcrmfixup_path)
# self.get_kext_by_bundle_path("AirportBrcmFixup.kext/Contents/PlugIns/AirPortBrcmNIC_Injector.kext")["Enabled"] = True self.get_kext_by_bundle_path("AirportBrcmFixup.kext/Contents/PlugIns/AirPortBrcmNIC_Injector.kext")["Enabled"] = True
if not self.constants.custom_model and self.computer.wifi and self.computer.wifi.pci_path: if not self.constants.custom_model and self.computer.wifi and self.computer.wifi.pci_path:
arpt_path = self.computer.wifi.pci_path arpt_path = self.computer.wifi.pci_path
print(f"- Found ARPT device at {arpt_path}") print(f"- Found ARPT device at {arpt_path}")
@@ -242,7 +242,7 @@ class BuildOpenCore:
# iMac11,x-12,x also apply # iMac11,x-12,x also apply
arpt_path = "PciRoot(0x0)/Pci(0x1C,0x1)/Pci(0x0,0x0)" arpt_path = "PciRoot(0x0)/Pci(0x1C,0x1)/Pci(0x0,0x0)"
print(f"- Using known DevicePath {arpt_path}") print(f"- Using known DevicePath {arpt_path}")
self.config["DeviceProperties"]["Add"][arpt_path] = {"device-id": binascii.unhexlify("ba430000"), "compatible": "pci14e4,43ba"} # 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: 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}") 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].update({"brcmfx-country": self.computer.wifi.country_code})
+1 -1
View File
@@ -193,7 +193,7 @@ DeleteVolumeControl = [
] ]
AddNvidiaAccelLegacy = [ AddNvidiaAccelLegacy = [
"GeForceGA.bundle", #"GeForceGA.bundle",
"GeForceTesla.kext", "GeForceTesla.kext",
"GeForceTeslaGLDriver.bundle", "GeForceTeslaGLDriver.bundle",
"GeForceTeslaVADriver.bundle", "GeForceTeslaVADriver.bundle",
+1 -1
View File
@@ -350,7 +350,7 @@
<key>MaxKernel</key> <key>MaxKernel</key>
<string></string> <string></string>
<key>MinKernel</key> <key>MinKernel</key>
<string>20.0.0</string> <string>12.0.0</string>
<key>BundlePath</key> <key>BundlePath</key>
<string>AirportBrcmFixup.kext</string> <string>AirportBrcmFixup.kext</string>
<key>ExecutablePath</key> <key>ExecutablePath</key>