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

Commit 3f2a3af4 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

LE COC shim: Fix outgoing connection callback

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ib5bf899fa2c05594f8f3e2d9074fc76f16fb3d4d
parent 698b89cf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -524,6 +524,10 @@ struct LeDynamicChannelHelper {
      auto cid_token = find_cid_token_by_psm_address(psm_, address);
      appl_info_.pL2CA_ConnectCfm_Cb(cid_token, 0);
    } else {
      if (appl_info_.pL2CA_ConnectInd_Cb == nullptr) {
        Disconnect(device);
        return;
      }
      auto cid_token = add_cid_token_entry(psm_, address);
      appl_info_.pL2CA_ConnectInd_Cb(address, cid_token, psm_, 0);
    }