Commit 7cff9a40 authored by Mariusz Skamra's avatar Mariusz Skamra Committed by Luiz Augusto von Dentz
Browse files

Bluetooth: Fix CIS host feature condition



This fixes the condition for sending the LE Set Host Feature command.
The command is sent to indicate host support for Connected Isochronous
Streams in this case. It has been observed that the system could not
initialize BIS-only capable controllers because the controllers do not
support the command.

As per Core v6.2 | Vol 4, Part E, Table 3.1 the command shall be
supported if CIS Central or CIS Peripheral is supported; otherwise,
the command is optional.

Fixes: 709788b1 ("Bluetooth: hci_core: Fix using {cis,bis}_capable for current settings")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMariusz Skamra <mariusz.skamra@codecoup.pl>
Reviewed-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 05761c2c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4592,7 +4592,7 @@ static int hci_le_set_host_features_sync(struct hci_dev *hdev)
{
	int err;

	if (iso_capable(hdev)) {
	if (cis_capable(hdev)) {
		/* Connected Isochronous Channels (Host Support) */
		err = hci_le_set_host_feature_sync(hdev, 32,
						   (iso_enabled(hdev) ? 0x01 :