OSDN Git Service

Retry authentication in key-missing or pairing collision use case
authorMatadeen Mishra <matade@codeaurora.org>
Fri, 17 Feb 2017 07:10:53 +0000 (12:40 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 26 Jul 2017 23:47:03 +0000 (23:47 +0000)
commit8fb48ca4a0fddda6caf367d8a7de7ca56d571c3c
tree1623a6b107f20c2e74e5b4064d793adb0114a086
parentdbe6451648a736c7d1c6affd6fe00798cd16e64f
Retry authentication in key-missing or pairing collision use case

Problem:
A2DP connection failing with connection timeout

Steps:
1. Pair and connect car kit from DUT
2. Disconnect the car kit from DUT
3  Unpair DUT from car kit menu and initiate pairing from car kit.
   Pairing and A2DP connection should be successful.

Failure:
Paring and A2DP connections fail

Root Cause:
As the stack posting authentication failure to upper layers
when SOC gives key missing error code remote removed from
DUT paired list, but same time lower layers keep retrying
for missing key and leading to connection failure.

Fix:
Don't post authentication complete to upper layers when stack
re trying for security in key missing or transaction collision cases

Test: manual
Bug: 35448920
Change-Id: I970c8679bf27801fe46f8dd757d6435ed500f77f
(cherry picked from commit 35752e32fb5d859c012f6d06f2c22fa6b1f84174)
stack/btm/btm_sec.cc