Bluetooth: L2CAP: Extend bt_l2cap_create_pdu() with 'reserve' parameter

This makes it possible for protocols to reserve headroom for their own
headers.

Change-Id: I64530febc4b86b45a379660197f0ff63671fab6e
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-09-27 17:03:12 +03:00
commit 49d2bb13cd
7 changed files with 30 additions and 30 deletions

View file

@ -1765,10 +1765,10 @@ struct net_buf *bt_att_create_pdu(struct bt_conn *conn, uint8_t op, size_t len)
/* Use a different buffer pool for indication/confirmations
* since they can be sent in parallel.
*/
buf = bt_l2cap_create_pdu(&ind_data);
buf = bt_l2cap_create_pdu(&ind_data, 0);
break;
default:
buf = bt_l2cap_create_pdu(&req_data);
buf = bt_l2cap_create_pdu(&req_data, 0);
}
if (!buf) {