Menu

#40 WUSB descriptors

open
nobody
None
5
2010-08-23
2010-08-23
No

This patch decodes i) security, ii) encryption, iii) wire-adapter class, and iv) radio control interface class descriptors, which are commonly found on Wisair-based WUSB HWA / DWA dongles.

Discussion

  • Christopher Friedt

    lsusb-cvs-wusb.patch

     
  • Christopher Friedt

    =====
    Before
    =====

    Bus 001 Device 002: ID 13cf:1200 Wisair Ltd.
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 239 Miscellaneous Device
    bDeviceSubClass 2 ?
    bDeviceProtocol 2 Wire Adapter Multifunction Peripheral
    bMaxPacketSize0 64
    idVendor 0x13cf Wisair Ltd.
    idProduct 0x1200
    bcdDevice 1.00
    iManufacturer 2
    iProduct 1 Wireless USB Dongle
    iSerial 3 123456789
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 83
    bNumInterfaces 2
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
    (Bus Powered)
    MaxPower 500mA
    ** UNRECOGNIZED: 05 0c 0a 00 01
    ** UNRECOGNIZED: 05 0e 02 01 00
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 3
    bInterfaceClass 224 Wireless
    bInterfaceSubClass 2 Wireless USB Wire Adapter
    bInterfaceProtocol 1 Host Wire Adapter Control/Data Streaming
    iInterface 0
    ** UNRECOGNIZED: 0e 21 00 01 05 00 10 00 10 02 0d 00 0a 00
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 1
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x01 EP 1 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x82 EP 2 IN
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 0
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 1
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 224 Wireless
    bInterfaceSubClass 1 Radio Frequency
    bInterfaceProtocol 2 Ultra WideBand Radio Control
    iInterface 0
    ** UNRECOGNIZED: 04 23 00 01
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x83 EP 3 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 1
    Device Qualifier (for other device speed):
    bLength 10
    bDescriptorType 6
    bcdUSB 2.00
    bDeviceClass 239 Miscellaneous Device
    bDeviceSubClass 2 ?
    bDeviceProtocol 2 Wire Adapter Multifunction Peripheral
    bMaxPacketSize0 64
    bNumConfigurations 1
    Device Status: 0x0000
    (Bus Powered)

    ====
    After
    ====

    Bus 001 Device 002: ID 13cf:1200 Wisair Ltd.
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 239 Miscellaneous Device
    bDeviceSubClass 2 ?
    bDeviceProtocol 2 Wire Adapter Multifunction Peripheral
    bMaxPacketSize0 64
    idVendor 0x13cf Wisair Ltd.
    idProduct 0x1200
    bcdDevice 1.00
    iManufacturer 2
    iProduct 1 Wireless USB Dongle
    iSerial 3 123456789
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 83
    bNumInterfaces 2
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
    (Bus Powered)
    MaxPower 500mA
    Security Descriptor:
    bLength 5
    bDescriptorType 12
    wTotalLength 10
    bNumEncryptionTypes 1
    Encryption Descriptor:
    bLength 5
    bDescriptorType 14
    bEncryptionType 2 INSECURE
    bEncryptionValue 1
    bAuthKeyIndex 0
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 3
    bInterfaceClass 224 Wireless
    bInterfaceSubClass 2 Wireless USB Wire Adapter
    bInterfaceProtocol 1 Host Wire Adapter Control/Data Streaming
    iInterface 0
    Wire Adapter Class Descriptor:
    bLength 14
    bDescriptorType 33
    bcdWAVersion 1.00
    bNumPorts 5
    bmAttributes 0x00
    Power Switching Common
    Over-Current Prot. Common
    Port Indicators Not Supported
    wNumRpipes 16
    wRPipeMaxBlock 528
    bRPipeBlockSize 4096 bytes
    bPwrOn2PwrGood 0
    bNumMMCIEs 10
    DeviceRemovable 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 1
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x01 EP 1 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x82 EP 2 IN
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 0
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 1
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 224 Wireless
    bInterfaceSubClass 1 Radio Frequency
    bInterfaceProtocol 2 Ultra WideBand Radio Control
    iInterface 0
    Radio Control Interface Class Descriptor:
    bLength 4
    bDescriptorType 35
    bcdRCIVersion 1.00
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x83 EP 3 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 1
    Device Qualifier (for other device speed):
    bLength 10
    bDescriptorType 6
    bcdUSB 2.00
    bDeviceClass 239 Miscellaneous Device
    bDeviceSubClass 2 ?
    bDeviceProtocol 2 Wire Adapter Multifunction Peripheral
    bMaxPacketSize0 64
    bNumConfigurations 1
    Device Status: 0x0000
    (Bus Powered)

     

Log in to post a comment.