From: Zhao Xuewen Date: Thu, 4 Feb 2016 03:20:14 +0000 (+0800) Subject: DO NOT MERGE ANYWHERE Bluetooth: Fix the issue that peer A2DP SNK device can not... X-Git-Tag: android-x86-7.1-r1~75^2^2~9^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7cd14dc671caf13070756d27dea92f85fe6711f1;p=android-x86%2Fsystem-bt.git DO NOT MERGE ANYWHERE Bluetooth: Fix the issue that peer A2DP SNK device can not auto-reconnect. If peer A2DP SNK disconnected by some reason, the device will reject reconnection request from peer. This CL will judge the peer device is A2DP SRC, will reject the reconnection request. So if peer device is A2DP SNK, will accept the reconnection request. BUG:26274393 Change-Id: Idecef527a763693f08d76d90512546f013312aa1 Signed-off-by: z00184990 Signed-off-by: Zhao Xuewen --- diff --git a/bta/av/bta_av_act.c b/bta/av/bta_av_act.c index aa95c4548..07c9fb9dc 100644 --- a/bta/av/bta_av_act.c +++ b/bta/av/bta_av_act.c @@ -1437,7 +1437,7 @@ void bta_av_sig_chg(tBTA_AV_DATA *p_data) tBTA_AV_SCB *p_scb = p_cb->p_scb[xx]; if (p_scb != NULL) { - UINT8 avdt_tsep_type = p_scb->seps[p_scb->sep_idx].tsep; + UINT8 avdt_tsep_type = p_scb->sep_info[p_scb->sep_info_idx].tsep; /* If the device is a A2DP source, disconnect the AVDT connection */ if ((avdt_tsep_type == AVDT_TSEP_SRC) && (p_data->hdr.offset == AVDT_ACP)) {