All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/1] Bluetooth: ISO: Set CIS bit only for devices with CIS
@ 2023-09-12  6:17 Vlad Pruteanu
  2023-09-12  6:17 ` [PATCH v3 1/1] Bluetooth: ISO: Set CIS bit only for devices with CIS support Vlad Pruteanu
  0 siblings, 1 reply; 3+ messages in thread
From: Vlad Pruteanu @ 2023-09-12  6:17 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: claudia.rosu, mihai-octavian.urzica, silviu.barbulescu,
	iulia.tanasescu, andrei.istodorescu, Vlad Pruteanu

As mentioned in the Bluetooth Specification the full name of this bit is
"Connected Isochronous Stream (Host Support)", thus it should be set only
for CIS capable devices. Currently, it 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.s

Vlad Pruteanu (1):
  Bluetooth: ISO: Set CIS bit only for devices with CIS support

 net/bluetooth/hci_sync.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v3 1/1] Bluetooth: ISO: Set CIS bit only for devices with CIS support
  2023-09-12  6:17 [PATCH v3 1/1] Bluetooth: ISO: Set CIS bit only for devices with CIS Vlad Pruteanu
@ 2023-09-12  6:17 ` Vlad Pruteanu
  2023-09-12  7:02   ` [v3,1/1] " bluez.test.bot
  0 siblings, 1 reply; 3+ messages in thread
From: Vlad Pruteanu @ 2023-09-12  6:17 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: claudia.rosu, mihai-octavian.urzica, silviu.barbulescu,
	iulia.tanasescu, andrei.istodorescu, Vlad Pruteanu

As mentioned in the Bluetooth Specification the full name of this bit is
"Connected Isochronous Stream (Host Support)", thus it should be set only
for CIS capable devices. Currently, it 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: Vlad Pruteanu <vlad.pruteanu@nxp.com>
---
 net/bluetooth/hci_sync.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index ec4dfc4c5749..1be5763c261c 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -4264,12 +4264,12 @@ static int hci_le_set_host_feature_sync(struct hci_dev *hdev)
 {
 	struct hci_cp_le_set_host_feature cp;
 
-	if (!iso_capable(hdev))
+	if (!cis_capable(hdev))
 		return 0;
 
 	memset(&cp, 0, sizeof(cp));
 
-	/* Isochronous Channels (Host Support) */
+	/* Connected Isochronous Channels (Host Support) */
 	cp.bit_number = 32;
 	cp.bit_value = 1;
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [v3,1/1] Bluetooth: ISO: Set CIS bit only for devices with CIS support
  2023-09-12  6:17 ` [PATCH v3 1/1] Bluetooth: ISO: Set CIS bit only for devices with CIS support Vlad Pruteanu
@ 2023-09-12  7:02   ` bluez.test.bot
  0 siblings, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2023-09-12  7:02 UTC (permalink / raw)
  To: linux-bluetooth, vlad.pruteanu

[-- Attachment #1: Type: text/plain, Size: 2056 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=783271

---Test result---

Test Summary:
CheckPatch                    PASS      0.73 seconds
GitLint                       FAIL      0.58 seconds
SubjectPrefix                 PASS      1.10 seconds
BuildKernel                   PASS      33.73 seconds
CheckAllWarning               PASS      36.94 seconds
CheckSparse                   PASS      41.98 seconds
CheckSmatch                   PASS      114.21 seconds
BuildKernel32                 PASS      32.44 seconds
TestRunnerSetup               PASS      494.07 seconds
TestRunner_l2cap-tester       PASS      28.52 seconds
TestRunner_iso-tester         PASS      51.49 seconds
TestRunner_bnep-tester        PASS      11.20 seconds
TestRunner_mgmt-tester        PASS      224.21 seconds
TestRunner_rfcomm-tester      PASS      17.49 seconds
TestRunner_sco-tester         PASS      20.52 seconds
TestRunner_ioctl-tester       PASS      19.08 seconds
TestRunner_mesh-tester        PASS      14.06 seconds
TestRunner_smp-tester         PASS      15.03 seconds
TestRunner_userchan-tester    PASS      11.81 seconds
IncrementalBuild              PASS      30.97 seconds

Details
##############################
Test: GitLint - FAIL
Desc: Run gitlint
Output:
[v3,1/1] Bluetooth: ISO: Set CIS bit only for devices with CIS support

WARNING: I3 - ignore-body-lines: gitlint will be switching from using Python regex 'match' (match beginning) to 'search' (match anywhere) semantics. Please review your ignore-body-lines.regex option accordingly. To remove this warning, set general.regex-style-search=True. More details: https://jorisroovers.github.io/gitlint/configuration/#regex-style-search
6: B2 Line has trailing whitespace: "or BIS support. In reality, devices that support BIS may not allow that "


---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-12  7:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-12  6:17 [PATCH v3 1/1] Bluetooth: ISO: Set CIS bit only for devices with CIS Vlad Pruteanu
2023-09-12  6:17 ` [PATCH v3 1/1] Bluetooth: ISO: Set CIS bit only for devices with CIS support Vlad Pruteanu
2023-09-12  7:02   ` [v3,1/1] " bluez.test.bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.