From 7850d7750ae3e23443feaf67e97a9f2a6275921b Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Fri, 18 Oct 2024 19:25:24 +0200 Subject: [PATCH] Wireless drivers: remove driver for 8822BS applicable for old kernels < 5.16 Git was removed and there is not need to restore it. --- .../compilation/patch/drivers-harness.sh | 1 - .../compilation/patch/drivers_network.sh | 44 ------------------- 2 files changed, 45 deletions(-) diff --git a/lib/functions/compilation/patch/drivers-harness.sh b/lib/functions/compilation/patch/drivers-harness.sh index 038d36f7a93f..6bf8abd9a217 100644 --- a/lib/functions/compilation/patch/drivers-harness.sh +++ b/lib/functions/compilation/patch/drivers-harness.sh @@ -117,7 +117,6 @@ function kernel_drivers_prepare_harness() { driver_rtl8822cs_bt driver_rtl8723DS driver_rtl8723DU - driver_rtl8822BS driver_uwe5622 driver_rtl8723cs ) diff --git a/lib/functions/compilation/patch/drivers_network.sh b/lib/functions/compilation/patch/drivers_network.sh index 170e095a0359..5fe737914d89 100644 --- a/lib/functions/compilation/patch/drivers_network.sh +++ b/lib/functions/compilation/patch/drivers_network.sh @@ -735,50 +735,6 @@ driver_rtl8822cs_bt() { fi } -driver_rtl8822BS() { - - # Wireless drivers for Realtek 8822BS chipsets - - if linux-version compare "${version}" ge 4.4 && linux-version compare "${version}" le 5.16; then - - # Attach to specific commit (was "branch:local_rtl8822bs") - local rtl8822bsver='commit:ee88babf55ad75b49c3312f997fd289e5ca4016b' # Commit date: Apr 30, 2022 (please update when updating commit ref) - - display_alert "Adding" "Wireless drivers for Realtek 8822BS chipsets ${rtl8822bsver}" "info" - - fetch_from_repo "$GITHUB_SOURCE/150balbes/wifi" "rtl8822bs" "${rtl8822bsver}" "yes" # https://github.com/150balbes/wifi - cd "$kerneldir" || exit - rm -rf "$kerneldir/drivers/net/wireless/rtl8822bs" - mkdir -p "$kerneldir/drivers/net/wireless/rtl8822bs/" - cp -R "${SRC}/cache/sources/rtl8822bs/${rtl8822bsver#*:}"/{core,hal,include,os_dep,platform,bluetooth,getAP,rtl8822b.mk} \ - "$kerneldir/drivers/net/wireless/rtl8822bs" - - # Remove some leftover binary files that shouldn't be there. firmware? - rm -fv "$kerneldir/drivers/net/wireless/rtl8822bs/bluetooth/rtl8822b_config.bin" "$kerneldir/drivers/net/wireless/rtl8822bs/bluetooth/rtl8822b_fw.bin" - - # Makefile - cp "${SRC}/cache/sources/rtl8822bs/${rtl8822bsver#*:}/Makefile" \ - "$kerneldir/drivers/net/wireless/rtl8822bs/Makefile" - - # Kconfig - sed -i 's/---help---/help/g' "${SRC}/cache/sources/rtl8822bs/${rtl8822bsver#*:}/Kconfig" - cp "${SRC}/cache/sources/rtl8822bs/${rtl8822bsver#*:}/Kconfig" \ - "$kerneldir/drivers/net/wireless/rtl8822bs/Kconfig" - - # Add to section Makefile - echo "obj-\$(CONFIG_RTL8822BS) += rtl8822bs/" >> "$kerneldir/drivers/net/wireless/Makefile" - sed -i '/source "drivers\/net\/wireless\/ti\/Kconfig"/a source "drivers\/net\/wireless\/rtl8822bs\/Kconfig"' \ - "$kerneldir/drivers/net/wireless/Kconfig" - - process_patch_file "${SRC}/patch/misc/wireless-rtl8822bs-Fix-uninitialized-cfg80211-chan-def.patch" "applying" - process_patch_file "${SRC}/patch/misc/wireless-rtl8822bs-Fix-p2p-go-advertising.patch" "applying" - process_patch_file "${SRC}/patch/misc/wireless-rtl8822bs-Fix-misleading-indentation.patch" "applying" - - # fix compilation for kernels >= 5.4 - process_patch_file "${SRC}/patch/misc/wireless-rtl8822bs-Fix-VFS-import.patch" "applying" - fi -} - driver_rtl8188EU_rtl8188ETV() { # Wireless drivers for Realtek 8188EU 8188EUS and 8188ETV chipsets