From 15f9bb6dadd759aebb64df54a6f166658d6c2389 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 9 Feb 2024 17:24:42 +0100 Subject: [PATCH] hci: reset iso task on create big or big create sync command status error --- src/hci.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/hci.c b/src/hci.c index 12cd76a98..db84da9aa 100644 --- a/src/hci.c +++ b/src/hci.c @@ -3288,6 +3288,18 @@ static void handle_command_status_event(uint8_t * packet, uint16_t size) { hci_iso_stream_requested_finalize(HCI_ISO_GROUP_ID_INVALID); } break; + case HCI_OPCODE_HCI_LE_CREATE_BIG: + if (status != ERROR_CODE_SUCCESS){ + log_info("TODO: handle Create BIG failed"); + hci_stack->iso_active_operation_type = HCI_ISO_TYPE_INVALID; + } + break; + case HCI_OPCODE_HCI_LE_BIG_CREATE_SYNC: + if (status != ERROR_CODE_SUCCESS){ + log_info("TODO: handle BIG Sync failed"); + hci_stack->iso_active_operation_type = HCI_ISO_TYPE_INVALID; + } + break; #endif /* ENABLE_LE_ISOCHRONOUS_STREAMS */ default: break;