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>
This commit is contained in:
parent
f42cef9c81
commit
c64494a32d
1 changed files with 12 additions and 0 deletions
|
@ -706,6 +706,12 @@ uint8_t ll_apto_get(uint16_t handle, uint16_t *apto)
|
|||
{
|
||||
struct ll_conn *conn;
|
||||
|
||||
#if defined(CONFIG_BT_CTLR_ISO)
|
||||
if (IS_CIS_HANDLE(handle) || IS_SYNC_ISO_HANDLE(handle) || IS_ADV_ISO_HANDLE(handle)) {
|
||||
return BT_HCI_ERR_CMD_DISALLOWED;
|
||||
}
|
||||
#endif /* CONFIG_BT_CTLR_ISO */
|
||||
|
||||
conn = ll_connected_get(handle);
|
||||
if (!conn) {
|
||||
return BT_HCI_ERR_UNKNOWN_CONN_ID;
|
||||
|
@ -726,6 +732,12 @@ uint8_t ll_apto_set(uint16_t handle, uint16_t apto)
|
|||
{
|
||||
struct ll_conn *conn;
|
||||
|
||||
#if defined(CONFIG_BT_CTLR_ISO)
|
||||
if (IS_CIS_HANDLE(handle) || IS_SYNC_ISO_HANDLE(handle) || IS_ADV_ISO_HANDLE(handle)) {
|
||||
return BT_HCI_ERR_CMD_DISALLOWED;
|
||||
}
|
||||
#endif /* CONFIG_BT_CTLR_ISO */
|
||||
|
||||
conn = ll_connected_get(handle);
|
||||
if (!conn) {
|
||||
return BT_HCI_ERR_UNKNOWN_CONN_ID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue