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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:18:13 +0000 (12:18 -0800)
commit73435eae548b21b46f54b4378ac64cf2ed727131
tree46f9375821052c1ccb73e21a98218d32cb456782
parentcd1d9cf74ede5209173c97280b08fe1c22323832
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