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

Commit 7b32e486 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

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

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


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


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