From 308a93bd14e8e91ba74cf38a69706863e525f7e7 Mon Sep 17 00:00:00 2001 From: Vlad Date: Fri, 26 Jul 2024 12:54:39 +0300 Subject: [PATCH] bluez5: Update default sync_factor Due to the how the kernel part of BlueZ computes the extended advertising interval for a Broadcast Source, a sync_factor smaller than 2 will result in an invalid interval value (too small). --- spa/plugins/bluez5/bluez5-dbus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/bluez5-dbus.c b/spa/plugins/bluez5/bluez5-dbus.c index de4d35fc9..27d21bb9c 100644 --- a/spa/plugins/bluez5/bluez5-dbus.c +++ b/spa/plugins/bluez5/bluez5-dbus.c @@ -5310,7 +5310,8 @@ static void configure_bis(struct spa_bt_monitor *monitor, int options = 0; int skip = 0; int sync_cte_type = 0; - int sync_factor = 1; + /* sync_factor should be >=2 to avoid invalid extended advertising interval value */ + int sync_factor = 2; int sync_timeout = 2000; int timeout = 2000;