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

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

Merge "hearing_aid: Fix double CoC creation" am: 456916cd am: 97d3e5ad am: 7b32e486

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

Change-Id: I894404b0969606e574c4136e2289817405339a71
parents 0a6d1f90 7b32e486
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};