]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Be bug compatible with other operating systems by allowing non-sequential
authorhselasky <hselasky@FreeBSD.org>
Mon, 14 Dec 2020 11:56:16 +0000 (11:56 +0000)
committerhselasky <hselasky@FreeBSD.org>
Mon, 14 Dec 2020 11:56:16 +0000 (11:56 +0000)
commit432e398ecca9d91bc293909d2b12190f26077745
treedbc7af2f4f0f19a8d7536b21febf22e4fc7043cc
parent5bc600ddc13d4abb9bfeaf28a980f5d12771a90b
Be bug compatible with other operating systems by allowing non-sequential
interface numbering for USB descriptors in userspace. Else certain USB
control requests using the interface number, won't be recognized by the
USB firmware.

Refer to section 9.2.3 in the USB 2.0 specification:
Interfaces are numbered from zero to one less than the number of concurrent interfaces
supported by the configuration.

PR: 251784
MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
lib/libusb/libusb20_desc.c