diff options
author | 2025-03-17 17:23:25 +0000 | |
---|---|---|
committer | 2025-03-20 02:29:02 -0700 | |
commit | 4a412913201d50b27658c0db65b00a13ccf3ef74 (patch) | |
tree | c47b988011815e849b694003f832fea6505b0a3f /system | |
parent | f3d34a19baec0c0e179de16631687036b72bb7db (diff) |
flag: Remove gatt_disconnect_fix flag
Flag has been delivered
Bug: 361538527
Test: mmm packages/modules/Bluetooth
Flag: EXEMPT, flag cleanup
Change-Id: I592acc88752e6f2b70b2702356667b904d29f710
Diffstat (limited to 'system')
-rw-r--r-- | system/stack/eatt/eatt_impl.h | 6 | ||||
-rw-r--r-- | system/stack/gatt/gatt_main.cc | 2 | ||||
-rw-r--r-- | system/stack/test/eatt/eatt_test.cc | 1 |
3 files changed, 2 insertions, 7 deletions
diff --git a/system/stack/eatt/eatt_impl.h b/system/stack/eatt/eatt_impl.h index 0d27726af4..b602636f0d 100644 --- a/system/stack/eatt/eatt_impl.h +++ b/system/stack/eatt/eatt_impl.h @@ -723,11 +723,7 @@ struct eatt_impl { tGATT_TCB* p_tcb = gatt_find_tcb_by_addr(channel->bda_, BT_TRANSPORT_LE); log::warn("disconnecting channel {:#x} for {}", channel->cid_, channel->bda_); - if (com::android::bluetooth::flags::gatt_disconnect_fix()) { - EattExtension::GetInstance()->Disconnect(channel->bda_, channel->cid_); - } else { - gatt_disconnect(p_tcb); - } + EattExtension::GetInstance()->Disconnect(channel->bda_, channel->cid_); } void start_indication_confirm_timer(const RawAddress& bd_addr, uint16_t cid) { diff --git a/system/stack/gatt/gatt_main.cc b/system/stack/gatt/gatt_main.cc index 56d268422c..8934ff62de 100644 --- a/system/stack/gatt/gatt_main.cc +++ b/system/stack/gatt/gatt_main.cc @@ -282,7 +282,7 @@ bool gatt_disconnect(tGATT_TCB* p_tcb) { return true; } - if (com::android::bluetooth::flags::gatt_disconnect_fix() && p_tcb->eatt) { + if (p_tcb->eatt) { /* ATT is fixed channel and it is expected to drop ACL. * Make sure all EATT channels are disconnected before doing that. */ diff --git a/system/stack/test/eatt/eatt_test.cc b/system/stack/test/eatt/eatt_test.cc index 5d7a2eeea8..17f4908b3e 100644 --- a/system/stack/test/eatt/eatt_test.cc +++ b/system/stack/test/eatt/eatt_test.cc @@ -660,7 +660,6 @@ TEST_F(EattTest, ChannelUnavailableWhileReconfiguring) { } TEST_F(EattTest, DisconnectChannelOnIndicationConfirmationTimeout) { - com::android::bluetooth::flags::provider_->gatt_disconnect_fix(true); ConnectDeviceEattSupported(1); eatt_instance_->StartIndicationConfirmationTimer(test_address, test_local_cids[0]); |