Bluetooth: mgmt: Make use of mgmt_send_event_skb in MGMT_EV_DEVICE_FOUND
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sat, 4 Dec 2021 00:15:41 +0000 (16:15 -0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 21 Dec 2021 21:45:36 +0000 (13:45 -0800)
commitcf1bce1de7eeb9b48259662cdce5c9d6842a1599
tree06c5f68bf3135511df4ba77e4e9d5213f72a5ce7
parent8aca46f91c42020bc58cd56e464a1101e517aa10
Bluetooth: mgmt: Make use of mgmt_send_event_skb in MGMT_EV_DEVICE_FOUND

This makes use of mgmt_alloc_skb to build MGMT_EV_DEVICE_FOUND so the
data is copied directly to skb that is then sent using
mgmt_send_event_skb eliminating the necessity of intermediary buffers.

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