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
..
2020-02-20 13:24:14 +01:00
2020-04-07 17:48:39 +02:00
2020-09-11 00:18:59 +02:00
2020-09-11 13:01:31 +02:00
2020-09-02 19:16:30 +02:00
2020-06-19 10:44:56 +02:00
2020-09-10 10:08:27 +02:00
2020-06-10 21:21:33 +02:00
2020-02-11 13:59:59 +01:00
2020-07-23 20:18:34 +02:00