From 313b2cd1ed9c0542a6c720e453866d8bd88a6b2b Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Tue, 15 Oct 2024 15:09:21 +0300 Subject: [PATCH] net/netdev/netdev_default.c: Exclude socket can from default devices Signed-off-by: Jukka Laitinen --- net/netdev/netdev_default.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/netdev/netdev_default.c b/net/netdev/netdev_default.c index a8454d07cd..187734d920 100644 --- a/net/netdev/netdev_default.c +++ b/net/netdev/netdev_default.c @@ -75,7 +75,8 @@ FAR struct net_driver_s *netdev_default(void) * device). */ - if (dev->d_lltype != NET_LL_LOOPBACK) + if (dev->d_lltype != NET_LL_LOOPBACK && + dev->d_lltype != NET_LL_CAN) { ret = dev; break;