OSDN Git Service

Do not initiate SDP for incoming AVDTP connection
authorAyan Ghosh <abghosh@codeaurora.org>
Thu, 11 Dec 2014 12:26:02 +0000 (17:56 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 25 Mar 2016 20:19:46 +0000 (13:19 -0700)
commitb5b7552826d1fb17eb98956e7b60e3b2288709b1
tree8e8be44ae17f087576a1f639eb506ddf51558785
parentd14f97c87685e480ee1a88829497651bccf2b358
Do not initiate SDP for incoming AVDTP connection

There are few instances when remote initiates L2CAP
channel for AVDTP signaling but keeps quite after that,
and later on timeout DUT goes for rest of the signalling
procedure but does sdp prior to the same.Few peer
devices deletes a2dp sink sdp record when there is an
ongoing connection, as a result sdp request fails and
DUT fails to proceed with signalling procedure and
connection setup fails.

This patch makes sure that DUT does not go for redundant
sdp request for AVDTP, provided remote has already
established L2cap connection for the same. SDP is done
explicitly only incase of outgoing AV connection.

This issue is seen with Nokia Es headset.

Bug: 27852645
Change-Id: Id44368687d5b3f97bf0258f8d4ff75f185db23af
bta/av/bta_av_aact.c
bta/av/bta_av_int.h
bta/av/bta_av_main.c