zephyr/subsys/usb/device_next
Johann Fischer 2dbccf0654 usb: device_next: do not set alternate 0 for non-existent interfaces
A request to set alternate zero for a non-existent interface
would succeed because of the inappropriate order of checks.
Move the check if the desired alternate is the same as the
current one after the check if interface exists.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-05-11 15:29:58 +02:00
..
class usb: device_next: add CDC ECM class implementation 2023-05-11 11:26:54 +02:00
CMakeLists.txt usb: device_next: add CDC ECM class implementation 2023-05-11 11:26:54 +02:00
Kconfig
usbd_ch9.c usb: device_next: do not set alternate 0 for non-existent interfaces 2023-05-11 15:29:58 +02:00
usbd_ch9.h usb: device_next: correct return type of get/set alternate value helper 2023-05-11 15:29:58 +02:00
usbd_class_api.h usb: device_next: add feature endpoint halt/clear state update API 2023-02-24 09:15:55 +01:00
usbd_class.c all: Fix "#if IS_ENABLED(CONFIG_FOO)" occurrences 2022-12-21 10:09:23 +01:00
usbd_class.h
usbd_config.c
usbd_config.h
usbd_core.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
usbd_data.ld
usbd_desc.c
usbd_desc.h
usbd_device.c
usbd_device.h
usbd_endpoint.c usb: Fix build for 64 bit platforms 2023-02-23 17:51:31 +01:00
usbd_endpoint.h
usbd_init.c usb: Fix build for 64 bit platforms 2023-02-23 17:51:31 +01:00
usbd_init.h
usbd_interface.c usb: device_next: do not set alternate 0 for non-existent interfaces 2023-05-11 15:29:58 +02:00
usbd_interface.h
usbd_shell.c usb: device_next: use consistent nil descriptor name 2023-02-24 14:02:37 +01:00