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

Commit 0110997f authored by Myles Watson's avatar Myles Watson
Browse files

Remove phy_update_callback flag

Bug: 304830775
Test: mma -j32
Change-Id: Ie8d57e751e43f486a08983e75a09f26afcf9d3de
parent 805d0fdd
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -378,7 +378,6 @@ init_flags!(
        irk_rotation,
        leaudio_targeted_announcement_reconnection_mode = true,
        leaudio_enable_health_based_actions,
        pass_phy_update_callback = true,
        pbap_pse_dynamic_version_upgrade = false,
        periodic_advertising_adi = true,
        private_gatt = true,
+0 −1
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ mod ffi {
        fn irk_rotation_is_enabled() -> bool;
        fn leaudio_targeted_announcement_reconnection_mode_is_enabled() -> bool;
        fn leaudio_enable_health_based_actions_is_enabled() -> bool;
        fn pass_phy_update_callback_is_enabled() -> bool;
        fn pbap_pse_dynamic_version_upgrade_is_enabled() -> bool;
        fn periodic_advertising_adi_is_enabled() -> bool;
        fn private_gatt_is_enabled() -> bool;
+4 −9
Original line number Diff line number Diff line
@@ -826,15 +826,10 @@ class LeShimAclConnection

  void OnPhyUpdate(hci::ErrorCode hci_status, uint8_t tx_phy,
                   uint8_t rx_phy) override {
    if (common::init_flags::pass_phy_update_callback_is_enabled()) {
    TRY_POSTING_ON_MAIN(
        interface_.on_phy_update,
        static_cast<tGATT_STATUS>(ToLegacyHciErrorCode(hci_status)), handle_,
        tx_phy, rx_phy);
    } else {
      LOG_WARN("Not posting OnPhyUpdate callback since it is disabled: (tx:%x, rx:%x, status:%s)",
               tx_phy, rx_phy, hci::ErrorCodeText(hci_status).c_str());
    }
  }

  void OnDisconnection(hci::ErrorCode reason) {