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 <migmul@gmail.com>
This commit is contained in:
parent
1635bbfad4
commit
2841d28396
1 changed files with 1 additions and 1 deletions
|
@ -611,7 +611,7 @@ return view.extend({
|
||||||
|
|
||||||
o = s.taboption('settings', form.DynamicList, 'ssid_list', _('SSID list'), _('List of SSIDs to enable steering on'));
|
o = s.taboption('settings', form.DynamicList, 'ssid_list', _('SSID list'), _('List of SSIDs to enable steering on'));
|
||||||
WifiNetworks.forEach(function (wifiNetwork) {
|
WifiNetworks.forEach(function (wifiNetwork) {
|
||||||
if (wifiNetwork.getSSID()) {
|
if (wifiNetwork.getSSID() && (!o.keylist || o.keylist.indexOf(wifiNetwork.getSSID()) === -1)) {
|
||||||
o.value(wifiNetwork.getSSID())
|
o.value(wifiNetwork.getSSID())
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue