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

Commit fd371e83 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Jakub Pawłowski
Browse files

Get rid of le_audio_fast_bond_params

Bug: 319405267
Fix: 319405267
Test: mma -j68
Flag: exempt, flag removal
Change-Id: Iaec8d9d41af49c1567906c4e2df9bf1964c2f622
parent e1197e37
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -73,13 +73,6 @@ flag {
    bug: "316005152"
}

flag {
    name: "le_audio_fast_bond_params"
    namespace: "bluetooth"
    description: "Faster LE Audio devices connection"
    bug: "319405267"
}

flag {
    name: "le_audio_dev_type_detection_fix"
    namespace: "bluetooth"
+1 −4
Original line number Diff line number Diff line
@@ -3286,10 +3286,7 @@ class LeAudioClientImpl : public LeAudioClient {
        "{},  {}", leAudioDevice->address_,
        bluetooth::common::ToString(leAudioDevice->GetConnectionState()));

    if (com::android::bluetooth::flags::le_audio_fast_bond_params()) {
      L2CA_LockBleConnParamsForProfileConnection(leAudioDevice->address_,
                                                 false);
    }
    L2CA_LockBleConnParamsForProfileConnection(leAudioDevice->address_, false);

    if (leAudioDevice->GetConnectionState() ==
            DeviceConnectState::CONNECTED_BY_USER_GETTING_READY &&
+2 −4
Original line number Diff line number Diff line
@@ -1900,8 +1900,7 @@ void btif_on_gatt_results(RawAddress bd_addr, BD_NAME bd_name,
        pairing_cb = {};
      }

      if (com::android::bluetooth::flags::le_audio_fast_bond_params() &&
          lea_supported) {
      if (lea_supported) {
        /* LE Audio profile should relax parameters when it connects. If
         * profile is not enabled, relax parameters after timeout. */
        log::debug("Scheduling conn params unlock for {}", bd_addr);
@@ -2442,8 +2441,7 @@ void btif_dm_acl_evt(tBTA_DM_ACL_EVT event, tBTA_DM_ACL* p_data) {
              : bt_conn_direction_t::BT_CONN_DIRECTION_INCOMING,
          p_data->link_up.acl_handle);

      if (com::android::bluetooth::flags::le_audio_fast_bond_params() &&
          p_data->link_up.transport_link_type == BT_TRANSPORT_LE &&
      if (p_data->link_up.transport_link_type == BT_TRANSPORT_LE &&
          pairing_cb.bd_addr == bd_addr &&
          is_device_le_audio_capable(bd_addr)) {
        L2CA_LockBleConnParamsForProfileConnection(bd_addr, true);