From 2b1addd97e9829d47a1ffb674e2401c819331066 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Fri, 20 Jun 2014 21:49:02 +0000 Subject: [PATCH] add missing function --- ble/l2cap_le.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ble/l2cap_le.c b/ble/l2cap_le.c index 17e0e017d..59abcbf9e 100644 --- a/ble/l2cap_le.c +++ b/ble/l2cap_le.c @@ -72,6 +72,9 @@ void l2cap_init(){ hci_connectable_control(0); // no services yet } +uint16_t l2cap_max_mtu(void){ + return hci_max_acl_data_packet_length() - L2CAP_HEADER_SIZE; +} /** Register L2CAP packet handlers */ void l2cap_register_packet_handler(void (*handler)(void * connection, uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size)){