Page MenuHomeFreeBSD

bhyve: Fix language id of String Descriptors in usb mouse.
ClosedPublic

Authored by wanpengqian_gmail.com on Sep 18 2020, 12:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 7 2024, 11:01 AM
Unknown Object (File)
Feb 11 2024, 12:47 PM
Unknown Object (File)
Dec 20 2023, 2:24 AM
Unknown Object (File)
Sep 6 2023, 12:23 AM
Unknown Object (File)
Aug 9 2023, 6:00 PM
Unknown Object (File)
Aug 7 2023, 2:49 AM
Unknown Object (File)
Jul 9 2023, 8:29 PM
Unknown Object (File)
Jul 1 2023, 5:39 PM
Subscribers

Details

Summary

The language id of String Descriptors in usb mouse is
0x0904, while the spec require 0x0409 (English - United States)

Test Plan

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable