diff options
author | Steven Barth <steven@midlink.org> | 2008-08-30 00:11:48 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-30 00:11:48 +0000 |
commit | 449d8e46e956272e14d75bf2458a6c945bef75f5 (patch) | |
tree | d9cdc513ece6aa9e93c91cb5f54f793c7fa1c316 /modules/admin-full/luasrc/model/cbi | |
parent | 76c5cc5ff9d66736f50e60f788d15c062ca70d3c (diff) |
Wifi updates part #1
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 22 |
1 files changed, 20 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 61b95b23aa..a1d676ac0a 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -27,7 +27,8 @@ function en.cfgvalue(self, section) return Flag.cfgvalue(self, section) or "0" end -t = s:option(DummyValue, "type", translate("type")) +s:option(DummyValue, "type", translate("type")) +local hwtype = m:get(arg[1], "type") mode = s:option(ListValue, "mode", translate("mode")) mode:value("", "standard") @@ -35,6 +36,14 @@ mode:value("11b", "802.11b") mode:value("11g", "802.11g") mode:value("11a", "802.11a") mode:value("11bg", "802.11b+g") + +if hwtype == "atheros" then + mode:value("11gdt", "802.11adt") + mode:value("11adt", "802.11adt") + mode:value("fh", "fh") +end + + mode.rmempty = true ch = s:option(Value, "channel", translate("a_w_channel")) @@ -71,6 +80,8 @@ maxassoc.optional = true +----------------------- Interface ----------------------- + s = m:section(TypedSection, "wifi-iface", translate("interfaces")) s.addremove = true s.anonymous = true @@ -102,9 +113,16 @@ mode:value("ap", translate("a_w_ap")) mode:value("adhoc", translate("a_w_adhoc")) mode:value("ahdemo", translate("a_w_ahdemo")) mode:value("sta", translate("a_w_client")) -mode:value("wds", translate("a_w_wds")) mode:value("monitor", translate("a_w_monitor")) +if hwtype ~= "atheros" then + mode:value("wds", translate("a_w_wds")) +end + +if hwtype == "atheros" then + s:option(Flag, "wds", translate("a_w_wds")) +end + s:option(Value, "bssid", "BSSID").optional = true s:option(Value, "txpower", translate("a_w_txpwr"), "dbm").rmempty = true |