diff options
| author | Rany Hany | 2025-11-29 00:04:09 +0000 |
|---|---|---|
| committer | Robert Marko | 2025-12-15 11:31:14 +0000 |
| commit | c743099fe1af383cf70e25080d6ab1b1744285b0 (patch) | |
| tree | a7ed1d102288c3ac71eeb0a34dd61e2710a51382 | |
| parent | b13c6a732a7d289a05d53aa1d7f6ef2aebfeb8e5 (diff) | |
| download | openwrt-c743099fe1af383cf70e25080d6ab1b1744285b0.tar.gz | |
wifi-scripts: add support for using list for iface in wifi-station/vlan
This is a trivial change to allow users to use 'list' on iface.
Old wifi-scripts already implements this, so this just ensures
that shell-based and ucode wifi-scripts are on-par with each other.
Signed-off-by: Rany Hany <rany_hany@riseup.net>
Link: https://github.com/openwrt/openwrt/pull/20977
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 1ead4e6e16e869397456318e4e1fa177ea325cee)
| -rw-r--r-- | package/network/config/wifi-scripts/files/lib/netifd/wireless.uc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/package/network/config/wifi-scripts/files/lib/netifd/wireless.uc b/package/network/config/wifi-scripts/files/lib/netifd/wireless.uc index ad935ce414..cb505a9eb8 100644 --- a/package/network/config/wifi-scripts/files/lib/netifd/wireless.uc +++ b/package/network/config/wifi-scripts/files/lib/netifd/wireless.uc @@ -192,8 +192,9 @@ function config_init(uci) } for (let name, data in sections.vlan) { + let ifaces = parse_array(data.iface); for (let iface, iface_vifs in vifs) { - if (data.iface && data.iface != iface) + if (length(ifaces) && index(ifaces, iface) < 0) continue; for (let vif in iface_vifs) { @@ -214,8 +215,9 @@ function config_init(uci) } for (let name, data in sections.station) { + let ifaces = parse_array(data.iface); for (let iface, iface_vifs in vifs) { - if (data.iface && data.iface != iface) + if (length(ifaces) && index(ifaces, iface) < 0) continue; for (let vif in iface_vifs) { |