Bluetooth: mgmt: Introduce mgmt_alloc_skb and mgmt_send_event_skb
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sat, 4 Dec 2021 00:15:40 +0000 (16:15 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Dec 2021 16:05:52 +0000 (17:05 +0100)
commit8aca46f91c42020bc58cd56e464a1101e517aa10
tree95d72c2b0e13db155b17202c6d2be584f41e2b4c
parent995d948cf2e45834275f07afc1c9881a9902e73c
Bluetooth: mgmt: Introduce mgmt_alloc_skb and mgmt_send_event_skb

This introduces mgmt_alloc_skb and mgmt_send_event_skb which are
convenient when building MGMT events that have variable length as the
likes of skb_put_data can be used to insert portion directly on the skb
instead of having to first build an intermediate buffer just to be
copied over the skb.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/bluetooth.h
net/bluetooth/mgmt_util.c
net/bluetooth/mgmt_util.h