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

Commit 41566bcf authored by Jan Altenberg's avatar Jan Altenberg Committed by Greg Kroah-Hartman
Browse files

USB: gadget: queue usb USB_CDC_GET_ENCAPSULATED_RESPONSE message



commit 0cf4f2de introduced a bug, which
prevents sending an USB_CDC_GET_ENCAPSULATED_RESPONSE message. This
breaks the RNDIS initialization (especially / only Windoze machines
dislike this behavior...).

Signed-off-by: default avatarBenedikt Spranger <b.spranger@linutronix.de>
Signed-off-by: default avatarJan Altenberg <jan.altenberg@linutronix.de>
Acked-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7f4a9e87
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1561,6 +1561,7 @@ eth_setup (struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
				memcpy(req->buf, buf, n);
				req->complete = rndis_response_complete;
				rndis_free_response(dev->rndis_config, buf);
				value = n;
			}
			/* else stalls ... spec says to avoid that */
		}