Package Details: rtw89bt-dkms-git 5.15.0.r40.g101e29a-1

Git Clone URL: https://aur.archlinux.org/rtw89bt-dkms-git.git (read-only, click to copy)
Package Base: rtw89bt-dkms-git
Description: Out-of-kernel driver for Realtek BT devices found in rtw89 devices (8852AE, RTW8852BE, RTW8852CE). Kernel >= 5.15.0
Upstream URL: https://github.com/lwfinger/rtw89-BT
Licenses: GPL2
Conflicts: rtw89bt-dkms-git
Submitter: shurka
Maintainer: samuelbernardo
Last Packager: shurka
Votes: 0
Popularity: 0.000000
First Submitted: 2022-10-18 12:19 (UTC)
Last Updated: 2025-04-29 07:38 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

sontaran commented on 2025-08-08 07:32 (UTC) (edited on 2025-08-08 07:46 (UTC) by sontaran)

@shurka @samuelbernardo this package does not build with 6.15.9-arch1-1 neither.

Building module(s)
# command: make -j12 KERNELRELEASE=6.15.9-arch1-1 -C /usr/lib/modules/6.15.9-arch1-1/build M=/var/lib/dkms/rtw89bt-dkms-git/5.15.0.r40.g101e29a/build
make: Entering directory '/usr/lib/modules/6.15.9-arch1-1/build'
make[1]: Entering directory '/var/lib/dkms/rtw89bt-dkms-git/5.15.0.r40.g101e29a/build'
  CC [M]  btusb.o
  CC [M]  btrtl.o
  CC [M]  btmtk.o
  CC [M]  btintel.o
btintel.c: In function ‘btintel_check_bdaddr’:
btintel.c:92:56: error: ‘struct hci_dev’ has no member named ‘quirks’
   92 |                 set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks);
      |                                                        ^~
btrtl.c: In function ‘btrtl_set_quirks’:
btrtl.c:1271:56: error: ‘struct hci_dev’ has no member named ‘quirks’
 1271 |         set_bit(HCI_QUIRK_SIMULTANEOUS_DISCOVERY, &hdev->quirks);
      |                                                        ^~
btintel.c: In function ‘btintel_download_fw’:
btintel.c:2018:56: error: ‘struct hci_dev’ has no member named ‘quirks’
 2018 |                 set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks);
      |                                                        ^~
btintel.c: In function ‘btintel_prepare_fw_download_tlv’:
btintel.c:2239:64: error: ‘struct hci_dev’ has no member named ‘quirks’
 2239 |                         set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks);
      |                                                                ^~
btintel.c: In function ‘btintel_setup_combined’:
btintel.c:2727:57: error: ‘struct hci_dev’ has no member named ‘quirks’
 2727 |         set_bit(HCI_QUIRK_STRICT_DUPLICATE_FILTER, &hdev->quirks);
      |                                                         ^~
btintel.c:2728:56: error: ‘struct hci_dev’ has no member named ‘quirks’
 2728 |         set_bit(HCI_QUIRK_SIMULTANEOUS_DISCOVERY, &hdev->quirks);
      |                                                        ^~
btintel.c:2729:53: error: ‘struct hci_dev’ has no member named ‘quirks’
 2729 |         set_bit(HCI_QUIRK_NON_PERSISTENT_DIAG, &hdev->quirks);
      |                                                     ^~
btintel.c:2768:46: error: ‘struct hci_dev’ has no member named ‘quirks’
 2768 |                                         &hdev->quirks);
      |                                              ^~
btusb.c: In function ‘btusb_setup_csr’:
btusb.c:2417:64: error: ‘struct hci_dev’ has no member named ‘quirks’
 2417 |                 set_bit(HCI_QUIRK_BROKEN_STORED_LINK_KEY, &hdev->quirks);
      |                                                                ^~
btusb.c:2422:65: error: ‘struct hci_dev’ has no member named ‘quirks’
 2422 |                 set_bit(HCI_QUIRK_BROKEN_FILTER_CLEAR_ALL, &hdev->quirks);
      |                                                                 ^~
btusb.c:2424:61: error: ‘struct hci_dev’ has no member named ‘quirks’
 2424 |                 set_bit(HCI_QUIRK_NO_SUSPEND_NOTIFIER, &hdev->quirks);
      |                                                             ^~
...

xx777 commented on 2025-07-22 20:25 (UTC) (edited on 2025-07-22 20:26 (UTC) by xx777)

@ArchONeil The Bluetooth driver provided by kernel 6.15 is MUCH newer, why were you trying to install an older one?

ArchONeil commented on 2025-06-30 20:26 (UTC)

Hiya mate,

The rtw89bt-dkms-git package is currently failing to build on my system with kernel 6.15.4-arch2-1.

The make.log shows multiple compilation errors indicating API changes in recent kernel versions that the current source/patches do not account for. Key errors include:

error: ‘struct hci_dev’ has no member named ‘dev_type’

error: ‘HCI_AMP’ undeclared

error: ‘struct hci_dev’ has no member named ‘cmd_timeout’; did you mean ‘cmd_timer’?

error: ‘HCI_QUIRK_VALID_LE_STATES’ undeclared

error: ‘struct usb_driver’ has no member named ‘drvwrap’

These changes typically occurred around kernel 6.8-6.12. Despite the package including a patch for kernels >= 6.12, it seems insufficient for 6.15.4.

A snippet from make.log:

btusb.c: In function ‘btusb_probe’: btusb.c:4346:21: error: ‘struct hci_dev’ has no member named ‘dev_type’ 4346 | hdev->dev_type = HCI_AMP; | ^~ btusb.c:4346:34: error: ‘HCI_AMP’ undeclared (first use in this function); did you mean ‘HCI_UP’? ... btusb.c:4424:23: error: ‘struct hci_dev’ has no member named ‘cmd_timeout’; did you mean ‘cmd_timer’? ... btrtl.c:1283:25: error: ‘HCI_QUIRK_VALID_LE_STATES’ undeclared ... btusb.c:4842:10: error: ‘struct usb_driver’ has no member named ‘drvwrap’

Could the package patches please be updated to support kernel 6.15.4-arch2-1?

shurka commented on 2025-04-30 07:17 (UTC)

@samuelbernardo done. Feel free to contact me if something isn't working.

samuelbernardo commented on 2025-04-30 06:53 (UTC)

@shurka If you can, just add me as a co-maintainer for this package, so I can help with later updates. I need this module for my laptop. Thanks

shurka commented on 2025-04-29 07:42 (UTC)

@samuelbernardo thank you for the tip. I've added your script with minor changes to the packaging function. Unfortunately, I no longer have a laptop with this device, so I'm unable to test it myself. If anyone is interested in maintaining the package, I would be glad to transfer the ownership.

samuelbernardo commented on 2025-04-27 08:01 (UTC)

Since linux kernel 6.12 headers, it is required to do the following:

for f in $(grep 'asm.unaligned.h' -rl *); do sed -i 's|asm/unaligned.h|linux/unaligned.h|g' $f; done

Upstream sources are not updated in conformance. I just tested the module with kernel 6.14.4-arch1-1 and it works!

<deleted-account> commented on 2023-08-25 14:16 (UTC)

(or you can add it as a optional dependency)

<deleted-account> commented on 2023-08-25 14:15 (UTC)

@shurka you need to remove linux-headers now. See rtw89-dkms package, it does not have any of that. You can specify linux version requirement in description.

shurka commented on 2022-11-05 15:11 (UTC)

@xz-dev, according to project's README on github "This driver will build for kernels 5.15+", so I added explicit dependencies for linux>=5.15.0 and linux-headers>=5.15.0.