luci-mod-admin-full: only offer VHT rates which are actually supported by the driver
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
02a93bca50
commit
445ae20db8
2 changed files with 8 additions and 6 deletions
|
@ -161,6 +161,7 @@ if found_sta then
|
||||||
else
|
else
|
||||||
ch = s:taboption("general", Value, "_mode_freq", '<br />'..translate("Operating frequency"))
|
ch = s:taboption("general", Value, "_mode_freq", '<br />'..translate("Operating frequency"))
|
||||||
ch.hwmodes = hw_modes
|
ch.hwmodes = hw_modes
|
||||||
|
ch.htmodes = iw.htmodelist
|
||||||
ch.freqlist = iw.freqlist
|
ch.freqlist = iw.freqlist
|
||||||
ch.template = "cbi/wireless_modefreq"
|
ch.template = "cbi/wireless_modefreq"
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<script type="text/javascript">//<![CDATA[
|
<script type="text/javascript">//<![CDATA[
|
||||||
var freqlist = <%= luci.http.write_json(self.freqlist) %>;
|
var freqlist = <%= luci.http.write_json(self.freqlist) %>;
|
||||||
var hwmodes = <%= luci.http.write_json(self.hwmodes) %>;
|
var hwmodes = <%= luci.http.write_json(self.hwmodes) %>;
|
||||||
|
var htmodes = <%= luci.http.write_json(self.htmodes) %>;
|
||||||
|
|
||||||
var channels = {
|
var channels = {
|
||||||
'11g': [
|
'11g': [
|
||||||
|
@ -31,14 +32,14 @@
|
||||||
'', '-', true
|
'', '-', true
|
||||||
],
|
],
|
||||||
'n': [
|
'n': [
|
||||||
'HT20', '20 MHz', true,
|
'HT20', '20 MHz', htmodes.HT20,
|
||||||
'HT40', '40 MHz', true
|
'HT40', '40 MHz', htmodes.HT40
|
||||||
],
|
],
|
||||||
'ac': [
|
'ac': [
|
||||||
'VHT20', '20 MHz', true,
|
'VHT20', '20 MHz', htmodes.VHT20,
|
||||||
'VHT40', '40 MHz', true,
|
'VHT40', '40 MHz', htmodes.VHT40,
|
||||||
'VHT80', '80 MHz', true,
|
'VHT80', '80 MHz', htmodes.VHT80,
|
||||||
'VHT160', '160 MHz', true
|
'VHT160', '160 MHz', htmodes.VHT160
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue