Bluetooth: Fix encryption key size for peripheral role
authorAndre Guedes <andre.guedes@openbossa.org>
Wed, 31 Jul 2013 19:25:29 +0000 (16:25 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Oct 2013 23:08:32 +0000 (16:08 -0700)
commitad04e6cbe9e091059096748285655caf16da97d0
tree9ddb191e59f15277425bf0889bdebec25d966df9
parenta508ba2c07af1c6b1255e334fadfeddda2887f93
Bluetooth: Fix encryption key size for peripheral role

commit 89cbb4da0abee2f39d75f67f9fd57f7410c8b65c upstream.

This patch fixes the connection encryption key size information when
the host is playing the peripheral role. We should set conn->enc_key_
size in hci_le_ltk_request_evt, otherwise it is left uninitialized.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/hci_event.c