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)
committerMax Spector <mspector@google.com>
Thu, 19 Sep 2019 17:01:12 +0000 (10:01 -0700)
commitd79424ada68d23868d415a7542ef0ad90bb9faf2
treee65e6853875b0b68f4e54b04583803c7863ddb73
parentce061b32625f47b12b4a9f54beba93ec9cb9db1d
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)
(cherry picked from commit b2334f05895e9926666904c41f13821210cbd6e9)
btif/include/btif_dm.h
btif/src/btif_dm.cc