diff options
author | Daniel Golle <daniel@makrotopia.org> | 2012-08-15 16:31:41 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2012-08-15 16:31:41 +0000 |
commit | b70cdbdb7b182d3aa6df850c2250c5596658abf4 (patch) | |
tree | 9a060044dcdc7065335f95d95258cfd67c846145 /modules/admin-full | |
parent | 5861011d18b9646705b9ddbab25e5d00dd4ddf4d (diff) |
support extant Antenna configuration
Diffstat (limited to 'modules/admin-full')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua index b8e240e0dd..bcc4416210 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -227,6 +227,18 @@ if hwtype == "mac80211" then s:taboption("advanced", Value, "distance", translate("Distance Optimization"), translate("Distance to farthest network member in meters.")) + -- external antenna profiles + local eal = iw and iw.extant + if eal and #eal > 0 then + ea = s:taboption("advanced", ListValue, "extant", translate("Antenna Configuration")) + for _, eap in ipairs(eal) do + ea:value(eap.id, "%s (%s)" %{ eap.name, eap.description }) + if eap.selected then + ea.default = eap.id + end + end + end + s:taboption("advanced", Value, "frag", translate("Fragmentation Threshold")) s:taboption("advanced", Value, "rts", translate("RTS/CTS Threshold")) end |