LE Audio: Map EALREADY error of ase_stream_qos()

to send response with code 0x09 = Invalid Configuration Parameter
Value and reason 0x0a = Invalid_ASE_CIS_Mapping.

Previous response code was BT_ASCS_RSP_UNSPECIFIED (0x0e) and
reason BT_ASCS_REASON_NONE (0x00).

Fixes ASCS/SR/SPE/BI-15-C and ASCS/SR/SPE/BI-16-C PTS test cases.

Signed-off-by: Magdalena Kasenberg <magdalena.kasenberg@codecoup.pl>
This commit is contained in:
Magdalena Kasenberg 2023-02-07 16:26:50 +01:00 committed by Stephanos Ioannidis
parent e442a15c32
commit 3c00629bb6

View file

@ -1593,7 +1593,7 @@ static void ase_qos(struct bt_ascs_ase *ase, const struct bt_ascs_qos *qos)
} else if (cqos->pd == 0) {
reason = BT_ASCS_REASON_PD;
}
} else if (err == -EADDRINUSE) {
} else if (err == -EALREADY) {
reason = BT_ASCS_REASON_CIS;
/* FIXME: Ugly workaround to send Response_Code
* 0x09 = Invalid Configuration Parameter Value