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

Commit a0b70078 authored by kuanyuhuang's avatar kuanyuhuang
Browse files

l2cap: handle le connection response error

Handle L2CAP_LE_RESULT_NO_RESOURCES(0x0004) connection refuse when receive le connection response.

Bug: 237746679
Bug: 236216322
Test: atest BluetoothInstrumentationTests
Tag: #stability
Change-Id: I36945eea826e5896a89c4b9e9905db7f8b44d95c
parent 3d11751f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -659,6 +659,7 @@ void l2cble_process_sig_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) {
       * all the channels has been rejected
       */
      if (con_info.l2cap_result == L2CAP_LE_RESULT_NO_PSM ||
          con_info.l2cap_result == L2CAP_LE_RESULT_NO_RESOURCES ||
          con_info.l2cap_result ==
              L2CAP_LE_RESULT_INSUFFICIENT_AUTHENTICATION ||
          con_info.l2cap_result == L2CAP_LE_RESULT_INSUFFICIENT_ENCRYP ||