Bluetooth: ISO: Align broadcast sync_timeout with connection timeout
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 7 Mar 2024 16:58:17 +0000 (11:58 -0500)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 7 Mar 2024 16:58:17 +0000 (11:58 -0500)
This aligns broadcast sync_timeout with existing connection timeouts
which are 20 seconds long.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/bluetooth.h
net/bluetooth/iso.c

index 7ffa8c192c3f2eecea9dac1073af4853f59fadc7..9fe95a22abeb7e2fb12d7384a974e5689db61211 100644 (file)
@@ -164,6 +164,8 @@ struct bt_voice {
 #define BT_ISO_QOS_BIG_UNSET   0xff
 #define BT_ISO_QOS_BIS_UNSET   0xff
 
+#define BT_ISO_SYNC_TIMEOUT    0x07d0 /* 20 secs */
+
 struct bt_iso_io_qos {
        __u32 interval;
        __u16 latency;
index 8af75d37b14c01fe1a6d825ef793eda004d21cb3..c8793e57f4b547d5bd465b80575143083b867624 100644 (file)
@@ -834,10 +834,10 @@ static struct bt_iso_qos default_qos = {
                .bcode                  = {0x00},
                .options                = 0x00,
                .skip                   = 0x0000,
-               .sync_timeout           = 0x4000,
+               .sync_timeout           = BT_ISO_SYNC_TIMEOUT,
                .sync_cte_type          = 0x00,
                .mse                    = 0x00,
-               .timeout                = 0x4000,
+               .timeout                = BT_ISO_SYNC_TIMEOUT,
        },
 };