summaryrefslogtreecommitdiff
path: root/ipc/ipc_sysctl.c
diff options
context:
space:
mode:
authorAndre Guedes <andre.guedes@openbossa.org>2013-07-31 16:25:28 -0300
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2013-09-16 14:36:55 -0300
commitf8776218e8546397be64ad2bc0ebf4748522d6e3 (patch)
tree0ed66e9b95cbe931ebc30d92ffb02f67efb1d35e /ipc/ipc_sysctl.c
parent0a3658cccdf5326ea508efeb1879b0e2508bb0c3 (diff)
Bluetooth: Fix security level for peripheral role
While playing the peripheral role, the host gets a LE Long Term Key Request Event from the controller when a connection is established with a bonded device. The host then informs the LTK which should be used for the connection. Once the link is encrypted, the host gets an Encryption Change Event. Therefore we should set conn->pending_sec_level instead of conn-> sec_level in hci_le_ltk_request_evt. This way, conn->sec_level is properly updated in hci_encrypt_change_evt. Moreover, since we have a LTK associated to the device, we have at least BT_SECURITY_MEDIUM security level. Cc: Stable <stable@vger.kernel.org> Signed-off-by: Andre Guedes <andre.guedes@openbossa.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'ipc/ipc_sysctl.c')
0 files changed, 0 insertions, 0 deletions