Skip to content
Snippets Groups Projects
Commit 56e658a7 authored by Arman Uguray's avatar Arman Uguray Committed by CQ bot account: commit-bot@chromium.org
Browse files

[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
parent 3d49b2fe
No related branches found
No related tags found
Loading
Showing
with 552 additions and 104 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment