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 02:36:06 +0000 (02:36 +0000)
commitb2334f05895e9926666904c41f13821210cbd6e9
tree5a46b258473269de2ae9b6bc365fc92609aedb8c
parent5b7daae3694d662c80c379b9422695ef081da3cf
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