On Fri Jul 11 15:39:41 2025 +0000, Vibhav Pant wrote:
Sorry, I didn't see this earlier. This was due to the `started` field in the device extension being incorrectly set to `TRUE` in `bluetooth_radio_add_remote_device`. As a result, `bluetooth_device_create_le_symlink` would prematurely create a phantom device entry in the registry, which would cause `enumerate_new_device` to fail. On the next (and future) startup, `IoRegisterDeviceInterface` would fail as well, as `SetupDiOpenDeviceInfoW` returns `ERROR_NO_SUCH_DEVINST` for phantom devices. Should be fixed now.
FYI, you might have to manually delete the device registry entries for `HKLM\System\CurrentControlSet\Enum\WINEBTH\DEVICE\(_org_bluez_hci0&DEE7615062CB,_org_bluez_hci0&D5B1DC5305C7)` (or recreate the prefix) for the error to not show up with the updated code as well.