Mark as non-temporary a device that has matching profiles. For the BAP broadcast case, this fixes the case where the broadcast source was discovered and the remote endpoint was created and the sync is performed after the timer for the device expired. --- src/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/device.c b/src/device.c index ecd385cf8..57632b51e 100644 --- a/src/device.c +++ b/src/device.c @@ -3943,6 +3943,8 @@ static bool device_match_profile(struct btd_device *device, bt_uuid_strcmp) == NULL) return false; + btd_device_set_temporary(device, false); + return true; } -- 2.34.1