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

Commit f161dc44 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:...

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

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

Change-Id: If97d0f58665cf320e44a1e1cbf1af0fac671b82f
parents b3760b9d af6816d9
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};