mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-09-01 17:19:23 +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():
|
||||
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")] = {
|
||||
"IOName": "pci14e4,43a0"
|
||||
}
|
||||
@@ -304,11 +304,21 @@ class ConfigProdigy:
|
||||
for network_name, network_props in hardware_report.get("Network", {}).items():
|
||||
device_id = network_props.get("Device ID")
|
||||
|
||||
if device_id in pci_data.NetworkIDs[219:258] and network_props.get("PCI Path"):
|
||||
deviceproperties_add[network_props.get("PCI Path")] = {
|
||||
"IOName": "pci14e4,16b4",
|
||||
"device-id": self.utils.hex_to_bytes("B4160000")
|
||||
}
|
||||
try:
|
||||
device_index = pci_data.NetworkIDs.index(device_id)
|
||||
except:
|
||||
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()
|
||||
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"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"] = list(config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"].keys())
|
||||
|
||||
return config
|
||||
return config
|
||||
Reference in New Issue
Block a user