bluez5: tweak msbc adapter probe for Intel adapters

The msbc capability connection probe seems to cause problems on Intel
Bluetooth 8087:0a2b (Intel 8265), resulting to subsequent connections
apparently ending up with wrong altsetting.

According to testing, the problem is connecting to self, so connect to
device instead.

Fixes #1671
This commit is contained in:
Pauli Virtanen 2021-10-03 17:58:50 +03:00 committed by Wim Taymans
parent 601560e343
commit 84bc0490a5

View file

@ -589,8 +589,8 @@ static bool device_supports_required_mSBC_transport_modes(
bdaddr_t dst;
int res;
/* Connect to self */
str2ba(device->adapter->address, &dst);
/* Connect to device */
str2ba(device->address, &dst);
len = sizeof(addr);
memset(&addr, 0, len);
addr.sco_family = AF_BLUETOOTH;