The transaction may not be unique given the fact that notifications can
take all the outstanding transaction which may cause transactions to be
reused as explained in the errata:
https://www.bluetooth.org/errata/errata_view.cfm?errata_id=3812
GSList *l;
if (p && p->transaction == avctp->transaction) {
+ req = p->data;
+ if (req->op != avc->opcode)
+ goto done;
+
control->processed = g_slist_prepend(control->processed, p);
if (p->timeout > 0) {
control);
}
+done:
for (l = control->processed; l; l = l->next) {
p = l->data;
req = p->data;
if (p->transaction != avctp->transaction)
continue;
+ if (req->op != avc->opcode)
+ continue;
+
if (req->func && req->func(control->session, avc->code,
avc->subunit_type, p->transaction,
operands, operand_count,