1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/sys/usb/usbus
Kaspar Schleiser 70d480c301 sys/usb/usbus/cdc_ecm_netdev: fix _recv() return values
Previously, the function would always return the max_len parameter.
This poses two issues:

1. the API requires to return the actual packet size
2. the API requires that if the packet is larger than max_len, the
   packet is flushed and -ENOBUFS is returned
3. this basically bypasses the packet flushing, consequtive _recv()
   would return the last packet again

This commit fixes those issues.
2020-09-18 21:04:15 +02:00
..
cdc sys/usb/usbus/cdc_ecm_netdev: fix _recv() return values 2020-09-18 21:04:15 +02:00
Kconfig treewide: change prefix for generated Kconfig symbols. 2020-08-31 09:37:09 +02:00
Makefile usbus: Add cdc acm function 2019-09-30 18:40:59 +02:00
usbus_control_slicer.c USB VID/PID: Set whitelist define for internals that use usb.h 2020-01-30 15:04:10 +01:00
usbus_control.c sys/usbus: Move USBUS_EP0_SIZE to 'CONFIG_' namespace 2020-04-03 14:45:26 +02:00
usbus_fmt.c sys/usbus: Move USBUS_EP0_SIZE to 'CONFIG_' namespace 2020-04-03 14:45:26 +02:00
usbus.c sys: Cleanup access to internal variables 2020-08-24 20:28:11 +02:00