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>
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))
{