OSDN Git Service

Avoid sending SCO disconnect when power mode is processing
authorMallikarjuna GB <gbmalli@codeaurora.org>
Sat, 30 May 2015 18:03:58 +0000 (23:33 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 25 Mar 2016 20:21:14 +0000 (13:21 -0700)
commite8f71ee99133aef6eaf20d4adaa496f66c82336e
tree750632f78037ac36e34b61b7ee6f31a4136d74df
parent56bc6d798a43d50c7e15e45bd40fd21f72a68a6c
Avoid sending SCO disconnect when power mode is processing

Use case:
1. Pair and connect with Mercedes car kit.
2. Answer incoming call by phone or car kit.
3. Switch audio between car kit and phone.
4. Repease 1-3 steps.

Failure:
Car kit is going into bad state and not accepting SCO disconnect.

Root cause:
Phone has sent SCO disconnect command to car kit when
power mode command(sniff/unsniff) is in the processing
on the ACL where SCO is active. Car kit didn't accept
remove SCO request command and gone into bad state.

Fix:
AG should send sco disconnect once power mode change is completed
to avoid this failure.

Bug: 27852645
Change-Id: I7eba162a8fd9615795009ab26005535a3e5c7e86
stack/btm/btm_int.h
stack/btm/btm_pm.c
stack/btm/btm_sco.c