]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: do not treat WDS-station VLAN subinterfaces as the base wdev
authorFelix Fietkau <nbd@nbd.name>
Fri, 10 Jul 2026 12:45:38 +0000 (14:45 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 16 Jul 2026 09:50:22 +0000 (11:50 +0200)
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 <nbd@nbd.name>
package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc

index ddd91fccf713c2ab65755e15efafff27e3f8533f..a3359bc0afd026c0686a887a995272699b640245 100644 (file)
@@ -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];