diff --git a/include/zephyr/bluetooth/audio/bap.h b/include/zephyr/bluetooth/audio/bap.h index f61accde211..a0719bd939d 100644 --- a/include/zephyr/bluetooth/audio/bap.h +++ b/include/zephyr/bluetooth/audio/bap.h @@ -397,6 +397,9 @@ struct bt_bap_ep_info { /** Capabilities type */ enum bt_audio_dir dir; + /** The isochronous channel associated with the endpoint. */ + struct bt_iso_chan *iso_chan; + /** @brief True if the stream associated with the endpoint is able to send data */ bool can_send; diff --git a/subsys/bluetooth/audio/bap_stream.c b/subsys/bluetooth/audio/bap_stream.c index 2f1cf71e8dd..dc776c6483d 100644 --- a/subsys/bluetooth/audio/bap_stream.c +++ b/subsys/bluetooth/audio/bap_stream.c @@ -107,8 +107,10 @@ int bt_bap_ep_get_info(const struct bt_bap_ep *ep, struct bt_bap_ep_info *info) if (ep->iso == NULL) { info->paired_ep = NULL; + info->iso_chan = NULL; } else { info->paired_ep = bt_bap_iso_get_paired_ep(ep); + info->iso_chan = &ep->iso->chan; } info->can_send = false;