OSDN Git Service

Avoid skipping SDP after link key derivation
authorNitin Arora <niarora@codeaurora.org>
Wed, 13 Apr 2016 22:53:03 +0000 (15:53 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 21 Oct 2016 22:16:39 +0000 (22:16 +0000)
commit6e8198a22da7871a611ef991772ee827a69a9c46
tree58353781bcfff960c22ac707c01d4789c988427f
parent5868633e78898ab595ba07770bd8765f68de39d4
Avoid skipping SDP after link key derivation

Use Case:
In case of cross key derivation of BR link key from a secure LTK,
the corresponding BR transport needs to go through the SDP routine
and alert the upper layers regarding the bond completion of the
BR transport. This specific procedure is currently getting skipped
in an attempt to prevent spurious link key notifications from causing
bond state changes

Fix:
Added an additional check to make sure that the LE pairing is not
ongoing before skipping the SDP. This uses the sequence of operations
where the LE LTK is generated first and link key is derived from the
LTK.

Test: mma -j32
Change-Id: Ife242c93c3adf90d581ac0bbf4896dd164b9f8e2
btif/src/btif_dm.cc