OSDN Git Service

DO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt
authorUgo Yu <ugoyu@google.com>
Thu, 11 Jul 2019 12:12:42 +0000 (20:12 +0800)
committerUgo Yu <ugoyu@google.com>
Fri, 12 Jul 2019 03:05:13 +0000 (03:05 +0000)
commita65f859b17745fcaee79d55333808d9d589b0187
tree6f330904d3bb4904f4b034f2746f0a057695bfc2
parentc5837d3d8192907398e54e98d657e50dc5508de8
DO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt

Reading the peer address from btif_dm_ble_auth_cmpl_evt, instead
of using the value from the pairing control block in
btif_dm_save_ble_bonding_keys, ensures that BLE keys are stored with
the correct address.

Bug: 133234174
Bug: 79703832
Test: 1. Initiate crosskey pairing from BLE
      2. Check whether BLE keys are stored correctly
Change-Id: I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff
(cherry picked from commit 0d95651e8b22b1012f1ee103e4a0b8665a0c17d4)
btif/include/btif_dm.h
btif/src/btif_dm.cc