summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-11-19 12:53:04 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2014-11-19 15:17:32 (GMT)
commitcb6f3f7ace0e61285db22508a9efd8a5aeca0af5 (patch)
treec364e1fa331b3ace2697fadb1b7a7ff9aca4ea5a /include/net
parent22a3ceabf152c7c88afa9e34ea33fc3fa55e6cf8 (diff)
downloadlinux-cb6f3f7ace0e61285db22508a9efd8a5aeca0af5.tar.xz
Bluetooth: Fix setting conn->pending_sec_level value from link key
When a connection is requested the conn->pending_sec_level value gets set to whatever level the user requested the connection to be. During the pairing process there are various sanity checks to try to ensure that the right length PIN or right IO Capability is used to satisfy the target security level. However, when we finally get hold of the link key that is to be used we should still set the actual final security level from the key type. This way when we eventually get an Encrypt Change event the correct value gets copied to conn->sec_level. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions