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

Commit 1badf45b authored by Hansong Zhang's avatar Hansong Zhang
Browse files

BNEP: Always use BNEP_MTU_SIZE as remote MTU size

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I4462455539f1801b3b9960e822caa56b25699ed6
parent aeeca419
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -227,10 +227,7 @@ static void bnep_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg) {
    p_cfg->mtu = BNEP_MTU_SIZE;
    p_cfg->result = result = L2CAP_CFG_UNACCEPTABLE_PARAMS;
  } else {
    if (p_cfg->mtu > BNEP_MTU_SIZE)
    p_bcb->rem_mtu_size = BNEP_MTU_SIZE;
    else
      p_bcb->rem_mtu_size = p_cfg->mtu;

    /* For now, always accept configuration from the other side */
    p_cfg->flush_to_present = false;