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

Commit 62540794 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

Remove already handled case

Handled in `p_cfg->fcr.mode == L2CAP_FCR_BASIC_MODE` case.

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I08cd4d60930ab0bc9bd49e0242c27facec1d4fc5
parent 7d0da768
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -1970,13 +1970,6 @@ uint8_t l2c_fcr_process_peer_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) {
          p_ccb->our_cfg.fcr.mps = 0;
      fcr_ok = L2CAP_PEER_CFG_UNACCEPTABLE;
    }

    /* Only other valid case is if they want BASIC and we wanted ERTM
     */
    else if ((p_cfg->fcr.mode != L2CAP_FCR_ERTM_MODE) ||
             (p_ccb->ertm_info.preferred_mode != L2CAP_FCR_ERTM_MODE)) {
      fcr_ok = L2CAP_PEER_CFG_DISCONNECT;
    }
  }

  /* Configuration for FCR channels so make any adjustments and fwd to upper