diff options
author | Wootak Jung <wootak.jung@samsung.com> | 2024-02-29 11:18:14 +0900 |
---|---|---|
committer | Wootak Jung <wootak.jung@samsung.com> | 2024-03-04 08:07:11 +0900 |
commit | a6c520cf7e35bc230050d346fc1fcbbef1e6bfcb (patch) | |
tree | 4ddeebacaa81f20f9944b63b873bab67e09e2834 | |
parent | d3be6a9404f73ee12f18ed0c0fd778e6808d0e74 (diff) | |
download | bluez-accepted/tizen_unified.tar.gz bluez-accepted/tizen_unified.tar.bz2 bluez-accepted/tizen_unified.zip |
device: Add DA logic to restrict the connection to only one mobile deviceaccepted/tizen/unified/x/20240311.100348accepted/tizen/unified/20240308.173922accepted/tizen_unified_xaccepted/tizen_unified
Change-Id: Ibd4e485a594b2644ef5ab89de8e559a766480cf0
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
-rw-r--r-- | src/device.c | 9 |
1 files changed, 7 insertions, 2 deletions
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 |