mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-21 03:40:47 +00:00
add buffer to hci_connection_t to allow for ACL recombination
This commit is contained in:
parent
c1264b4f62
commit
d55db49ea2
@ -109,6 +109,7 @@ static hci_connection_t * create_connection_for_addr(bd_addr_t addr){
|
|||||||
linked_item_set_user(&conn->timeout.item, conn);
|
linked_item_set_user(&conn->timeout.item, conn);
|
||||||
conn->timeout.process = hci_connection_timeout_handler;
|
conn->timeout.process = hci_connection_timeout_handler;
|
||||||
hci_connection_timestamp(conn);
|
hci_connection_timestamp(conn);
|
||||||
|
conn->acl_recombination_length = 0;
|
||||||
linked_list_add(&hci_stack.connections, (linked_item_t *) conn);
|
linked_list_add(&hci_stack.connections, (linked_item_t *) conn);
|
||||||
return conn;
|
return conn;
|
||||||
}
|
}
|
||||||
|
@ -151,6 +151,10 @@ typedef struct {
|
|||||||
timer_source_t timeout;
|
timer_source_t timeout;
|
||||||
struct timeval timestamp;
|
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;
|
} hci_connection_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user