mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-18 05:42:49 +00:00
l2cap: reduce minimal HCI_ACL_PAYLOAD_SIZE to 27 for LE only
This commit is contained in:
parent
f9f2075cea
commit
b5a7c9b3d5
@ -56,9 +56,16 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// check L2CAP MTU
|
// check L2CAP MTU
|
||||||
#if (L2CAP_MINIMAL_MTU + L2CAP_HEADER_SIZE) > HCI_ACL_PAYLOAD_SIZE
|
#ifdef ENABLE_CLASSIC
|
||||||
|
#if (L2CAP_HEADER_SIZE + L2CAP_MINIMAL_MTU) > HCI_ACL_PAYLOAD_SIZE
|
||||||
#error "HCI_ACL_PAYLOAD_SIZE too small for minimal L2CAP MTU of 48 bytes"
|
#error "HCI_ACL_PAYLOAD_SIZE too small for minimal L2CAP MTU of 48 bytes"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
#ifdef ENABLE_BLE
|
||||||
|
#if (L2CAP_HEADER_SIZE + L2CAP_LE_DEFAULT_MTU) > HCI_ACL_PAYLOAD_SIZE
|
||||||
|
#error "HCI_ACL_PAYLOAD_SIZE too small for minimal L2CAP LE MTU of 23 bytes"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define L2CAP_LE_AUTOMATIC_CREDITS 0xffff
|
#define L2CAP_LE_AUTOMATIC_CREDITS 0xffff
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user