From: Miguel Angel Mulero Martinez Date: Wed, 14 Feb 2024 07:03:43 +0000 (+0100) Subject: luci-app-usteer: filter repeated SSIDs in config X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2841d28396984431f3cf313cf0fbf381441ec40e;p=project%2Fluci.git luci-app-usteer: filter repeated SSIDs in config When the SSID name was the same in different radio, they appear repeated in the options. This commit filter them. Signed-off-by: Miguel Angel Mulero Martinez --- diff --git a/applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js b/applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js index 5cbc8c7a40..daa5ec64df 100644 --- a/applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js +++ b/applications/luci-app-usteer/htdocs/luci-static/resources/view/usteer/usteer.js @@ -611,7 +611,7 @@ return view.extend({ o = s.taboption('settings', form.DynamicList, 'ssid_list', _('SSID list'), _('List of SSIDs to enable steering on')); WifiNetworks.forEach(function (wifiNetwork) { - if (wifiNetwork.getSSID()) { + if (wifiNetwork.getSSID() && (!o.keylist || o.keylist.indexOf(wifiNetwork.getSSID()) === -1)) { o.value(wifiNetwork.getSSID()) } });