From 21db5ba5ba0033470a68fe03bfac59e16bd6806c Mon Sep 17 00:00:00 2001 From: The-going <48602507+The-going@users.noreply.github.com> Date: Sat, 21 Sep 2024 22:06:28 +0300 Subject: [PATCH] sunxi-6.11: xradio: exclude driver if kernel version >= 6.11 --- lib/functions/compilation/patch/drivers_network.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions/compilation/patch/drivers_network.sh b/lib/functions/compilation/patch/drivers_network.sh index 6e7085679d31..170e095a0359 100644 --- a/lib/functions/compilation/patch/drivers_network.sh +++ b/lib/functions/compilation/patch/drivers_network.sh @@ -217,7 +217,7 @@ driver_xradio_xr819() { # Wireless drivers for Xradio XR819 chipsets - if linux-version compare "${version}" ge 4.19 && [[ "$LINUXFAMILY" == sunxi* ]]; then + if linux-version compare "${version}" ge 4.19 && linux-version compare "${version}" lt 6.11 && [[ "$LINUXFAMILY" == sunxi* ]]; then # Attach to specific commit (is branch:master) local xradio_xr819_ver="commit:3a1f77fb2db248b7d18d93b67b16e0d6c91db184" # Commit date: Dec 25, 2023 (please update when updating commit ref) @@ -515,7 +515,7 @@ driver_uwe5622() { if linux-version compare "${version}" ge 6.9; then process_patch_file "${SRC}/patch/misc/wireless-uwe5622/uwe5622-v6.9.patch" "applying" fi - + if linux-version compare "${version}" ge 6.11; then process_patch_file "${SRC}/patch/misc/wireless-uwe5622/uwe5622-v6.11.patch" "applying" fi