mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-08-25 14:53:06 +00:00
Add support for non-native Broadcom Wi-Fi cards
This commit is contained in:
@@ -241,7 +241,7 @@ class ConfigProdigy:
|
|||||||
for network_name, network_props in hardware_report.get("Network", {}).items():
|
for network_name, network_props in hardware_report.get("Network", {}).items():
|
||||||
device_id = network_props.get("Device ID")
|
device_id = network_props.get("Device ID")
|
||||||
|
|
||||||
if device_id in pci_data.NetworkIDs[21:108] and network_props.get("PCI Path"):
|
if device_id in pci_data.NetworkIDs[22:109] and network_props.get("PCI Path"):
|
||||||
deviceproperties_add[network_props.get("PCI Path")] = {
|
deviceproperties_add[network_props.get("PCI Path")] = {
|
||||||
"IOName": "pci14e4,43a0"
|
"IOName": "pci14e4,43a0"
|
||||||
}
|
}
|
||||||
@@ -304,11 +304,21 @@ class ConfigProdigy:
|
|||||||
for network_name, network_props in hardware_report.get("Network", {}).items():
|
for network_name, network_props in hardware_report.get("Network", {}).items():
|
||||||
device_id = network_props.get("Device ID")
|
device_id = network_props.get("Device ID")
|
||||||
|
|
||||||
if device_id in pci_data.NetworkIDs[219:258] and network_props.get("PCI Path"):
|
try:
|
||||||
deviceproperties_add[network_props.get("PCI Path")] = {
|
device_index = pci_data.NetworkIDs.index(device_id)
|
||||||
"IOName": "pci14e4,16b4",
|
except:
|
||||||
"device-id": self.utils.hex_to_bytes("B4160000")
|
continue
|
||||||
}
|
|
||||||
|
if network_props.get("PCI Path"):
|
||||||
|
if device_index < 19 and self.utils.parse_darwin_version(macos_version) >= self.utils.parse_darwin_version("23.0.0"):
|
||||||
|
deviceproperties_add[network_props.get("PCI Path")] = {
|
||||||
|
"IOName": "pci14e4,43a0"
|
||||||
|
}
|
||||||
|
elif 229 < device_index < 259:
|
||||||
|
deviceproperties_add[network_props.get("PCI Path")] = {
|
||||||
|
"IOName": "pci14e4,16b4",
|
||||||
|
"device-id": self.utils.hex_to_bytes("B4160000")
|
||||||
|
}
|
||||||
|
|
||||||
network_items = hardware_report.get("Network", {}).items()
|
network_items = hardware_report.get("Network", {}).items()
|
||||||
storage_controllers_items = hardware_report.get("Storage Controllers", {}).items()
|
storage_controllers_items = hardware_report.get("Storage Controllers", {}).items()
|
||||||
@@ -664,4 +674,4 @@ class ConfigProdigy:
|
|||||||
config["NVRAM"]["Delete"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"] = list(config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"].keys())
|
config["NVRAM"]["Delete"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"] = list(config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"].keys())
|
||||||
config["NVRAM"]["Delete"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"] = list(config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"].keys())
|
config["NVRAM"]["Delete"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"] = list(config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"].keys())
|
||||||
|
|
||||||
return config
|
return config
|
||||||
@@ -238,13 +238,14 @@ NetworkIDs = [
|
|||||||
"14E4-432B",
|
"14E4-432B",
|
||||||
"14E4-432C",
|
"14E4-432C",
|
||||||
"14E4-432D",
|
"14E4-432D",
|
||||||
"14E4-4331",
|
|
||||||
"14E4-4353",
|
|
||||||
"14E4-4357",
|
"14E4-4357",
|
||||||
"14E4-43A0",
|
|
||||||
"14E4-43A3",
|
|
||||||
"14E4-43B1",
|
"14E4-43B1",
|
||||||
"14E4-43B2",
|
"14E4-43B2",
|
||||||
|
"14E4-432B",
|
||||||
|
"14E4-4331",
|
||||||
|
"14E4-4353",
|
||||||
|
"14E4-43A0",
|
||||||
|
"14E4-43A3",
|
||||||
"14E4-43BA",
|
"14E4-43BA",
|
||||||
# itlwm.kext
|
# itlwm.kext
|
||||||
"8086-0060",
|
"8086-0060",
|
||||||
@@ -996,7 +997,7 @@ NetworkIDs = [
|
|||||||
"7392-C711",
|
"7392-C711",
|
||||||
"F201-5370"
|
"F201-5370"
|
||||||
]
|
]
|
||||||
|
|
||||||
RealtekCardReaderIDs = [
|
RealtekCardReaderIDs = [
|
||||||
# RealtekCardReader.kext
|
# RealtekCardReader.kext
|
||||||
"0BDA-0129",
|
"0BDA-0129",
|
||||||
|
|||||||
+35
-28
@@ -150,38 +150,45 @@ class KextMaestro:
|
|||||||
if needs_oclp:
|
if needs_oclp:
|
||||||
selected_kexts.extend(("AMFIPass", "RestrictEvents"))
|
selected_kexts.extend(("AMFIPass", "RestrictEvents"))
|
||||||
|
|
||||||
ethernet_pci = None
|
ethernet_device = None
|
||||||
for network_name, network_props in hardware_report.get("Network", {}).items():
|
for network_name, network_props in hardware_report.get("Network", {}).items():
|
||||||
device_id = network_props.get("Device ID")
|
device_id = network_props.get("Device ID")
|
||||||
|
|
||||||
if self.utils.contains_any(pci_data.NetworkIDs, device_id, end=21):
|
try:
|
||||||
if device_id in ["14E4-43A0", "14E4-43A3", "14E4-43BA"]:
|
device_index = pci_data.NetworkIDs.index(device_id)
|
||||||
if self.utils.parse_darwin_version(macos_version) >= self.utils.parse_darwin_version("23.0.0"):
|
except:
|
||||||
selected_kexts.extend(("AirportBrcmFixup", "IOSkywalkFamily"))
|
continue
|
||||||
elif device_id in pci_data.NetworkIDs:
|
|
||||||
selected_kexts.append("AirportBrcmFixup")
|
|
||||||
elif self.utils.contains_any(pci_data.NetworkIDs, device_id, start=21, end=108):
|
|
||||||
selected_kexts.append("AirportItlwm" if self.utils.parse_darwin_version(macos_version) < self.utils.parse_darwin_version("23.0.0") else "itlwm")
|
|
||||||
elif self.utils.contains_any(pci_data.NetworkIDs, device_id, start=108, end=219):
|
|
||||||
ethernet_pci = pci_data.NetworkIDs.index(device_id)
|
|
||||||
if 107 < ethernet_pci < 115:
|
|
||||||
selected_kexts.append("AppleIGC")
|
|
||||||
elif 114 < ethernet_pci < 122:
|
|
||||||
selected_kexts.append("AtherosE2200Ethernet")
|
|
||||||
elif 121 < ethernet_pci < 183:
|
|
||||||
selected_kexts.append("IntelMausiEthernet")
|
|
||||||
elif 182 < ethernet_pci < 186:
|
|
||||||
selected_kexts.append("LucyRTL8125Ethernet")
|
|
||||||
elif 185 < ethernet_pci < 187:
|
|
||||||
selected_kexts.append("RealtekRTL8100")
|
|
||||||
elif 186 < ethernet_pci < 191:
|
|
||||||
selected_kexts.append("RealtekRTL8111")
|
|
||||||
elif 190 < ethernet_pci < 229:
|
|
||||||
selected_kexts.append("AppleIGB")
|
|
||||||
elif 228 < ethernet_pci < 258:
|
|
||||||
selected_kexts.append("AppleBCM57XXEthernet")
|
|
||||||
|
|
||||||
if not ethernet_pci:
|
ethernet_device = 108 < device_index < 264
|
||||||
|
|
||||||
|
if device_index < 16:
|
||||||
|
selected_kexts.append("AirportBrcmFixup")
|
||||||
|
elif device_index == 16 and self.utils.parse_darwin_version(macos_version) >= self.utils.parse_darwin_version("19.0.0"):
|
||||||
|
selected_kexts.append("AirportBrcmFixup")
|
||||||
|
elif 16 < device_index < 19 and self.utils.parse_darwin_version(macos_version) >= self.utils.parse_darwin_version("20.0.0"):
|
||||||
|
selected_kexts.append("AirportBrcmFixup")
|
||||||
|
elif 18 < device_index < 22 and self.utils.parse_darwin_version(macos_version) >= self.utils.parse_darwin_version("23.0.0"):
|
||||||
|
selected_kexts.extend("IOSkywalkFamily")
|
||||||
|
elif 21 < device_index < 109:
|
||||||
|
selected_kexts.append("AirportItlwm" if self.utils.parse_darwin_version(macos_version) < self.utils.parse_darwin_version("23.0.0") else "itlwm")
|
||||||
|
elif 108 < device_index < 116:
|
||||||
|
selected_kexts.append("AppleIGC")
|
||||||
|
elif 115 < device_index < 123:
|
||||||
|
selected_kexts.append("AtherosE2200Ethernet")
|
||||||
|
elif 122 < device_index < 184:
|
||||||
|
selected_kexts.append("IntelMausiEthernet")
|
||||||
|
elif 183 < device_index < 187:
|
||||||
|
selected_kexts.append("LucyRTL8125Ethernet")
|
||||||
|
elif device_index == 187:
|
||||||
|
selected_kexts.append("RealtekRTL8100")
|
||||||
|
elif 187 < device_index < 192:
|
||||||
|
selected_kexts.append("RealtekRTL8111")
|
||||||
|
elif 191 < device_index < 230:
|
||||||
|
selected_kexts.append("AppleIGB")
|
||||||
|
elif 229 < device_index < 264:
|
||||||
|
selected_kexts.append("CatalinaBCM5701Ethernet")
|
||||||
|
|
||||||
|
if not ethernet_device:
|
||||||
selected_kexts.append("NullEthernet")
|
selected_kexts.append("NullEthernet")
|
||||||
|
|
||||||
for bluetooth_name, bluetooth_props in hardware_report.get("Bluetooth", {}).items():
|
for bluetooth_name, bluetooth_props in hardware_report.get("Bluetooth", {}).items():
|
||||||
|
|||||||
Reference in New Issue
Block a user