OSDN Git Service

Initiate SCO after Mode change event
authorMallikarjuna GB <gbmalli@codeaurora.org>
Mon, 1 Jun 2015 07:28:38 +0000 (12:58 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 25 Mar 2016 20:21:38 +0000 (13:21 -0700)
commit2b745bc0d3f3ce6ba81f93cf138747db3c0fc4a2
tree97bd60ce0bbefe2644656b42a607418d0bebb565
parente8f71ee99133aef6eaf20d4adaa496f66c82336e
Initiate SCO after Mode change event

Use case:
1. Connect a headset to AG.
2. Make an outgoing call using headset.

Failure:
SCO connection request is rejected by headset.

Root cause:
AG initiated SCO connection when mode change is pending
on headset. Remote is coming out of sniff and rejected
SCO connection request.

Fix:
AG initiates SCO connection request once AG receives mode
change event. It resolves a corner case where remote failed
to accept SCO connection when initiated in between unsniff
LMP request. Issue is seen with WEP301 headset.

Bug: 27852645
Change-Id: I4ea5d073630320b30f90e6141f4daf25943cca0b
stack/btm/btm_sco.c