mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-25 17:58:32 +03:00
string descr 0 is language identifier
This commit is contained in:
@@ -37,6 +37,14 @@
|
|||||||
* USB String descriptors
|
* USB String descriptors
|
||||||
*------------------------------------------------------------------------------*/
|
*------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
||||||
|
static const unsigned char langDesc[] = {
|
||||||
|
|
||||||
|
USBStringDescriptor_LENGTH(1),
|
||||||
|
USBGenericDescriptor_STRING,
|
||||||
|
USBStringDescriptor_ENGLISH_US
|
||||||
|
};
|
||||||
|
|
||||||
const unsigned char productStringDescriptor[] = {
|
const unsigned char productStringDescriptor[] = {
|
||||||
|
|
||||||
USBStringDescriptor_LENGTH(8),
|
USBStringDescriptor_LENGTH(8),
|
||||||
@@ -138,7 +146,7 @@ const unsigned char *stringDescriptors[] = {
|
|||||||
* because 0 also stands for "no string desc"?
|
* because 0 also stands for "no string desc"?
|
||||||
* on the other hand, dmesg output:
|
* on the other hand, dmesg output:
|
||||||
* "string descriptor 0 malformed (err = -61), defaulting to 0x0409" */
|
* "string descriptor 0 malformed (err = -61), defaulting to 0x0409" */
|
||||||
0,
|
langDesc,
|
||||||
productStringDescriptor,
|
productStringDescriptor,
|
||||||
snifferConfigStringDescriptor,
|
snifferConfigStringDescriptor,
|
||||||
CCIDConfigStringDescriptor,
|
CCIDConfigStringDescriptor,
|
||||||
|
|||||||
Reference in New Issue
Block a user