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

Commit 6370c9a9 authored by William Escande's avatar William Escande Committed by Automerger Merge Worker
Browse files

Merge "leaudio: Change required MTU" am: 831a53fc

parents 0b1e64a9 831a53fc
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1848,7 +1848,11 @@ class LeAudioClientImpl : public LeAudioClient {
  void changeMtuIfPossible(LeAudioDevice* leAudioDevice) {
    if (leAudioDevice->mtu_ == GATT_DEF_BLE_MTU_SIZE) {
      LOG(INFO) << __func__ << ", Configure MTU";
      BtaGattQueue::ConfigureMtu(leAudioDevice->conn_id_, GATT_MAX_MTU_SIZE);
      /* Use here kBapMinimumAttMtu, because we know that GATT will request
       * GATT_MAX_MTU_SIZE on ATT anyways. We also know that GATT will use this
       * kBapMinimumAttMtu as an input for Data Length Update procedure in the controller.
       */
      BtaGattQueue::ConfigureMtu(leAudioDevice->conn_id_, kBapMinimumAttMtu);
    }
  }

@@ -4807,6 +4811,8 @@ class LeAudioClientImpl : public LeAudioClient {
  static constexpr char kNotifyUpperLayerAboutGroupBeingInIdleDuringCall[] =
      "persist.bluetooth.leaudio.notify.idle.during.call";

  static constexpr uint16_t kBapMinimumAttMtu = 64;

  /* Current stream configuration */
  LeAudioCodecConfiguration current_source_codec_config;
  LeAudioCodecConfiguration current_sink_codec_config;