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>
Wed, 23 Mar 2016 17:43:19 +0000 (17:43 +0000)
commit9ab2a9d97f4e0c4b3cd76416e3d6ed03b610ec6f
treefa811af132c689c256242d5ca334c57a1c7692c5
parent8c10b05eda5f1676668cb1504e976f4437851032
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.

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