mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 01:17:30 +01:00
wifi-scripts: add support for using list for iface in wifi-station/vlan
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
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>
This commit is contained in:
parent
211b11a56e
commit
1ead4e6e16
1 changed files with 4 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue