Re: [PATCH 1/6] Bluetooth: ISO: fix maximum number of CIS in Set CIG Parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pauli,

On Sun, May 28, 2023 at 4:58 PM Pauli Virtanen <pav@xxxxxx> wrote:
>
> 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@xxxxxx>
> > ---
> >  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...

Can you prioritize this set? I'd like to have it merged asap since
without it CI is failing some tests.


-- 
Luiz Augusto von Dentz




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux