zephyr/drivers/net
David Komel 92499fc9d1 drivers: net: slip: Allow slip to co-exist with other interfaces
This commit fixes the following issue:
When using slip without TAP, i.e. CONFIG_SLIP_TAP=n (default), while
another ethernet interface is enabled and sets CONFIG_NET_L2_ETHERNET=y.

This causes ethernet_init() to be wrongly called with struct dummy_api
instead of struct ethernet_api.
ethernet_init() expects struct ethernet_api (by cast), so we end up
with the get_capabilities field pointing to garbage!
Actually, as we are using the dummy api, we don't need to call
ethernet_init() at all.

Sole dependency on CONFIG_NET_L2_ETHERNET is wrong because it
can be enabled by another interface.

Signed-off-by: David Komel <a8961713@gmail.com>
2020-09-21 10:02:06 -05:00
..
CMakeLists.txt
Kconfig net: ppp: select RING_BUFFER via Kconfig 2020-08-01 08:13:50 -04:00
loopback.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ppp.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
slip.c drivers: net: slip: Allow slip to co-exist with other interfaces 2020-09-21 10:02:06 -05:00