net/netdev/netdev_default.c: Exclude socket can from default devices

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2024-10-15 15:09:21 +03:00 committed by Xiang Xiao
parent 848b596a12
commit 313b2cd1ed
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ FAR struct net_driver_s *netdev_default(void)
* device). * device).
*/ */
if (dev->d_lltype != NET_LL_LOOPBACK) if (dev->d_lltype != NET_LL_LOOPBACK &&
dev->d_lltype != NET_LL_CAN)
{ {
ret = dev; ret = dev;
break; break;