diff mbox series

[BlueZ,v6,7/7] device: Set as non-temporary device that has matching profiles

Message ID 20230816164435.5149-8-claudia.rosu@nxp.com
State New
Headers show
Series Add support for BAP broadcast sink | expand

Commit Message

Claudia Draghicescu Aug. 16, 2023, 4:44 p.m. UTC
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 mbox series

Patch

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;
 }