From: Felix Fietkau Date: Fri, 10 Jul 2026 12:45:38 +0000 (+0200) Subject: wifi-scripts: do not treat WDS-station VLAN subinterfaces as the base wdev X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=105dd239ac7026ef0e98a3f3136e42580e5e2699;p=thirdparty%2Fopenwrt.git wifi-scripts: do not treat WDS-station VLAN subinterfaces as the base wdev The hotplug match /(.+)\.sta.+/ also matched VLAN subinterfaces of a WDS station (e.g. wlan0.sta1.100 -> wlan0), so the tagged subinterface was added into the vif base networks, breaking VLAN separation. Anchor the pattern to the plain station suffix. Signed-off-by: Felix Fietkau --- diff --git a/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc b/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc index ddd91fccf71..a3359bc0afd 100644 --- a/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc +++ b/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc @@ -544,7 +544,7 @@ function notify(req) function hotplug(name, add) { let dev = name; - let m = match(name, /(.+)\.sta.+/); + let m = match(name, /^(.+)\.sta[0-9]+$/); if (m) name = m[1];