diff options
author | Bjørn Mork <bjorn@mork.no> | 2012-10-13 12:47:26 +0200 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2012-10-13 12:47:26 +0200 |
commit | 30f0379ea9581ed0f24f6a8fc554670fe5f041ef (patch) | |
tree | 6c5b3c56e8f869f80e713a75b397537e776d2912 | |
parent | dacb0467c1dc9573b32408faa2a7f081605e34ca (diff) |
usb-mbim: fix CDC ethernet descriptor
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r-- | hw/usb/dev-mbim.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/usb/dev-mbim.c b/hw/usb/dev-mbim.c index f7b4e9596..46e1a4046 100644 --- a/hw/usb/dev-mbim.c +++ b/hw/usb/dev-mbim.c @@ -90,12 +90,13 @@ static const uint8_t cdc_union[] = { 0x00, /* bMasterInterface 0 */ 0x01, /* bSlaveInterface 1 */ }; + static const uint8_t cdc_ethernet[] = { - 0x10, /* bLength; */ + 0x0d, /* bLength; */ 0x21, /* bDescriptorType; Functional */ 0x0f, /* bDescriptorSubType */ STR_MACADDRESS, /* iMacAddress */ - 0x00, /* bmEthernetStatistics 0x00000000 */ + 0x00, 0x00, 0x00, 0x00, /* bmEthernetStatistics 0x00000000 */ 0xea, 0x05, /* wMaxSegmentSize 1514 */ 0x40, 0x80, /* wNumberMCFilters 0x8040 */ 0x01, /* bNumberPowerFilters 1 */ |