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

Commit 49576764 authored by Aritra Sen's avatar Aritra Sen
Browse files

Remove 'queue_l2cap_coc_while_encrypting' flag since it has been enabled in...

Remove 'queue_l2cap_coc_while_encrypting' flag since it has been enabled in prod bug-free since tm-qpr2-release.

Bug: 290845993
Tag: #stability
Test: m -j $(nproc) ; Android should build without the flag as well.
Change-Id: Icb19dfe9ca8d36bb9e95aeb477455adabc486e1c
parent 55522c4d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -387,7 +387,6 @@ init_flags!(
        pbap_pse_dynamic_version_upgrade = false,
        periodic_advertising_adi = true,
        private_gatt = true,
        queue_l2cap_coc_while_encrypting = true,
        redact_log = true,
        rust_event_loop = true,
        sco_codec_select_lc3,
+0 −1
Original line number Diff line number Diff line
@@ -43,7 +43,6 @@ mod ffi {
        fn pbap_pse_dynamic_version_upgrade_is_enabled() -> bool;
        fn periodic_advertising_adi_is_enabled() -> bool;
        fn private_gatt_is_enabled() -> bool;
        fn queue_l2cap_coc_while_encrypting_is_enabled() -> bool;
        fn redact_log_is_enabled() -> bool;
        fn rust_event_loop_is_enabled() -> bool;
        fn sco_codec_select_lc3_is_enabled() -> bool;
+4 −10
Original line number Diff line number Diff line
@@ -991,17 +991,11 @@ tL2CAP_LE_RESULT_CODE btm_ble_start_sec_check(const RawAddress& bd_addr,
      break;
  }

  if (ble_sec_act == BTM_BLE_SEC_NONE) {
    if (bluetooth::common::init_flags::queue_l2cap_coc_while_encrypting_is_enabled()) {
      if (sec_act != BTM_SEC_ENC_PENDING) {
  if (ble_sec_act == BTM_BLE_SEC_NONE && sec_act != BTM_SEC_ENC_PENDING) {
    return result;
  }
    } else {
      return result;
    }
  } else {

  l2cble_update_sec_act(bd_addr, sec_act);
  }

  BTM_SetEncryption(bd_addr, BT_TRANSPORT_LE, p_callback, p_ref_data,
                    ble_sec_act);