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

Commit d544b255 authored by Patty Huang's avatar Patty Huang
Browse files

Use 1M PHY for the ACK packet from buds to phone direction

Bug: 269981966
Test: manual, create CIS and check the PHY that selected
Test: atest BluetoothInstrumentationTests
Change-Id: I0b63078aa6ec95defd4ff6aac244ea07589d59de
parent 00e358ae
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1282,6 +1282,14 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
        group->GetPhyBitmask(le_audio::types::kLeAudioDirectionSink);
    uint8_t phy_stom =
        group->GetPhyBitmask(le_audio::types::kLeAudioDirectionSource);

    // Use 1M Phy for the ACK packet from remote device to phone for better
    // sensitivity
    if (max_sdu_size_stom == 0 &&
        (phy_stom & bluetooth::hci::kIsoCigPhy1M) != 0) {
      phy_stom = bluetooth::hci::kIsoCigPhy1M;
    }

    uint8_t rtn_mtos = 0;
    uint8_t rtn_stom = 0;