Bluetooth: Add support for storing the key size
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Fri, 8 Jul 2011 21:31:45 +0000 (18:31 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Fri, 8 Jul 2011 21:39:19 +0000 (18:39 -0300)
commit726b4ffcaa450d9593b9b6ac8605967ce9f3e506
tree5d274067ab8946d081f01c9b160bff495aca857c
parent5a0a8b49746771fba79866fb9185ffa051a6a183
Bluetooth: Add support for storing the key size

In some cases it will be useful having the key size used for
encrypting the link. For example, some profiles may restrict
some operations depending on the key length.

The key size is stored in the key that is passed to userspace
using the pin_length field in the key structure.

For now this field is only valid for LE controllers. 3.0+HS
controllers define the Read Encryption Key Size command, this
field is intended for storing the value returned by that
command.

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c
net/bluetooth/smp.c