From fc9ba3ec3df87b8779889b7c7bef94a77ed80e17 Mon Sep 17 00:00:00 2001 From: SuperKali Date: Mon, 8 Sep 2025 08:40:45 +0200 Subject: [PATCH] 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 --- lib/functions/compilation/patch/drivers_network.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/functions/compilation/patch/drivers_network.sh b/lib/functions/compilation/patch/drivers_network.sh index 815bab283..cf6dc4d4d 100644 --- a/lib/functions/compilation/patch/drivers_network.sh +++ b/lib/functions/compilation/patch/drivers_network.sh @@ -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