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

Commit db7f23a9 authored by Rahul Arya's avatar Rahul Arya
Browse files

Use the correct error code when disconnecting

We used the incorrect one, which the controller may reject. Some
controllers don't care, but some do and we don't successfully
disconnect.

Bug: 267386723
Test: manual
Change-Id: Iad2522bc8f637a759b6243f4d3fd3b442d2690bf
parent 11c3f1f7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -58,8 +58,7 @@ static bool acl_ble_common_connection(
  if (!l2cble_conn_comp(handle, role, address_with_type.bda,
                        address_with_type.type, conn_interval, conn_latency,
                        conn_timeout)) {
    btm_sec_disconnect(handle, HCI_ERR_NO_CONNECTION,
                       "stack::acl::ble_acl fail");
    btm_sec_disconnect(handle, HCI_ERR_PEER_USER, "stack::acl::ble_acl fail");
    LOG_WARN("Unable to complete l2cap connection");
    return false;
  }