mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-19 13:46:05 +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")
|
logging.error("Installed patches are from different commit, unpatching is required")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
wireless_keys = {"Legacy Wireless", "Modern Wireless"}
|
wireless_keys = {"Legacy Wireless", "Modern Wireless Common"}
|
||||||
|
|
||||||
# Keep in sync with generate_patchset_plist
|
# Keep in sync with generate_patchset_plist
|
||||||
metadata_keys = {
|
metadata_keys = {
|
||||||
|
|||||||
@@ -52,23 +52,18 @@ class ModernWireless(BaseHardware):
|
|||||||
"""
|
"""
|
||||||
return HardwareVariant.NETWORKING
|
return HardwareVariant.NETWORKING
|
||||||
|
|
||||||
|
def _patches_modern_wireless_common_extended(self) -> dict:
|
||||||
def patches(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 {}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"Modern Wireless": {
|
"Modern Wireless Extended": {
|
||||||
PatchType.OVERWRITE_SYSTEM_VOLUME: {
|
PatchType.OVERWRITE_SYSTEM_VOLUME: {
|
||||||
"/usr/libexec": {
|
"/usr/libexec": {
|
||||||
"airportd": f"13.7.2-{self._xnu_major}",
|
"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: {
|
PatchType.MERGE_SYSTEM_VOLUME: {
|
||||||
@@ -77,9 +72,42 @@ class ModernWireless(BaseHardware):
|
|||||||
},
|
},
|
||||||
"/System/Library/PrivateFrameworks": {
|
"/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}",
|
"IO80211.framework": f"13.7.2-{self._xnu_major}",
|
||||||
"WiFiPeerToPeer.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