@@ -587,15 +587,20 @@ driver_rtl8723cs() {
587587
588588 # -- BLUETOOTH --
589589 # these few patches address some issues to let the rtl8723cs/rtl8703b chipsets to be used within the serdev framework
590- if linux-version compare " ${version} " ge 6.2 && linux-version compare " ${version} " lt 6.3; then # landed in 6.1.30/6.3.4 # keep for 6.2
591- process_patch_file " ${SRC} /patch/misc/bluetooth-rtl8723cs/bluetooth-btrtl-quirk-local-ext-features.patch" " applying"
592- process_patch_file " ${SRC} /patch/misc/bluetooth-rtl8723cs/Bluetooth-btrtl-add-support-for-the-RTL8723CS.patch" " applying"
593- fi
590+ # Available only with kernels >= 6.1, because bt driver does not exist in older kernels
591+ if linux-version compare " ${version} " ge 6.1; then
592+
593+ if linux-version compare " ${version} " ge 6.2 && linux-version compare " ${version} " lt 6.3; then # landed in 6.1.30/6.3.4 # keep for 6.2
594+ process_patch_file " ${SRC} /patch/misc/bluetooth-rtl8723cs/bluetooth-btrtl-quirk-local-ext-features.patch" " applying"
595+ process_patch_file " ${SRC} /patch/misc/bluetooth-rtl8723cs/Bluetooth-btrtl-add-support-for-the-RTL8723CS.patch" " applying"
596+ fi
597+
598+ process_patch_file " ${SRC} /patch/misc/bluetooth-rtl8723cs/Bluetooth-hci_h5-Add-support-for-binding-RTL8723CS-with-device-.patch" " applying"
599+ process_patch_file " ${SRC} /patch/misc/bluetooth-rtl8723cs/bluetooth-h5-Don-t-re-initialize-rtl8723cs-on-resume.patch" " applying"
600+ process_patch_file " ${SRC} /patch/misc/bluetooth-rtl8723cs/bluetooth-btrtl-add-rtl8703bs.patch" " applying"
601+ process_patch_file " ${SRC} /patch/misc/bluetooth-rtl8723cs/dt-bindings-net-bluetooth-Add-rtl8723bs-bluetooth.patch" " applying"
594602
595- process_patch_file " ${SRC} /patch/misc/bluetooth-rtl8723cs/Bluetooth-hci_h5-Add-support-for-binding-RTL8723CS-with-device-.patch" " applying"
596- process_patch_file " ${SRC} /patch/misc/bluetooth-rtl8723cs/bluetooth-h5-Don-t-re-initialize-rtl8723cs-on-resume.patch" " applying"
597- process_patch_file " ${SRC} /patch/misc/bluetooth-rtl8723cs/bluetooth-btrtl-add-rtl8703bs.patch" " applying"
598- process_patch_file " ${SRC} /patch/misc/bluetooth-rtl8723cs/dt-bindings-net-bluetooth-Add-rtl8723bs-bluetooth.patch" " applying"
603+ fi
599604
600605 # -- WIFI --
601606 # Wireless patches; do note kernels >= 6.19 do not need this because it has been superseded by mainline rtw88 driver.
0 commit comments