From 1d1afecdc3f930b7311005561ef7b5c86633e1c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Thu, 2 Jul 2026 08:54:55 +0200 Subject: [PATCH] Keep the hwsim netdev as an internal interface It must exist, and will only handle frames when in state running, therefore we keep it, but mark it internal. --- board/common/rootfs/usr/libexec/infix/init.d/20-nameif | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/common/rootfs/usr/libexec/infix/init.d/20-nameif b/board/common/rootfs/usr/libexec/infix/init.d/20-nameif index 0356ce10..1357521a 100755 --- a/board/common/rootfs/usr/libexec/infix/init.d/20-nameif +++ b/board/common/rootfs/usr/libexec/infix/init.d/20-nameif @@ -43,5 +43,12 @@ for iface in $ports; do ip link set "$iface" group port done +# The mac80211_hwsim monitor tap (hwsim test images only) is a debug +# observer, not a user-facing interface. It cannot be deleted (no rtnl +# link ops), so classify it as internal like the DSA CPU interfaces. +if [ -d /sys/class/net/hwsim0 ]; then + ip link set dev hwsim0 group internal +fi + # At least loopback in iface group ip link set lo group iface