]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Be bug compatible with other operating systems by allowing non-sequential
authorHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 14 Dec 2020 11:56:16 +0000 (11:56 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 14 Dec 2020 11:56:16 +0000 (11:56 +0000)
commit10557931153c8e347251b95418fe0f45dc2262dd
treedbc7af2f4f0f19a8d7536b21febf22e4fc7043cc
parentf32672272f37100dfa23f1f01c16d6388543ba64
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