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

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

Regard L2CAP_CFG_PENDING as failure

Since all L2CAP users disconnect if the status is not OK.

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I112400c2081be12d038426c1e8ea82229d5b9f4a
parent 9db3d057
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -677,8 +677,7 @@ static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) {
                                p_ccb->local_id, id);
            break;
          }
          if ((cfg_info.result == L2CAP_CFG_OK) ||
              (cfg_info.result == L2CAP_CFG_PENDING))
          if (cfg_info.result == L2CAP_CFG_OK)
            l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONFIG_RSP, &cfg_info);
          else
            l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CONFIG_RSP_NEG, &cfg_info);