Skip to content

Commit

Permalink
Bluetooth: ISO: Align broadcast sync_timeout with connection timeout
Browse files Browse the repository at this point in the history
[ Upstream commit 42ed95d ]

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>
Stable-dep-of: b37cab5 ("Bluetooth: ISO: Don't reject BT_ISO_QOS if parameters are unset")
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Vudentz authored and gregkh committed Apr 17, 2024
1 parent 01b11a0 commit c832164
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions include/net/bluetooth/bluetooth.h
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions net/bluetooth/iso.c
Expand Up @@ -764,10 +764,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,
},
};

Expand Down

0 comments on commit c832164

Please sign in to comment.