From f2a29899297aa55307fe12521dca637f9080f683 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 11 Feb 2023 10:53:51 +0000 Subject: media: Check adapter CIS support to add BAP in SupportedUUIDs Don't indicate BAP support in SupportedUUIDs, if adapter supports neither CIS Central nor Peripheral. --- profiles/audio/media.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'profiles') diff --git a/profiles/audio/media.c b/profiles/audio/media.c index 3eb038cb7..479a11db9 100644 --- a/profiles/audio/media.c +++ b/profiles/audio/media.c @@ -23,6 +23,7 @@ #include "lib/bluetooth.h" #include "lib/sdp.h" #include "lib/uuid.h" +#include "lib/mgmt.h" #include "gdbus/gdbus.h" @@ -1284,6 +1285,10 @@ static bool experimental_endpoint_supported(struct btd_adapter *adapter) if (!btd_adapter_has_exp_feature(adapter, EXP_FEAT_ISO_SOCKET)) return false; + if (!btd_adapter_has_settings(adapter, MGMT_SETTING_CIS_CENTRAL | + MGMT_SETTING_CIS_PERIPHERAL)) + return false; + return g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL; } -- cgit v1.2.1