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

Commit 982a2bcf authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

Remove gatt_drop_acl_on_out_of_resources_fix flag

Bug: 325929235
Bug: 325438660
Test: mmm packages/modules/Bluetooth
Flag: com.android.bluetooth.flags.gatt_drop_acl_on_out_of_resources_fix
Change-Id: I296427024f75c5d7d17c60e9f5a73d2f92da6b87
parent a0b54258
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -79,13 +79,6 @@ flag {
    bug: "325595120"
}

flag {
    name: "gatt_drop_acl_on_out_of_resources_fix"
    namespace: "bluetooth"
    description: "Remove ACL when there is not resource to handle more gatt connections."
    bug: "325929235"
}

flag {
    name: "ble_scan_adv_metrics_redesign"
    namespace: "bluetooth"
+4 −7
Original line number Diff line number Diff line
@@ -554,13 +554,10 @@ static void gatt_le_connect_cback(uint16_t /* chan */, const RawAddress& bd_addr
  else {
    p_tcb = gatt_allocate_tcb_by_bdaddr(bd_addr, BT_TRANSPORT_LE);
    if (!p_tcb) {
      log::error("CCB max out, no resources");
      if (com::android::bluetooth::flags::gatt_drop_acl_on_out_of_resources_fix()) {
      log::error("Disconnecting address:{} due to out of resources.", bd_addr);
      // When single FIXED channel cannot be created, there is no reason to
      // keep the link
      btm_remove_acl(bd_addr, transport);
      }
      return;
    }