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:
parent
5626788eb7
commit
25af03265c
3 changed files with 12 additions and 7 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue