Displaying 4 results from an estimated 4 matches for "libusb_get_active_config_descriptor".
2023 Nov 05
1
Passing hid_rep_index to libusb_get_config_descriptor is wrong?
...Reading first configuration descriptor");
                ret = libusb_get_config_descriptor(device,
-                       (uint8_t)usb_subdriver.hid_rep_index,
+                       0, //(uint8_t)usb_subdriver.hid_rep_index,
                        &conf_desc);
                /*ret = libusb_get_active_config_descriptor(device,
&conf_desc);*/
When running from commit ab55bc0 on master, I end up with
usb_subdriver.hid_rep_index  = 2 and libusb_get_config_descriptor returns
is  -5 (Entity not found), conf_desc is not filled in and then it ends up
in this code section:
 if (!conf_desc) { /* ?? this should never...
2023 Nov 05
1
Passing hid_rep_index to libusb_get_config_descriptor is wrong?
...on descriptor");
>                 ret = libusb_get_config_descriptor(device,
> -                       (uint8_t)usb_subdriver.hid_rep_index,
> +                       0, //(uint8_t)usb_subdriver.hid_rep_index,
>                         &conf_desc);
>                 /*ret = libusb_get_active_config_descriptor(device,
> &conf_desc);*/
>
> When running from commit ab55bc0 on master, I end up with
> usb_subdriver.hid_rep_index  = 2 and libusb_get_config_descriptor returns
> is  -5 (Entity not found), conf_desc is not filled in and then it ends up
> in this code section:
>  if (!con...
2023 Nov 05
1
Passing hid_rep_index to libusb_get_config_descriptor is wrong?
...;
>>                 ret = libusb_get_config_descriptor(device,
>> -                       (uint8_t)usb_subdriver.hid_rep_index,
>> +                       0, //(uint8_t)usb_subdriver.hid_rep_index,
>>                         &conf_desc);
>>                 /*ret = libusb_get_active_config_descriptor(device,
>> &conf_desc);*/
>>
>> When running from commit ab55bc0 on master, I end up with
>> usb_subdriver.hid_rep_index  = 2 and libusb_get_config_descriptor returns
>> is  -5 (Entity not found), conf_desc is not filled in and then it ends up
>> in this code...
2023 Nov 05
1
Passing hid_rep_index to libusb_get_config_descriptor is wrong?
...ret = libusb_get_config_descriptor(device,
>>> -                       (uint8_t)usb_subdriver.hid_rep_index,
>>> +                       0, //(uint8_t)usb_subdriver.hid_rep_index,
>>>                         &conf_desc);
>>>                 /*ret = libusb_get_active_config_descriptor(device,
>>> &conf_desc);*/
>>>
>>> When running from commit ab55bc0 on master, I end up with
>>> usb_subdriver.hid_rep_index  = 2 and libusb_get_config_descriptor
>>> returns is  -5 (Entity not found), conf_desc is not filled in and then it
>>&...