From: Rafał Miłecki <ra...@milecki.pl> netifd has been recently patched to use more accurate "ports" option instead of "ifname"
Signed-off-by: Rafał Miłecki <ra...@milecki.pl> --- .../htdocs/luci-static/resources/tools/network.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js index b4d941c60d..370617397b 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js @@ -499,7 +499,7 @@ return baseclass.extend({ o.multiple = true; o.noaliases = true; o.nobridges = true; - o.ucioption = 'ifname'; + o.ucioption = 'ports'; o.write = o.remove = setIfActive; o.default = L.toArray(dev ? dev.getPorts() : null).filter(function(p) { return p.getType() != 'wifi' }).map(function(p) { return p.getName() }); o.filter = function(section_id, device_name) { @@ -509,7 +509,7 @@ return baseclass.extend({ /* only show wifi networks which are already present in "option ifname" */ if (choice_dev.getType() == 'wifi') { - var ifnames = L.toArray(uci.get('network', section_id, 'ifname')); + var ifnames = L.toArray(uci.get('network', section_id, 'ports')); for (var i = 0; i < ifnames.length; i++) if (ifnames[i] == device_name) -- 2.26.2 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel