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

Commit c5c35fb4 authored by Cheney Ni's avatar Cheney Ni
Browse files

AVDTP: Make sure the UUID of the SCB is initialized before discovering

When parsing remote SEP capabilities, we check the UUID value in the AV
SCB to choose the SEP, and this parameter was assigned when AVDTP was
reconnecting from the phone side. This change also assigns the UUID to
make sure the stack can find remote's SEPs correctly when reconnected
by the remote.

Bug: 137631786
Test: make AVDTP reconnection from the peer side
Change-Id: Ib2fa6e76de31bab1131c024e9f76433f3fd8b60a
parent f4736f27
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1167,6 +1167,7 @@ void bta_av_setconfig_rsp(tBTA_AV_SCB* p_scb, tBTA_AV_DATA* p_data) {
    } else {
      /* we do not know the peer device and it is using non-SBC codec
       * we need to know all the SEPs on SNK */
      if (p_scb->uuid_int == 0) p_scb->uuid_int = p_scb->open_api.uuid;
      bta_av_discover_req(p_scb, NULL);
      return;
    }