OSDN Git Service

Fix BLE device reconnections
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 23 Sep 2019 20:27:12 +0000 (22:27 +0200)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 24 Sep 2019 17:57:46 +0000 (19:57 +0200)
commitc833b66427e15f8a4ba1fc4631010a93b1ea5f1d
tree13e4bcc49c9aeb5c197982728d5d8a7a2bce5487
parentd71693988dad34145ee4ff1feac15765fec01bb3
Fix BLE device reconnections

Some BLE devices would advertise using both their RPA and Public
address. If such device was discovered using it's RPA, but later it's
overriden by Public address, we might have trouble reconnecting to it
due to the logic in whitelist handling code. This logic should prefer
Identity Address over any other type of address.

Test: Bond with BLE device, modify the AddrType in bt_config.conf file,
try to reconnect. We should use Address Type stored in LE_KEY_PID
Bug: 141186673
Bug: 139825901
Bug: 140847046
Change-Id: If27032f53dd655983ee5d5bc6d07b55d7458078f
stack/btm/btm_ble_bgconn.cc