I get an error during the process trying to use this in Pop OS (22.04, Kernel 5.17.5-76051705-generic). The error I get is as follows:
make -C /lib/modules/5.17.5-76051705-generic/build M=/home/recovery/rtl8852be_bt modules
make[1]: Entering directory '/usr/src/linux-headers-5.17.5-76051705-generic'
CC [M] /home/recovery/rtl8852be_bt/btusb.o
/home/recovery/rtl8852be_bt/btusb.c: In function ‘btusb_probe’:
/home/recovery/rtl8852be_bt/btusb.c:3819:13: error: ‘struct hci_dev’ has no member named ‘prevent_wake’
3819 | hdev->prevent_wake = btusb_prevent_wake;
| ^~
make[2]: *** [scripts/Makefile.build:288: /home/recovery/rtl8852be_bt/btusb.o] Error 1
make[1]: *** [Makefile:1837: /home/recovery/rtl8852be_bt] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.17.5-76051705-generic'
make: *** [Makefile:17: all] Error 2
Attempted with Ubuntu (22.04, Kernel 5.15.0-41-generic) on the same hardware, and 'make' completes fine.