Bluetooth: Add ACL user data to bt_buf

To track which ACL handle each buffer belongs to (needed for host flow
control) add the necessary information into a new ACL-specific struct.

Change-Id: Ie6cc7c32a70b43a4ff5954bb9dca34e4f62da292
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2015-04-28 15:20:33 +03:00 committed by Anas Nashif
commit 25af03265c
3 changed files with 12 additions and 7 deletions

View file

@ -54,12 +54,17 @@ struct bt_buf_hci_data {
uint16_t opcode;
};
struct bt_buf_acl_data {
uint16_t handle;
};
struct bt_buf {
/* FIFO uses first 4 bytes itself, reserve space */
int __unused;
union {
struct bt_buf_hci_data hci;
struct bt_buf_acl_data acl;
};
/* Type of data contained in the buffer */