hci.c (beb3c81d4fe3dc27855fe5bbd3ea3f9771026db1) hci.c (fcf88f47f135234f86c69b118c82fa6a5791a30a)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 662 unchanged lines hidden (view full) ---

671
672 // max ACL data packet length depends on connection type (LE vs. Classic) and available buffers
673 uint16_t max_acl_data_packet_length = hci_stack->acl_data_packet_length;
674 if (hci_is_le_connection(connection) && (hci_stack->le_data_packets_length > 0u)){
675 max_acl_data_packet_length = hci_stack->le_data_packets_length;
676 }
677
678#ifdef ENABLE_LE_LIMIT_ACL_FRAGMENT_BY_MAX_OCTETS
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 662 unchanged lines hidden (view full) ---

671
672 // max ACL data packet length depends on connection type (LE vs. Classic) and available buffers
673 uint16_t max_acl_data_packet_length = hci_stack->acl_data_packet_length;
674 if (hci_is_le_connection(connection) && (hci_stack->le_data_packets_length > 0u)){
675 max_acl_data_packet_length = hci_stack->le_data_packets_length;
676 }
677
678#ifdef ENABLE_LE_LIMIT_ACL_FRAGMENT_BY_MAX_OCTETS
679 if (hci_is_le_connection(connection)){
679 if (hci_is_le_connection(connection) && (connection->le_max_tx_octets < max_acl_data_packet_length)){
680 max_acl_data_packet_length = connection->le_max_tx_octets;
681 }
682#endif
683
684 log_debug("hci_send_acl_packet_fragments entered");
685
686 int err;
687 // multiple packets could be send on a synchronous HCI transport

--- 5772 unchanged lines hidden ---
680 max_acl_data_packet_length = connection->le_max_tx_octets;
681 }
682#endif
683
684 log_debug("hci_send_acl_packet_fragments entered");
685
686 int err;
687 // multiple packets could be send on a synchronous HCI transport

--- 5772 unchanged lines hidden ---