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

Commit 52c083f2 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: composite: Return status zero if remote wakeup is not supported"

parents 03657dc8 162914b3
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1899,7 +1899,11 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
		f = cdev->config->interface[intf];
		if (!f)
			break;

		if (USB_CONFIG_ATT_WAKEUP & cdev->config->bmAttributes)
			status = f->get_status ? f->get_status(f) : 0;
		else
			status = 0;
		if (status < 0)
			break;
		put_unaligned_le16(status & 0x0000ffff, req->buf);