Skip to content

Commit

Permalink
Bluetooth: BAP: BA: Add additional PAST log in past_available
Browse files Browse the repository at this point in the history
Add additional logging in past_available to easily see the PAST
support of the broadcast assistant and scan delegator devices.

Signed-off-by: Emil Gydesen <[email protected]>
  • Loading branch information
Thalley authored and dleach02 committed Mar 9, 2024
1 parent 2028384 commit 2d11fbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions subsys/bluetooth/audio/bap_broadcast_assistant.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ static bool past_available(const struct bt_conn *conn,
const bt_addr_le_t *adv_addr,
uint8_t sid)
{
LOG_DBG("%p remote %s PAST, local %s PAST", (void *)conn,
BT_FEAT_LE_PAST_RECV(conn->le.features) ? "supports" : "does not support",
BT_FEAT_LE_PAST_SEND(bt_dev.le.features) ? "supports" : "does not support");

return BT_FEAT_LE_PAST_RECV(conn->le.features) &&
BT_FEAT_LE_PAST_SEND(bt_dev.le.features) &&
bt_le_per_adv_sync_lookup_addr(adv_addr, sid) != NULL;
Expand Down

0 comments on commit 2d11fbe

Please sign in to comment.