]> 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)
commit74ab6f3d02a5d00bb75210ac988b7ce96acb1fd2
tree95d72c2b0e13db155b17202c6d2be584f41e2b4c
parentc06b73b174af06c7dd2f1472bda3bdb629c337aa
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