]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2886b6f05c03e5919d0108b7affe8c43f50f041f
tree95d72c2b0e13db155b17202c6d2be584f41e2b4c
parent4d829a4812f11e333816fb5b8d00a9d7106306fe
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