Commit 5af69ab9 authored by Vlad Pruteanu's avatar Vlad Pruteanu Committed by Luiz Augusto von Dentz

Bluetooth: ISO: Set CIS bit only for devices with CIS support

Currently the CIS bit that can be set by the host is set for any device
that has CIS or BIS support. In reality, devices that support BIS may not
allow that bit to be set and so, the HCI bring up fails for them.

This commit fixes this by only setting the bit for CIS capable devices.
Signed-off-by: default avatarVlad Pruteanu <vlad.pruteanu@nxp.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent a97258db
...@@ -4264,12 +4264,12 @@ static int hci_le_set_host_feature_sync(struct hci_dev *hdev) ...@@ -4264,12 +4264,12 @@ static int hci_le_set_host_feature_sync(struct hci_dev *hdev)
{ {
struct hci_cp_le_set_host_feature cp; struct hci_cp_le_set_host_feature cp;
if (!iso_capable(hdev)) if (!cis_capable(hdev))
return 0; return 0;
memset(&cp, 0, sizeof(cp)); memset(&cp, 0, sizeof(cp));
/* Isochronous Channels (Host Support) */ /* Connected Isochronous Channels (Host Support) */
cp.bit_number = 32; cp.bit_number = 32;
cp.bit_value = 1; cp.bit_value = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment