Skip to content

Commit c64494a

Browse files
Tronilkartben
authored andcommitted
Bluetooth: Controller: Fix return value for apto with illegal handles
If the connection handle given to a Read/Write Authenticated Payload Timeout HCI command is a CIS or BIS handle, the error returned has to be BT_HCI_ERR_CMD_DISALLOWED with the new TCRL Fixes EBQ test failures in HCI/BIS/BI-14-C, HCI/BIS/BI-15-C, HCI/CIS/BI-20-C and HCI/CIS/BI-22-C Signed-off-by: Troels Nilsson <trnn@demant.com>
1 parent f42cef9 commit c64494a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

subsys/bluetooth/controller/ll_sw/ull_conn.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,12 @@ uint8_t ll_apto_get(uint16_t handle, uint16_t *apto)
706706
{
707707
struct ll_conn *conn;
708708

709+
#if defined(CONFIG_BT_CTLR_ISO)
710+
if (IS_CIS_HANDLE(handle) || IS_SYNC_ISO_HANDLE(handle) || IS_ADV_ISO_HANDLE(handle)) {
711+
return BT_HCI_ERR_CMD_DISALLOWED;
712+
}
713+
#endif /* CONFIG_BT_CTLR_ISO */
714+
709715
conn = ll_connected_get(handle);
710716
if (!conn) {
711717
return BT_HCI_ERR_UNKNOWN_CONN_ID;
@@ -726,6 +732,12 @@ uint8_t ll_apto_set(uint16_t handle, uint16_t apto)
726732
{
727733
struct ll_conn *conn;
728734

735+
#if defined(CONFIG_BT_CTLR_ISO)
736+
if (IS_CIS_HANDLE(handle) || IS_SYNC_ISO_HANDLE(handle) || IS_ADV_ISO_HANDLE(handle)) {
737+
return BT_HCI_ERR_CMD_DISALLOWED;
738+
}
739+
#endif /* CONFIG_BT_CTLR_ISO */
740+
729741
conn = ll_connected_get(handle);
730742
if (!conn) {
731743
return BT_HCI_ERR_UNKNOWN_CONN_ID;

0 commit comments

Comments
 (0)