Hi Johan, > 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@xxxxxxxxx> > --- > include/net/bluetooth/hci_core.h | 1 + > net/bluetooth/mgmt.c | 48 ++++++++++++++++++-------------------- > 2 files changed, 24 insertions(+), 25 deletions(-) > > diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h > index bcf8ffe..90cf75a 100644 > --- a/include/net/bluetooth/hci_core.h > +++ b/include/net/bluetooth/hci_core.h > @@ -86,6 +86,7 @@ struct bdaddr_list { > struct bt_uuid { > struct list_head list; > u8 uuid[16]; > + u8 size; > u8 svc_hint; > }; seems you just went for the size approach. Fine with me as well. Acked-by: Marcel Holtmann <marcel@xxxxxxxxxxxx> Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html