Loading flags/gap.aconfig +0 −7 Original line number Diff line number Diff line Loading @@ -72,13 +72,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" Loading system/stack/gatt/gatt_main.cc +4 −7 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading
flags/gap.aconfig +0 −7 Original line number Diff line number Diff line Loading @@ -72,13 +72,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" Loading
system/stack/gatt/gatt_main.cc +4 −7 Original line number Diff line number Diff line Loading @@ -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; } Loading