Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d4cef70 authored by Zhao Xuewen's avatar Zhao Xuewen Committed by Chenjie Luo
Browse files

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: default avatarz00184990 <z00184990@notesmail.huawei.com>
Signed-off-by: default avatarZhao Xuewen <zhaoxuewen@huawei.com>
parent b2a6f175
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))
                    {