Skip to content

Commit fc9ba3e

Browse files
authored
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
1 parent eac6ed7 commit fc9ba3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/functions/compilation/patch/drivers_network.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,9 @@ driver_rtw88() {
354354
display_alert "Adding" "Upstream wireless RTW88 drivers" "info"
355355
if [[ -f "${SRC}/patch/misc/rtw88/${version}/001-drivers-net-wireless-realtek-rtw88-upstream-wireless.patch" ]]; then
356356
process_patch_file "${SRC}/patch/misc/rtw88/${version}/001-drivers-net-wireless-realtek-rtw88-upstream-wireless.patch" "applying"
357-
process_patch_file "${SRC}/patch/misc/rtw88/${version}/002-rtw88-sdio-rf-path-detection-fix.patch" "applying"
357+
if linux-version compare "${version}" eq 6.1; then
358+
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.
359+
fi
358360
process_patch_file "${SRC}/patch/misc/rtw88/hack/003-rtw88-decrease-the-log-level-of-tx-report.patch" "applying"
359361
fi
360362
fi

0 commit comments

Comments
 (0)