From 4a7ee30978da919cc820116be6ced323b35e4ebd Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 4 Jun 2025 13:40:04 -0400 Subject: [PATCH] adapter: Fix exposing coordinate sets if LE Audio is disabled This fixes exposing non-discoverable coordinate set members if LE Audio is disabled since it may lead system device setting showing them to user that may attempt to pair them and end up not working. Fixes: https://github.com/bluez/bluez/issues/523 --- src/adapter.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/adapter.c b/src/adapter.c index 2417e3cea..70141e154 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -7356,11 +7356,12 @@ void btd_adapter_device_found(struct btd_adapter *adapter, MGMT_SETTING_ISO_SYNC_RECEIVER)) monitoring = true; - /* Monitor Devices advertising RSI since those can be - * coordinated sets not marked as visible but their object are - * needed. + /* If ISO Socket is enabled, monitor Devices advertising RSI + * since those can be coordinated sets not marked as visible but + * their object are needed. */ - if (eir_data.rsi) + if (btd_adapter_has_exp_feature(adapter, EXP_FEAT_ISO_SOCKET) && + eir_data.rsi) monitoring = true; if (!discoverable && !monitoring) { -- 2.47.3