Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 82783b0 in mainline


Ignore:
Timestamp:
2010-12-12T12:45:38Z (11 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master
Children:
b82ec8d, e7726a4
Parents:
1103374
Message:

Fixed functions for getting configuration descriptor.

Was using wrong size in the setup packet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/usbdrvreq.c

    r1103374 r82783b0  
    162162                .request = USB_DEVREQ_GET_DESCRIPTOR,
    163163                .index = 0,
    164                 .length = sizeof(usb_standard_device_descriptor_t)
     164                .length = sizeof(usb_standard_configuration_descriptor_t)
    165165        };
    166166        setup_packet.value_high = USB_DESCTYPE_CONFIGURATION;
     
    225225                .request = USB_DEVREQ_GET_DESCRIPTOR,
    226226                .index = 0,
    227                 .length = sizeof(usb_standard_device_descriptor_t)
     227                .length = buffer_size
    228228        };
    229229        setup_packet.value_high = USB_DESCTYPE_CONFIGURATION;
Note: See TracChangeset for help on using the changeset viewer.