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

Commit e18a5f10 authored by Yuyang Huang's avatar Yuyang Huang Committed by Gerrit Code Review
Browse files

Merge "Add flag for asha_phy_update_retry_limit"

parents 5f173b80 5674f0de
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
#include <functional>
#include <vector>

#include "common/init_flags.h"
#include "stack/include/gap_api.h"
#include "types/raw_address.h"

@@ -38,7 +39,8 @@ constexpr uint8_t CAPABILITY_BINAURAL = 0x02;
constexpr uint8_t CAPABILITY_RESERVED = 0xFC;

// Number of retry for phy update. This targets to reduce phy update collision.
constexpr uint8_t PHY_UPDATE_RETRY_LIMIT = 5;
const static uint8_t PHY_UPDATE_RETRY_LIMIT =
    bluetooth::common::init_flags::get_asha_phy_update_retry_limit();

/** Implementations of HearingAid will also implement this interface */
class HearingAidAudioReceiver {
+1 −0
Original line number Diff line number Diff line
@@ -359,6 +359,7 @@ init_flags!(
    name: InitFlags
    flags: {
        asha_packet_drop_frequency_threshold: i32 = 60,
        asha_phy_update_retry_limit: i32 = 5,
        always_send_services_if_gatt_disc_done = true,
        always_use_private_gatt_for_debugging,
        asynchronously_start_l2cap_coc = true,
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ mod ffi {
        fn get_hci_adapter() -> i32;
        fn get_log_level_for_tag(tag: &str) -> i32;
        fn get_asha_packet_drop_frequency_threshold() -> i32;
        fn get_asha_phy_update_retry_limit() -> i32;
        fn hfp_dynamic_version_is_enabled() -> bool;
        fn irk_rotation_is_enabled() -> bool;
        fn leaudio_targeted_announcement_reconnection_mode_is_enabled() -> bool;