Bluetooth: ISO: Fix ISO MTU when CONFIG_BT_BREDR=y
If CONFIG_BT_BREDR=y and bt_dev.le.acl_mtu == 0, then we would report the bt_dev.br.mtu for ISO channels. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
ba0bb89a70
commit
a96f8ba9ba
1 changed files with 2 additions and 1 deletions
|
@ -507,7 +507,8 @@ static int send_iso(struct bt_conn *conn, struct net_buf *buf, uint8_t flags)
|
|||
static inline uint16_t conn_mtu(struct bt_conn *conn)
|
||||
{
|
||||
#if defined(CONFIG_BT_BREDR)
|
||||
if (conn->type == BT_CONN_TYPE_BR || !bt_dev.le.acl_mtu) {
|
||||
if (conn->type == BT_CONN_TYPE_BR ||
|
||||
(conn->type != BT_CONN_TYPE_ISO && !bt_dev.le.acl_mtu)) {
|
||||
return bt_dev.br.mtu;
|
||||
}
|
||||
#endif /* CONFIG_BT_BREDR */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue