]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Improve skb handling in mgmt_device_connected()
authorRadoslaw Biernacki <rad@semihalf.com>
Tue, 1 Feb 2022 20:10:33 +0000 (20:10 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 4 Mar 2022 15:10:49 +0000 (16:10 +0100)
commit4837cbb5751da394449aee377786c9353d304d94
treef2158c122773f40045ba07d9525aea3b81a81208
parentc82fe0def6df65ba5d4119633324fe918e68c8b8
Bluetooth: Improve skb handling in mgmt_device_connected()

This patch introduce eir_skb_put_data() that can be used to simplify
operations on eir in goal of eliminating the necessity of intermediary
buffers.
eir_skb_put_data() is in pair to what eir_append_data() does with help of
eir_len, but without awkwardness when passing return value to skb_put() (as
it returns updated offset not size).

Signed-off-by: Radoslaw Biernacki <rad@semihalf.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/eir.h
net/bluetooth/mgmt.c