Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion subsys/bluetooth/host/iso.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ void bt_iso_connected(struct bt_conn *iso)

static void bt_iso_chan_disconnected(struct bt_iso_chan *chan, uint8_t reason)
{
const uint8_t conn_type = chan->iso->iso.info.type;
uint8_t conn_type;
struct net_buf *buf;

LOG_DBG("%p, reason 0x%02x", chan, reason);
Expand All @@ -478,6 +478,8 @@ static void bt_iso_chan_disconnected(struct bt_iso_chan *chan, uint8_t reason)
chan->ops->disconnected(chan, reason);
}

conn_type = chan->iso->iso.info.type;

/* The peripheral does not have the concept of a CIG, so once a CIS
* disconnects it is completely freed by unref'ing it
*/
Expand Down