[bt][hci] Use correct local address when connecting
The locally initiated LE connection procedure now obtains the local address type from the LE address manager. When privacy is enabled, the bt-host now creates connections using a RPA. This also fixes an issue with RemoteDevice expiration during a long running connection attempt by marking the peer as non-temporary during the initialization. This issue was surfaced by an integration test in the GAP_AdapterTest tests that exercises the RPA timeout with a hanging connection request. BT-739 #done Test: 1. bt-host-unittests, bt-integration-tests 2. Pair with a LE keyboard while privacy is enabled. Reconnection after a disconnect should succeed. Confirm that a random address was used to initiate the connection by looking at the snoop logs. Change-Id: I76e131dabc18a39aa684b9e87b02eb19ddf69cb6
Showing
- src/connectivity/bluetooth/core/bt-host/gap/adapter.cc 3 additions, 3 deletionssrc/connectivity/bluetooth/core/bt-host/gap/adapter.cc
- src/connectivity/bluetooth/core/bt-host/gap/adapter_unittest.cc 169 additions, 7 deletions...nnectivity/bluetooth/core/bt-host/gap/adapter_unittest.cc
- src/connectivity/bluetooth/core/bt-host/gap/low_energy_connection_manager.cc 1 addition, 3 deletions...uetooth/core/bt-host/gap/low_energy_connection_manager.cc
- src/connectivity/bluetooth/core/bt-host/gap/low_energy_connection_manager_unittest.cc 84 additions, 3 deletions...ore/bt-host/gap/low_energy_connection_manager_unittest.cc
- src/connectivity/bluetooth/core/bt-host/gap/remote_device.cc 4 additions, 3 deletionssrc/connectivity/bluetooth/core/bt-host/gap/remote_device.cc
- src/connectivity/bluetooth/core/bt-host/gap/remote_device_cache_unittest.cc 14 additions, 0 deletions...luetooth/core/bt-host/gap/remote_device_cache_unittest.cc
- src/connectivity/bluetooth/core/bt-host/hci/fake_local_address_delegate.h 2 additions, 1 deletion.../bluetooth/core/bt-host/hci/fake_local_address_delegate.h
- src/connectivity/bluetooth/core/bt-host/hci/local_address_delegate.h 13 additions, 0 deletions...ivity/bluetooth/core/bt-host/hci/local_address_delegate.h
- src/connectivity/bluetooth/core/bt-host/hci/low_energy_advertiser.h 4 additions, 8 deletions...tivity/bluetooth/core/bt-host/hci/low_energy_advertiser.h
- src/connectivity/bluetooth/core/bt-host/hci/low_energy_connector.cc 68 additions, 29 deletions...tivity/bluetooth/core/bt-host/hci/low_energy_connector.cc
- src/connectivity/bluetooth/core/bt-host/hci/low_energy_connector.h 28 additions, 17 deletions...ctivity/bluetooth/core/bt-host/hci/low_energy_connector.h
- src/connectivity/bluetooth/core/bt-host/hci/low_energy_connector_unittest.cc 127 additions, 19 deletions...uetooth/core/bt-host/hci/low_energy_connector_unittest.cc
- src/connectivity/bluetooth/core/bt-host/hci/low_energy_scanner.h 4 additions, 4 deletions...nectivity/bluetooth/core/bt-host/hci/low_energy_scanner.h
- src/connectivity/bluetooth/core/bt-host/testing/fake_controller.cc 13 additions, 6 deletions...ctivity/bluetooth/core/bt-host/testing/fake_controller.cc
- src/connectivity/bluetooth/core/bt-host/testing/fake_controller.h 18 additions, 1 deletion...ectivity/bluetooth/core/bt-host/testing/fake_controller.h
Loading
Please register or sign in to comment