bluez5: Workaround incorrect SCO MTU

It seems that some BT adapters don't return correct SCO MTU, see
https://marc.info/?t=148586768600002&r=1&w=2
Do not try to autodetect the MTU and use a fix MTU size of 48 bytes.
This commit is contained in:
Frédéric Danis 2020-07-17 18:05:31 +02:00
parent 06a6e11806
commit 2d91e62a19
3 changed files with 11 additions and 32 deletions

View file

@ -235,7 +235,7 @@ static int sco_acquire_cb(void *data, bool optional)
t->read_mtu = 48;
t->write_mtu = 48;
if (true) {
if (false) {
struct sco_options sco_opt;
len = sizeof(sco_opt);