fix(rtw88): restrict sdio rf-path detection patch to kernel 6.1 only (#8589)

Limit application of 002-rtw88-sdio-rf-path-detection-fix.patch to kernel version 6.1
This commit is contained in:
SuperKali
2025-09-08 08:40:45 +02:00
committed by GitHub
parent eac6ed7105
commit fc9ba3ec3d

View File

@@ -354,7 +354,9 @@ driver_rtw88() {
display_alert "Adding" "Upstream wireless RTW88 drivers" "info"
if [[ -f "${SRC}/patch/misc/rtw88/${version}/001-drivers-net-wireless-realtek-rtw88-upstream-wireless.patch" ]]; then
process_patch_file "${SRC}/patch/misc/rtw88/${version}/001-drivers-net-wireless-realtek-rtw88-upstream-wireless.patch" "applying"
process_patch_file "${SRC}/patch/misc/rtw88/${version}/002-rtw88-sdio-rf-path-detection-fix.patch" "applying"
if linux-version compare "${version}" eq 6.1; then
process_patch_file "${SRC}/patch/misc/rtw88/${version}/002-rtw88-sdio-rf-path-detection-fix.patch" "applying" # This patch has been tested only on kernel vendor 6.1.x.
fi
process_patch_file "${SRC}/patch/misc/rtw88/hack/003-rtw88-decrease-the-log-level-of-tx-report.patch" "applying"
fi
fi