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

Commit a9ea4715 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

eatt: Fix missing tx mtu set

We use EATT only for LE and this fix incorrect value provided to the
EATT implementation as peer_mtu.

It could result on incorrect GATT fragmentation, when EATT was created
by remote device.

Tag: #feature
Test: atest BluetoothInstrumentationTests
Bug: 235783869
Change-Id: I4dde8eeb60ab0b045960a81718b428acbc0c34f7
parent 7d9b2546
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -517,7 +517,7 @@ static void l2c_csm_term_w4_sec_comp(tL2C_CCB* p_ccb, tL2CEVT event,

            (*p_ccb->p_rcb->api.pL2CA_CreditBasedConnectInd_Cb)(
                p_ccb->p_lcb->remote_bd_addr, pending_cids, p_ccb->p_rcb->psm,
                p_ccb->peer_cfg.mtu, p_ccb->remote_id);
                p_ccb->peer_conn_cfg.mtu, p_ccb->remote_id);
          } else {
            /* Handle BLE CoC */
            LOG_DEBUG("Calling Connect_Ind_Cb(), CID: 0x%04x",
+1 −0
Original line number Diff line number Diff line
@@ -93,6 +93,7 @@ class EattTest : public testing::Test {
        connected_cids_.push_back(cid);

        ASSERT_TRUE(channel->state_ == EattChannelState::EATT_CHANNEL_OPENED);
        ASSERT_TRUE(channel->tx_mtu_ == EATT_MIN_MTU_MPS);
      } else {
        l2cap_app_info_.pL2CA_Error_Cb(cid, L2CAP_CONN_NO_RESOURCES);