luci-mod-network: don't offer unsupported wireless hwmodes
This prevents offering e.g. 'Legacy' on ac/n only radios or ax if hostapd wasn't compiled with ax support. Signed-off-by: Andre Heider <a.heider@gmail.com>
This commit is contained in:
parent
05f2901ffb
commit
eead21c5ab
1 changed files with 3 additions and 3 deletions
|
@ -343,10 +343,10 @@ var CBIWifiFrequencyValue = form.Value.extend({
|
|||
.reduce(function(o, v) { o[v] = true; return o }, {});
|
||||
|
||||
this.modes = [
|
||||
'', 'Legacy', true,
|
||||
'', 'Legacy', hwmodelist.a || hwmodelist.b || hwmodelist.g,
|
||||
'n', 'N', hwmodelist.n,
|
||||
'ac', 'AC', hwmodelist.ac,
|
||||
'ax', 'AX', hwmodelist.ax
|
||||
'ac', 'AC', L.hasSystemFeature('hostapd', '11ac') && hwmodelist.ac,
|
||||
'ax', 'AX', L.hasSystemFeature('hostapd', '11ax') && hwmodelist.ax
|
||||
];
|
||||
|
||||
var htmodelist = L.toArray(data[0] ? data[0].getHTModes() : null)
|
||||
|
|
Loading…
Reference in a new issue