diff --git a/src/hci.c b/src/hci.c index bed030cf0..b278209f6 100644 --- a/src/hci.c +++ b/src/hci.c @@ -109,6 +109,7 @@ static hci_connection_t * create_connection_for_addr(bd_addr_t addr){ linked_item_set_user(&conn->timeout.item, conn); conn->timeout.process = hci_connection_timeout_handler; hci_connection_timestamp(conn); + conn->acl_recombination_length = 0; linked_list_add(&hci_stack.connections, (linked_item_t *) conn); return conn; } diff --git a/src/hci.h b/src/hci.h index 8631e030e..cc3871378 100644 --- a/src/hci.h +++ b/src/hci.h @@ -151,6 +151,10 @@ typedef struct { timer_source_t timeout; struct timeval timestamp; + // ACL packet recombination + uint8_t acl_recombination_buffer[350]; // max packet: DH5 = header(4) + payload (339) + uint16_t acl_recombination_length; + } hci_connection_t; /**