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

Commit 8f6e8b1d authored by Patty Huang's avatar Patty Huang
Browse files

[LE Audio] Correct the value of BIG parameter Max_SDU

Bug: 239532991
Test: atest LeAudioBroadcastServiceTest bluetooth_test_broadcaster_sm bluetooth_test_broadcaster

Change-Id: I8c8de4b317bc7a69f243f4d70c80bd17f8ac51f5
Merged-In: I8c8de4b317bc7a69f243f4d70c80bd17f8ac51f5
(cherry picked from commit b01b079f)
parent 88339aba
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ struct BroadcastCodecWrapper {
  }

  uint16_t GetMaxSduSize() const {
    return GetNumChannels() * GetMaxSduSizePerChannel();
    return GetNumChannelsPerBis() * GetMaxSduSizePerChannel();
  }

  const LeAudioCodecConfiguration& GetLeAudioCodecConfiguration() const {
@@ -112,6 +112,11 @@ struct BroadcastCodecWrapper {
    return source_codec_config.data_interval_us;
  }

  uint8_t GetNumChannelsPerBis() const {
    // TODO: Need to handle each BIS has more than one channel case
    return 1;
  }

 private:
  types::LeAudioCodecId codec_id;
  LeAudioCodecConfiguration source_codec_config;