Skip to content

bluetooth: mSBC: Decode packets larger than mSBC frame

Bluetooth transport layer already allows for packets larger than mSBC frame, and there are up to 1 + MTU / (mSBC packet size) complete frames to be decoded from each incoming SCO packet.

Now decoder fails when there is more than one complete frame available, which could happen if MTU size is larger than 1.5 * (mSBC packet size) = 90

Fix this by adding a loop over avialable frames, and adjust decoded buffer size to allow decoding up to 1 + MTU / (mSBC packet size) frames at once.

Closes #1360 (closed)

Edited by Igor Kovalenko

Merge request reports