From: Wootak Jung Date: Thu, 29 Feb 2024 02:18:14 +0000 (+0900) Subject: device: Add DA logic to restrict the connection to only one mobile device X-Git-Tag: accepted/tizen/unified/20240308.173922^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6c520cf7e35bc230050d346fc1fcbbef1e6bfcb;p=platform%2Fupstream%2Fbluez.git device: Add DA logic to restrict the connection to only one mobile device Change-Id: Ibd4e485a594b2644ef5ab89de8e559a766480cf0 Signed-off-by: Wootak Jung --- diff --git a/src/device.c b/src/device.c index 270053d9..eaf9e5fa 100644 --- a/src/device.c +++ b/src/device.c @@ -7369,8 +7369,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