]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Keep track of UUID type upon addition
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 26 Jan 2013 22:31:29 +0000 (00:31 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 1 Feb 2013 17:50:17 +0000 (15:50 -0200)
commit695f2db3c187737a2b249265682a22eaaa3b32f4
treeee0d4782e5270dc3812c9ece825545b88bcbb14b
parent4ec2978010e57758f1e5abcbbdf1a9a425f10aa4
Bluetooth: Keep track of UUID type upon addition

The primary purpose of the UUIDs is to enable generation of EIR and AD
data. In these data formats the UUIDs are split into separate fields
based on whether they're 16, 32 or 128 bit UUIDs. To make the generation
of these data fields simpler this patch adds a type member to the
bt_uuid struct and assigns a value to it as soon as the UUID is added to
the kernel. This way the type doesn't need to be calculated each time
the UUID list is later iterated.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
include/net/bluetooth/hci_core.h
net/bluetooth/mgmt.c