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

Commit e9812f1b authored by Hsin-chen Chuang's avatar Hsin-chen Chuang
Browse files

btm_acl: Only allow automatic flush if packet boundary is supported

Bug: 372035961
Tag: #floss
Test: mmm packages/modules/Bluetooth
Test: bluetooth_AdapterAUHealth.au_hfp_nbs_dut_as_source_test.floss
Flag: EXEMPT, behind Floss-only prop (bluetooth.core.classic.auto_flush_timeout)
Change-Id: I0c68e1a3042282b2a3188f2b9b9506f072b643b1
parent 3f8be643
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ void NotifyAclFeaturesReadComplete(tACL_CONN& p_acl, uint8_t max_page_number) {
  btm_process_remote_ext_features(&p_acl, max_page_number);
  btm_set_link_policy(&p_acl, btm_cb.acl_cb_.DefaultLinkPolicy());
  int32_t flush_timeout = osi_property_get_int32(PROPERTY_AUTO_FLUSH_TIMEOUT, 0);
  if (flush_timeout != 0) {
  if (bluetooth::shim::GetController()->SupportsNonFlushablePb() && flush_timeout != 0) {
    acl_write_automatic_flush_timeout(p_acl.remote_addr, static_cast<uint16_t>(flush_timeout));
  }
  BTA_dm_notify_remote_features_complete(p_acl.remote_addr);