OSDN Git Service

Store the link key derived from cross tranport link key
authorSrinu Jella <sjella@codeaurora.org>
Tue, 16 Jun 2015 14:08:45 +0000 (19:38 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 15 Jul 2015 04:50:44 +0000 (21:50 -0700)
commit21331c62310dda2f523712c536da3e65afce0f38
tree0b2eeb4d4c0e3da17b7c82c1aebe8d661414d533
parent9f0fa1b60e20a1fa3f0845d72dac740e06b245d7
Store the link key derived from cross tranport link key

Use case: PTS test case for cross transport link key
derivation

Steps to reproduce:
1. Start Test case GAP TP/LEP/DM/BV-15 in PTSv6.0

Failure: PTS test case TP/LEP/DM/BV-15 fails as the link
key is not stored when the key is derived from other
transport key. So it will again go for pairing even though
it has link key but not stored.

Root cause: Link key is stored only when bond type is
presistent, but it sets the bond type to persistent only
when it receives SSP request but not link key is derived.

Fix: So making the solution generic to store always when the
link key type is authenticated combination key with P-256.

Bug: 22486860
Change-Id: I3eb201262f72c86a9438351cad14a6698065fa90
btif/src/btif_dm.c