add buffer to hci_connection_t to allow for ACL recombination

This commit is contained in:
matthias.ringwald 2010-02-13 10:49:00 +00:00
parent c1264b4f62
commit d55db49ea2
2 changed files with 5 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
/**