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

Commit 97d3e5ad authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "hearing_aid: Fix double CoC creation" am: 456916cd

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1959202

Change-Id: I71b887afd0eedf6b28ac3dee99abc1d290cc2ece
parents 524a7d13 456916cd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -868,8 +868,10 @@ class HearingAidImpl : public HearingAid {
    uint16_t psm = *((uint16_t*)value);
    VLOG(2) << "read psm:" << loghex(psm);

    if (hearingDevice->gap_handle == GAP_INVALID_HANDLE) {
      ConnectSocket(hearingDevice, psm);
    }
  }

  void ConnectSocket(HearingDevice* hearingDevice, uint16_t psm) {
    tL2CAP_CFG_INFO cfg_info = tL2CAP_CFG_INFO{.mtu = 512};