From 50256ea514899e92dac2597f505e9ee4ad8bba5c Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 6 Nov 2015 12:44:18 +0200 Subject: [PATCH] Bluetooth: Move BT_L2CAP_BUF_SIZE to a more appropriate place This doesn't need to be exposed in the public API. Change-Id: Ib6d4336684620bd1e03d128765f289b5ebd744ef Signed-off-by: Johan Hedberg --- include/bluetooth/l2cap.h | 5 ----- net/bluetooth/l2cap_internal.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/bluetooth/l2cap.h b/include/bluetooth/l2cap.h index b02bae68eca..7ba11f359fa 100644 --- a/include/bluetooth/l2cap.h +++ b/include/bluetooth/l2cap.h @@ -38,11 +38,6 @@ #include #include -/* Helper to calculate needed outgoing buffer size */ -#define BT_L2CAP_BUF_SIZE(mtu) (CONFIG_BLUETOOTH_HCI_SEND_RESERVE + \ - sizeof(struct bt_hci_acl_hdr) + \ - sizeof(struct bt_l2cap_hdr) + (mtu)) - /** @brief L2CAP Endpoint structure. */ struct bt_l2cap_endpoint { /** Endpoint CID */ diff --git a/net/bluetooth/l2cap_internal.h b/net/bluetooth/l2cap_internal.h index b6eae76a1d5..b8b6a2f0c96 100644 --- a/net/bluetooth/l2cap_internal.h +++ b/net/bluetooth/l2cap_internal.h @@ -107,6 +107,11 @@ struct bt_l2cap_le_credits { uint16_t credits; } __packed; +/* Helper to calculate needed outgoing buffer size */ +#define BT_L2CAP_BUF_SIZE(mtu) (CONFIG_BLUETOOTH_HCI_SEND_RESERVE + \ + sizeof(struct bt_hci_acl_hdr) + \ + sizeof(struct bt_l2cap_hdr) + (mtu)) + struct bt_l2cap_fixed_chan { uint16_t cid;