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 <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2015-11-06 12:44:18 +02:00 committed by Anas Nashif
commit 50256ea514
2 changed files with 5 additions and 5 deletions

View file

@ -38,11 +38,6 @@
#include <net/buf.h>
#include <bluetooth/conn.h>
/* 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 */

View file

@ -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;