bt-bass: Standardize error type for RemoteScanStoppedOperation decode

Align RemoteScanStoppedOperation::decode to return
`UnexpectedDataLength` instead of `BufferTooSmall` when the buffer is
malformed. The former is used for these situations, and the latter is
used for encoding errors due to truncated input buffers.

Bug: 539983871
Test: cargo test

Change-Id: I94e20bdced0ed8a0dd9540e587dc3d7f695094df
Reviewed-on: https://bluetooth-review.googlesource.com/c/bluetooth/+/3320
1 file changed
tree: bc092873c329a93f23da402db72a9620bf97efa3
  1. .agents/
  2. docs/
  3. infra/
  4. rust/
  5. .gitignore
  6. AUTHORS
  7. CONTRIBUTING.md
  8. GEMINI.md
  9. LICENSE
  10. OWNERS
  11. PATENTS
  12. presubmit.sh
  13. README.md
README.md

Bluetooth Shared Libraries

What is this?

This is a repository for shared libraries and tools that can be useful for multiple Bluetooth stacks.

These tools and libraries are meant to be:

  • Stack-agnostic and platform-agnostic
  • Implement a useful subset of a published Bluetooth specification.

It has been started as a repository for developing Rust crates but can be easily expanded to include libraries and tools written in other languages.

What is this not?

It is not a full Bluetooth stack. Google has two officially open-source Bluetooth stacks:

Structure

  • rust - Rust Crates
  • docs - General documentation (documentation for each library/tool is included in their directories)