Skip to content
Commit 54dc0115 authored by Tomasz Moń's avatar Tomasz Moń Committed by Anas Nashif
Browse files

usb: device_next: check wIndex on Set Address



Set Address behavior is not specified when wValue is greater than 127,
or if wIndex or wLength are non-zero. USB stack did check wValue and
wLength but didn't care about wIndex value. Extend the check so non-zero
wIndex also results in STALL response.

Signed-off-by: default avatarTomasz Moń <tomasz.mon@nordicsemi.no>
parent e569dfe1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment