mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
hci: improve max acl frag calculation for ENABLE_LE_LIMIT_ACL_FRAGMENT_BY_MAX_OCTETS
This commit is contained in:
parent
005e7bd2dd
commit
fcf88f47f1
@ -676,7 +676,7 @@ static int hci_send_acl_packet_fragments(hci_connection_t *connection){
|
||||
}
|
||||
|
||||
#ifdef ENABLE_LE_LIMIT_ACL_FRAGMENT_BY_MAX_OCTETS
|
||||
if (hci_is_le_connection(connection)){
|
||||
if (hci_is_le_connection(connection) && (connection->le_max_tx_octets < max_acl_data_packet_length)){
|
||||
max_acl_data_packet_length = connection->le_max_tx_octets;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user