mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 10:00:51 +00:00
for interface specific requests, the interface number is equivalent to (wIndex & 0xff). this corresponds to ep0_buf_rx[2], since the setup packet has format: bmRequestType (1), bRequest (1), wValue (2), wIndex (2), wLength (2). BUG=none BRANCH=none TEST=verify stm32 does not panic with multiple interfaces Change-Id: Ied7750035f87fa81f9a6c03c6e73ae606c110398 Signed-off-by: Dominic Chen <ddchen@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/209903 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>