From 30f0379ea9581ed0f24f6a8fc554670fe5f041ef Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Sat, 13 Oct 2012 12:47:26 +0200 Subject: usb-mbim: fix CDC ethernet descriptor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjørn Mork --- hw/usb/dev-mbim.c | 5 +++-- 1 file 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 */ -- cgit v1.2.3