OSDN Git Service

DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption...
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 6 Jun 2019 11:54:55 +0000 (13:54 +0200)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 6 Jun 2019 14:11:15 +0000 (16:11 +0200)
commit461f0b4739967d60a3c6ee2b03ad86fc5abb2e99
tree0934318e45dfac543403be8aa7a16831b02b14e5
parentb751ea3a900518b25fd23a65543df91e7abfe7cc
DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size

If remote device stop the encryption before we call "Read Encryption Key Size",
we might receive Insufficient Security, which means that link is no longer
encrypted.

In such cases we should stay connected, rather than disconnecting the
link.

Test: Connect to device that stop encryption right after encryption is
complete, i.e. to change roles.
Bug: 124301137
Bug: 132626699

Change-Id: Iab0fd9f357d18a6b048b971d0393fbb47fd4d793
Merged-In: Iab0fd9f357d18a6b048b971d0393fbb47fd4d793
stack/btu/btu_hcif.cc