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>
Wed, 23 Mar 2016 17:18:45 +0000 (10:18 -0700)
commit4d10d7f5a0bb9444867b2f77b3e92725a851f8ac
treef7cf29337e80b5453452cd2399739d429fa7891d
parenta986d610aa91222b3387497705aa12ccebe3835b
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.

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