Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7136e68a authored by Chandana Kishori Chiluveru's avatar Chandana Kishori Chiluveru
Browse files

usb: gadget: f_gsi: Add MaxPacketSize in fs_descriptor



Currently "wMaxPacketSize" is not set in full speed descriptor
for MBIM and ECM functions. This results in chapter 9 test failures
on MBIM and ECM compositions. Hence updated Maxpacketsize in full speed
descriptor.

Change-Id: I0e73720919fdfa785c0bd456531a0d68516af36d
Signed-off-by: default avatarChandana Kishori Chiluveru <cchiluve@codeaurora.org>
parent 513494c8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -879,6 +879,7 @@ static struct usb_endpoint_descriptor mbim_gsi_fs_in_desc = {

	.bEndpointAddress =	USB_DIR_IN,
	.bmAttributes =		USB_ENDPOINT_XFER_BULK,
	.wMaxPacketSize =	4*cpu_to_le16(NCM_STATUS_BYTECOUNT),
};

static struct usb_endpoint_descriptor mbim_gsi_fs_out_desc = {
@@ -887,6 +888,7 @@ static struct usb_endpoint_descriptor mbim_gsi_fs_out_desc = {

	.bEndpointAddress =	USB_DIR_OUT,
	.bmAttributes =		USB_ENDPOINT_XFER_BULK,
	.wMaxPacketSize =	4*cpu_to_le16(NCM_STATUS_BYTECOUNT),
};

static struct usb_descriptor_header *mbim_gsi_fs_function[] = {
@@ -1180,6 +1182,7 @@ static struct usb_endpoint_descriptor ecm_gsi_fs_in_desc = {

	.bEndpointAddress =	USB_DIR_IN,
	.bmAttributes =		USB_ENDPOINT_XFER_BULK,
	.wMaxPacketSize =	cpu_to_le16(ECM_QC_STATUS_BYTECOUNT),
};

static struct usb_endpoint_descriptor ecm_gsi_fs_out_desc = {
@@ -1188,6 +1191,7 @@ static struct usb_endpoint_descriptor ecm_gsi_fs_out_desc = {

	.bEndpointAddress =	USB_DIR_OUT,
	.bmAttributes =		USB_ENDPOINT_XFER_BULK,
	.wMaxPacketSize =	cpu_to_le16(ECM_QC_STATUS_BYTECOUNT),
};

static struct usb_descriptor_header *ecm_gsi_fs_function[] = {