mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-11 16:27:19 +10:00
Implement new modern wireless patchset (#1178)
This commit is contained in:
committed by
GitHub
parent
7b371e07f1
commit
a9795b7b5f
@@ -200,7 +200,7 @@ class HardwarePatchsetDetection:
|
||||
logging.error("Installed patches are from different commit, unpatching is required")
|
||||
return True
|
||||
|
||||
wireless_keys = {"Legacy Wireless", "Modern Wireless"}
|
||||
wireless_keys = {"Legacy Wireless", "Modern Wireless Common"}
|
||||
|
||||
# Keep in sync with generate_patchset_plist
|
||||
metadata_keys = {
|
||||
|
||||
@@ -52,23 +52,18 @@ class ModernWireless(BaseHardware):
|
||||
"""
|
||||
return HardwareVariant.NETWORKING
|
||||
|
||||
|
||||
def patches(self) -> dict:
|
||||
def _patches_modern_wireless_common_extended(self) -> dict:
|
||||
"""
|
||||
Patches for Modern Wireless
|
||||
Extended modern wireless patches
|
||||
"""
|
||||
if self.native_os() is True:
|
||||
if self._xnu_major > os_data.sonoma:
|
||||
return {}
|
||||
|
||||
return {
|
||||
"Modern Wireless": {
|
||||
"Modern Wireless Extended": {
|
||||
PatchType.OVERWRITE_SYSTEM_VOLUME: {
|
||||
"/usr/libexec": {
|
||||
"airportd": f"13.7.2-{self._xnu_major}",
|
||||
"wifip2pd": f"13.7.2-{self._xnu_major}",
|
||||
},
|
||||
"/System/Library/CoreServices": {
|
||||
**({ "WiFiAgent.app": "14.7.2" } if self._xnu_major >= os_data.sequoia else {}),
|
||||
},
|
||||
},
|
||||
PatchType.MERGE_SYSTEM_VOLUME: {
|
||||
@@ -76,10 +71,43 @@ class ModernWireless(BaseHardware):
|
||||
"CoreWLAN.framework": f"13.7.2-{self._xnu_major}",
|
||||
},
|
||||
"/System/Library/PrivateFrameworks": {
|
||||
"CoreWiFi.framework": f"13.7.2-{self._xnu_major}",
|
||||
"CoreWiFi.framework": f"13.7.2-{self._xnu_major}",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
def _patches_modern_wireless_common(self) -> dict:
|
||||
"""
|
||||
Common modern wireless patches
|
||||
"""
|
||||
return {
|
||||
"Modern Wireless Common": {
|
||||
PatchType.OVERWRITE_SYSTEM_VOLUME: {
|
||||
"/usr/libexec": {
|
||||
"wifip2pd": f"13.7.2-{self._xnu_major}",
|
||||
},
|
||||
},
|
||||
PatchType.MERGE_SYSTEM_VOLUME: {
|
||||
"/System/Library/PrivateFrameworks": {
|
||||
"IO80211.framework": f"13.7.2-{self._xnu_major}",
|
||||
"WiFiPeerToPeer.framework": f"13.7.2-{self._xnu_major}",
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
def patches(self) -> dict:
|
||||
"""
|
||||
Dictionary of patches
|
||||
"""
|
||||
if self.native_os() is True:
|
||||
return {}
|
||||
|
||||
return {
|
||||
**self._patches_modern_wireless_common(),
|
||||
**self._patches_modern_wireless_common_extended(),
|
||||
}
|
||||
|
||||
return _base
|
||||
Reference in New Issue
Block a user