The language id of String Descriptors in usb mouse is
0x0904, while the spec require 0x0409 (English - United States)
Details
Details
- Reviewers
grehan - Group Reviewers
bhyve - Commits
- rS365873: Fix byte-reversal of language ID in string descriptor.
From windows guest, using usb utility, USB Device Tree Viewer v3.4.0
check the String Descriptor 0
Without this patch, the String Descriptor 0 is
-------------------- String Descriptors -------------------
------ String Descriptor 0 ------
bLength : 0x04 (4 bytes)
bDescriptorType : 0x03 (String Descriptor)
Language ID[0] : 0x0904 (unknown)
Data (HexDump) : 04 03 04 09 ....
------ String Descriptor 1 ------
bLength : 0x0C (12 bytes)
bDescriptorType : 0x03 (String Descriptor)
Language 0x0904 : "BHYVE"
Data (HexDump) : 0C 03 42 00 48 00 59 00 56 00 45 00 ..B.H.Y.V.E.After apply the patch
-------------------- String Descriptors -------------------
------ String Descriptor 0 ------
bLength : 0x04 (4 bytes)
bDescriptorType : 0x03 (String Descriptor)
Language ID[0] : 0x0409 (English - United States)
Data (HexDump) : 04 03 09 04 ....
------ String Descriptor 1 ------
bLength : 0x0C (12 bytes)
bDescriptorType : 0x03 (String Descriptor)
Language 0x0409 : "BHYVE"
Data (HexDump) : 0C 03 42 00 48 00 59 00 56 00 45 00 ..B.H.Y.V.E.Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable