OSDN Git Service

Move to idle when remote disconnects during connection.
authorAyan Ghosh <abghosh@codeaurora.org>
Tue, 7 Jan 2014 11:17:19 +0000 (16:47 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 25 Mar 2016 20:20:23 +0000 (13:20 -0700)
commit2a6246f85c515f33eb4f9ff708f50680b1cb1653
treee173ea3698cb8ebb6fef7426574be7990242e0f2
parentff813a67d60ce1c9b5f3ea680b281bf642e69fe5
Move to idle when remote disconnects during connection.

Chrysler Uconnect Touch initiates disconnect for a2dp on
l2cap just after discovery on AVDTP channel, stack does not
send any message to BTIF layer for disconnection, this
causes btif getting stuck in opening state and later no stable
connection update is sent to app. Since it is intermediate
state all subsequent connection trials fails.

Send disconnect event from incoming state to closing state
and then closing state will send proper msg to btif layer. Add
closing msg handling in btif layer so that we can update app
for connection disconnect when initiated from remote and move to
proper stable state for accepting/initiating connection.

Bug: 27852645
Change-Id: I011d9ffe9d721235217320c1e5281f70328c7f13
bta/av/bta_av_act.c
bta/av/bta_av_ssm.c
btif/src/btif_av.c