diff options
| author | Steven Barth <steven@midlink.org> | 2008-11-12 18:37:16 +0000 |
|---|---|---|
| committer | Steven Barth <steven@midlink.org> | 2008-11-12 18:37:16 +0000 |
| commit | 2bef86c824124bfaa77cf16eebd41c02b4877d4d (patch) | |
| tree | 1352eb8c6b3823ea8455b733dd1cfc4ed2f0280d | |
| parent | e861e7bffc2240cef02047fbef83a20027a7b18e (diff) | |
Add support for NanoFoo antenna settings
| -rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 15 |
1 files changed, 13 insertions, 2 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 b61db62ac4..fa3ad753b3 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -34,6 +34,8 @@ end s:option(DummyValue, "type", translate("type")) local hwtype = m:get(arg[1], "type") +-- NanoFoo +local nsantenna = m:get(arg[1], "antenna") ch = s:option(Value, "channel", translate("a_w_channel")) for i=1, 14 do @@ -71,8 +73,17 @@ if hwtype == "atheros" then mode:value("fh", translate("wifi_fh")) s:option(Flag, "diversity", translate("wifi_diversity")) - s:option(Value, "txantenna", translate("wifi_txantenna")).optional = true - s:option(Value, "rxantenna", translate("wifi_rxantenna")).optional = true + + if not nsantenna then + s:option(Value, "txantenna", translate("wifi_txantenna")).optional = true + s:option(Value, "rxantenna", translate("wifi_rxantenna")).optional = true + else -- NanoFoo + local ant = s:option(ListValue, "antenna", translate("wifi_txantenna")) + ant:value("auto") + ant:value("vertical") + ant:value("horizontal") + ant:value("external") + end s:option(Value, "distance", translate("wifi_distance"), translate("wifi_distance_desc")).optional = true |
