Bluetooth: Update the security level when link is encrypted
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Thu, 9 Jun 2011 21:50:51 +0000 (18:50 -0300)
committerJaikumar Ganesh <jaikumar@google.com>
Mon, 11 Jul 2011 18:59:22 +0000 (11:59 -0700)
commit208dfd9cd7b736800d879bad5a1a23b6107ed85b
tree16460b0033a01c66cd5b5a276f30c44c885be169
parent403d2c85b1bcbdac6bd90945f16b1ea975cbac38
Bluetooth: Update the security level when link is encrypted

If the pending security level is greater than the current security
level and the link is now encrypted, we should update the link
security level.

This is only useful for LE links, when the only event generated
when SMP is sucessful in the Encrypt Change event.

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