Message ID | 46eefccceb45556120a0d1fa95cf27c576e9649a.1685294131.git.pav@iki.fi (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | LE Set CIG Parameters / Create CIS fixes | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/CheckPatch | success | CheckPatch PASS |
tedd_an/GitLint | success | Gitlint PASS |
tedd_an/SubjectPrefix | success | Gitlint PASS |
tedd_an/BuildKernel | success | BuildKernel PASS |
tedd_an/CheckAllWarning | success | CheckAllWarning PASS |
tedd_an/CheckSparse | warning | CheckSparse WARNING net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h):net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h): |
tedd_an/CheckSmatch | warning | CheckSparse WARNING net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h):net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h): |
tedd_an/BuildKernel32 | success | BuildKernel32 PASS |
tedd_an/TestRunnerSetup | success | TestRunnerSetup PASS |
tedd_an/TestRunner_l2cap-tester | success | TestRunner PASS |
tedd_an/TestRunner_iso-tester | success | TestRunner PASS |
tedd_an/TestRunner_bnep-tester | success | TestRunner PASS |
tedd_an/TestRunner_mgmt-tester | success | TestRunner PASS |
tedd_an/TestRunner_rfcomm-tester | success | TestRunner PASS |
tedd_an/TestRunner_sco-tester | success | TestRunner PASS |
tedd_an/TestRunner_ioctl-tester | success | TestRunner PASS |
tedd_an/TestRunner_mesh-tester | success | TestRunner PASS |
tedd_an/TestRunner_smp-tester | success | TestRunner PASS |
tedd_an/TestRunner_userchan-tester | success | TestRunner PASS |
tedd_an/IncrementalBuild | success | Incremental Build PASS |
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=751684 ---Test result--- Test Summary: CheckPatch PASS 5.24 seconds GitLint PASS 1.85 seconds SubjectPrefix PASS 0.61 seconds BuildKernel PASS 37.62 seconds CheckAllWarning PASS 40.98 seconds CheckSparse WARNING 46.29 seconds CheckSmatch WARNING 126.89 seconds BuildKernel32 PASS 36.43 seconds TestRunnerSetup PASS 517.97 seconds TestRunner_l2cap-tester PASS 19.01 seconds TestRunner_iso-tester PASS 25.59 seconds TestRunner_bnep-tester PASS 6.55 seconds TestRunner_mgmt-tester PASS 129.05 seconds TestRunner_rfcomm-tester PASS 10.34 seconds TestRunner_sco-tester PASS 9.55 seconds TestRunner_ioctl-tester PASS 11.24 seconds TestRunner_mesh-tester PASS 8.29 seconds TestRunner_smp-tester PASS 9.34 seconds TestRunner_userchan-tester PASS 6.83 seconds IncrementalBuild PASS 90.25 seconds Details ############################## Test: CheckSparse - WARNING Desc: Run sparse tool with linux kernel Output: net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h):net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h): ############################## Test: CheckSmatch - WARNING Desc: Run smatch tool with source Output: net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h):net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h): --- Regards, Linux Bluetooth
su, 2023-05-28 kello 17:44 +0000, Pauli Virtanen kirjoitti: > The maximum CIS_Count is 0x1f (Core v5.3 Vol 4 Part E Sec 7.8.97). > > Fixes: 26afbd826ee3 ("Bluetooth: Add initial implementation of CIS connections") > Signed-off-by: Pauli Virtanen <pav@iki.fi> > --- > net/bluetooth/hci_conn.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c > index 1f906f8508bc..7b1a83ec50ae 100644 > --- a/net/bluetooth/hci_conn.c > +++ b/net/bluetooth/hci_conn.c > @@ -788,7 +788,7 @@ struct iso_list_data { > int count; > struct { > struct hci_cp_le_set_cig_params cp; > - struct hci_cis_params cis[0x11]; > + struct hci_cis_params cis[0x1f]; > } pdu; > }; > > @@ -1815,7 +1815,8 @@ static bool hci_le_set_cig_params(struct hci_conn *conn, struct bt_iso_qos *qos) > } > > /* Reprogram all CIS(s) with the same CIG */ > - for (data.cig = qos->ucast.cig, data.cis = 0x00; data.cis < 0x11; > + for (data.cig = qos->ucast.cig, data.cis = 0x00; > + data.cis < ARRAY_SIZE(data.pdu.cis); > data.cis++) { > data.count = 0; > Probably should also have cleaned up this loop while at it, the command takes 0x1f configurations at most, but CIS IDs are <= 0xef. For v2...
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 1f906f8508bc..7b1a83ec50ae 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c @@ -788,7 +788,7 @@ struct iso_list_data { int count; struct { struct hci_cp_le_set_cig_params cp; - struct hci_cis_params cis[0x11]; + struct hci_cis_params cis[0x1f]; } pdu; }; @@ -1815,7 +1815,8 @@ static bool hci_le_set_cig_params(struct hci_conn *conn, struct bt_iso_qos *qos) } /* Reprogram all CIS(s) with the same CIG */ - for (data.cig = qos->ucast.cig, data.cis = 0x00; data.cis < 0x11; + for (data.cig = qos->ucast.cig, data.cis = 0x00; + data.cis < ARRAY_SIZE(data.pdu.cis); data.cis++) { data.count = 0;
The maximum CIS_Count is 0x1f (Core v5.3 Vol 4 Part E Sec 7.8.97). Fixes: 26afbd826ee3 ("Bluetooth: Add initial implementation of CIS connections") Signed-off-by: Pauli Virtanen <pav@iki.fi> --- net/bluetooth/hci_conn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)