Skip to content

Commit

Permalink
net/netdev/netdev_default.c: Exclude socket can from default devices
Browse files Browse the repository at this point in the history
Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine committed Oct 15, 2024
1 parent df47241 commit c9aafb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/netdev/netdev_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c9aafb7

Please sign in to comment.