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:
parent
1ba3350157
commit
50256ea514
2 changed files with 5 additions and 5 deletions
|
@ -38,11 +38,6 @@
|
||||||
#include <net/buf.h>
|
#include <net/buf.h>
|
||||||
#include <bluetooth/conn.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. */
|
/** @brief L2CAP Endpoint structure. */
|
||||||
struct bt_l2cap_endpoint {
|
struct bt_l2cap_endpoint {
|
||||||
/** Endpoint CID */
|
/** Endpoint CID */
|
||||||
|
|
|
@ -107,6 +107,11 @@ struct bt_l2cap_le_credits {
|
||||||
uint16_t credits;
|
uint16_t credits;
|
||||||
} __packed;
|
} __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 {
|
struct bt_l2cap_fixed_chan {
|
||||||
uint16_t cid;
|
uint16_t cid;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue