/* Custom handler for standard requests in order to catch the request and return the WebUSB Platform Capability Descriptor.  */
int custom_handle_req(struct usb_setup_packet *pSetup, int32_t *len, uint8_t **data)
/* Custom handler for standard requests in order to catch the request and return the WebUSB Platform Capability Descriptor.  */
int custom_handle_req(struct usb_setup_packet *pSetup, int32_t *len, uint8_t **data)
{
	if (usb_reqtype_is_to_device(pSetup)) {
		return -ENOTSUP;
	}
	if (USB_GET_DESCRIPTOR_TYPE(pSetup->wValue) == USB_DESC_STRING &&
	    USB_GET_DESCRIPTOR_INDEX(pSetup->wValue) == 0xEE) {
		*data = (uint8_t *)(&msos1_string_descriptor);
		*len = sizeof(msos1_string_descriptor);
		LOG_DBG("Get MS OS Descriptor v1 string");
		return 0;
	}
	return -EINVAL;
}