From a0d1d0c7aa401be39beb2d7fa385ff4da8b6ea10 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Thu, 29 Feb 2024 11:18:14 +0900 Subject: [PATCH] device: Add DA logic to restrict the connection to only one mobile device Change-Id: Ibd4e485a594b2644ef5ab89de8e559a766480cf0 Signed-off-by: Wootak Jung --- src/device.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/device.c b/src/device.c index 6cb26dd..f89cf1f 100644 --- a/src/device.c +++ b/src/device.c @@ -7466,8 +7466,13 @@ void device_unpair(struct btd_device *device, gboolean remove_stored) device->trusted_profiles.pbap = SHOW_AUTHORIZATION; device->trusted_profiles.map = SHOW_AUTHORIZATION; device->trusted_profiles.sap = SHOW_AUTHORIZATION; - device->trusted_profiles.hfp_hs = SUPPORTED_TRUSTED; - device->trusted_profiles.a2dp = SUPPORTED_TRUSTED; + if (TIZEN_MODEL_DA) { + device->trusted_profiles.hfp_hs = SHOW_AUTHORIZATION; + device->trusted_profiles.a2dp = SHOW_AUTHORIZATION; + } else { + device->trusted_profiles.hfp_hs = SUPPORTED_TRUSTED; + device->trusted_profiles.a2dp = SUPPORTED_TRUSTED; + } if (device->alias != NULL) { /* Remove alias name because * In UG if we rename and then unpair device and -- 2.7.4