Diff between 94af45bc09a79443322e8f8bbbe0e7875856188f and f2a29899297aa55307fe12521dca637f9080f683

Changed Files

File Additions Deletions Status
profiles/audio/media.c +5 -0 modified

Full Patch

diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index 3eb038c..479a11d 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;
 }