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
9 changes: 9 additions & 0 deletions subsys/bluetooth/audio/bap_scan_delegator.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,9 @@ static int scan_delegator_add_source(struct bt_conn *conn,
LOG_DBG("PA sync %u from %p was rejected with reason %d", pa_sync, conn,
err);

atomic_clear_bit(internal_state->flags,
BASS_RECV_STATE_INTERNAL_FLAG_NOTIFY_PEND);

return BT_GATT_ERR(BT_ATT_ERR_WRITE_REQ_REJECTED);
}
}
Expand Down Expand Up @@ -875,6 +878,9 @@ static int scan_delegator_mod_src(struct bt_conn *conn,
LOG_DBG("PA sync %u from %p was rejected with reason %d", pa_sync, conn,
err);

atomic_clear_bit(internal_state->flags,
BASS_RECV_STATE_INTERNAL_FLAG_NOTIFY_PEND);

return BT_GATT_ERR(BT_ATT_ERR_WRITE_REQ_REJECTED);
}
} else if (pa_sync == BT_BAP_BASS_PA_REQ_NO_SYNC &&
Expand All @@ -886,6 +892,9 @@ static int scan_delegator_mod_src(struct bt_conn *conn,
if (err != 0) {
LOG_DBG("PA sync term from %p was rejected with reason %d", conn, err);

atomic_clear_bit(internal_state->flags,
BASS_RECV_STATE_INTERNAL_FLAG_NOTIFY_PEND);

return BT_GATT_ERR(BT_ATT_ERR_WRITE_REQ_REJECTED);
}

Expand Down
Loading