Skip to content

Commit 5c8db07

Browse files
Praveena Nadahallygregkh
authored andcommitted
USB: Change acm_iad_descriptor bFunctionProtocol to USB_CDC_ACM_PROTO_AT_V25TER
The protocol code is set 00 in IAD and it's set to 01 in ACM control interface descriptor in f_acm.c file. Due to this, windows is unable to install the modem(ACM) driver based on class-subclass-protocol matching. This patch corrects the protocol code in ACM IAD to the same as in acm_control_interface_desc protocol code. Acked-by: Linus Walleij <[email protected]> Signed-off-by: Praveena Nadahally <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 92d3489 commit 5c8db07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/gadget/f_acm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ acm_iad_descriptor = {
111111
.bInterfaceCount = 2, // control + data
112112
.bFunctionClass = USB_CLASS_COMM,
113113
.bFunctionSubClass = USB_CDC_SUBCLASS_ACM,
114-
.bFunctionProtocol = USB_CDC_PROTO_NONE,
114+
.bFunctionProtocol = USB_CDC_ACM_PROTO_AT_V25TER,
115115
/* .iFunction = DYNAMIC */
116116
};
117117

0 commit comments

Comments
 (0)