OSDN Git Service

Fix pairing state change in collision scenario
authorvenkata Jagadeesh <vjagad@codeaurora.org>
Thu, 1 Oct 2015 06:25:03 +0000 (11:55 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 17 May 2016 17:56:48 +0000 (17:56 +0000)
commit969ee97d60ba3e97cdd56e453b357f1e2752af65
treef9f2c0317bc14a1778ecb46eacc24198c9133b22
parent234af83f69d70dc89a2c7ae6557b8c63f737437b
Fix pairing state change in collision scenario

Symptom:
DUT Stuck in pairing state forever with selfy stick
during repair.

Steps:
1. Pair and connect remote devices with DUT.
2. Now un pair selfy stick from DUT.
3. Keep remote in discoverable mode.
4. Start inquiry and try to pair with device.

Failure:
Pairing with selfy stick always fails after collision.

Root Cause:
As we return from btm_sec_dd_create_conn with out
moving pairing state in connection collision scenario. Pairing
state will remains idle and pairing won't proceed further.

Fix:
Move the pairing state in collision scenario so that pairing
can proceed further.

Change-Id: Ic5c446ad3902b0ce16c7223ec2d8e4a625831446
stack/btm/btm_sec.c