Marian Buschsieweke
a81d39494f
drivers/w5100: Fix recv() with too small buffer
...
If netdev_driver_t::recv() is called and the provided buffer is smaller than
the frame then `-ENOBUFS` should be returned, the frame should be dropped, and
no data of the frame should be returned.
Addresses: https://github.com/RIOT-OS/RIOT/issues/10413
2019-01-29 20:38:56 +01:00
Marian Buschsieweke
ea3edef5c7
drivers/w5100: Added missing drop implementation
...
The netdev_driver_t::recv implementation of the w5100 does not provide the
drop feature. This commit adds it.
Fixes: https://github.com/RIOT-OS/RIOT/issues/10410
2019-01-29 20:36:37 +01:00
Marinus Enzinger
9bd15141a3
[w5100] Fixed RX interrupt handling
2018-05-17 18:13:23 +02:00
23b414b732
drivers: net: adapt to iolist-using netdev
2018-03-06 14:00:31 +01:00
smlng
4492396923
driver, w5100: fix sign-compare and add spi as required feature
2017-11-28 23:09:37 +01:00
Martine Lenders
29842bb5e4
netdev2: rename to netdev and remove gnrc_netdev
...
With some minor hand-edits I used the following chain of commands:
```sh
git rm sys/include/net/gnrc/netdev.h
git grep --name-only -i netdev2 | \
xargs sed -i -e 's/^\(NETDEV\)2\(.*\)\( [("]\)/\1\2 \3/g' \
-e 's/\(netdev\)2\(.*\)\( \/\*\*<\)/\1\2 \3/I' \
-e 's/\(netdev\)2/\1/gI'
git add -p
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
grep "netdev2" | xargs -I'{}' dirname '{}' | uniq | \
grep "netdev2" | while read dir; do
new_dir="$(echo "$dir" | sed "s/netdev2/netdev/g")"
git mv -f "$dir" "$new_dir"
done
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
grep "netdev2" | while read file; do
new_file="$(echo "$file" | sed "s/netdev2/netdev/g")"
git mv -f "$file" "$new_file"
done
git commit --amend
git grep --name-only "\<drivers_netdev_netdev\>" | \
xargs sed -i "s/\<drivers_netdev_netdev\>/drivers_netdev_api/g"
git add -p
git commit --amend
```
2017-03-15 09:31:20 +01:00
Hauke Petersen
79a113d1ba
sys/drivers: renamed uuid module to luid
2017-02-27 11:01:20 +01:00
Hauke Petersen
ac482fd3e2
drivers/w5100: adapted to SPI API changes
2017-01-25 16:46:46 +01:00
Hauke Petersen
8624456efe
drivers/w5100: use uuid_get() for HW addr gen
2017-01-19 11:09:29 +01:00
Hauke Petersen
efb7e8a3ba
drivers/w5100: set src addr to known state
2016-11-16 17:46:04 +01:00
Hauke Petersen
bf9f1268f2
drivers/w5100: adapted to netdev2 API changes
2016-11-16 09:50:36 +01:00
Hauke Petersen
d7dbac7c61
drivers: added driver for W5100 Ethernet chips
2016-10-26 08:36:58 +02:00