OSDN Git Service

DO NOT MERGE ANYWHERE Bluetooth: Fix the issue that peer A2DP SNK device can not...
authorZhao Xuewen <zhaoxuewen@huawei.com>
Thu, 4 Feb 2016 03:20:14 +0000 (11:20 +0800)
committerChenjie Luo <cjluo@google.com>
Thu, 24 Mar 2016 20:05:27 +0000 (13:05 -0700)
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 <z00184990@notesmail.huawei.com>
Signed-off-by: Zhao Xuewen <zhaoxuewen@huawei.com>
bta/av/bta_av_act.c

index aa95c45..07c9fb9 100644 (file)
@@ -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))
                     {